/* ===========================
   FB Sleep Lab - Style Sheet
   Figma-precise values applied
   =========================== */

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #1e95b0;
  --color-primary-light: #98b6be;
  --color-dark: #2e3138;
  --color-text: #2e3138;
  --color-black: #1e1e1e;
  --color-bg: #f9f8f5;
  --color-bg-light: #e9edf2;
  --color-white: #ffffff;
  --color-gray: #7a7f88;
  --color-divider: #6b7280;
  --font-mincho: "Shippori Mincho", serif;
  --font-sans: "Noto Sans JP", sans-serif;
  --font-display: "DM Serif Display", serif;
  --font-josefin: "Josefin Sans", sans-serif;
  --font-cormorant: "Cormorant Garamond", serif;
  --font-zen: "Zen Old Mincho", serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  line-break: auto;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: clip;
  }
}

:where(
  h1,
  h2,
  h3,
  h4,
  .concept__title,
  .brands__title,
  .brand-card__title,
  .curtain__title,
  .curtain__subtitle,
  .solution__title,
  .portfolio__title,
  .faq__subtitle,
  .cta__title
) {
  text-wrap: balance;
  /* iOS Safari は keep-all だと日本語が折り返せず横はみ出しする */
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (min-width: 768px) {
  :where(
    h1,
    h2,
    h3,
    h4,
    .concept__title,
    .brands__title,
    .brand-card__title,
    .curtain__title,
    .curtain__subtitle,
    .solution__title,
    .portfolio__title,
    .faq__subtitle,
    .cta__title
  ) {
    word-break: keep-all;
  }
}

.u-nowrap {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .u-nowrap {
    white-space: normal;
  }
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

/* ===========================
   Header / Navigation
   =========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 38px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(8px);
}

.site-logo {
  font-family: var(--font-josefin);
  font-size: 40px;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1;
  letter-spacing: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav__drawer {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav__menu {
  display: flex;
  gap: 24px;
}

.header-nav__menu a {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.448;
}

.header-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.448;
  border-radius: 100px;
  white-space: nowrap;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  position: relative;
  z-index: 101;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
}

.header-nav.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-nav.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.header-nav.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1118px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 20% 0 0 auto;
  padding: 0 80px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero__title {
  font-family: var(--font-mincho);
  font-size: 64px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.448;
  text-align: left;
  text-shadow: 3px 4px 4px rgba(0, 0, 0, 0.49);
  max-width: 960px;
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-white);
  line-height: 2;
  margin-top: 32px;
  text-align: left;
  max-width: 768px;
  text-shadow: 2px 3px 4px rgba(0, 0, 0, 0.45);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.448;
  border-radius: 100px;
  margin-top: 40px;
}

/* ===========================
   Section Label
   =========================== */
.section-label {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--color-primary-light);
  line-height: 1.37;
  margin-bottom: 8px;
}

.section-label--white {
  color: var(--color-white);
}

/* ===========================
   Concept Section
   =========================== */
.concept {
  padding: 100px 0 80px;
}

.concept__inner {
  display: grid;
  grid-template-columns: clamp(280px, 40vw, 731px) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  width: min(1526px, calc(100% - 160px));
  margin: 0 auto;
  padding: 0;
}

.concept__image {
  width: 100%;
  max-width: 731px;
  border-radius: 20px;
  overflow: hidden;
}

.concept__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.concept__text {
  min-width: 0;
  max-width: none;
  padding-top: 20px;
}

.concept__title {
  font-family: var(--font-mincho);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: none;
}

.concept__description {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-black);
  line-height: 2;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* ===========================
   Brands Section
   =========================== */
.brands {
  position: relative;
  width: 100%;
  aspect-ratio: 1728 / 639;
  margin: 0;
  padding: 0;
  background-color: #1e1e1e;
  color: var(--color-white);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.brands__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.47;
  z-index: 0;
}

.brands__overlay {
  display: none;
}

.brands__content {
  position: relative;
  z-index: 2;
  width: min(1216px, calc(100% - 80px));
  margin: 0 auto;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
}

.brands__title {
  font-family: var(--font-mincho);
  font-size: 64px;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 0;
}

.brands__description {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 2;
  max-width: 1166px;
  margin: 0 auto;
}

/* ===========================
   Brand Detail Cards
   =========================== */
.brand-cards {
  padding: 80px;
}

.brand-card {
  max-width: 1586px;
  margin: 0 auto 98px;
  padding: 0;
}

.brand-card:last-of-type {
  margin-bottom: 0;
}

.brand-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 49px;
}

