@charset "UTF-8";
/* =========================================================
   工法・家づくりのフロー（page-construction.php）専用スタイル
   ※ functions.php が assets/css/ 内のCSSを自動で読み込みます
   ※ style.css（共通）のあとに読み込まれます
   ※ ページタイトル帯・パンくずは style.css の
     全ページ共通パーツ（.page-hero / .breadcrumb）を使用しています
   ※ 下部の「シエルセーヌ」シリーズ関連リンクも style.css の
     全ページ共通パーツ（.series-links）を使用しています

   ＜目次＞
     0. ページ共通の変数・インナー・見出し
     1. リード見出し ＋ 構造図（クリッカブルマップ）
     2. 受賞バナー（グレー帯）
     3. 解説カード（2カラム）
     4. 地盤調査・改良工事（2パネル）
     5. 家づくりの流れ（STEP表）
     6. レスポンシブ（タブレット／SP）
========================================================= */


/* =========================================================
   0. ページ共通の変数・インナー・見出し
========================================================= */
.l-const {
  --const-panel: #e8e8e8;     /* パネルの下地グレー */
  --const-dark: #282828;      /* 地盤保証ステップの黒ボックス */
  --const-line: #d4d4d4;      /* 細い区切り線 */
  --const-accent: #2f95cd;    /* 見出し下線のアクセント（青） */
  --const-flow-line: #4d4d4d; /* STEP表の枠線 */
  --const-col-gap: 50px;      /* 2カラムの左右間隔 */
}

/* --- 共通インナー（style.css の --container: 1200px に合わせる） --- */
.const-hero__inner,
.const-sec__inner,
.const-flow__head,
.const-flow__inner {
  max-width: calc(var(--container) + 40px);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- セクション見出し（黒・明朝・中央） --- */
.const-sec-title {
  font-size: 3.4rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
  text-indent: .1em;
  text-align: center;
}


/* =========================================================
   1. リード見出し ＋ 構造図（クリッカブルマップ）
========================================================= */
.const-hero {
  margin-top: 56px;
}

.const-hero__title {
  font-size: 3.8rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
  text-indent: .1em;
  text-align: center;
}

/* --- クリッカブルマップ --- */
/* PCではただの入れ物。SP（下部のメディアクエリ）でのみ横スクロール枠になります */
.const-map-scroll {
  overflow: visible;
}

/* 画像幅をここで決め、リンク領域は中で % 指定するだけにしておくと、
   画面幅が変わってもリンク位置がズレません。 */
.const-map {
  position: relative;
  max-width: 1020px;
  margin: 34px auto 0;
  line-height: 0;
}

.const-map__img {
  width: 100%;
  height: auto;
}

/* --- 透明のリンク領域（位置・サイズは PHP 側で % 指定） --- */
.const-map__area {
  position: absolute;
  display: block;
  border-radius: 4px;
  /* 下の図が見えるように通常は透明。ホバー／フォーカス時だけ薄く反応させる */
  background-color: transparent;
  transition: background-color .3s ease;
}

.const-map__area:hover,
.const-map__area:focus-visible {
  opacity: 1; /* style.css の a:hover { opacity: .7 } を打ち消す */
  background-color: rgba(47, 149, 205, .14);
}

.const-map__area:focus-visible {
  outline: 2px solid var(--const-accent);
  outline-offset: 2px;
}

/* 図中に文字が入っているため、リンク名は画面に出さず読み上げ用にだけ残す */
.const-map__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* =========================================================
   2. 受賞バナー（グレー帯）
========================================================= */
.const-award {
  display: flex;
  align-items: center;
  margin-top: 54px;
  padding: 44px 48px;
  background-color: var(--const-panel);
}

.const-award__lead {
  flex: 1 1 auto;
  padding-right: 28px;
  border-right: 1px solid #c4c4c4;
}

.const-award__text {
  font-size: 1.6rem;
  line-height: 2.1;
  letter-spacing: .04em;
}

.const-award__body {
  flex: 0 0 auto;
  width: 540px;
  padding-left: 40px;
  text-align: center;
}

.const-award__catch {
  font-size: 1.8rem;
  line-height: 1.7;
  letter-spacing: .06em;
}

.const-award__logo {
  margin-top: 22px;
  line-height: 0;
}


/* =========================================================
   3. 解説カード（2カラム）
========================================================= */
.const-sec {
  margin-top: 140px;
}

/* 本格自由設計ページから #comfort / #flow で飛んで来たとき、固定ヘッダーに隠れないようにする */
.const-sec,
.const-flow {
  scroll-margin-top: calc(var(--header-h) + 30px);
}

.const-card-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--const-col-gap);
  row-gap: 68px;
  margin-top: 56px;
}

