@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

body {
  font-family: 'Inter', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: #333;
  background-color: #fff;
  font-size: 16px;
  line-height: 1.6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
dl, dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"],
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

img,
picture,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
  border-radius: 0;
  outline: none;
}

input[type="radio"]{  
    margin-right: 5px;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: #333;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
}

a:hover {
  opacity: 0.8;
  transition: opacity 0.2s;
}

.header-top {
  background-color: #29ABE2;
  color: #fff;
  font-size: clamp(8.6px, 1.2vw, 16px);
  line-height: 1.5;
}

.header-copy {
  font-weight: 700;
}

.header-top__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.header-main {
  background: #fff;
}

.header-main__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* 左右端に配置 */
  align-items: center;
  padding: clamp(16px, 3vw, 25px) clamp(20px, 5vw, 40px);
}

.header-spacer {
  flex-grow: 1;
}

.img-logo {
  width: clamp(190px, 35vw, 331px);
  height: auto; /* 比率維持で縮小 */
}

@media (max-width: 767px) {
  .img-logo {
    max-width: 100%;
    width: calc((190 / 375) * 100vw);
    height: auto;
  }
  .header-main__inner {
      padding: 
      calc((10 / 375) * 100vw)
      calc((10 / 375) * 100vw)
      calc((20 / 375) * 100vw);
}
}


.img-tel {
  width: 268px;
  height: 48px;
  max-width: 25vw;
  height: auto; /* 比率維持 */
}

.img-btn {
  width: 210px;
  height: 56px;
  max-width: 18vw;
  height: auto; /* 比率維持 */
  transition: opacity 0.3s;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 17px; 
}

.img-tel:hover {
  content: url("../img/tel-hover.png");
}

.img-contact:hover {
  content: url("../img/contact-hover.png");
}


.img-quote:hover {
  content: url("../img/quote-hover.png");
}

/* ===============================
   Footer
=============================== */
.l-footer {
  background: #fff;
  color: #464E53;
  padding: 80px 20px;
  font-size: 16px;
  font-weight: 700;
}

.l-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.l-footer__left {
  flex: 1;
}

.l-footer__catch {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 700;
  color: #464E53;
}

.l-footer__logo img {
  width: 331px;
  height: 56px;
  max-width: 100%;
  height: auto; /* 比率維持で縮小 */
  margin-bottom: 15px;
}

.l-footer__info {
  font-size: 16px;
  font-weight: 700;
  color: #464E53;
  line-height: 1.3;
}

.l-footer__right {
  flex-shrink: 0;
}

.l-footer__nav a {
  font-size: 16px;
  font-weight: 700;
  color: #464E53;
}

.l-footer__nav a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.l-footer__nav {
  display: flex;
  gap: 1px;
  align-items: center;
}

.l-footer__divider {
  color: #464E53;
  font-weight: 700;
}
.l-float-cta {
  display: none; /* PCでは非表示 */
}

@media (max-width: 767px) {
  /* SPヘッダーアクション全体 */
  .header-actions-sp {
    display: flex;
    align-items: center;
    gap: 15px; /* アイコンの間隔 */
  }

  /* アイコン画像サイズ統一 */
  .header-actions-sp img {
    width: calc((50 / 375) * 100vw);
    height: auto;
    max-width: 100%;
    object-fit: contain; /* 画像比率崩れ防止 */
    transition: opacity 0.3s ease;
  }

  /* hover時の画像切替（TEL） */
  .sp-tel img {
    content: url("../img/sp-tel.png");
  }
  .sp-tel:hover img {
    content: url("../img/sp-tel-hover.png");
  }

  /* hover時の画像切替（CONTACT） */
  .sp-contact img {
    content: url("../img/sp-contact.png");
  }
  .sp-contact:hover img {
    content: url("../img/sp-contact-hover.png");
  }

  .l-footer__catch { 
     font-size: clamp(14px, calc(14px + (16 - 14) * ((100vw - 375px) / (767 - 375))), 16px);
}

    .l-footer__inner {
    flex-direction: column;   /* 縦並び */
    align-items: center;
    text-align: center;
  }

  /* 並び順を変更 */
  .l-footer__right {
    order: -1; /* ナビリンクを一番上に移動 */
    margin-bottom: 20px;
  }

  .l-footer__left {
    order: 0;
  }

  /* ナビリンク中央寄せ */
  .l-footer__nav {
    justify-content: center;
    gap: 1px;
  }

  .l-footer__nav a{
    font-weight: 500;
  }

  .l-footer__catch {
    font-weight: 500;
  }

    .l-footer__logo {
    text-align: center;
  }
  .l-footer__logo img {
    margin: 0 auto 15px; /* 中央寄せ + 下余白 */
  }

  .l-footer__info {
    font-weight: 500;   /* 太さ500 */
    text-align: left;   /* 左寄せ */
    line-height: 1.5;
    margin: 0 auto;     /* 左右中央に配置（幅制御する場合用） */
    max-width: 340px;   /* 読みやすく中央寄せしたい場合は制限 */
    font-size: clamp(14px, calc(14px + (16 - 14) * ((100vw - 320px) / (375 - 320))), 16px);
  }

  .l-float-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.1);
  }

  .l-float-cta__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* ボタン間の余白 */
  }

  .btn-float-cta,
  .btn-float-qt {
    display: block;
    width: 45%; 
    max-width: 220px;
  }

  .img-float-cta,
  .img-float-qt {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s;
  }

  .img-float-cta:hover {
    content: url("../img/btn-float-cta-hover.png");
    opacity: 1 !important;
  }
  .img-float-qt:hover {
    content: url("../img/btn-float-qt-hover.png");
    opacity: 1 !important;
  }
}

