:root {
  --bg: #f6f4ef;
  --bg-soft: #fbfaf7;
  --bg-strong: #161616;
  --surface: var(--brand-color-white, #ffffff);
  --surface-soft: #f1eee7;
  --text: var(--brand-color-text, #141414);
  --text-soft: var(--brand-color-text-soft, rgba(20, 20, 20, 0.7));
  --text-faint: var(--brand-color-text-faint, rgba(20, 20, 20, 0.5));
  --line: var(--brand-color-line, rgba(20, 20, 20, 0.08));
  --line-strong: var(--brand-color-line-strong, rgba(20, 20, 20, 0.14));
  --container: var(--brand-container, 1180px);
  --radius-lg: var(--brand-radius-lg, 28px);
  --radius-md: 22px;
  --radius-sm: 16px;
  --shadow-lg: var(--brand-shadow-lg, 0 28px 60px rgba(0, 0, 0, 0.12));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(195, 185, 165, 0.22), transparent 32%),
    linear-gradient(180deg, #f7f5ef 0%, #f1ede6 100%);
  color: var(--text);
  font-family: var(--brand-font-sans, "Inter", "Noto Sans JP", sans-serif);
  line-height: var(--brand-body-line, 1.7);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.05em;
}

h1 {
  font-size: var(--brand-h1-size, clamp(46px, 8vw, 104px));
  line-height: var(--brand-h1-line, 0.9);
  font-weight: var(--brand-h1-weight, 900);
}

h2 {
  font-size: var(--brand-h2-size, clamp(34px, 4vw, 68px));
  line-height: var(--brand-h2-line, 0.98);
  font-weight: var(--brand-h2-weight, 800);
}

h3 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  font-weight: 800;
}

p {
  font-size: var(--brand-body-size, 16px);
  color: var(--text-soft);
}

.eyebrow {
  margin: 0 0 16px;
  font-size: var(--brand-eyebrow-size, 11px);
  font-weight: var(--brand-eyebrow-weight, 700);
  letter-spacing: var(--brand-eyebrow-spacing, 0.22em);
  text-transform: uppercase;
  color: var(--text-faint);
}

.page-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height, 74px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.44)),
    url("/img/ChatGPT\ Image\ 2026年3月19日\ 13_53_09.png") center 28% / cover no-repeat;
}

.page-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.35;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  padding: 0 0 72px;
  color: #ffffff;
}

.page-hero__inner .eyebrow,
.page-hero__title,
.page-hero__lead {
  color: #ffffff;
}

.page-hero__title {
  margin-bottom: 0;
  max-width: 7ch;
}

.page-hero__lead {
  margin-top: 24px;
  max-width: 32em;
  font-size: 18px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.86);
}

.philo-block {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.philo-block--soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12));
}

.philo-block--strong {
  background: var(--bg-strong);
}

.philo-block--strong .eyebrow,
.philo-block--strong h2,
.philo-block--strong p {
  color: #ffffff;
}

.philo-block--strong p {
  color: rgba(255, 255, 255, 0.8);
}

.philo-block__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.philo-block__grid--reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.philo-block__grid--reverse .philo-block__content {
  order: 2;
}

.philo-block__grid--reverse .philo-block__visual {
  order: 1;
}

.philo-block__content h2 {
  margin-bottom: 26px;
  max-width: 8ch;
}

.philo-block__content p {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.95;
}

.philo-block__content p:last-child {
  margin-bottom: 0;
}

.philo-block__visual {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  box-shadow: var(--shadow-lg);
}

.philo-block__visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.16));
  pointer-events: none;
}

.philo-block__visual img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.series-section {
  padding: 124px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.72));
}

.series-section h2 {
  margin-bottom: 40px;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.series-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.series-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ece7dc;
}

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

.series-card__body {
  padding: 28px 28px 30px;
}

.series-card__body h3 {
  margin-bottom: 18px;
}

.series-card__body p {
  margin-bottom: 14px;
  line-height: 1.9;
}

.series-card__body p:last-child {
  margin-bottom: 0;
}

.final-section {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  color: #ffffff;
}

.final-section__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58)),
    url("/img/philosophy-final.jpg") center / cover no-repeat;
}

.final-section__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.28;
}

.final-section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.38));
}

.final-section__inner {
  position: relative;
  z-index: 1;
}

.final-section .eyebrow,
.final-section h2,
.final-section p {
  color: #ffffff;
}

.final-section h2 {
  margin-bottom: 28px;
  max-width: 8ch;
}

.final-section p {
  max-width: 34em;
  font-size: 18px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.82);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal--delay-1 {
  transition-delay: 0.08s;
}

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

@media (max-width: 980px) {
  .philo-block__grid,
  .philo-block__grid--reverse,
  .series-grid {
    grid-template-columns: 1fr;
  }

  .philo-block__grid--reverse .philo-block__content,
  .philo-block__grid--reverse .philo-block__visual {
    order: initial;
  }

  .philo-block__visual,
  .philo-block__visual img {
    min-height: 420px;
  }
}

@media (max-width: 920px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .page-hero {
    min-height: 72vh;
  }

  .page-hero__inner {
    padding-bottom: 44px;
  }

  .page-hero__lead,
  .philo-block__content p,
  .series-card__body p,
  .final-section p {
    font-size: 16px;
  }

  .philo-block,
  .series-section,
  .final-section {
    padding: 84px 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 22px;
  }

  .reveal,
  .reveal--delay-1 {
    transition-delay: 0s;
  }
}

@media (max-width: 640px) {
  .page-hero__bg {
    background-position: center 34%;
  }

  .final-section__bg {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58)),
      url("/img/philosophy-final-r.jpg") center / cover no-repeat;
  }

  .philo-block__visual,
  .philo-block__visual img {
    min-height: 320px;
  }

  .series-card__body {
    padding: 22px 20px 24px;
  }
}