/* 地盤まわりの2パネルのあとに続くカード群は、もう少し間隔をあける */
.const-panels + .const-card-list {
  margin-top: 110px;
}

.const-card {
  width: calc((100% - var(--const-col-gap)) / 2);
  /* クリッカブルマップから飛んで来たとき、固定ヘッダーの下に隠れないようにする */
  scroll-margin-top: calc(var(--header-h) + 30px);
}

/* --- カード見出し＋下線（細いグレー線の左側に太い青線を重ねる） --- */
.const-card__title {
  position: relative;
  padding-bottom: 20px;
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--const-line);
}

.const-card__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 225px;
  max-width: 40%;
  height: 2px;
  background-color: var(--const-accent);
}

.const-card__body {
  display: flex;
  gap: 16px;
  margin-top: 26px;
}

.const-card__texts {
  flex: 1 1 auto;
}

.const-card__text {
  font-size: 1.5rem;
  line-height: 1.95;
  letter-spacing: .02em;
}

.const-card__img {
  flex: 0 0 auto;
  width: 224px;
  line-height: 0;
}

.const-card__img img {
  width: 100%;
  height: auto;
}

/* 画像を持たないカード（住宅瑕疵担保責任保険・各種住まい仕様） */
.const-card--noimg .const-card__body {
  display: block;
}


/* =========================================================
   4. 地盤調査・改良工事（2パネル）
========================================================= */
.const-ground {
  margin-top: 60px;
  text-align: center;
}

.const-ground__title {
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
  text-indent: .1em;
}

.const-ground__lead {
  margin-top: 22px;
  font-size: 1.6rem;
  line-height: 2;
  letter-spacing: .04em;
}

.const-panels {
  display: flex;
  gap: 28px;
  margin-top: 70px;
}

.const-panel {
  width: calc((100% - 28px) / 2);
  padding: 60px 44px 60px;
  background-color: var(--const-panel);
}

/* 下地のオーバル柄はデザインに合わせて控えめにする */
.const-panel.p-pattern::before {
  opacity: .5;
}

/* --- パネル見出し＋下線（グレー線の中央に青線を重ねる） --- */
.const-panel__title {
  position: relative;
  padding-bottom: 24px;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .06em;
  text-align: center;
  border-bottom: 1px solid #b9b9b9;
}

.const-panel__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 190px;
  max-width: 40%;
  height: 2px;
  transform: translateX(-50%);
  background-color: var(--const-accent);
}

.const-panel__text {
  margin-top: 24px;
  font-size: 1.5rem;
  line-height: 1.95;
  letter-spacing: .02em;
}

.const-panel__text + .const-panel__text {
  margin-top: 4px;
}

.const-panel__figure {
  margin: 28px 0 0;
  line-height: 0;
  background-color: #fff;
}

.const-panel__figure img {
  width: 100%;
  height: auto;
}

.const-panel__caption {
  padding: 18px 10px 4px;
  font-size: 2rem;
  line-height: 1.6;
  letter-spacing: .06em;
  text-align: center;
  background-color: transparent;
}

/* --- 全邸「地盤保証20年」標準仕様のステップ --- */
.const-step {
  margin-top: 34px;
}

.const-step__item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.const-step__item + .const-step__item {
  margin-top: 24px;
}

.const-step__term {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  min-height: 125px;
  padding: 10px;
  color: #fff;
  font-size: 2rem;
  line-height: 1.4;
  letter-spacing: .12em;
  text-indent: .12em;
  text-align: center;
  background-color: var(--const-dark);
}

.const-step__body {
  flex: 1 1 auto;
  min-width: 0;
}

.const-step__title {
  margin: 0; /* h5 には style.css の共通リセット（h1〜h4のみ）が効かず、ブラウザ標準の余白が付くため */
  padding-bottom: 12px;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .06em;
  border-bottom: 1px solid #9e9e9e;
}

.const-step__text {
  margin-top: 12px;
  font-size: 1.5rem;
  line-height: 1.9;
  letter-spacing: .02em;
}


