/* ===================================
   page-top.css — index.html 専用
   FV / News見出し / Project / Use Case /
   Model List / Flow
   読み込み順: base → layout → components → page-top
=================================== */


/* ===================================
   FIRST VIEW
=================================== */
.fv {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-h));
  min-height: 600px;
  margin-top: calc(var(--header-h) - 1px); /* サブピクセル隙間対策：1px ヘッダーと重ねる */
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

/* --- Background --- */
.fv__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fv__bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.fv__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.10) 55%,
    rgba(0, 0, 0, 0.02) 100%
  );
}

/* --- Vertical text (right) --- */
.fv__vertical-text {
  position: absolute;
  right: 84px;  /* ヘッダー右padding(100px) - 要素幅の半分(16px) */
  top: 50%;
  width: 32px;
  height: 458px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  overflow: hidden; /* rotate(90deg)したspanのレイアウトボックスの横はみ出しを断ち切る */
}

.fv__vertical-text span {
  display: block;
  white-space: nowrap;
  font-family: var(--font-en);          /* Montserrat */
  font-size: 16px;                      /* Figma: text-[16px] */
  font-weight: 300;                     /* Figma: Montserrat Light */
  letter-spacing: 0.2em;               /* Figma: tracking-[3.2px] / 16px */
  color: var(--color-white);
  transform: rotate(90deg);
}

/* --- Main content --- */
.fv__content {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 12.3vw, 177px);  /* Figma: left-[177px] at 1440px */
  top: clamp(90px, 24vh, 175px);     /* Figma: top-[175px] */
  width: clamp(300px, 38vw, 551px);
}

.fv__heading {
  font-family: var(--font-ja);              /* Noto Sans JP */
  font-size: clamp(32px, 4.3vw, 62px);     /* Figma: text-[62px] */
  font-weight: 600;                         /* Figma: Noto Sans JP SemiBold */
  line-height: 1.4;                         /* Figma: leading-[1.4] */
  color: var(--color-white);
  margin-bottom: 25px;                      /* Figma: gap-[25px] */
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  white-space: nowrap;                      /* 各行を明示的な<br>で折り返す */
}

.fv__label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 41px;  /* Figma: gap-[41px] */
  flex-wrap: wrap;
}

.fv__label-highlight {
  font-family: var(--font-en);        /* Montserrat */
  font-size: clamp(16px, 1.9vw, 27px);  /* Figma: text-[27px] */
  font-weight: 500;                    /* Figma: Montserrat Medium */
  color: var(--color-red);
}