/* ==========================
   component
========================== */

.c-upload-btn{
  align-items: center;
  border-radius: 5px;
  border:solid 0.5px #A7A7A7;
  cursor: pointer;
  justify-content: center;
  background:#D9D9D9;
  display:flex;
  width:170px;
  height:40px;

  &:hover{
    opacity: 0.7;
  }
}

.c-link-text{
  color: #29ABE2;

  &:hover{
    opacity: 0.7;
  }
}

.c-error{
  margin-top: 0.5rem;
  font-size: 93%;
  color: #B70000;
  display: block;
}

.c-disabled{
    border-color: #ccc !important;
    opacity: 0.5 !important;
}

/* ==========================
   Page Title (共通)
========================== */
.page-title {
  background-color: #29ABE2;
  text-align: center;
  width: 100%; 
}

.page-title__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 60px 20px;
}

.page-title__icon {
  width: clamp(37px, calc(37px + (60 - 37) * ((100vw - 375px) / (1280 - 375))), 60px);
  height: auto;
}

.page-title__title {
  color: #fff;
  font-size: clamp(32px, calc(32px + (38 - 32) * ((100vw - 375px) / (1280 - 375))), 38px);
  font-weight: 700;
}


/* ==========================
   News
========================== */
.sec-news-detail {
  font-weight: 500;
  margin: 0 auto;
  padding: 100px 25px 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 40px;
  max-width: 1100px;
}

.sec-news-detail__head,
.sec-news-detail__content {
  max-width: 700px;   /* コンテナ幅 */
  margin: 0 auto;
}

.sec-news-detail__date {
  display: block;
  margin-bottom: 12px;
  color: #2849B2;
  font-size: clamp(16px, calc(16px + (18 - 16) * ((100vw - 375px) / (1280 - 375))), 18px);
}

.sec-news-detail__title {
  color: #2849B2;
  font-weight: 700;
  margin-bottom: 30px;
  font-size: clamp(16px, calc(16px + (24 - 16) * ((100vw - 375px) / (1280 - 375))), 24px);
  margin-bottom: 30px; /* 下線＋余白分を広めに */
  padding-bottom: 0;   /* 下線は削除 */
}

.sec-news-detail__title::after {
  content: "";
  display: block;
  width: 700px;
  max-width: 100%;
  height: 2px;
  background-color: #29ABE2;
  margin-top: 25px; /* ← テキストと下線の隙間 */
}

.sec-news-detail__content {
  color: #464E53;
  line-height: 1.8;
  font-size: clamp(16px, calc(16px + (18 - 16) * ((100vw - 375px) / (1280 - 375))), 18px);
}

/* ==========================
   News Detail Pager
========================== */
.sec-news-detail__pager {
  max-width: 700px;
  margin: 150px auto 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap; 
}