/* =========================================================
   5. 家づくりの流れ（STEP表）
========================================================= */
.const-flow {
  margin-top: 150px;
}

.const-flow__lead {
  margin-top: 40px;
  font-size: 1.6rem;
  line-height: 1.9;
  letter-spacing: .06em;
  text-align: center;
}

/* 背景写真（画面幅いっぱい）を上部だけに敷き、STEP表の1行目が重なるようにする。
   padding-top は「％＝自分の幅に対する割合」で指定しているため、
   写真の比率（2420 : 784）と重なり量が画面幅に関わらず一定に保たれます。 */
.const-flow__body {
  margin-top: 46px;
  padding-top: 26%;
  background-image: url("../images/construction/const_flow_bg.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}

/* --- STEP表（背景を敷かず、写真が透けて見える状態にする） --- */
.const-flow__list {
  border: 1px solid var(--const-flow-line);
}

.const-flow__item {
  position: relative;
  display: flex;
  align-items: stretch; /* STEP番号の右側の縦罫線を行の高さいっぱいに伸ばす */
  min-height: 123px;
  padding: 22px 40px;
}

/* 行間の区切り線。
   中央 90px だけ線を引かず、代わりに V字（SVG）を重ねることで
   デザインの「くの字」の切り込みを再現しています。
   線は % 指定の background-size で描いているため、画面幅が変わっても中央でつながります。 */
.const-flow__item + .const-flow__item {
  background-image:
    url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 26'%3E%3Cpath d='M0 .5 L45 25.5 L90 .5' fill='none' stroke='%234d4d4d' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(var(--const-flow-line), var(--const-flow-line)),
    linear-gradient(var(--const-flow-line), var(--const-flow-line));
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center top, left top, right top;
  background-size: 90px 26px, calc(50% - 45px) 1px, calc(50% - 45px) 1px;
}

.const-flow__no {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  width: 186px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .12em;
  border-right: 1px solid #b0b0b0;
}

.const-flow__text {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding-left: 30px;
  font-size: 1.7rem;
  line-height: 1.8;
  letter-spacing: .06em;
}


/* =========================================================
   6. レスポンシブ
========================================================= */

/* --- タブレット（〜1024px）：余白と文字サイズを少しだけ詰める --- */
@media screen and (min-width: 768px) and (max-width: 1024px) {

  .l-const {
    --const-col-gap: 32px;
  }

  .const-hero__title {
    font-size: 3rem;
  }

  .const-sec-title {
    font-size: 2.8rem;
  }

  .const-award {
    padding: 34px 28px;
  }

  .const-award__lead {
    padding-right: 28px;
  }

  .const-award__body {
    width: 42%;
    padding-left: 28px;
  }

  .const-card__title {
    font-size: 2.2rem;
  }

  .const-card__img {
    width: 180px;
  }

  .const-panel {
    padding: 40px 24px 44px;
  }

  .const-panel__title {
    font-size: 1.9rem;
  }

  .const-step__term {
    width: 120px;
    min-height: 100px;
    font-size: 1.7rem;
  }

  .const-flow__no {
    width: 150px;
    padding-right: 20px;
    font-size: 2.2rem;
  }

  .const-flow__text {
    padding-left: 22px;
    font-size: 1.5rem;
  }

  .const-flow__item {
    padding: 20px 24px;
  }
}

/* --- SP（〜767px）：1カラムに積み替える --- */
@media screen and (max-width: 767px) {

  .l-const {
    --const-col-gap: 0px;
  }

  .const-hero {
    margin-top: 32px;
  }

  .const-hero__title {
    font-size: 2rem;
    line-height: 1.6;
    letter-spacing: .06em;
    text-indent: .06em;
  }

  .const-sec-title {
    font-size: 2rem;
    letter-spacing: .06em;
    text-indent: .06em;
  }

  /* 構造図：そのまま縮めると図中の文字が読めなくなるため、
     画面からはみ出す幅（680px）を保ったまま横スクロールで見せる。
     ・.const-hero__inner の左右余白（20px）を打ち消して画面幅いっぱいに使う
     ・リンク領域は .const-map に対する % 指定なので、
       画像を拡大してもタップ位置はズレません */
  .const-map-scroll {
    margin: 20px -20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .const-map {
    min-width: 680px;
    margin-top: 0;
  }

  /* --- 受賞バナー --- */
  .const-award {
    display: block;
    margin-top: 32px;
    padding: 28px 20px;
  }

  .const-award__lead {
    padding-right: 0;
    padding-bottom: 24px;
    border-right: none;
    border-bottom: 1px solid #c4c4c4;
  }

  .const-award__text {
    font-size: 1.4rem;
    line-height: 1.95;
  }

  .const-award__body {
    width: auto;
    padding: 24px 0 0;
  }

  .const-award__catch {
    font-size: 1.5rem;
  }

  .const-award__logo {
    margin-top: 16px;
  }

  /* --- 解説カード --- */
  .const-sec {
    margin-top: 64px;
  }

  .const-card-list {
    display: block;
    margin-top: 32px;
  }

  .const-card {
    width: auto;
    scroll-margin-top: calc(var(--header-h) + 16px);
  }

  .const-card + .const-card {
    margin-top: 40px;
  }

  .const-card__title {
    padding-bottom: 14px;
    font-size: 1.8rem;
    letter-spacing: .06em;
  }

  .const-card__title::after {
    width: 130px;
    max-width: 45%;
  }

  .const-card__body {
    display: block;
    margin-top: 18px;
  }

  .const-card__text {
    font-size: 1.4rem;
    line-height: 1.9;
  }

  /* SPでは本文の下に画像を中央寄せで置く */
  .const-card__img {
    width: 224px;
    max-width: 100%;
    margin: 16px auto 0;
  }

  /* --- 地盤調査・改良工事 --- */
  .const-ground {
    margin-top: 36px;
  }

  .const-ground__title {
    font-size: 1.8rem;
  }

  .const-ground__lead {
    margin-top: 14px;
    font-size: 1.4rem;
    line-height: 1.9;
  }

  /* SPでは改行位置がバラつくため、PC用の <br> を無効化して自然改行にする */
  .const-ground__lead br {
    display: none;
  }

  .const-panels {
    display: block;
    margin-top: 28px;
  }

  .const-panel {
    width: auto;
    padding: 28px 20px 32px;
  }

  .const-panel + .const-panel {
    margin-top: 24px;
  }

  .const-panel__title {
    padding-bottom: 16px;
    font-size: 1.7rem;
    line-height: 1.7;
  }

  .const-panel__title::after {
    width: 120px;
  }

  .const-panel__text {
    margin-top: 18px;
    font-size: 1.4rem;
    line-height: 1.9;
  }

  .const-panel__figure {
    margin-top: 20px;
  }

  .const-panel__caption {
    padding-top: 12px;
    font-size: 1.4rem;
  }

  /* 地盤保証ステップ：黒ボックスを上に、解説を下に積む */
  .const-step {
    margin-top: 24px;
  }

  .const-step__item {
    display: block;
  }

  .const-step__item + .const-step__item {
    margin-top: 20px;
  }

  .const-step__term {
    display: block;
    width: auto;
    min-height: 0;
    padding: 10px;
    font-size: 1.6rem;
  }

  .const-step__title {
    padding-bottom: 10px;
    margin-top: 14px;
    font-size: 1.6rem;
  }

  .const-step__text {
    margin-top: 10px;
    font-size: 1.4rem;
  }

  /* --- 家づくりの流れ --- */
  .const-flow {
    margin-top: 64px;
  }

  .const-flow__lead {
    margin-top: 18px;
    font-size: 1.4rem;
  }

  /* SPでは写真を拡大し、表の1行目にだけ重なるようにする
     （背景画像 2420×784 を 190% 表示したときの高さに合わせた％） */
  .const-flow__body {
    margin-top: 24px;
    padding-top: 46%;
    background-size: 190% auto;
  }

  /* STEP表：STEP番号を上に、説明文を下に積む */
  .const-flow__item {
    display: block;
    min-height: 0;
    padding: 18px 16px;
  }

  /* V字の切り込みもSP用に小さくする */
  .const-flow__item + .const-flow__item {
    background-size: 56px 16px, calc(50% - 28px) 1px, calc(50% - 28px) 1px;
  }

  .const-flow__no {
    display: block;
    width: auto;
    padding: 0 0 8px;
    font-size: 1.8rem;
    border-right: none;
    border-bottom: 1px solid #b0b0b0;
  }

  .const-flow__text {
    display: block;
    padding: 10px 0 0;
    font-size: 1.4rem;
    line-height: 1.8;
  }
}
