@charset "UTF-8";

/* ============================================================
   Eight Knot - Front Page Styles
   色・フォントは common.css / style.css の :root 変数を使用。
   ============================================================ */

/* ============== FV / ヒーロー ============== */
.fv {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh; /* モバイルのアドレスバー対策 */
  min-height: 560px;
  overflow: hidden;
  display: flex;
}
/* 背景動画 */
.fv__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.fv__video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 全面を覆う */
  display: block;
}
/* 暗くするオーバーレイ（コピーの可読性確保） */
.fv__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 20, 20, 0.55) 0%,
    rgba(20, 20, 20, 0.15) 45%,
    rgba(20, 20, 20, 0.25) 100%
  );
}

.fv__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  height: 100%;

  margin: 0 auto;
  padding: 0 40px 88px;

  display: flex;
  align-items: flex-end;
}

/* コピー（左下） */
.fv__copy {
  color: #fff;
  margin: 0;
  font-family: var(--font-ja, serif);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  position: absolute;
  left: 40px;
  bottom: 88px;
}
.fv__copy-line {
  display: block;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
}

/* 行ごとにマスクの下からスッと立ち上がる表示
   JS不要（ページ表示と同時に発火）。
   1行目 0.15s 開始 → 2行目 0.35s 開始、約1秒で全文が出揃う */
.fv__copy-line {
  overflow: hidden; /* マスク */
}
.fv__copy-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: fvLineUp 1.4s cubic-bezier(0.25, 0.5, 0.3, 1) forwards;
}
.fv__copy-line:nth-child(1) .fv__copy-inner {
  animation-delay: 0.5s;
}
.fv__copy-line:nth-child(2) .fv__copy-inner {
  animation-delay: 1.1s;
}
@keyframes fvLineUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* スクロール誘導（右下） */
.fv__scroll {
  position: absolute;
  right: 40px;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text-light, #f3f3f3);
}
.fv__scroll-text {
  writing-mode: vertical-rl;
  font-family: var(--font-en, cursive);
  font-size: 14px;
  letter-spacing: 0.15em;
}
.fv__scroll-line {
  width: 1px;
  height: 64px;
  background: currentColor;
  transform-origin: top;
  animation: fvScroll 2.2s ease-in-out infinite;
}
@keyframes fvScroll {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  35% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0);
    opacity: 0;
    transform-origin: bottom;
  }
}