.brand-card__logo img {
  max-height: 121px;
  width: auto;
}

.brand-card__body {
  display: flex;
  gap: 79px;
  align-items: flex-start;
}

.brand-card__body--reverse {
  flex-direction: row-reverse;
}

.brand-card__gallery {
  flex: 0 0 686px;
}

.brand-card__gallery--mosaic {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
}

.brand-card__gallery-left {
  flex: 0 0 317px;
  width: 317px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand-card__gallery--mosaic img {
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  max-width: none;
}

.brand-card__gallery-top {
  flex: 0 0 414px;
  width: 317px;
  height: 414px;
  min-width: 317px;
  max-width: 317px;
  min-height: 414px;
  max-height: 414px;
  transform: translateX(-44px);
}

.brand-card__gallery-bottom {
  flex: 0 0 205px;
  width: 288px;
  height: 205px;
  min-width: 288px;
  max-width: 288px;
  min-height: 205px;
  max-height: 205px;
  align-self: center;
}

.brand-card__gallery-main {
  flex: 0 0 327px;
  width: 327px;
  height: 492px;
  min-width: 327px;
  max-width: 327px;
  min-height: 492px;
  max-height: 492px;
  transform: translateY(69px);
}

.brand-card__gallery .splide__slide img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.brand-card__info {
  flex: 1;
  max-width: 821px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.brand-card__title {
  font-family: var(--font-mincho);
  font-size: 48px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.6;
  max-width: 771px;
}

.brand-card__description {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 2;
}

/* Feature boxes */
.feature-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-box__header {
  display: flex;
  align-items: center;
  gap: 34px;
}

.feature-box__icon {
  display: flex;
  align-items: center;
  gap: 21px;
  flex-shrink: 0;
}

.feature-box__icon svg {
  width: 28px;
  height: 21px;
  color: var(--color-primary);
}

.feature-box__label {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  color: var(--color-primary);
  line-height: 2;
  white-space: nowrap;
}

.feature-box__line {
  flex: 1;
  height: 1px;
  background-color: var(--color-primary);
}

.feature-box__list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-box__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
}

.feature-box__item::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: var(--color-text);
  flex-shrink: 0;
  margin-top: 5px;
}

/* ===========================
   Curtain Section
   =========================== */