.sec-news-detail__pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 20px; /* デフォルト余白 */
  border: 1px solid #29ABE2;
  border-radius: 30px;
  font-size: clamp(16px, calc(16px + (18 - 16) * ((100vw - 375px) / (1280 - 375))), 18px);
  color: #29ABE2;
  text-decoration: none;
  white-space: nowrap; /* 改行させない */
  transition: background-color .3s, color .3s;
}

.sec-news-detail__pager a:hover {
  background-color: #29ABE2;
  color: #fff;
}

.pager__prev:empty,
.pager__next:empty {
  display: none;
}

.sec-news-detail__pager .prev a {
  padding-right: 0.6em; /* PREの右側に余白 */
}

.sec-news-detail__pager .next a {
  padding-left: 0.6em;  /* NEXTの左側に余白 */
}

/* ==========================
   News Detail Layout
========================== */
.sec-news-detail__main {
  grid-column: 1 / 2;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================
   Sidebar (カテゴリ & アーカイブ)
========================== */
.sec-news-detail__side {
  grid-column: 2 / 3;
  font-size: clamp(16px, calc(16px + (18 - 16) * ((100vw - 375px) / (1280 - 375))), 18px);
}

.news-widget {
  margin-bottom: 50px;
}

.news-widget__title {
  display: block;
  background: #E2EAF1;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: clamp(16px, calc(16px + (18 - 16) * ((100vw - 375px) / (1280 - 375))), 18px);
  font-weight: 500;
  margin-bottom: 16px;
  text-align: center;
}

.news-widget__list li {
  margin-bottom: 8px;
}

/* ==========================
   News List
========================== */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #29ABE2;
}

.news-list__item {
  border-bottom: 1px solid #29ABE2;
  padding: 12px 0;
}

.news-list__item a {
  display: flex;
  gap: 20px;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
}

.news-list__date {
  color: #2849B2;
  font-size: clamp(16px, calc(16px + (18 - 16) * ((100vw - 375px) / (1280 - 375))), 18px);
  min-width: 100px;
}

.news-list__title {
  color: #464E53;
  font-size: clamp(16px, calc(16px + (18 - 16) * ((100vw - 375px) / (1280 - 375))), 18px);
  flex: 1;
}