/* ============== SP ============== */
@media (max-width: 768px) {
  .fv__inner {
    padding: 0 20px 64px;
  }
  .fv__copy {
    line-height: 1.6;
  }
  .fv__copy-line {
    font-size: clamp(2rem, 6vw, 3.2rem);
  }
  .fv__scroll {
    right: 16px;
  }
  .fv__scroll-line {
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fv__scroll-line {
    animation: none;
  }
  .fv__copy-inner {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

/* ============================================================
   Intro / Eight knot Wood Stove
   ============================================================ */
.intro {
  position: relative;
  width: 100%;
  padding: 120px 0 140px;
  overflow: hidden;
}

/* 中央寄せの基準幅（ヘッダーと同じ） */
:root {
  --container: 1400px;
  --container-pad: 20px;
}

/* 英語タイトル（中央寄せコンテナ内・Caveat 最大82px） */
.intro__title-en {
  max-width: var(--container);
  margin: 0 auto 80px;
  padding: 0 var(--container-pad);
  text-align: center;
  color: var(--color-text, #190606);
  font-family: var(--font-en, cursive);
  font-weight: 400;
  font-size: clamp(4.4rem, 10vw, 8.2rem); /* 最大82px */
  line-height: 1.2;
  letter-spacing: 0.02em;

  /* 案A：下からふわっとフェードイン（is-shownで発火） */
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.1s ease,
    transform 1.1s ease;
}
.intro__title-en.is-shown {
  opacity: 1;
  transform: translateY(0);
}

/* 下段：左テキスト＋右画像の2カラム
   左端＝中央コンテナの左、右端＝画面右端まで画像を伸ばす */
.intro__body {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  /* コンテナ左余白を確保しつつ、右は画面端まで */
  padding-left: max(
    var(--container-pad),
    calc((100% - var(--container)) / 2 + var(--container-pad))
  );
}
.intro__inner::before {
  content: "";
  position: absolute;
  aspect-ratio: 200 / 304.752;
  width: 100%;
  max-width: 406px;
  background: url("../img/nagano.png") no-repeat center/contain;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* テキスト領域の中央 */
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* 左テキスト */
.intro__inner {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

/* 日本語コピー（Hina Mincho・最大32px） */
.intro__copy {
  margin: 0 0 80px;
  color: var(--color-text, #190606);
  font-family: var(--font-ja, serif);
  font-weight: 400;
  font-size: clamp(2rem, 2.6vw, 3.2rem); /* 最大32px */
  line-height: 1.7;
  letter-spacing: 0.04em;
}
.intro__copy .is-accent {
  color: var(--color-accent, #c58b21);
}

/* 説明文 */
.intro__text {
  margin: 0;
  max-width: 500px;
  color: var(--color-text, #190606);
  line-height: 2;
  letter-spacing: 0.02em;
}

/* 右の画像（grid右列いっぱい＝画面右端まで） */
.intro__photo {
  position: relative;
  z-index: 1;
}
.intro__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px 0 0 2px;
  min-height: 350px;
  object-fit: cover;
}

/* 右下の手書き風装飾ライン */
.intro__deco {
  position: absolute;
  right: 40px;
  bottom: 40px;
  width: clamp(320px, 30vw, 420px);
  height: auto;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.intro__deco-path {
  fill: none;
  stroke: var(--color-accent, #c58b21);
  stroke-width: 0.6;
  stroke-dasharray: 4816;
  stroke-dashoffset: 4816;
}
/* 画面内に入ったら手書きアニメ発火（is-drawnをJSで付与） */
.intro__deco.is-drawn .intro__deco-path {
  animation: drawLine 7s ease 0.6s forwards;
}
@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* ============== SP ============== */
@media (max-width: 980px) {
  .intro__body {
    display: block;
    padding-left: 0;
  }
  .intro {
    position: relative;

    padding: 100px 0 80px;
  }
  .intro__inner,
  .intro__text {
    margin: 0 auto;
    max-width: 100%;
    text-align: center;
  }
  .intro__copy,
  .intro__title-en,
  .intro__text {
    margin-bottom: 80px;
  }
  .intro__inner::before {
    max-width: 38%;
    left: 20%;
    top: 15%;
  }
}

@media (max-width: 768px) {
  .intro {
    position: relative;
    padding: 80px 0 80px;
  }
  .intro__inner::before {
    top: 30%;
  }

  .intro__copy {
    margin-bottom: 40px;
  }
  .intro__title-en {
    margin-bottom: 40px;
  }

  /* SPは1カラムに。テキストに左右余白、画像は全幅で下に */
  .intro__body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-left: 0;
  }
  .intro__inner {
    max-width: none;
    padding: 0 20px;
  }
  .intro__photo img {
    border-radius: 0;
  }

  .intro__deco {
    right: 1px;
    bottom: 40px;
    width: 57%;
  }
}
@media (max-width: 600px) {
  .intro__inner::before {
    top: 30%;
    max-width: 55%;
    left: 50%;

    transform: translate(-50%, -50%); /* テキスト領域の中央 */
  }
}
@media (max-width: 400px) {
  .intro__inner::before {
    top: 30%;
    max-width: 80%;
    left: 50%;

    transform: translate(-50%, -50%); /* テキスト領域の中央 */
  }
}
/* ============================================================
   Commitment セクション
   PC：左画像（左端張り付き）＋右テキスト（コンテナ右寄せ）
   画像にラベル焼き込み済みのため、ラベルHTMLは不要
   ============================================================ */
.commitment__media {
  position: relative;
}
.commitment__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* SP用フィーチャーリスト（PCでは非表示） */
.commitment__features {
  display: none;
}

/* PC：2カラムgrid（左画像＝左端張り付き、右テキスト＝コンテナ右端揃え） */

.commitment {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px 150px 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, min(710px, 55%)) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 60px);
  align-items: center;
}

.commitment__img {
  width: 100%;
  max-width: 710px;
}

.commitment__media {
  grid-column: 1;
}

.commitment__content {
  grid-column: 2;
}
.commitment__deco {
  grid-column: 1 / -1;
}

/* テキストコンテンツ */
.commitment__content {
  max-width: 600px;
  width: 100%;
  justify-self: end;
}

.commitment__text {
  margin-bottom: 60px;
  line-height: 2;
  letter-spacing: 0.02em;
}
.commitment__text p {
  margin-bottom: 24px;
}
.commitment__text p:last-child {
  margin-bottom: 0;
}

/* 装飾ライン（手書きアニメ） */
.commitment__deco {
  position: absolute;
  left: 0%;
  bottom: 0;
  width: clamp(300px, 45vw, 580px);
  height: auto;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.commitment__deco-path {
  fill: none;
  stroke: var(--color-accent, #c58b21);
  stroke-width: 0.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 5000;
  stroke-dashoffset: 5000;
}

.commitment__deco.is-drawn .commitment__deco-path {
  animation: drawLine 7s ease 0.5s forwards;
}

@media (max-width: 1185px) {
  /* 装飾ライン（手書きアニメ） */
  .commitment__deco {
    bottom: 6%;
    width: 52%;
  }
}

/* ============== タブレット（980px以下） ============== */
@media (max-width: 980px) {
  .commitment {
    display: block;
    padding: 60px 20px 100px;
  }

  .commitment__media {
    margin-bottom: 80px;
  }
  .commitment__content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-pad);
  }
  .commitment__img {
    max-width: 100%;
  }
  /* 装飾ライン（手書きアニメ） */
  .commitment__deco {
    bottom: 46%;
  }
}

/* ============== SP（768px以下） ============== */
@media (max-width: 768px) {
  .commitment {
    padding: 40px 0 80px;
  }
  .commitment__content {
    padding: 0 20px;
  }
  .commitment__deco {
    top: 33%;
    width: 80%;
    left: 1%;
  }
  .commitment__img {
    max-width: 100%;
    padding: 0 20px;
  }
  .commitment__features {
    display: block;
    list-style: none;
    padding: 0px 20px 60px;
    margin: 0;
  }
  .commitment__features li {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(25, 6, 6, 0.1);
  }
  .commitment__features li:last-child {
    border-bottom: none;
  }
  .commitment__features-num {
    flex-shrink: 0;
    font-family: var(--font-ja);
    font-size: 4.5rem;
    color: var(--color-accent, #c58b21);
    line-height: 1;
    min-width: 48px;
  }
  .commitment__features strong {
    display: block;
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 125%; /* 25px */
    letter-spacing: 0.2px;
  }
}

@media (max-width: 649px) {
  .commitment__deco {
    top: 28.5%;
  }
}

@media (max-width: 533px) {
  .commitment__deco {
    top: 25%;
    width: 60%;
  }
}
@media (max-width: 423px) {
  .commitment__deco {
    top: 23%;
  }
}

@media (max-width: 385px) {
  .commitment__deco {
    top: 21%;
    width: 84%;
  }
}
/* ============================================================
   Oven & Cooking
   ============================================================ */
.oven {
  overflow: hidden;
}

.oven__body {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 1fr);
  align-items: center;
  gap: 120px;

  padding-left: max(
    var(--container-pad),
    calc((100% - var(--container)) / 2 + var(--container-pad))
  );
}
.oven__content {
  max-width: 580px;
}

.oven__text {
  max-width: 620px;
  margin-bottom: 60px;
  line-height: 2.2;
  letter-spacing: 0.04em;
}

.oven__cta {
  border-color: var(--color-text);
}

.oven__photo {
  min-height: 560px;
}

.oven__photo img {
  width: 100%;
  height: 100%;
  max-height: 559px;
  object-fit: cover;
}

/* タブレット */
@media (max-width: 980px) {
  .oven__body {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .oven__content {
    padding: 64px 20px;
  }

  .oven__photo {
    min-height: auto;
  }

  .oven__photo img {
    height: auto;
  }
}

/* SP */
@media (max-width: 768px) {
  .oven__content {
    padding: 0px 20px 0 0;
    max-width: 100%;
  }

  .oven__title-en {
    margin-bottom: 40px;
  }

  .oven__title-ja {
    padding-bottom: 40px;
  }

  .oven__text {
    margin-bottom: 40px;
  }
}
/* ============================================================
   Movie Section
   ============================================================ */
.movie {
  position: relative;
  overflow: hidden;
  background-color: #141414;
  background-image:
    linear-gradient(rgba(20, 20, 20, 0.18), rgba(20, 20, 20, 0.18)),
    url("../img/wh-bg.png");
  background-repeat: no-repeat, repeat;
  background-size:
    cover,
    200px 200px;
  background-position:
    center,
    top left;
  padding: 180px 20px 100px;
  margin-top: 80px;
}

/* 上の斜めカット */
.movie::before {
  content: "";
  position: absolute;
  top: -0.5px;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--color-bg, #eeeeee);
  background-image:
    linear-gradient(rgba(238, 238, 238, 0.4), rgba(238, 238, 238, 0.4)),
    url(../img/bg-bk.png);
  background-repeat: no-repeat, repeat;
  background-size:
    cover,
    200px 200px;
  background-position:
    center,
    top left;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
  z-index: 1;
}

/* 山の線背景 */
.movie::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(100%, 1440px);
  height: 414px;
  background: url("../img/movie-bg.png") no-repeat center / contain;
  z-index: 0;
  pointer-events: none;
}

.movie__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 702px);
  margin: 0 auto;
}

.movie__frame {
  width: 100%;
  aspect-ratio: 39 / 23;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.movie__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SP */
@media (max-width: 768px) {
  .movie {
    padding: 100px 20px 80px;
  }

  /* 上の斜めカット */
  .movie::before {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 30%);
  }

  .movie::after {
    width: 120%;
    height: 260px;
  }

  .movie__label {
    font-size: 1rem;
  }
}
/* ==========================================================
   Life
========================================================== */

.life {
  background: #141414;

  background-image:
    linear-gradient(rgba(20, 20, 20, 0.18), rgba(20, 20, 20, 0.18)),
    url("../img/wh-bg.png");

  background-repeat: no-repeat, repeat;
  background-size:
    cover,
    200px 200px;
}
.life__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.life .title-en {
  color: var(--color-text-light);
  max-width: 400px;
}
.life__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  padding-top: 20px;
}
.life__image {
  width: 100%;
  aspect-ratio: 510/340;
  object-fit: cover;
}

.life__title {
  color: var(--color-text-light);
  font-family: var(--font-ja);
  font-size: clamp(2rem, 2.6vw, 3.2rem);
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  margin: 60px 0;
}

.life__line {
  display: block;
  width: 70px;
  height: 1px;
  background: var(--color-accent);
  margin-bottom: 60px;
}

.life__text {
  color: var(--color-text-light);
  margin-bottom: 60px;
}

.life__buttons {
  display: flex;
  flex-direction: column;
  gap: 35px;
  align-items: flex-start;
}

/* SP */
@media (max-width: 768px) {
  .life__cards {
    display: flex;
    flex-direction: column;
    gap: 60px;
  }

  .life__title {
    margin: 40px 0;
  }
  .life__line,
  .life__text {
    margin-bottom: 40px;
  }
}

/* ==========================================================
   Lineup
========================================================== */

.lineup {
  position: relative;
  overflow: hidden;
  background: #141414;
  background-image:
    linear-gradient(rgba(20, 20, 20, 0.18), rgba(20, 20, 20, 0.18)),
    url("../img/wh-bg.png");
  background-repeat: no-repeat, repeat;
  background-size:
    cover,
    200px 200px;
}

/* 右上の薪イラスト */
.lineup::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(48vw, 683px);
  aspect-ratio: 683 / 360;
  background: url("../img/maki-bg.png") no-repeat top right / contain;
  z-index: 0;
  pointer-events: none;
}

.lineup__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 150px var(--container-pad) 140px;
}

.lineup__title-en {
  color: var(--color-text-light);
  max-width: 400px;
  margin-bottom: 60px;
}

.lineup__lead {
  margin: 0 0 70px;
  color: var(--color-text-light);
  font-family: var(--font-ja);
  font-size: clamp(2.2rem, 2.4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.6;
}

.lineup__slider-wrap {
  position: relative;
}

.lineup__slider {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 0 24px; /* 上に8px追加 */
  scrollbar-width: none;
}

.lineup__slider::-webkit-scrollbar {
  display: none;
}

.lineup__card {
  display: flex;
  flex-direction: column;
  flex: 0 0 clamp(300px, 23vw, 360px);

  padding: 25px 30px;
  border: 1px solid var(--color-accent);
  color: var(--color-text-light);
  scroll-snap-align: start;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.lineup__card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.03);
}

.lineup__image {
  width: 100%;
  object-fit: contain;
}

.lineup__num {
  margin: 0 0 18px;
  font-family: var(--font-en);
  font-size: 2.4rem;
  line-height: 1.4;
}

.lineup__num span {
  margin-left: 8px;
}

.lineup__name {
  margin: 0 0 28px;
  font-family: var(--font-en);
  font-size: clamp(2.8rem, 2.4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.2;
}

.lineup__name span {
  margin-left: 12px;
  font-family: var(--font-body);
  font-size: 1.6rem;
}

.lineup__text {
  margin: 0;
}

.lineup__more {
  margin-top: auto;
  color: var(--color-accent);
  letter-spacing: 0.08em;
}

.lineup__more span {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.lineup__card:hover .lineup__more span {
  transform: translateX(6px);
}

/* 右下SVG */
.lineup__deco {
  position: absolute;
  right: var(--container-pad);
  bottom: 100px;
  width: clamp(240px, 30vw, 423px);
  height: auto;
  pointer-events: none;
  z-index: 2;
}

.lineup__deco-path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 0.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 5000;
  stroke-dashoffset: 5000;
}

.lineup__deco.is-drawn .lineup__deco-path {
  animation: drawLine 7s ease 0.5s forwards;
}

/* 矢印・ドット */
.lineup__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
}

.lineup__arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(197, 139, 33, 0.8);
  border-radius: 50%;
  background: transparent;
  color: var(--color-accent);
  cursor: pointer;
  line-height: 1;
}

.lineup__dots {
  display: flex;
  gap: 18px;
}

.lineup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(243, 243, 243, 0.45);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.lineup__dot.is-active {
  background: var(--color-accent);
}

/* SP */
@media (max-width: 768px) {
  .lineup__inner {
    padding: 80px 20px;
  }

  .lineup::before {
    width: 60vw;
  }

  .lineup__title-en {
    margin-bottom: 40px;
  }

  .lineup__lead {
    margin-bottom: 48px;
  }

  .lineup__slider {
    gap: 20px;
    margin-right: -20px;
    padding-right: 20px;
  }

  .lineup__card {
    padding: 25px 20px;
    min-height: 100%;
  }
  .lineup__text {
    margin: 0 0 20px 0;
  }

  .lineup__image {
    height: 260px;
  }

  .lineup__deco {
    right: 0px;
    bottom: 126px;
    width: 50%;
  }
}

/* ============================================================
   Company
============================================================ */

.company-block {
  background: #20252a;
}

/* Made in Japan */
.company-content {
  position: relative;
  min-height: 540px;
  height: auto;
  background: url("../img/company.png") no-repeat center / cover;
  overflow: hidden;
  margin: 0;
}

.company-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px var(--container-pad) 210px;
}

