/* ===================================
   RESET & BASE
=================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-red:    #d80c18;   /* Figma: Primary/Accent1 */
  --color-white:  #FFFFFF;
  --color-black:  #000000;
  --color-dark:   #111111;
  --color-gray:   #888888;
  --color-overlay: rgba(0, 0, 0, 0.35);

  --font-ja:  'Noto Sans JP', sans-serif;
  --font-en:  'Montserrat', sans-serif;

  --header-h: 100px;  /* Figma: Header height */
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* htmlレベルで横スクロール完全抑止 */
}

body {
  font-family: var(--font-ja);
  background: var(--color-dark);
  color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}


/* ===================================
   HEADER
=================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background var(--transition), backdrop-filter var(--transition);
}

/* FV内スクロール：背景なし */
.header.is-scrolled {
  background: transparent;
}

/* 赤背景セクション：ボタンのみ反転 */
.header.is-on-red .header__cta {
  background: #ffffff;
  color: #d80c18;
}

.header.is-on-red .header__cta svg path {
  stroke: #d80c18;
}

.header.is-on-red .header__cta:hover {
  background: #f0f0f0;
}

/* 白背景セクション：ライトモード */
.header.is-light {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header.is-light .header__nav-link {
  color: #1c1818;
  text-shadow: none;
}

.header.is-light .header__nav-link::after {
  background: #1c1818;
}

.header.is-light .header__hamburger span {
  background: #1c1818;
}

/* ライトモード：ロゴのドロップシャドウなし・ハンバーガー背景なし */
.header.is-light .header__logo-img {
  filter: none;
}

.header.is-light .header__hamburger {
  background: none !important;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 100px;  /* Figma: px-[100px] */
  max-width: 1440px;
  margin: 0 auto;
}

/* --- Logo --- */
.header__logo {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header__logo-img {
  height: 25px;
  width: auto;
}

/* デフォルト：白ロゴ表示・カラーロゴ非表示 */
.header__logo-img--color { display: none; }

/* ライトモード：カラーロゴ表示・白ロゴ非表示 */
.header.is-light .header__logo-img--white { display: none; }
.header.is-light .header__logo-img--color { display: block; }

/* ロゴ画像がない場合のフォールバック */
.header__logo-text {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--color-white);
  line-height: 1;
}
.header__logo-text .dot {
  color: var(--color-red);
  font-size: 14px;
  vertical-align: middle;
  margin: 0 1px;
}
.header__logo-text .group {
  font-weight: 300;
  font-size: 15px;
  margin-left: 2px;
}

/* ロゴ画像が読み込めた場合はテキストを非表示 */
.header__logo-img:not([src="assets/logo.svg"]) ~ .header__logo-text,
.header__logo:has(.header__logo-img[src]:not([src="assets/logo.svg"])) .header__logo-text {
  display: none;
}

/* --- Nav --- */
.header__nav-list {
  display: flex;
  align-items: center;
  gap: 30px;  /* Figma: gap-[30px] */
}

.header__nav-link {
  font-family: var(--font-en);          /* Montserrat */
  font-size: 18px;                      /* Figma: text-[18px] */
  font-weight: 700;                     /* Figma: Montserrat Bold */
  letter-spacing: 0.06em;              /* Figma: tracking-[1.08px] / 18px */
  color: var(--color-white);
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: opacity var(--transition);
}

.header__nav-link--bold {
  font-weight: 700;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-white);
  transition: width var(--transition);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__nav-link:hover {
  opacity: 0.7;
}

/* --- CTA Button --- */
.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;         /* Figma: gap-[7px] */
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-ja);           /* Noto Sans JP */
  font-size: 16px;                       /* Figma: text-[16px] */
  font-weight: 700;                      /* Figma: Noto Sans JP Bold */
  width: 174px;                          /* Figma: w-[174px] */
  height: 54px;     /* Figma: h-[54px] */
  border-radius: 30px;  /* Figma: rounded-[30px] ピル型 */
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.header__cta:hover {
  background: #b71c1c;
  transform: translateX(2px);
}

