/* =====================
  初めての方へ ページ
===================== */

:root {
  --ft-bg: #D8DAD2;
  --ft-ink: #28332e;
  --ft-dim: #7a857f;
  --ft-accent: #8c7a34;
  --ft-button-bg: #3c5a45;
  --ft-button-border: #3c5a45;
}

/* ▼このテンプレ(page-firsttime.php)のときだけ適用 */
body.page-template-page-firsttime {
  background: var(--ft-bg);
  color: var(--ft-ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

body.page-template-page-firsttime h1,
body.page-template-page-firsttime h2 {
  font-family: "A-OTF Shuei Mincho Pro", "游明朝",
    "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

body.page-template-page-firsttime h2 {
  font-size: 42px;
  letter-spacing: 0.25em;
}

.firsttime p {
  font-size: 14px;
  line-height: 2;
}

.firsttime img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =============== ヘッダーをヒーローの上に =============== */

body.page-template-page-firsttime .site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  box-shadow: none;
  z-index: 40;
}

body.page-template-page-firsttime .site-header,
body.page-template-page-firsttime .site-header a {
  color: #fff;
}

body.page-template-page-firsttime .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
}

/* =============== HERO =============== */

.ft-hero {
  position: relative;
  height: 800px;
  margin: 0;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.ft-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* 画面の高さに合わせる */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ft-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.55)
  );
}

.ft-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.ft-hero__eyebrow {
  letter-spacing: 0.15em;
  font-size: 42px;
  margin-bottom: 10px;
}

.ft-hero__title {
  font-size: 42px;
  margin: 0 0 18px;
}

.ft-hero__lead {
  max-width: 520px;
  margin: 3vw auto;
}



/* =============== セクション共通 =============== */

.ft-section {
  padding: 0 0 40px;
  margin: 0 10vw;
}

.ft-section__inner {
}

.ft-section__head {
  margin-bottom: 24px;
  margin-top: 10vh;
}

.ft-section__title {
  margin: 0;
  color: var(--ft-accent);
  font-size: 42px;
  letter-spacing: 0.05em;
}

.ft-section__subtitle {
  margin-top: -10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

/* =============== BENEFITS =============== */

.ft-benefits__body {
  margin-bottom: 32px;
}

.ft-benefits__list {
  list-style: disc;
  padding-left: 1.4em;
}

.ft-benefits__image img {
  width: 100%;
  object-fit: cover;
  height: 290px;
  filter: brightness(0.8);
}

/* =============== AVAILABLE TO ORDER =============== */

.ft-available__body {
  font-size: 14px;
}

.ft-available__gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 28px;
}

.ft-available__thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.ft-section__head {
  margin-bottom: 24px;
}

.ft-available__body {
  font-size: 14px;
}

.ft-available__gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 28px;
}

.ft-available__thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.ft-cases {
  padding: 32px 0 0;
}

.ft-cases__inner {
  display: flex;
  justify-content: flex-end; /* 右側に寄せる */
  gap: 48px;
  font-weight: 500;
}

.ft-cases__item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: var(--ft-ink);
  width: 15vw;
}

/* 上段：文字＋矢印を横並びにする */
.ft-cases__top {
  display: flex;
  align-items: center;
  gap: 20px;      /* 文字と矢印のすき間 */
  width: 100%;
}

.ft-cases__label {
  padding-bottom: 2px;
  line-height: 1.4;  
}

/* 矢印画像のサイズはお好みで */
.ft-cases__arrow {
  width: 5vw;   /* 必要に応じて調整 */
  height: auto;
  margin-left: auto;
  top: -5px;
  position: relative;
}

/* 下の波線（点線） */
.ft-cases__line {
  width: 100%;
  border-bottom: 1px dotted var(--ft-ink);
  margin-top: 6px;
  opacity: .6;
}

/* ホバー時少しだけ濃く */
.ft-cases__item:hover .ft-cases__label,
.ft-cases__item:hover .ft-cases__line {
  opacity: 1;
}