.company-hero__title-en {
  max-width: 590px;
  color: var(--color-text-light);
  margin-bottom: 48px;
}

.company-hero__title {
  max-width: 590px;
  margin: 0 0 44px;
  color: var(--color-text-light);
  font-family: var(--font-ja);
  font-size: clamp(2.4rem, 2.6vw, 3.2rem);
  font-weight: 400;
  line-height: 1.7;
}

.company-hero__text {
  max-width: 590px;
  margin-bottom: 48px;
  color: var(--color-text-light);
  line-height: 2;
}

/* ============================================================
Maintenance / Support
============================================================ */

.maintenance-support {
  position: relative;
  background: #20252a;
  overflow: visible;
}

.maintenance-support::before {
  content: "";
  position: absolute;
  top: -184px;
  left: 0;
  width: 100%;
  height: 150px;
  background: #20252a;
  clip-path: polygon(0 40%, 100% 100%, 100% 100%, 0 100%);
  z-index: 1;
}

.maintenance-support::after {
  content: "";
  position: absolute;
  top: -35px;
  left: 0;
  width: 100%;
  height: 35px;
  background: #20252a;
  z-index: 1;
}

/* Maintenance */
.maintenance {
  position: relative;
  z-index: 2;
  padding: 50px 0 120px;
}