.header__cta-arrow {
  display: block;
  flex-shrink: 0;
}

/* --- Hamburger (mobile) --- */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.header__hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Mobile Menu --- */
.header__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  overflow-y: auto;
}

.header__mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* メニューヘッダー（ロゴ＋Xボタン） */
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 16px;
  flex-shrink: 0;
}

.mobile-menu__logo img {
  height: 18px;
  width: 136px;
  object-fit: contain;
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  flex-shrink: 0;
}

/* メニューボディ */
.mobile-menu__body {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* ナビを全幅に伸ばす */
  gap: 50px;
  padding-bottom: 48px;
}

/* ナビリスト */
.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding-top: 40px;
  list-style: none;
}

/* 各アイテム */
.mobile-menu__item {
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.mobile-menu__link {
  display: block;
  width: 100%;
  padding: 20px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.4);
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
  color: var(--color-white);
  transition: opacity var(--transition);
}

.mobile-menu__link:hover {
  opacity: 0.7;
}

/* CTAボタン */
.mobile-menu__cta {
  align-self: center; /* ボタンだけ中央寄せ */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 280px;
  height: 54px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 30px;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--transition);
}

.mobile-menu__cta:hover {
  background: #b71c1c;
}


/* ===================================
   FIRST VIEW
=================================== */
.fv {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

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

.fv__bg-img {
  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;
}

/* --- カードリスト（PC: 4カラムグリッド） --- */
.news__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  width: 100%;
}

/* --- カード --- */
.news-item {
  min-width: 0;
}

.news-item__link {
  display: flex;
  flex-direction: column;
  gap: 20px;             /* Figma: gap-[20px] */
  color: #1c1818;
  transition: opacity var(--transition);
}

.news-item__link:hover {
  opacity: 0.75;
}

/* サムネイル */
.news-item__img {
  width: 100%;
  aspect-ratio: 360 / 220;   /* Figma: 360×220px */
  overflow: hidden;
  background: #f7f5f5;
}

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

/* テキストエリア */
.news-item__text {
  display: flex;
  flex-direction: column;
  gap: 22px;             /* Figma: gap-[22px] */
}

/* ヘッド（日付＋タグ） */
.news-item__head {
  display: flex;
  align-items: center;
  gap: 20px;             /* Figma: gap-[20px] */
  padding-bottom: 18px;  /* Figma: pb-[18px] */
  border-bottom: 1px solid #d1caca;  /* Figma: Neutral/Gray 300 */
}

.news-item__date {
  font-family: var(--font-ja);   /* Noto Sans JP */
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #1c1818;
  white-space: nowrap;
}

.news-item__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;          /* Figma: h-[34px] */
  width: 120px;          /* Figma: w-[120px] */
  padding: 0 10px;
  background: #f7f5f5;   /* Figma: Neutral/Gray 100 */
  border-radius: 20px;   /* Figma: rounded-[20px] */
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #1c1818;
  white-space: nowrap;
}

/* 記事タイトル */
.news-item__desc {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #1c1818;
}

/* --- もっと見るボタン --- */
.news__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;             /* Figma: gap-[11px] */
  width: 336px;          /* Figma: w-[336px] */
  height: 54px;          /* Figma: h-[54px] */
  background: #1c1818;   /* Figma: Neutral/Gray 900 */
  color: #ffffff;
  border-radius: 30px;   /* Figma: pill型 */
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  transition: background var(--transition), transform var(--transition);
}

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


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

.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] */
  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: nowrap;
}

.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;
}

/* グレーボタン（COMING SOON） */
.usecase-btn--gray {
  background: #807575;
  color: #f7f5f5;
  cursor: default;
  justify-content: center;
}


/* ===================================
   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;
}

/* 画像 */
.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);
}


/* ===================================
   CTA — PC: 左テキスト・右画像の2カラム
   背景 #D80C18 は全幅、コンテンツは max-width: 1440px で中央寄せ
=================================== */
.cta {
  background: #d80c18;
  position: relative;  /* 画像の absolute 基準 */
  overflow: hidden;    /* 1440px外にはみ出した画像をクリップ */
}