.curtain {
  max-width: 1586px;
  margin: 0 auto 80px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.curtain__image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.curtain__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.curtain__subtitle {
  font-family: var(--font-mincho);
  font-size: 40px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

.curtain__subtitle-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.curtain__subtitle-sub {
  font-family: var(--font-josefin);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

.curtain__title {
  font-family: var(--font-mincho);
  font-size: 48px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.6;
  text-align: center;
  margin-top: 0;
  margin-bottom: 24px;
}

.curtain__lead-group {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.curtain__content-group {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.curtain__lead-group .curtain__title,
.curtain__lead-group .curtain__description {
  margin: 0;
}

.curtain__description {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 2;
  margin-bottom: 40px;
}

/* 短い語をまとめて途中改行を避ける（nowrapは使わず自然な改行を優先） */
.curtain__phrase,
.faq__phrase {
  display: inline;
}

.curtain__features {
  display: flex;
  gap: 34px;
}

.curtain__features .feature-box {
  flex: 1;
}

/* ===========================
   Solution Section
   =========================== */
.solution {
  padding: 80px 0;
  background-color: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.solution__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 768px;
  margin: 0 auto;
}

.solution__title {
  font-family: var(--font-mincho);
  font-size: 48px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.6;
}

.solution__lead {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 2;
}

.solution__cards {
  max-width: 1582px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.solution-card {
  display: flex;
  gap: 76px;
  align-items: center;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.solution-card--reverse {
  flex-direction: row-reverse;
}

.solution-card__image {
  flex: 0 0 821px;
  overflow: hidden;
  border-radius: 16px;
}

.solution-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-card__content {
  flex: 1;
  max-width: 685px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.solution-card__en-title {
  font-family: var(--font-josefin);
  font-size: 48px;
  font-weight: 400;
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: 0;
}

.solution-card__jp-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 2;
  margin-top: 13px;
  margin-bottom: 0;
}

.solution-card__heading {
  font-family: var(--font-mincho);
  font-size: 36px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.6;
}

.solution-card__description {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 2;
}

/* ===========================
   Portfolio Section
   =========================== */
.portfolio {
  padding: 80px;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 61px;
}

.portfolio__header {
  max-width: 1568px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.portfolio__title {
  font-family: var(--font-mincho);
  font-size: 48px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.6;
  margin-top: 6px;
}

.portfolio__description {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 2;
  max-width: 1568px;
}

.portfolio-case {
  max-width: 1568px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.portfolio-case + .portfolio-case {
  margin-top: 61px;
}

.portfolio-case__slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  background: #eee;
}

.portfolio-case__slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-case__info {
  display: flex;
  gap: 66px;
  align-items: flex-start;
}

.portfolio-case__meta {
  flex: 0 0 542px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.portfolio-case__label {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--color-gray);
  line-height: 1.37;
}

.portfolio-case__title {
  font-family: var(--font-mincho);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-black);
  line-height: 1.6;
}

.portfolio-case__text {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 2;
  max-width: 960px;
}

/* ===========================
   FAQ Section
   =========================== */
.faq {
  padding: 80px;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 78px;
}

.faq__header {
  max-width: 1401px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.faq__big-title {
  font-family: var(--font-cormorant);
  font-size: 121px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.21;
  opacity: 0.49;
}

.faq__subtitle {
  font-family: var(--font-mincho);
  font-size: 40px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.6;
}

.faq__lead {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 2;
  max-width: 1401px;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.faq__list {
  max-width: 1088px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.faq__item {
  border-bottom: 1px solid var(--color-divider);
  padding: 20px 0;
}

.faq__question {
  display: flex;
  align-items: center;
  gap: 32px;
  cursor: pointer;
  width: 100%;
}

.faq__q-mark {
  font-family: var(--font-cormorant);
  font-size: 48px;
  font-weight: 400;
  color: var(--color-text);
  opacity: 0.49;
  line-height: 1.21;
  flex-shrink: 0;
}

.faq__q-text {
  font-family: var(--font-zen);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 2;
  flex: 1;
}

.faq__toggle {
  flex-shrink: 0;
  width: 12px;
  height: 7px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__toggle path {
  stroke: var(--color-text);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  display: flex;
  gap: 37px;
  align-items: flex-start;
  padding: 0 0 0 0;
  margin-left: 0;
  border-left: none;
}

.faq__answer::before {
  content: "";
  display: block;
  width: 1px;
  min-height: 60px;
  align-self: stretch;
  background-color: var(--color-primary-light);
  flex-shrink: 0;
  margin-left: 80px;
}

.faq__answer p {
  font-family: var(--font-zen);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 2;
  padding: 12px 0 8px;
  max-width: 1019px;
}

.faq__item.is-open .faq__answer {
  opacity: 1;
}

.faq__item.is-open .faq__toggle {
  transform: rotate(180deg);
}

/* ===========================
   CTA Section
   =========================== */
.cta {
  max-width: 1568px;
  margin: 0 auto;
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 71px;
}

.cta__title {
  font-family: var(--font-mincho);
  font-size: 64px;
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1.6;
  text-align: center;
}

.cta__description {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 2;
  max-width: min(1477px, 100%);
  margin: 0 auto;
  text-align: center;
  margin-top: -15px;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  word-break: normal;
}

.cta__button-desc {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  word-break: normal;
  display: block;
  max-width: 100%;
}

.cta__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 47px;
  width: 100%;
  max-width: 100%;
}

.cta__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary-light);
  color: var(--color-white);
  border-radius: 16px;
  text-align: center;
  width: 468px;
  max-width: 100%;
  min-width: 0;
  min-height: 271px;
  gap: 24px;
  box-sizing: border-box;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.cta__button:hover {
  background-color: #178a9e;
  transform: translateY(-2px);
  opacity: 1;
}

.cta__button-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta__button-icon .material-symbols-outlined {
  font-size: 48px;
  color: var(--color-white);
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 48;
}

.cta__button-icon img {
  height: 70px;
  width: auto;
  display: block;
}

.cta__button-title {
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

/* ===========================
   Access Section
   =========================== */
.access {
  max-width: 1568px;
  margin: 0 auto;
  padding: 0 80px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.access__big-title {
  font-family: var(--font-cormorant);
  font-size: 121px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.21;
  opacity: 0.49;
  text-align: center;
}

.access__info {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 2;
  text-align: center;
  max-width: 1477px;
}

.access__info p {
  margin-bottom: 4px;
}

.access__map {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.access__map img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.access__map iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 80px;
}

.footer__inner {
  max-width: 1568px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 21px;
  max-width: 457px;
}

.footer__brand-name {
  font-family: var(--font-josefin);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.footer__info {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 2;
}

.footer__info p {
  margin-bottom: 2px;
}

.footer__copyright {
  font-family: var(--font-josefin);
  font-size: 14px;
  line-height: 1;
  margin-top: 16px;
}

.footer__nav {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
}

.footer__nav-main {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer__nav-main a {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.448;
}

.footer__nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border: none;
  color: var(--color-primary);
  background: var(--color-white);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.448;
  border-radius: 100px;
}

.footer__nav-sub {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer__nav-sub a {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-white);
  line-height: 2;
}

/* ===========================
   Scroll Reveal Animation
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Splide Overrides
   =========================== */
.brand-card__gallery .splide__arrow {
  background: var(--color-primary);
  opacity: 0.9;
  width: 36px;
  height: 36px;
}

.brand-card__gallery .splide__arrow:hover {
  opacity: 1;
}

.brand-card__gallery .splide__arrow svg {
  fill: var(--color-white);
  width: 16px;
  height: 16px;
}

.brand-card__gallery .splide__pagination__page {
  background: var(--color-primary-light);
}

.brand-card__gallery .splide__pagination__page.is-active {
  background: var(--color-primary);
}

/* ===========================
   Responsive - Desktop narrow
   =========================== */
@media (max-width: 1280px) {
  .concept__inner {
    grid-template-columns: 1fr;
    width: min(900px, calc(100% - 80px));
  }

  .concept__image {
    max-width: 731px;
    margin: 0 auto;
  }

  .concept__text {
    max-width: 100%;
  }
}

/* ===========================
   Responsive - Tablet (768px - 1024px)
   =========================== */
@media (max-width: 1024px) {
  .brands {
    min-height: 360px;
  }

  .concept__inner {
    grid-template-columns: 1fr;
    width: calc(100% - 80px);
    padding: 0;
  }

  .concept__image {
    width: 100%;
    max-width: none;
  }

  .concept__text {
    max-width: 100%;
  }

  .concept__title {
    font-size: 48px;
    max-width: 100%;
  }

  .brand-cards {
    padding: 40px;
  }

  .brand-card__body,
  .brand-card__body--reverse {
    flex-direction: column;
  }

  .brand-card__gallery {
    flex: none;
    width: 100%;
  }

  .brand-card__gallery--mosaic {
    flex-direction: column;
  }

  .brand-card__gallery-left {
    flex: none;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-card__gallery-top,
  .brand-card__gallery-bottom,
  .brand-card__gallery-main {
    flex: none;
    width: 100%;
    height: auto;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    max-height: none;
    transform: none;
    aspect-ratio: 16 / 10;
  }

  /* PC用の width:auto / max-width:none が残るとタブレットで画像が横にはみ出す */
  .brand-card__gallery--mosaic img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .brand-card__info {
    max-width: 100%;
  }

  .curtain {
    padding: 0 40px;
  }

  .curtain__features {
    flex-direction: column;
  }

  .solution__cards {
    padding: 0 40px;
  }

  .solution-card,
  .solution-card--reverse {
    flex-direction: column;
  }

  .solution-card__image {
    flex: none;
    width: 100%;
  }

  .solution-card__content {
    max-width: 100%;
  }

  .portfolio {
    padding: 60px 40px;
  }

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

  .portfolio-case__meta {
    flex: none;
  }

  .faq {
    padding: 60px 40px;
  }

  .cta {
    padding: 60px 40px;
  }

  .cta__buttons {
    flex-direction: column;
  }

  .cta__button {
    width: 100%;
    max-width: 480px;
  }

  .cta__title {
    font-size: 48px;
  }

  .access {
    padding: 0 40px 60px;
  }

  .site-footer {
    padding: 60px 40px;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__nav {
    text-align: left;
    align-items: flex-start;
  }

  .footer__nav-main,
  .footer__nav-sub {
    justify-content: flex-start;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__subtitle {
    font-size: 20px;
  }

  .hero__content {
    padding: 0 40px;
  }

  .brands__title {
    font-size: 48px;
  }

  .solution__lead {
    font-size: 24px;
  }

  .faq__big-title {
    font-size: 80px;
  }

  .access__big-title {
    font-size: 80px;
  }
}

/* ===========================
   Responsive - Smartphone (< 768px)
   =========================== */
@media (max-width: 767px) {
  .brands {
    aspect-ratio: auto;
    min-height: 320px;
    padding: 48px 0;
  }

  .site-header {
    padding: 16px 20px;
  }

  .site-logo {
    font-size: 24px;
  }

  .menu-toggle {
    display: block;
  }

  /* ドロワー全体でリンクとCTAの間隔を確保し、アニメーション可能にする（display:noneは使わない） */
  .header-nav__drawer {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 28px 20px 32px;
    background: rgba(30, 30, 30, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* フェードイン主体（ごく弱い下方向への移動のみ） */
    transform: translateY(-10px);
    transition:
      opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.42s;
  }

  .header-nav.is-open .header-nav__drawer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }

  .header-nav__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
  }

  .header-nav__cta {
    display: inline-flex;
    align-self: stretch;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
    box-sizing: border-box;
  }

  .hero {
    height: 100svh;
    min-height: 560px;
    max-height: none;
  }

  .hero__content {
    margin: 0;
    padding: 96px 24px 56px;
    min-height: 100%;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
  }

  .hero__title {
    text-align: left;
    font-size: clamp(30px, 8.5vw, 36px);
    line-height: 1.38;
    max-width: 11em;
  }

  .hero__subtitle {
    text-align: left;
    font-size: clamp(17px, 4.2vw, 19px);
    line-height: 1.9;
    margin-top: 20px;
    max-width: 22em;
  }

  .hero__cta {
    font-size: 16px;
    margin-top: 28px;
  }

  .concept__inner {
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
    padding: 0;
    gap: 32px;
  }

  .concept__title {
    font-size: 32px;
  }

  .concept__description {
    font-size: 16px;
  }

  .brands__content {
    width: calc(100% - 40px);
    padding: 0;
  }

  .brands__title {
    font-size: 28px;
  }

  .brands__description {
    font-size: 16px;
  }

  .brand-cards {
    padding: 40px 20px;
  }

  .brand-card {
    margin-bottom: 60px;
  }

  .brand-card__logo img {
    width: 50vw;
    max-height: none;
    height: auto;
  }

  .brand-card__gallery {
    width: 100%;
  }

  .brand-card__gallery--mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .brand-card__gallery-left {
    display: contents;
    width: auto;
  }

  .brand-card__gallery--mosaic img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .brand-card__gallery-top,
  .brand-card__gallery-bottom,
  .brand-card__gallery-main {
    min-width: 0;
    min-height: 0;
    max-height: none;
    transform: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .brand-card__gallery-main {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .brand-card__title {
    font-size: 28px;
  }

  .brand-card__description {
    font-size: 16px;
  }

  .curtain {
    padding: 0 20px;
    gap: 24px;
  }

  .curtain__subtitle-group {
    gap: 6px;
  }

  .curtain__subtitle {
    font-size: clamp(20px, 6.2vw, 24px);
    line-height: 1.35;
    max-width: min(14em, 100%);
    margin: 0 auto;
  }

  .curtain__subtitle-sub {
    font-size: 14px;
    line-height: 1.5;
  }

  .curtain__title {
    font-size: clamp(18px, 5.4vw, 24px);
    line-height: 1.55;
    max-width: 100%;
    margin: 0 auto;
  }

  .curtain__description {
    font-size: 16px;
    line-height: 1.9;
  }

  .curtain__lead-group {
    gap: 20px;
  }

  .curtain__content-group {
    gap: 24px;
  }

  .curtain__features {
    flex-direction: column;
  }

  .solution__header {
    padding: 0 20px;
  }

  .solution__title {
    font-size: 32px;
  }

  .solution__lead {
    font-size: 20px;
  }

  .solution__cards {
    padding: 0 20px;
  }

  .solution-card__en-title {
    font-size: 32px;
  }

  .solution-card__heading {
    font-size: 24px;
  }

  .solution-card__description {
    font-size: 16px;
  }

  .portfolio {
    padding: 40px 20px;
  }

  .portfolio__title {
    font-size: 28px;
  }

  .portfolio__description {
    font-size: 16px;
  }

  .portfolio-case__label {
    font-size: 28px;
  }

  .portfolio-case__title {
    font-size: 24px;
  }

  .portfolio-case__text {
    font-size: 16px;
  }

  .faq {
    padding: 40px 20px;
    gap: 40px;
  }

  /* 長文は左寄せのほうが読みやすい（英字見出しのみ中央のまま） */
  .faq__header {
    align-items: stretch;
  }

  .faq__big-title {
    font-size: 48px;
    align-self: center;
    text-align: center;
    width: 100%;
  }

  .faq__subtitle {
    font-size: clamp(18px, 5.2vw, 24px);
    line-height: 1.55;
    max-width: 100%;
    text-align: left;
  }

  .faq__lead {
    font-size: 16px;
    line-height: 1.85;
    max-width: 100%;
    text-align: left;
  }

  .faq__q-mark {
    font-size: 32px;
  }

  .faq__q-text {
    font-size: 16px;
  }

  .faq__answer::before {
    margin-left: 32px;
  }

  .faq__answer p {
    font-size: 16px;
  }

  .cta {
    padding: 40px 20px;
    gap: 40px;
    overflow-x: clip;
  }

  .cta__title {
    font-size: 28px;
  }

  .cta__description {
    font-size: 16px;
    width: 100%;
    max-width: 100%;
  }

  .cta__buttons {
    width: 100%;
  }

  .cta__button {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 24px 20px;
  }

  .cta__button-title {
    font-size: 20px;
  }

  .cta__button-desc {
    font-size: 14px;
    line-height: 1.7;
  }

  .access {
    padding: 0 20px 40px;
  }

  .access__big-title {
    font-size: 48px;
  }

  .access__info {
    font-size: 16px;
  }

  .site-footer {
    padding: 40px 20px;
  }

  .footer__brand-name {
    font-size: 28px;
  }

  .footer__nav-main {
    gap: 16px;
  }

  .footer__nav-sub {
    gap: 12px;
  }

  .brand-card__gallery .splide__arrow {
    width: 28px;
    height: 28px;
  }

  .brand-card__gallery .splide__arrow svg {
    width: 12px;
    height: 12px;
  }

  .feature-box__label {
    font-size: 18px;
  }
}