.maintenance__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 500px);
  gap: 80px;
  align-items: center;
  justify-content: space-between;
}

.maintenance__body {
  display: flex;
  align-items: flex-start;
  gap: 50px;
}

.maintenance__vertical {
  width: 91px;
  flex-shrink: 0;
}

.maintenance__content {
  max-width: 640px;
}

.maintenance__title-en {
  color: var(--color-text-light);
}

.maintenance__title {
  margin: 0 0 60px;
  color: var(--color-text-light);
  font-family: var(--font-ja);
  font-size: clamp(2.2rem, 2.4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.7;
}

.maintenance__text {
  margin-bottom: 60px;
  color: var(--color-text-light);
  line-height: 2;
}

.maintenance__photo {
  width: 100%;
  max-width: 500px;
}

.maintenance__photo img {
  width: 100%;
  height: auto;
}
.maintenance__cta-pc {
  display: inline-flex;
}

.maintenance__cta-sp {
  display: none;
}

/* Support */
.support {
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
}

.support__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: minmax(0, 402px) minmax(0, 710px);
  justify-content: space-between;
  gap: 80px;
}

.support__title-en {
  max-width: 402px;
  color: var(--color-text-light);
}

.support__title {
  margin: 0;
  color: var(--color-text-light);
  font-family: var(--font-ja);
  font-size: clamp(2.2rem, 2.4vw, 3.2rem);
  font-weight: 400;
}