.fv__label-sub {
  font-family: var(--font-en);        /* Montserrat */
  font-size: clamp(16px, 1.9vw, 27px);  /* Figma: text-[27px] */
  font-weight: 500;                    /* Figma: Montserrat Medium */
  color: var(--color-white);
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.fv__description {
  font-family: var(--font-ja);        /* Noto Sans JP */
  font-size: clamp(18px, 1.9vw, 28px);  /* Figma: text-[28px] */
  font-weight: 600;                    /* Figma: Noto Sans JP SemiBold */
  line-height: 1.4;                    /* Figma: leading-[1.4] */
  color: var(--color-white);
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/* --- Scroll indicator --- */
.fv__scroll {
  position: absolute;
  bottom: clamp(32px, 5vh, 60px);
  left: clamp(28px, 12.3vw, 177px);  /* Figma: left-[177px] */
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fv__scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.fv__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}

.fv__scroll-text {
  font-family: var(--font-en);   /* Montserrat */
  font-size: 16px;               /* Figma: text-[16px] */
  font-weight: 300;              /* Montserrat Light */
  letter-spacing: 0.05em;
  color: var(--color-white);
}

/* FV フェードイン */
.fv__content {
  animation: fadeInUp 1.2s ease 0.3s forwards;
  opacity: 0;
}

.fv__scroll {
  animation: fadeInUp 1.2s ease 0.8s forwards;
  opacity: 0;
}

.fv__vertical-text {
  animation: fadeIn 1.2s ease 0.5s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ===================================
   NEWS
=================================== */
.news {
  background: #ffffff;
}

.news__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 120px;  /* Figma: py-[100px] px-[120px] */
  display: flex;
  flex-direction: column;
  gap: 80px;             /* Figma: gap-[80px] */
}

/* --- タイトル --- */
.news__title {
  font-family: var(--font-en);       /* Montserrat */
  font-size: 96px;                   /* Figma: text-[96px] */
  font-weight: 700;                  /* Figma: Bold */
  line-height: 1;
  color: #1c1818;                    /* Figma: Neutral/Gray 900 */
  letter-spacing: 0;
}

/* --- ボディ（リスト＋ボタン） --- */
.news__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}


/* ===================================
   PROJECT
=================================== */
.project {
  background: #C30D23;
}

.project__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 120px;        /* Figma: py-[100px] px-[120px] */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* --- 左：テキスト（538px） --- */
.project__textbox {
  width: 538px;                /* Figma: w-[538px] */
  min-width: 0;                /* flex内でテキストが折り返せるよう */
  display: flex;
  flex-direction: column;
  gap: 52px;                   /* Figma: gap-[52px] */
  color: #ffffff;
}

.project__title-area {
  display: flex;
  flex-direction: column;
  gap: 36px;                   /* Figma: gap-[36px] */
}

.project__title {
  font-family: var(--font-en); /* Montserrat */
  font-size: 96px;             /* Figma: text-[96px] */
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0;
}

.project__subtitle {
  font-family: var(--font-ja); /* Noto Sans JP */
  font-size: 48px;             /* Figma: text-[48px] */
  font-weight: 700;            /* Figma: Bold */
  line-height: 1.4;
  color: #ffffff;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* EN / ID：PC での長い見出しをコンパクトに */
html[lang="en"] .project__subtitle,
html[lang="id"] .project__subtitle {
  font-size: 36px;
  line-height: 1.35;
}

.project__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project__body p {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
}

/* --- 右：4枚画像グリッド --- */
/* 画像間10pxのgapを確保：
   列幅: (546 - 10) / 2 = 268px、右列開始: 268 + 10 = 278px
   左列 col1: img1(top:28px h:350px) + 10px gap + img3(top:388px h:307px) → 高さ695px
   右列 col2: img2(top:0   h:307px) + 10px gap + img4(top:317px h:350px) */
.project__img-grid {
  position: relative;
  width: 546px;
  height: 695px;
  flex-shrink: 0;
}

.project__img {
  position: absolute;
  overflow: hidden;
  background: #807575;
  border-radius: 20px;
}

.project__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* 左列 上 */
.project__img--1 {
  left: 0;
  top: 28px;
  width: 268px;
  height: 350px;
}

/* 右列 上 */
.project__img--2 {
  left: 278px;
  top: 0;
  width: 268px;
  height: 307px;
}

/* 左列 下 */
.project__img--3 {
  left: 0;
  top: 388px;
  width: 268px;
  height: 307px;
}

/* 右列 下 */
.project__img--4 {
  left: 278px;
  top: 317px;
  width: 268px;
  height: 350px;
}


/* ===================================
   USE CASE
=================================== */
.usecase {
  background: #1c1818;
}

.usecase__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 120px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* --- タイトルエリア --- */
.usecase__title-area {
  display: flex;
  flex-direction: column;
  gap: 36px;
  color: #ffffff;
}

.usecase__title {
  font-family: var(--font-en);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.usecase__subtitle {
  font-family: var(--font-ja);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  white-space: nowrap;
}

.usecase__desc {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
}

/* --- アイテムリスト --- */
.usecase__list {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* --- 各アイテム --- */
.usecase-item {
  display: flex;
  gap: 100px;
  align-items: flex-start;
  padding-bottom: 50px;
}

.usecase-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* 写真エリア */
.usecase-item__img-wrap {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-shrink: 0;
}

.usecase-item__scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #ffffff;
}

.usecase-item__scene-label {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.usecase-item__scene-num {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

/* 縦線 */
.usecase-item__line {
  width: 1px;
  height: 539px;
  background: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.usecase-item__img {
  width: 405px;
  height: 540px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.usecase-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* テキストエリア */
.usecase-item__textbox {
  display: flex;
  flex-direction: column;
  gap: 40px;
  color: #ffffff;
  flex: 1;
}

.usecase-item__category {
  font-family: var(--font-en);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #ffffff;
  white-space: nowrap;
}

.usecase-item__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.usecase-item__subtitle {
  font-family: var(--font-ja);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
}

.usecase-item__text {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #ffffff;
  max-width: 603px;
}

/* タグリスト */
.usecase-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.usecase-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid #ffffff;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #ffffff;
  white-space: nowrap;
}

/* 活用事例 */
.usecase-case {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.usecase-case__label {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #ffffff;
}

/* ボタン共通 */
.usecase-btn {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  width: 340px;
  padding: 13px 32px;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  white-space: nowrap;
}

.usecase-btn__text {
  flex: 1;
  text-align: left;
}

/* 白ボタン（リンクあり） */
.usecase-btn--white {
  background: #ffffff;
  border: 0.5px solid #ffffff;
  color: #1c1818;
  transition: opacity var(--transition);
}

.usecase-btn--white:hover {
  opacity: 0.85;
}


/* ===================================
   MODEL LIST
=================================== */
.modellist {
  background: #ffffff;
}

.modellist__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 120px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* --- タイトルエリア --- */
.modellist__title-area {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #1c1818;
}

.modellist__title {
  font-family: var(--font-en);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  color: #1c1818;
  margin-bottom: 36px;
}

.modellist__subtitle {
  font-family: var(--font-ja);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4;
  color: #1c1818;
  white-space: nowrap;
  margin-bottom: 22px;
}

.modellist__desc {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #1c1818;
}


/* --- モデルアイテム --- */
.modellist-item {
  display: flex;
  gap: 100px;
  align-items: center;
}

/* カード間の縦余白（PC〜SP で自然にスケール） */
.modellist-item:not(:last-child) {
  margin-bottom: clamp(80px, 10vw, 100px);
}

/* 画像 */
.modellist-item__img {
  width: 405px;
  height: 540px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0eded;
}

.modellist-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* テキストエリア */
.modellist-item__text {
  display: flex;
  flex-direction: column;
  gap: 40px;
  color: #1c1818;
  flex: 1;
  padding-top: 8px;
}

/* モデル名 */
.modellist-item__name {
  font-family: var(--font-en);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #1c1818;
}

/* 説明エリア */
.modellist-item__desc-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modellist-item__subtitle {
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #1c1818;
  max-width: 603px;
}

.modellist-item__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 603px;
}

.modellist-item__body p {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  color: #1c1818;
}

/* 左レイアウト（テキスト左・画像右）KAI 用 */
.modellist-item--left {
  flex-direction: row-reverse;
}

/* もっと見るボタン */
.modellist-item__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 336px;
  height: 54px;
  background: #1c1818;
  color: #ffffff;
  border-radius: 30px;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.modellist-item__btn:hover {
  background: #3a3535;
  transform: translateY(-2px);
}


/* ===================================
   FLOW
=================================== */
.flow {
  background: #1c1818;
}

.flow__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 120px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* --- タイトルエリア --- */
.flow__heading {
  display: flex;
  flex-direction: column;
  gap: 36px;
  color: #ffffff;
}

.flow__title {
  font-family: var(--font-en);
  font-size: 96px;
  font-weight: 700;
  line-height: 1.04;
  color: #ffffff;
}

.flow__subtitle {
  font-family: var(--font-ja);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
}

.flow__desc {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
}

/* --- ステップグリッド --- */
.flow__steps {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.flow__row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

/* --- カード --- */
.flow__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 36px 0;
  border: 1px solid #ffffff;
  border-radius: 10px;
  background: #1c1818;
  min-width: 0;
  align-items: center;
}

/* --- カード上部（ヘッダー行＋写真） --- */
.flow__card-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
}

/* --- ヘッダー行（STEP+タイトル左、アイコン右） --- */
.flow__card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  width: 100%;
}

.flow__card-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

/* --- STEP ラベル＋番号（横並び） --- */
.flow__card-step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

.flow__card-step-label {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #ffffff;
}

.flow__card-step-num {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.flow__card-title {
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  text-align: left;
  color: #ffffff;
}

/* --- アイコン --- */
.flow__card-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

/* --- カード内：写真 --- */
.flow__card-img {
  width: calc(100% - 20px);
  max-width: calc(100% - 20px);
  margin: 0 10px;
  aspect-ratio: 360 / 240;
  overflow: hidden;
  border-radius: 0;
  flex-shrink: 0;
  background: #2c2626;
}

.flow__card-img img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --- テキストエリア（説明文＋箇条書き） --- */
.flow__card-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --- 説明文 --- */
.flow__card-desc {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  width: 100%;
}

/* --- 箇条書き --- */
.flow__card-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.flow__card-list li {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
}

/* --- POINTボックス --- */
.flow__point {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 30px;
  background: #ffffff;
  border-radius: 10px;
}

.flow__point-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow__point-head svg {
  flex-shrink: 0;
}

.flow__point-label {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #1c1818;
}

.flow__point-text {
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: #1c1818;
}

@media (max-width: 1200px) and (min-width: 769px) {

/* --- FLOW レスポンシブ --- */

/* タブレット〜中間幅（iPad mini 含む）：2カラム */

  /* flow__steps を横並びflex コンテナにして全カードを直接並べる */
  .flow__steps {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  /* flow__row を透過させてレイアウト上存在しない扱いに */
  .flow__row {
    display: contents;
  }

  .flow__card {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

  /* POINTボックスは全幅 */
  .flow__point {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


@media (max-width: 1024px) {

  .flow__inner {
    padding: 80px 48px;
    gap: 60px;
  }

  .flow__title {
    font-size: 72px;
  }

  .flow__subtitle {
    font-size: 36px;
    white-space: normal;
  }

  .flow__heading {
    gap: 24px;
  }

  .flow__row {
    gap: 20px;
  }
}


@media (max-width: 768px) {

  .flow__inner {
    padding: 64px 28px;
    gap: 60px;
  }

  .flow__title {
    font-size: clamp(40px, 14.9vw, 72px);
    white-space: normal;
    overflow-wrap: break-word;
  }

  .flow__subtitle {
    font-size: 28px;
    white-space: normal;
  }

  .flow__heading {
    gap: 20px;
  }

  .flow__steps {
    gap: 24px;
  }

  .flow__row {
    flex-direction: column;
    gap: 24px;
  }

  .flow__card {
    flex: none;
    max-width: 100%;
    padding: 28px 0;
  }

  .flow__point {
    padding: 20px;
  }

  .flow__point-label {
    font-size: 22px;
  }

  .flow__point-text {
    font-size: 16px;
    line-height: 1.6;
  }
}


@media (max-width: 1280px) and (min-width: 1025px) {

/* ===================================
   RESPONSIVE
=================================== */

/* --- Use Case 中間帯（1025px〜1280px）--- */

  .usecase__inner {
    padding: 80px 64px;
    gap: 80px;
  }

  .usecase-item {
    gap: 60px;
  }

  .usecase-item__img-wrap {
    flex-shrink: 1;
  }

  .usecase-item__img {
    width: 370px;
    height: auto;
    aspect-ratio: 405 / 540;
    flex-shrink: 1;
  }

  .usecase-item__line {
    height: auto;
    align-self: stretch;
  }

  .usecase-item__category {
    font-size: 56px;
  }

  .usecase__subtitle {
    font-size: 40px;
    white-space: normal;
  }

  .modellist__subtitle {
    font-size: 40px;
    white-space: normal;
  }
}


@media (max-width: 1360px) and (min-width: 1153px) {

/* --- Projectタブレット中間帯（1153px〜1360px：2カラム維持）--- */

  .project__inner {
    padding: 100px 64px;        /* 左右padding: 120px → 64px */
    justify-content: flex-start; /* space-between をやめてgapで制御 */
    gap: 48px;
  }

  .project__textbox {
    flex: 1 1 auto;             /* 空き幅を使って伸縮 */
    width: auto;
    min-width: 0;
  }

  .project__img-grid {
    flex-shrink: 0;             /* 画像グリッドは固定幅を維持 */
  }
}


@media (max-width: 1024px) {

  .usecase__inner {
    padding: 80px 48px;
    gap: 80px;
  }

  .usecase__title { font-size: clamp(56px, 7vw, 72px); white-space: normal; overflow-wrap: break-word; }
  .usecase__subtitle { font-size: 36px; white-space: normal; }

  .modellist__subtitle {
    font-size: 36px;
    white-space: normal;
  }

  .usecase-item {
    flex-direction: column;
    gap: 48px;
  }

  /* leftアイテム（CORPORATE等）：img-wrapを先に表示 */
  .usecase-item--left {
    flex-direction: column-reverse;
  }

  /* img-wrap：全幅・横並びに */
  .usecase-item__img-wrap {
    flex-direction: row;
    width: 100%;
    flex-shrink: unset;
  }

  /* leftアイテムのimg-wrap：img左・SCENE右 */
  .usecase-item--left .usecase-item__img-wrap {
    flex-direction: row-reverse;
  }

  .usecase-item__img {
    width: 100%;
    height: auto;
    aspect-ratio: 405 / 540;
    flex-shrink: 1;
  }

  .usecase-item__line {
    height: auto;
    align-self: stretch;
  }

  .usecase-item__category { font-size: 56px; }

  .news__inner {
    padding: 80px 48px;
  }

  .news__title {
    font-size: 72px;
  }

  /* ===== MODEL LIST タブレット ===== */
  .modellist__inner {
    padding: 80px 48px;
    gap: 60px;
  }

  .modellist-item,
  .modellist-item--left {
    flex-direction: column;
    gap: 40px;
    width: 100%;
    align-items: flex-start;
  }

  .modellist-item__img {
    width: 100%;
    height: auto;
    aspect-ratio: 405 / 540;
    overflow: visible;
    flex-shrink: unset;
  }

  .modellist-item__img img {
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
  }

  .modellist-item__text {
    flex: none;
    width: 100%;
    padding-top: 0;
  }

  .modellist-item__name {
    font-size: 56px;
  }
}


@media (max-width: 1152px) and (min-width: 532px) {

/* --- Project subtitle：500px〜1152px は改行なし --- */

  .project__subtitle br {
    display: none;
  }
}


@media (max-width: 1152px) {

/* --- Project：1152px以下で1カラム --- */

  .project__inner {
    padding: 80px 48px;
    flex-direction: column;
    gap: 60px;
  }

  .project__textbox {
    width: 100%;
    min-width: unset;
    flex: unset;
  }

  .project__subtitle {
    font-size: 36px;
    white-space: normal;
    word-break: break-word;
  }

  html[lang="en"] .project__subtitle,
  html[lang="id"] .project__subtitle {
    font-size: 28px;
  }

  .project__img-grid {
    width: 100%;
    height: auto;
    aspect-ratio: 546 / 685;
  }

  /* 絶対座標をパーセンテージに変換（gap 10px考慮） */
  .project__img--1 { left: 0;       top: 4.03%;  width: 49.08%; height: 50.36%; }
  .project__img--2 { left: 50.92%;  top: 0;      width: 49.08%; height: 44.17%; }
  .project__img--3 { left: 0;       top: 55.83%; width: 49.08%; height: 44.17%; }
  .project__img--4 { left: 50.92%;  top: 45.61%; width: 49.08%; height: 50.36%; }
}


@media (max-width: 768px) {

  .project__inner {
    padding: 64px 28px;
  }

  /* textboxを透過させてchildrenをinnerのflexアイテムに昇格 */
  .project__textbox {
    display: contents;
  }

  /* SP表示の並び順: タイトル → 画像 → 本文 */
  .project__title-area {
    order: 1;
  }

  .project__img-grid {
    order: 2;
  }

  .project__body {
    order: 3;
    /* display:contents解除後のためgapを補う */
    padding-top: 0;
  }

  .project__title {
    font-size: clamp(40px, 14.9vw, 72px);
    white-space: normal;
    overflow-wrap: break-word;
  }

  .project__subtitle {
    font-size: 28px;
  }

  /* ===== USE CASE SP ===== */
  .usecase__inner {
    padding: 64px 28px;
    gap: 60px;
  }

  .usecase__title {
    font-size: clamp(40px, 14.9vw, 72px);
    white-space: normal;
    overflow-wrap: break-word;
  }

  .usecase__subtitle {
    font-size: 28px;
  }

  .usecase__title-area {
    gap: 20px;
  }

  /* ===== MODEL LIST SP ===== */
  .modellist__inner {
    padding: 64px 28px;
    gap: 60px;
    align-items: center;
  }

  .modellist__title-area {
    width: 100%;
    gap: 0;
  }

  .modellist__title {
    font-size: clamp(40px, 14.9vw, 72px);
    white-space: normal;
    overflow-wrap: break-word;
    margin-bottom: 20px;
  }

  .modellist__subtitle {
    font-size: 28px;
    white-space: normal;
    margin-bottom: 20px;
  }

  /* モデルアイテム：縦積み */
  .modellist-item,
  .modellist-item--left {
    flex-direction: column;
    gap: 30px;
    width: 100%;
    align-items: flex-start;
  }

  /* SP でのカード間余白（clamp でスケール） */
  .modellist-item:not(:last-child),
  .modellist-item--left:not(:last-child) {
    margin-bottom: clamp(80px, 20vw, 120px);
  }

  /* 画像：全幅・自然比率表示 */
  .modellist-item__img {
    width: 100%;
    height: auto;
    aspect-ratio: 405 / 540;
    overflow: visible;
    border-radius: 20px;
    flex-shrink: unset;
  }

  .modellist-item__img img {
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
    border-radius: 20px;  /* SP は overflow:visible のため img 側に指定 */
  }

  /* テキストエリア：gapをリセットしmarginで個別制御 */
  .modellist-item__text {
    gap: 0;
    flex: none;
    width: 100%;
    padding-top: 0;
  }

  /* モデル名：44px、下に10px（サブタイトルとグループ化） */
  .modellist-item__name {
    font-size: 44px;
    margin-bottom: 10px;
  }

  /* 説明エリア：下に40px（ボタンとの間隔） */
  .modellist-item__desc-area {
    gap: 0;
    margin-bottom: 40px;
  }

  /* サブタイトル：下に20px（本文との間隔） */
  .modellist-item__subtitle {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .modellist-item__body p {
    line-height: 2;
  }

  /* もっと見るボタン：全幅 */
  .modellist-item__btn {
    width: 100%;
  }

  .usecase__list {
    gap: 60px;
  }

  /* アイテム全体：縦積み */
  .usecase-item {
    flex-direction: column;
    gap: 32px;
    padding-bottom: 50px;
  }

  /* leftアイテム：img-wrapを先に表示 */
  .usecase-item--left {
    flex-direction: column-reverse;
  }

  /* img-wrap：横並びのまま gap:14px */
  .usecase-item__img-wrap {
    flex-direction: row;
    gap: 14px;
    align-items: flex-start;
    width: 100%;
  }

  /* leftアイテムのimg-wrap：img左・SCENE右 */
  .usecase-item--left .usecase-item__img-wrap {
    flex-direction: row-reverse;
  }

  /* SCENEラベル：表示・サイズ調整 */
  .usecase-item__scene {
    display: flex;
    flex-shrink: 0;
  }

  .usecase-item__scene-label {
    font-size: 10px;
  }

  .usecase-item__scene-num {
    font-size: 18px;
  }

  /* 縦線：表示・高さをimg高さに合わせる */
  .usecase-item__line {
    display: block;
    height: 341px;
    flex-shrink: 0;
  }

  /* 画像：SCENEと縦線を除いた残り幅を使う */
  .usecase-item__img {
    flex: 1;
    width: auto;
    height: auto;
    aspect-ratio: 405 / 540;
    border-radius: 20px;
    flex-shrink: 1;
  }

  .usecase-item__category {
    font-size: 44px;
  }

  .usecase-item__textbox {
    gap: 32px;
    width: 100%;
    flex: none;
  }

  .usecase-item__text {
    max-width: 100%;
  }

  /* ボタン：コンテンツ幅いっぱい */
  .usecase-btn {
    width: 100%;
    gap: 30px;
  }

  .news__inner {
    padding: 64px 28px;
    gap: 48px;
  }

  .news__title {
    font-size: clamp(40px, 14.9vw, 72px);
    white-space: normal;
    overflow-wrap: break-word;
  }

  .fv__vertical-text {
    display: none;
  }
}


/* モデル写真（PC のみ: overflow:hidden が有効な幅で適用） */
.modellist-item__img img {
  transition: transform 0.45s ease;
}

@media (min-width: 1025px) {

  .modellist-item:hover .modellist-item__img img {
    transform: scale(1.03);
  }
}


@media (max-width: 480px) {

  /* FV 高さをFigma通り650pxに固定（SP: margin-topをリセット） */
  .fv {
    height: 650px;
    min-height: 650px;
    margin-top: 0;
    padding-bottom: 0;
  }

  /* テキストエリア: left 32px, top 253px（Figma通り） */
  .fv__content {
    left: 32px;
    top: 253px;
    width: calc(100% - 64px);
  }

  /* タイトル: 34px, line-height 1.32 */
  .fv__heading {
    font-size: 34px;
    line-height: 1.32;
    white-space: normal;
    margin-bottom: 16px;  /* タイトルとラベルのgap */
  }

  /* ラベル: 15px, ラベルとdescriptionのgap 35px */
  .fv__label {
    margin-bottom: 35px;
  }

  .fv__label-highlight,
  .fv__label-sub {
    font-size: 15px;
  }

  /* 説明文: 16px, line-height 1.4 */
  .fv__description {
    font-size: 16px;
    line-height: 1.4;
  }

  /* SCROLL: SP では中央下部に配置 */
  .fv__scroll {
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    transform: none;
    bottom: 32px;
    top: auto;
  }

  /* 縦書きテキスト: SPでも右端に表示 */
  .fv__vertical-text {
    display: flex;
    right: 8px;
    width: 16px;
    height: 340px;
    overflow: hidden; /* 回転spanのレイアウトボックスはみ出しを断ち切る */
  }

  /* spanにwidth指定: rotate後に340px高さに収まるよう制御 */
  .fv__vertical-text span {
    font-size: 12px;
    letter-spacing: 0.2em;
    width: 340px;      /* layout幅を限定（rotate後にheight=340pxになる） */
    flex-shrink: 0;
  }
}