/* スマホでは中央寄せに */
@media (max-width: 768px) {
  .ft-cases__inner {
    justify-content: center;
    gap: 24px;
    margin: 0 16px;
  }

  .ft-cases__item {
    align-items: center;
  }

  .ft-cases__line {
    width: 120px;
  }
}

/* =============== GUIDE =============== */

.ft-guide__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.ft-guide__image img {
  width: 100%;
  object-fit: cover;
  margin-top: 200px;
}

.ft-guide__body{
  margin-top: 100px;
}

/* ==========================
   768px 以下：初めての方へ
   ========================== */
@media screen and (max-width: 768px) {

  /* ===== HERO（FOR FIRST-TIME USERS） ===== */
  .ft-hero {
    height: 520px;
  }

  .ft-hero__inner {
    max-width: 100%;
    padding: 0 8vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .ft-hero__bg {
    background-size: 320% auto;
    background-position: 66% 35%;
  }

  .ft-hero__eyebrow {
    font-size: 28px;
    letter-spacing: .1em;
    margin-bottom: 4px;
    line-height: 1;
  }

  .firsttime .ft-hero__title {
    font-size: 12px;
    margin: 10px 0 35px 0;
  }

  .ft-hero__lead {
    max-width: 280px;
    margin: 20px auto 0;
    font-size: 11px;
    line-height: 1.9;
  }

  /* ===== セクション共通余白 ===== */
  .ft-section {
    margin: 32px 6vw 40px;
    padding: 0 0 32px;
  }

  .ft-section__head {
    margin-top: 0;
    margin-bottom: 16px;
  }

  .ft-section__title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .ft-section__subtitle {
    font-size: 11px;
    letter-spacing: .14em;
    margin-top: 6px;
  }

  .firsttime p {
    font-size: 12px;
    line-height: 1.9;
  }

  /* ===== BENEFITS ===== */
  .ft-benefits {
    margin: 32px 0 40px;   /* 上下だけ残して左右0 */
  }
   /* 中身ラッパーも余白ナシに */
  .ft-benefits .ft-section__inner {
    margin: 0;
    padding: 0;
  }
  /* タイトルと箇条書きだけ左右に余白をつけ直す */
  .ft-benefits .ft-section__head,
  .ft-benefits__body {
    margin: 0 6vw 16px;
  }

  /* 画像は余白なし＋画面幅いっぱい */
  .ft-benefits__image {
    margin: 0;
  }
  .ft-benefits__body {
    margin-bottom: 20px;
  }

  .ft-benefits__image img {
    width: 100%;     /* セクション幅いっぱい（= 画面いっぱい） */
    height: 300px;    /* 比率そのまま */
    display: block;
  }

  /* ===== AVAILABLE TO ORDER（ギャラリー） ===== */
  .ft-available__gallery {
    margin-top: 35px;
    margin-left: -10vw;
    margin-right: -10vw;
  }
  .firsttime .ft-available__body p {
    font-size: 14px;
    line-height: 2;
  } 
  .ft-available__thumb img {
    height: 120px;
  }

  /* ===== 実績制作事例／キッチン制作事例 リンク ===== */
  .ft-cases {
    padding: 24px 0 0;
    width: 200px;
    margin-left: auto;
  }

  .ft-cases__inner {
    flex-direction: column;      /* 縦並びに */
    align-items: stretch;
    gap: 16px;
    margin: 0 0;
  }

  .ft-cases__item {
    width: 100%;
    align-items: stretch;
  }

  .ft-cases__top {
    gap: 8px;
  }

  .ft-cases__arrow {
    width: 56px;                /* 矢印を少し大きめに */
    height: auto;
  }

  .ft-cases__line {
    width: 100%;                /* 罫線を横いっぱいに */
  }

  /* ===== 下部 FOR FIRST-TIME USERS ===== */
  .ft-guide__inner {
    grid-template-columns: 1fr; /* 1カラム縦並び */
    gap: 24px;
  }

  .ft-guide__body {
    margin-top: 0;
  }
  .firsttime .ft-guide__body p {
    font-size: 14px;
    line-height: 2;
  } 

  .ft-guide__image img {
    margin-top: 0;
    width: 100%;
    object-fit: cover;
  }
}