.support__right {
  position: relative;
  max-width: 710px;
}

.support__bg-text {
  width: clamp(220px, 28vw, 420px);
  margin-bottom: 0px;
}

.support__text {
  color: var(--color-text-light);
  line-height: 2;
}

.support__deco {
  margin-top: 20px;
  width: 100%;
  max-width: 659px;
  height: auto;
}

.support__deco-path {
  fill: none;
  stroke-opacity: 1;
  stroke-width: 0.3;
  stroke-dasharray: 6000;
  stroke-dashoffset: 6000;
}

.support__deco.is-drawn .support__deco-path {
  animation: drawLine 7s ease 0.5s forwards;
}

/* SP */
@media (max-width: 980px) {
  .maintenance__inner,
  .support__inner {
    grid-template-columns: 1fr;
    gap: 0px;
  }

  .maintenance__body {
    gap: 24px;
    padding-bottom: 48px;
  }

  .maintenance__vertical {
    width: 65px;
  }
  .maintenance__content {
    max-width: 100%;
  }
  .maintenance__photo {
    justify-self: start;
    max-width: 100%;
  }
  .maintenance__photo img {
    padding-top: 60px;
  }
  .maintenance__text {
    margin-bottom: 0;
  }
  .maintenance__cta {
    display: none;
  }
  .maintenance__cta-sp {
    display: flex; /* blockではなくflex */

    width: 80%;
  }
  .maintenance__cta-pc {
    display: none; /* blockではなくflex */
  }
}