/* ==========================
   category
========================== */
.category .page-title .page-title__inner,
.archive .page-title .page-title__inner {
  margin: 0 auto;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.page-title__date {
  font-size: 0.8em;   /* 親の80%くらいに */
}

/* ==========================
   category
========================== */
.sec-news-detail__content a {
  color: #2849B2; /* タイトルと同じ青色 */
  font-weight: 700; /* 太字にして目立たせる */
  text-decoration: none; /* 下線なし */
  transition: color 0.3s ease; /* スムーズに色が変わる */
}

.sec-news-detail__content a:hover {
  color: #3c5fe0; /* ホバー時、明るめのブルー */
}


/* ==========================
   Privacy Policy Page
========================== */
.page-privacy {
  max-width: clamp(320px, 80vw, 780px); /* スマホ320～PC780で可変 */
  margin: 0 auto;
  padding: clamp(90px, calc(90px + (110 - 90) * ((100vw - 375px) / (1280 - 375))), 110px) 0px;
  font-size: clamp(16px, calc(16px + (18 - 16) * ((100vw - 375px) / (1280 - 375))), 18px);
  line-height: 1.8;
  color: #464E53;
}

.page-privacy h2 {
  color: #2849B2;
  font-size: clamp(22px, calc(22px + (24 - 22) * ((100vw - 375px) / (1280 - 375))), 24px);
  margin: 50px 0 15px;
  font-weight: 700;
  text-align: center;
}

.page-privacy p {
  margin-bottom: 1.5em; /* 段落ごとに余白 */
  line-height: 1.8; 
}


@media (max-width: 767px) {
  .page-title__inner {
  gap: 10px;
}
  .sec-news-detail {
    grid-template-columns: 1fr; /* 1カラム */
    display: block;  
    padding-bottom: 50px;
  }

  .sec-news-detail__main,
  .sec-news-detail__side {
    grid-column: auto;
    max-width: 100%; /* スマホでは幅いっぱい */
    width: 100%;
    margin-bottom: 50px;
  }

  .news-list__item a {
    flex-direction: column;  /* 縦並び */
    align-items: flex-start; /* 左寄せ */
    gap: 6px;                /* 日付とタイトルの間隔を少し */
  }
}

@media (max-width: 575px) {
.privacy-policy .page-title .page-title__inner{
  flex-direction: row;       /* 横並び維持 */
  align-items: flex-start;   /* アイコンを上揃え */
  justify-content: flex-start; /* 左寄せ */
  text-align: left;          /* テキストも左寄せ */
}
  
  .page-title__title {
    text-align: left;          /* タイトルだけ強制的に左寄せ */
  }
}

/* ==========================
   Contact Page
========================== */

.page-contact form {
  max-width: 780px;
  margin: 0 auto;
}

.page-contact.l-inner {
  margin-top: 100px;
  padding-left: 25px;
  padding-right: 25px;
}

.p-contact__lead {
  text-align: center;
  font-size: 18px;
  color: #464E53;
  font-weight: 700;
  line-height: 1.8;
  margin: 0 auto 60px;
  max-width: 800px;
}

.p-contact__etc-label {
  flex-shrink: 0;
  width: 100px;
}

@media (max-width: 767px) {
.page-contact.l-inner {
  margin-top: 50px;
}

  .p-contact__lead {
    text-align: left; 
  }
}

.c-dl__row {
  align-items: center;
  margin-bottom: 30px;
}

.p-contact__dt {
  width: 780px;
  font-size: 18px;
  font-weight: 500;
  color: #2849B2;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 必須マーク */
.u-icon-must {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 18px;
  font-size: 14px;
  color: #fff;
  background-color: #FF0033;
  border-radius: 3px;
  line-height: 1;
}

.p-contact__note {
  font-size: 16px;
  font-weight: 400;
  color: #464E53;
  margin-left: 8px;
}

/* 入力欄 */
.p-contact__dd input[type="text"],
.p-contact__dd input[type="email"],
.p-contact__dd input[type="tel"],
.p-contact__dd textarea {
  width: 100%;
  max-width: 780px;
  height: 55px;
  padding: 0 16px;
  font-size: 16px;
  border: 5px solid #94D5F0;
  border-radius: 10px;
  transition: border-color 0.2s;
  margin-top: 7px;
}

.p-contact__dd textarea {
  min-height: 180px;
  padding: 12px 16px;
  resize: vertical;
}

.p-contact__dd input:focus,
.p-contact__dd textarea:focus {
  border-color: #29ABE2;
  outline: none;
}

.p-contact__dd input[name="zipcode"] {
  width: 194px;
  height: 55px;
}

.p-contact__btn {
  display: flex;
  justify-content: center; /* 横方向センタリング */
  align-items: center;     /* 縦方向センタリング */
  background-color: #FF9900;
  color: #fff;
  font-weight: 600;
  font-size: 24px;
  width: 210px;
  height: 56px;
  border-radius: 28px;
  text-decoration: none;
  border: 2px solid #FF9900;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0px auto 100px;
}

.p-contact__btn:hover {
  background-color: #fff;
  color: #FF9900;
}

.p-contact__btn:focus {
  outline: none;
}

.mw_wp_form_confirm .p-contact__row {
  border-bottom: 1px solid #29ABE2;
  padding: 15px 0;
}

.mw_wp_form_confirm .p-contact__dt {
  position: relative;
  width: 200px;
  text-align: right;
  padding-right: 50px;
  margin-right: 25px;
  display: block;
}

.mw_wp_form_confirm .p-contact__dt .u-icon-must {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.mw_wp_form_confirm .c-round-btn {
  min-width: 200px;
  font-size: 18px;
  font-weight: 600;
  padding: 12px 24px;
}

.mw_wp_form_confirm .c-round-btn {
  margin: 0 10px;
}

.mw_wp_form_confirm .c-round-btn--orange {
  background-color: #E60012; /* 赤系 */
  color: #fff;
}

.mw_wp_form_confirm .c-round-btn--blue {
  background-color: #00A0E9; /* 水色系 */
  color: #fff;
}

@media (max-width: 767px) {
  .c-dl__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .p-contact__dt {
    width: 100%;
    flex-wrap: wrap;
  }

  .p-contact__note {
    flex-basis: 100%; /* 横幅100%で下の行へ */
    margin-left: 0;   /* 左余白を消す */
  }

  .p-contact__dd input[type="text"],
  .p-contact__dd input[type="email"],
  .p-contact__dd input[type="tel"],
  .p-contact__dd textarea {
    width: 100%;
  }

  .p-contact__btn {
    font-size: 20px;
    width: 165px;
    height: 44px;
    border-radius: 22px;
    margin-top: 30px;
    margin-bottom: 70px;
  }
}


/* ==========================
   確認画面専用スタイル
========================== */
.page-title__suffix {
  display: inline;
}

.page-contact:has(.mw_wp_form_confirm) .p-contact__lead,
.page-contact:has(.mw_wp_form_complete) .p-contact__lead {
  display: none;
}

.mw_wp_form_confirm .p-contact__note {
  display: none;
}

.mw_wp_form_confirm .c-dl__row {
  margin-bottom: 1px;
}

.mw_wp_form_confirm .p-contact__row {
  display: flex;
  border-bottom: 1px solid #29ABE2;
  padding: 15px 0;
}

.mw_wp_form_confirm .p-contact__row:first-child {
  border-top: 1px solid #29ABE2;
}

.mw_wp_form_confirm .p-contact__dd {
  flex: 1;
  color: #333;
}

.mw_wp_form_confirm .p-contact__btn-wrap {
  display: flex;
  justify-content: center; /* 中央揃え */
  gap: 25px;               /* ボタン間の余白 */
  margin-top: 50px;
  margin-bottom: 100px;
}

.mw_wp_form_confirm .p-contact__btn {
  margin: 0; /* 既存の margin:auto; をリセット */
}

@media (max-width: 767px) {
  body.page-id-22:has(.mw_wp_form_confirm) .page-title__inner,
  body.page-id-22:has(.mw_wp_form_complete) .page-title__inner {
    flex-direction: row;       /* 横並び維持 */
    align-items: flex-start;   /* アイコンを上揃え */
    justify-content: flex-start; /* 左寄せ */
    text-align: left;
  }

  body.page-id-22:has(.mw_wp_form_confirm) .page-title__icon,
  body.page-id-22:has(.mw_wp_form_complete) .page-title__icon {
    margin-top: 10px;
  }

  .page-title__suffix {
    display: block;
    position: relative;
    left: -13px;

  }

  .mw_wp_form_confirm .p-contact__btn {
    width: 165px;
    height: 44px;
    font-size: 20px;
    border-radius: 22px;
  }

    .mw_wp_form_confirm .p-contact__btn-wrap {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: 80px;
    margin-bottom: 70px;
  }

  .mw_wp_form_confirm .p-contact__row {
  padding: 10px 0;
}

    .mw_wp_form_confirm .p-contact__dt {
    display: flex;          /* 横並びに戻す */
    justify-content: flex-start; /* 左寄せ */
    text-align: left;       /* 項目名も左寄せ */
    width: 100%;            /* スマホ幅いっぱい */
    padding-right: 0;       /* PC用余白リセット */
    margin-bottom: 5px;
  }

  .mw_wp_form_confirm .p-contact__dt .u-icon-must {
    position: static;   /* 絶対配置を解除 */
    transform: none;    /* 中央揃え解除 */
  }
}

/* --- 修正するボタン（ブルー系） --- */
.mw_wp_form_confirm .p-contact__btn--back {
  background-color: #1BB8CE;
  border: 2px solid #1BB8CE;
}
.mw_wp_form_confirm .p-contact__btn--back:hover {
  background-color: #fff;
  color: #1BB8CE;
  border: 2px solid #1BB8CE;
}

/* --- 送信するボタン（レッド系） --- */
.mw_wp_form_confirm .p-contact__btn--submit {
  background-color: #FF0033;
  border: 2px solid #FF0033;
}
.mw_wp_form_confirm .p-contact__btn--submit:hover {
  background-color: #fff;
  color: #FF0033;
  border: 2px solid #FF0033;
}
.p-contact__thanks-message {
  text-align: center;
  font-size: 18px;
  color: #464E53;
  font-weight: 700;
  line-height: 1.8;
  margin: 0 auto 60px;
  max-width: 720px;
}

.p-contact__thanks-btn .p-contact__btn {
  text-decoration: none; /* 通常時 */
}

.p-contact__thanks-btn .p-contact__btn:hover {
  text-decoration: none; /* ホバー時も下線を消す */
}

@media (max-width: 500px) {
  .p-contact__thanks-message {
    text-align: left;
  }
}

/* ==========================
   施工事例シングルページ
========================== */
.works-single {
  max-width: 1000px; /* コンテンツ幅 */
  margin: 0 auto;
  padding: 150px 20px;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.8;
}

.works-date {
  color: #2849B2;
  font-size: clamp(16px, calc(16px + (18 - 16) * ((100vw - 375px) / (1280 - 375))), 18px);
  font-weight: 500;
  min-width: 100px;
  margin-bottom: clamp(0px, calc(0px + (10 - 0) * ((100vw - 375px) / (1000 - 375))), 10px);
  text-align: center;
}

/* タイトル */
.works-single .works-title {
  font-size: clamp(18px, calc(18px + (24 - 18) * ((100vw - 375px) / (1280 - 375))), 24px);
  color: #2849B2;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  display: block;
  position: relative;
  padding-bottom: 5px;
}

.works-title::after {
  content: "";
  display: block;
  width: 33%;
  height: 2px;
  background-color: #29ABE2;
  margin: 8px auto 0;
}

/* リードエリア */
.works-lead {
  display: flex;
  align-items: flex-start;
  gap: 20px; /* 画像とテキストの間隔 */
  margin-bottom: 60px;
  margin-top: 60px;
}
.works-lead img {
  width: 480px;
  max-width: 100%;
  height: auto;
  flex-shrink: 0; /* 画像が縮まないように固定 */
}
.works-lead p {
  max-width: 600px; 
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
  margin: 0;
}

/* 工程（共通） */

.works-content {
  max-width: 100%;    /* 親(.works-single)の幅を超えない */
  overflow: hidden;   /* はみ出した場合スクロールさせず隠す */
  box-sizing: border-box;
}

.works-heading {
  font-size: 20px;
  font-weight: 700;
  color: #2849B2;
  margin: 50px 0 20px;
  padding-left: 12px;
}
.works-step {
  margin-bottom: 70px;
  text-align: left; /* 本文は左揃え */
}

.works-step img {
  display: block;
  width: 100%;
  max-width: 460px;  
  height: auto;
  margin: 0 0 15px 0; /* 左寄せ */
}
.works-step p {
  font-size: 16px;
  max-width: 800px;
}

.works-step--single {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 70px;
}


/* 2枚並びのとき */
.works-step--double .works-step__gallery {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.works-step--double .works-step__gallery img {
  width: 100%;
  max-width: 460px;  /* PC時の上限 */
  height: auto;      /* アスペクト比を保って縮む */
  object-fit: contain; /* 全体を表示させたいなら contain */
}

/* まとめ */
.works-summary {
  background: #f5f5f5;
  border-left: 5px solid #29ABE2;;
  padding: 30px 20px;
  margin: 60px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
}

/* 戻るリンク */
.works-back {
  text-align: center;
  margin-top: 40px;
}
.works-back a {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #333;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
}
.works-back a:hover {
  background: #333;
  color: #fff;
}

/* スマホ対応 */
@media (max-width: 1000px) {
  .works-single {
  padding: clamp(70px, calc(70px + (100 - 70) * ((100vw - 375px) / (1000 - 375))), 100px) 20px;
  }

  .works-section {
  max-width: 800px;   /* 全体を中央に配置 */
  margin: 60px auto 0px;
  text-align: left;
}

.works-section h2 {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 20px;
  padding-left: 0px;
}

.works-content img {
  display: block;
  margin: 0 auto 20px 0; /* 左頭揃え */
  max-width: 100%;
  height: auto;
}

    .works-lead {
    flex-direction: column;
    align-items: center;
  }
  .works-lead img {
    width: 100%;
    max-width: 750px;
  }
  .works-lead p {
    max-width: 750px;
    padding: 0 5px;
  }

    .works-step--single {
    flex-direction: column;
    gap: 0px;
  }

  .works-step--double .works-step__gallery {
    flex-direction: column;
    gap: 0px;
  }
  .works-step img,
  .works-step--double .works-step__gallery img {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 10px;
  }
    .works-step--double .works-step__gallery img:first-child {
    margin-bottom: 0px;
  }
  .works-step p {
    max-width: 700px;
    margin: 0 auto;
}

  .works-step--single p {
    max-width: 700px;
    width: 100%;  
    margin: 0 auto;
  }

.works-summary {
  margin: 0px;
}
}