/* コンテナ: 最大1440px・中央寄せ・横並び */
.cta__inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 400px;
  display: flex;
}

/* 左: テキストカラム（1440px内の左半分に固定） */
.cta__text-col {
  flex: 0 0 50%;      /* 最大720pxに固定（画像がabsoluteになるため明示） */
  max-width: 720px;
  display: flex;
  align-items: center;
  padding: 0 60px 0 120px;
}

/* 右: 画像カラム（ビューポート中央〜右端まで全幅） */
.cta__img-col {
  position: absolute;
  left: 50vw;   /* ビューポートの中央 = 1440px コンテナの中央と一致 */
  right: 0;     /* ビューポート右端まで */
  top: 0;
  bottom: 0;
  overflow: hidden;
}

.cta__img-col picture,
.cta__img-col img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* テキストボックス */
.cta__textbox {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 538px;
}

.cta__text {
  display: flex;
  flex-direction: column;
  gap: 30px;
  color: #ffffff;
}

.cta__title {
  font-family: var(--font-en);
  /* calc(7.5vw - 26px): コンテンツ幅(50vw-180px)に比例してスケール
     右60pxが常に確保されるよう 7vw の単純係数から変更 */
  font-size: clamp(44px, calc(7.5vw - 26px), 88px);
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  /* white-space: nowrap は 1170px 以上のみ適用（下記 min-width MQ で指定） */
}

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

/* ボタン */
.cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 336px;
  height: 54px;
  background: #ffffff;
  color: #d80c18;
  border-radius: 30px;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition);
}

.cta__btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ===================================
   FOOTER
=================================== */
.footer {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding: 50px 0;
}

/* バナーエリア */
.footer__banners {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__banner-item {
  display: block;
  width: 286px;
  height: 89px;
  overflow: hidden;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.footer__banner-item:hover {
  opacity: 0.8;
}

.footer__banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* コピーライト */
.footer__copy {
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.7;
  color: #1c1818;
  text-align: center;
}


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

/* --- Use Case 中間帯（1025px〜1280px）--- */
@media (max-width: 1280px) and (min-width: 1025px) {
  .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;
  }
}

/* --- タブレット中間帯（iPad 11インチ付近）--- */
@media (max-width: 1360px) and (min-width: 1111px) {
  .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: 72px; }
  .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;
  }

  /* タブレット: 2カラム */
  .news__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }

  /* ===== 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;
    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;
  }

  /* ===== FOOTER バナー タブレット ===== */
  .footer__banners {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 24px;
  }

  .footer__banner-item {
    flex-shrink: 1;
    width: 286px;
    max-width: 100%;
  }

  .header__inner {
    padding: 0 48px;
  }
}

@media (max-width: 1110px) {
  .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;
  }

  .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: 1169px) {
  .header__nav,
  .header__cta {
    display: none;
  }

  .header__hamburger {
    display: flex !important;
    width: 44px;
    height: 44px;
    background: none;
    border-radius: 6px;
    padding: 10px 8px;
    gap: 6px;
  }

  .header__mobile-menu {
    display: block;
  }

  .header__inner {
    padding: 0 32px;
  }

  .header__logo-img {
    height: 18px;
    width: 136px;
    object-fit: contain;
    filter: drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.4));
  }
}