@media (max-width: 768px) {
  .company-hero__inner {
    padding: 80px var(--container-pad) 140px;
  }
  .maintenance-support::before {
    top: -135px;
    height: 100px;
    clip-path: polygon(0 70%, 100% 100%, 100% 100%, 0 100%);
  }

  .maintenance-support::after {
    top: -36px;
    height: 60px;
  }
  .company-hero__title,
  .maintenance__title,
  .support__title {
    margin: 0 0 40px;
  }

  .maintenance {
    padding: 20px 0 80px;
  }

  .maintenance__inner,
  .support__inner {
    padding: 0 20px;
  }

  .support {
    padding-bottom: 80px;
  }
}

/* ============================================================
   Flow
============================================================ */
.flow {
  position: relative;
  overflow: hidden;
  padding: 150px 0;
}

.flow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 52%;
  width: min(35vw, 1440px);
  aspect-ratio: 1440 / 650;
  background: url("../img/flow-maki.png") no-repeat left center / contain;
  pointer-events: none;
  z-index: 0;
}

.flow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: min(80vw, 1440px);
  aspect-ratio: 1440 / 650;
  background: url("../img/flow-eda.png") no-repeat right top / contain;
  pointer-events: none;
  z-index: 0;
}

.flow__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  max-width: 1030px;
}

.flow__title-en {
  max-width: 400px;
}