/* =====================================================
   CTA 1169px以下: SPレイアウト（縦積み）に切り替え
   ≥1170px: PCの2カラムを維持
   769〜1169px: 縦積み・画像高さをSPより大きく確保
   ≤768px: 下記 @media (max-width: 768px) がSP値で上書き
===================================================== */
@media (max-width: 1169px) {

  /* column-reverse: 画像を上・テキストを下 */
  .cta__inner {
    flex-direction: column-reverse;
    height: auto;
    max-width: 100%;
  }

  /* 上段: 画像エリア（タブレットはSPより高め）
     PC の position:absolute / left:50vw をリセット */
  .cta__img-col {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: clamp(220px, 30vw, 380px);  /* 画面幅に比例してスケール */
    flex: none;
    overflow: hidden;
    clip-path: inset(0);
    background: #d80c18;
  }

  .cta__img-col img {
    object-fit: cover;
    object-position: center top;
  }

  /* 下段: テキストエリア（PC の flex: 0 0 50% / max-width: 720px をリセット） */
  .cta__text-col {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding: 36px 48px 44px;
  }

  .cta__textbox {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    /* 基準 1169px で 30px → 30/1169 ≈ 2.57vw */
    gap: clamp(14px, 3vw, 30px);
  }

  /* cta__text の gap も同比率でスケール（基準 1169px で 28px → 2.4vw） */
  .cta__text {
    gap: clamp(12px, 1vw, 28px);
  }

  .cta__title {
    font-size: clamp(46px, 6vw, 64px);
    white-space: normal;
    line-height: 1.1;
  }

  .cta__btn {
    width: 336px;
    color: #d80c18;
  }
}

/* PC広幅（1170px以上）のみ nowrap を適用 */
@media (min-width: 1170px) {
  .cta__title {
    white-space: nowrap;
  }
}

@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: 64px;
  }

  .project__subtitle {
    font-size: 28px;
  }

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

  .usecase__title {
    font-size: 56px;
  }

  .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: 56px;
    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;
    /* Chrome で gap/overflow:visible が効かないため margin-bottom で確実に余白を確保 */
    margin-bottom: 80px;
  }

  .modellist-item:last-child,
  .modellist-item--left:last-child {
    margin-bottom: 0;
  }

  /* 画像：全幅・自然比率表示 */
  .modellist-item__img {
    width: 100%;
    height: auto;
    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%;
  }

  /* ===== FOOTER SP ===== */
  .footer__banners {
    flex-direction: column;
    gap: 24px;
  }

  .footer__banner-item {
    width: 320px;
    height: 100px;
  }


  /* ===== CTA SP: 画像（上部193px）＋ テキスト（下部）の2段構成 ===== */

  /* column-reverse で画像を上に、テキストを下に */
  .cta__inner {
    flex-direction: column-reverse;
    height: auto;
    max-width: 100%;
  }

  /* 上段: 画像エリア — position もリセット、高さは画面幅に比例 */
  .cta__img-col {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: clamp(160px, 50vw, 220px);  /* 画面幅に比例してスケール */
    flex: none;
    overflow: hidden;
    clip-path: inset(0);
  }

  /* 下段: テキストエリア */
  .cta__text-col {
    padding: 25px 28px 36px;
    flex: none;
    width: 100%;
  }

  .cta__textbox {
    width: 100%;
    max-width: 100%;
    /* SP でも同比率を継続（2.57vw @ 768px ≈ 19.7px ≈ 20px） */
    gap: clamp(14px, 3vw, 30px);
  }

  .cta__title {
    font-size: 46px;
    white-space: normal;
  }

  /* ボタン：全幅・赤文字 */
  .cta__btn {
    width: 100%;
    color: #d80c18;
  }

  .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: 56px;
  }

  /* SP: 1カラム */
  .news__list {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .news__btn {
    width: 100%;
    max-width: 336px;
  }

  :root {
    --header-h: 60px;
  }

  .header__inner {
    padding: 0 16px;
  }

  .fv__vertical-text {
    display: none;
  }
}

@media (max-width: 480px) {
  /* FV 高さをFigma通り650pxに固定 */
  .fv {
    height: 650px;
    min-height: 650px;
    padding-bottom: 0;
  }

  /* SP画像は縦長なのでobject-positionを上寄せ */
  .fv__bg-img {
    object-position: center top;
  }

  /* テキストエリア: 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: left 32px, top 503px（Figma通り） */
  .fv__scroll {
    left: 32px;
    bottom: auto;
    top: 503px;
  }

  /* 縦書きテキスト: 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;
  }
}