.flow__title {
  font-size: clamp(2.2rem, 2.4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 60px;
}

.flow__lead {
  margin: 0 0 80px;
  line-height: 2;
}

.flow__list {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.flow__list::before {
  content: "";
  position: absolute;
  left: 59px;
  top: 0;
  bottom: 0px;
  width: 6px;
  background: var(--color-accent);
  z-index: 0;
}

.flow__item {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  margin-bottom: 34px;
  z-index: 1;
}

.flow__item:last-child {
  margin-bottom: 0;
}

.flow__step {
  position: relative;
  width: 130px;
  padding: 12px 16px 18px;
  background: var(--color-text-light);
  border: 1px solid var(--color-text);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  font-family: var(--font-ja);
  font-size: 2rem;
  line-height: 0.75;
  text-align: center;
  z-index: 2;
}

.flow__step span {
  font-size: 3.2rem;
  line-height: 0.75;
  margin-left: 4px;
}

.flow__step::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 11px solid #190606;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.flow__item--accent .flow__step {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.flow__item--accent .flow__card {
  border-color: var(--color-accent);
}

.flow__card {
  min-height: 104px;
  display: grid;
  grid-template-columns: 70px 170px 1fr;
  align-items: center;
  gap: 28px;
  padding: 24px 34px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #8b8177;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.flow__icon {
  max-height: 72px;
  width: auto;
  justify-self: center;
}

.flow__card-title {
  margin: 0;
  padding-right: 20px;
  border-right: 1px solid var(--color-text);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
}

.sp-none {
  display: block;
}
.flow__card-body p {
  margin: 0;
}

.flow__btn {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  padding: 12px 30px;
  background: var(--color-accent);
  color: var(--color-text-light);
  line-height: 1;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.flow__btn:hover {
  background: #b07d18;
  color: var(--color-text-light);
}

.flow__btn span {
  font-size: 1.8rem;
}

/* タイムライン：最初は上から伸びる前 */
.flow__list::before {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s ease;
}

/* 表示されたら線が上から伸びる */
.flow__list.is-shown::before {
  transform: scaleY(1);
}

/* STEPカード：最初は非表示 */
.flow__item {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

/* 順番に表示 */
.flow__list.is-shown .flow__item {
  opacity: 1;
  transform: translateY(0);
}

.flow__list.is-shown .flow__item:nth-child(1) {
  transition-delay: 0.15s;
}

.flow__list.is-shown .flow__item:nth-child(2) {
  transition-delay: 0.5s;
}

.flow__list.is-shown .flow__item:nth-child(3) {
  transition-delay: 0.6s;
}

.flow__list.is-shown .flow__item:nth-child(4) {
  transition-delay: 0.8s;
}

/* Tablet */
@media (max-width: 980px) {
  .flow__list {
    max-width: 760px;
  }

  .flow__item {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .flow__list::before {
    left: 64px;
  }

  .flow__card {
    grid-template-columns: 72px 160px 1fr;
    gap: 20px;
    padding: 22px 24px;
  }
}

/* SP */
@media (max-width: 768px) {
  .flow {
    padding: 80px 0;
  }
  .flow__title {
    margin: 0 0 40px;
  }

  .flow__lead {
    margin-bottom: 60px;
  }

  .flow__list::before {
    left: 30px;
  }

  .flow__item {
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: start;
  }

  .flow__step {
    width: 72px;
    padding: 10px 8px;
    font-size: 1.4rem;
  }

  .flow__step span {
    display: block;
    margin: 8px 0 0;
    font-size: 2.4rem;
  }

  .flow__step::after {
    right: -8px;
    border-left-width: 8px;
    border-top-width: 6px;
    border-bottom-width: 6px;
  }

  .flow__card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 15px;
    text-align: center;
  }

  .flow__icon {
    max-height: 64px;
  }

  .flow__card-title {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(25, 6, 6, 0.3);
    padding-bottom: 16px;
  }

  .flow::before {
    width: 78vw;
    top: 48%;
  }

  .flow::after {
    width: 90vw;
  }
  .sp-none {
    display: none;
  }
  .flow__btn {
    padding: 12px 10px;
    gap: 20px;
  }
  .flow__btn span {
    font-size: 1.6rem;
  }
}

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

.contact {
  background: #141414;
  background-image:
    linear-gradient(rgba(20, 20, 20, 0.18), rgba(20, 20, 20, 0.18)),
    url("../img/wh-bg.png");
  background-repeat: no-repeat, repeat;
  background-size:
    cover,
    200px 200px;
  padding: 120px 0 200px;
  color: var(--color-text-light);
}

.contact__inner {
  max-width: 1030px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact .title-en {
  color: var(--color-text-light);
  max-width: 400px;
}

.contact__title {
  margin: 0 0 60px;
  font-family: var(--font-ja);
  font-size: clamp(2.2rem, 2.4vw, 3.2rem);
  font-weight: 400;
}

.contact__lead {
  margin-bottom: 80px;
  line-height: 2;
}

/* form layout */
.contact-form__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}

.contact-form__row--type {
  display: block;
  margin-bottom: 40px;
}

.contact-form__field {
  width: 100%;
}

.contact-form__field p {
  margin: 0;
}

.contact-form__label {
  color: var(--color-text-light);
  line-height: 1.6;
}

.contact-form__label span {
  color: var(--color-accent);
  margin-left: 8px;
  font-size: 1.4rem;
}

.contact-form__label .optional {
  color: rgba(243, 243, 243, 0.7);
}

/* input */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  background: #f3f3f3;
  border: none;
  padding: 16px 18px;
  font-size: 1.6rem;
  color: var(--color-text);
  border-radius: 0;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9f9f9f;
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-accent);
}

/* radio */
.contact-form .wpcf7-radio {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.contact-form .wpcf7-list-item {
  margin: 0;
}

.contact-form .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-form input[type="radio"],
.contact-form input[type="checkbox"] {
  width: auto;
  accent-color: var(--color-accent);
}

/* note / privacy / submit：右カラムに揃える */
.contact-form__row--note {
  margin-top: 52px;
  margin-bottom: 32px;
}

.contact-form__row--privacy {
  margin-bottom: 32px;
}

.contact-form__row--submit {
  margin-bottom: 0;
}

.contact-form__note,
.contact-form__privacy,
.contact-form__submit {
  text-align: center;
}

.contact-form__note {
  margin: 0;
  line-height: 2;
  font-size: 1.4rem;
}

.contact-form__privacy .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* submit */
.contact-form__button,
.contact-form input[type="submit"] {
  display: inline-block;
  width: 260px;
  height: 56px;
  padding: 0;
  background: var(--color-accent);
  color: var(--color-text-light);
  border: none;
  cursor: pointer;
  letter-spacing: 0.25em;
  transition:
    background-color 0.3s ease,
    opacity 0.3s ease;
}

.contact-form__button:hover,
.contact-form input[type="submit"]:hover {
  background: #b07d18;
}

/* CF7 message */
.wpcf7-not-valid-tip {
  margin-top: 8px;
  color: var(--color-accent);
  font-size: 1.3rem;
}

.wpcf7-response-output {
  color: var(--color-text-light);
  border-color: var(--color-accent) !important;
  text-align: center;
}

/* SP */
@media (max-width: 768px) {
  .contact {
    padding: 80px 0px;
  }

  .contact-form__row {
    display: block;
    margin-bottom: 28px;
  }

  .contact-form__label {
    display: block;
    margin-bottom: 12px;
  }

  .contact__title {
    margin: 0 0 40px;
  }
  .contact__lead {
    margin-bottom: 40px;
  }

  .contact-form .wpcf7-radio {
    gap: 7px;
    flex-direction: column;
  }
  .contact-form__button,
  .contact-form input[type="submit"] {
    width: 100%;
  }
}

/* ============================================================
   FAQ
============================================================ */

.faq {
  position: relative;
  background: #20252a;
  margin-top: 0;
  padding: 75px 0 80px;
  overflow: visible;
}

/* 上の斜め切り替え */
.faq::before {
  content: "";
  position: absolute;
  top: -184px;
  left: 0;
  width: 100%;
  height: 150px;
  background: #20252a;
  clip-path: polygon(0 100%, 100% 40%, 100% 100%, 0 100%);
  z-index: 1;
}

/* 隙間防止 */
.faq::after {
  content: "";
  position: absolute;
  top: -35px;
  left: 0;
  width: 100%;
  height: 35px;
  background: #20252a;
  z-index: 1;
}

.faq__inner {
  position: relative;
  z-index: 2;

  max-width: var(--container);
  margin: 0 auto;
  padding: 0 0px 0 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

.faq__content {
  flex: 1;
  max-width: 600px;
}

.faq .title-en {
  color: var(--color-text-light);
  max-width: 600px;
}

.faq__title {
  margin: 0 0 56px;
  color: var(--color-text-light);
  font-family: var(--font-ja);
  font-size: clamp(2.2rem, 2.4vw, 3.2rem);
  font-weight: 400;
}

.faq__list {
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
}

.faq__list li + li {
  margin-top: 28px;
}

.faq__list a {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s;
}

.faq__list a:hover {
  color: var(--color-accent);
}

.faq__num {
  width: 28px;
  color: rgba(243, 243, 243, 0.7);
  font-family: var(--font-en);
}

.faq__photo {
  width: 100%;
  max-width: 600px;
  flex-shrink: 0;
}

.faq__photo img {
  display: block;
  width: 100%;
}

/* ------------------ */

.faq__sns {
  margin-top: 80px;
  padding: 60px 20px 0;
  border-top: 1px solid rgba(243, 243, 243, 0.45);

  display: flex;
  justify-content: center;
  gap: 60px;
}

.faq__sns-link {
  width: 280px;
  height: 78px;

  border: 1px solid rgba(243, 243, 243, 0.55);
  font-family: "Noto Serif JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  color: var(--color-text-light);
  text-decoration: none;

  transition:
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s;
}

.faq__sns-link:hover {
  background: #a8a8a83a;
}

.faq__sns-icon {
  width: 26px;
  height: 26px;
}

/* ============================================================
   SP
============================================================ */
@media (max-width: 980px) {
  .faq__inner {
    display: block;
    padding: 0 20px;
  }
  .faq .title-en {
    max-width: 400px;
  }
  .faq__content {
    max-width: 100%;
    margin-bottom: 80px;
  }

  .faq__photo {
    max-width: 100%;
  }

  .faq__photo img {
    width: 100%;
    height: auto;
  }

  .faq__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start; /* ← 追加:各項目の上端を揃える */
    gap: 30px 32px;
    padding: 0;
    margin: 0;
    margin-bottom: 60px;
  }
  .faq__list li + li {
    margin-top: 0px;
  }
}

@media (max-width: 768px) {
  .faq {
    padding: 40px 0 80px;
  }

  .faq__title {
    margin: 0 0 40px;
  }

  .faq::after {
    top: -21px;
  }
  .faq::before {
    top: -120px;
    height: 100px;
    clip-path: polygon(0 100%, 100% 70%, 100% 100%, 0 100%);
  }

  .faq__inner {
    padding: 0 20px;
  }

  .faq__sns {
    flex-direction: column;
    gap: 20px;
    margin: 0 20px;
  }

  .faq__sns-link {
    width: 100%;
  }
}
@media (max-width: 700px) {
  .faq__list {
    flex-direction: column; /* 縦積みに */
    gap: 20px;
  }
}
