/* ============================================
   M.MAX — Doctor-Supervised Quality
   ============================================ */

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

:root {
  --color-primary: #0d1b2a;
  --color-primary-light: #1b2d45;
  --color-text: #2c2c2c;
  --color-text-light: #5a5a5a;
  --color-text-lighter: #999999;
  --color-bg: #ffffff;
  --color-bg-gray: #f5f7f6;
  --color-bg-dark: #0d1b2a;
  --color-border: #e0e0e0;
  --color-border-light: #eef0ef;
  --color-accent: #2a7d5f;
  --color-accent-light: #3d9b78;

  --font-ja: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  --font-ja-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;

  --header-height: 80px;
  --container-width: 1200px;
  --container-padding: 40px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-base: 0.3s var(--ease-out-quart);
  --transition-slow: 0.6s var(--ease-out-expo);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* モバイルで fixed / transform 由来の横方向オーバーフローを抑止 */
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-ja-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.sp-hide {
  display: inline;
}

/* --- Page Transition --- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--color-bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

.page-transition.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --- Loading Screen --- */
.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: inset(0 0 0 0);
}

.loading.is-hidden .loading__spinner {
  animation: loadingSpinnerExit 0.4s var(--ease-out-quart) forwards;
}

.loading.is-hidden .loading__inner {
  animation: loadingLogoExit 0.6s var(--ease-out-expo) 0.2s forwards;
}

.loading.is-hidden {
  animation: loadingOverlayExit 0.8s var(--ease-out-expo) 0.6s forwards;
}

.loading__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: loadingFadeIn 0.8s ease forwards;
}

.loading__logo-sub {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-text-lighter);
  text-transform: uppercase;
}

.loading__logo-main {
  font-family: var(--font-en);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  line-height: 1.2;
}

.loading__logo-en {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--color-text-lighter);
  margin-top: 4px;
}

.loading__spinner {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: loadingSpin 1s linear infinite;
  margin-top: 24px;
}

@keyframes loadingSpin {
  to { transform: rotate(360deg); }
}

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

@keyframes loadingSpinnerExit {
  to { opacity: 0; transform: scale(0.8) rotate(360deg); }
}

@keyframes loadingLogoExit {
  to { opacity: 0; transform: translateY(-12px); }
}

@keyframes loadingOverlayExit {
  to { clip-path: inset(0 0 100% 0); }
}

/* --- Scroll Animations --- */
.scroll-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.scroll-fade--delay {
  transition-delay: 0.15s;
}

.scroll-fade--delay-1 {
  transition-delay: 0.1s;
}

.scroll-fade--delay-2 {
  transition-delay: 0.2s;
}

.scroll-fade--delay-3 {
  transition-delay: 0.3s;
}

/* Directional variants */
.scroll-fade--from-left {
  transform: translateX(-60px);
}

.scroll-fade--from-left.is-visible {
  transform: translateX(0);
}

.scroll-fade--from-right {
  transform: translateX(60px);
}

.scroll-fade--from-right.is-visible {
  transform: translateX(0);
}

.scroll-fade--scale {
  transform: scale(0.95);
}

.scroll-fade--scale.is-visible {
  transform: scale(1);
}

/* --- Text Reveal Animation --- */
.text-reveal {
  overflow: hidden;
}

.text-reveal__line {
  display: block;
  clip-path: inset(0 0 100% 0);
  transform: translateY(20px);
  transition: clip-path 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.text-reveal.is-visible .text-reveal__line {
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
}

.text-reveal.is-visible .text-reveal__line:nth-child(1) { transition-delay: 0s; }
.text-reveal.is-visible .text-reveal__line:nth-child(2) { transition-delay: 0.12s; }
.text-reveal.is-visible .text-reveal__line:nth-child(3) { transition-delay: 0.24s; }
.text-reveal.is-visible .text-reveal__line:nth-child(4) { transition-delay: 0.36s; }

/* --- Image Reveal Animation --- */
.image-reveal {
  overflow: hidden;
}

.image-reveal img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.image-reveal.is-visible img {
  clip-path: inset(0 0 0 0);
}

.image-reveal--left img {
  clip-path: inset(0 0 0 100%);
}

.image-reveal--left.is-visible img {
  clip-path: inset(0 0 0 0);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}

.header.is-scrolled {
  height: 64px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header.is-hero {
  background: transparent;
  box-shadow: none;
}

.header.is-hero .header__logo a,
.header.is-hero .header__nav-list > .header__nav-item > a {
  color: #fff;
}

.header.is-hero .header__hamburger span {
  background: #fff;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.header__logo a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--color-primary);
  line-height: 1.3;
}

.header__logo-sub {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.header__logo-main {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.header__logo-en {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-top: 1px;
  opacity: 0.6;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.header__nav-item > a {
  display: block;
  padding: 8px 20px;
  font-family: var(--font-ja-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text);
  position: relative;
  transition: color var(--transition-base);
}

.header__nav-item > a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
}

.header__nav-item > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Dropdown */
.header__nav-item.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 16px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.header__nav-item.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown__list li a {
  display: block;
  padding: 8px 28px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text);
  transition: color var(--transition-base), background var(--transition-base);
}

.dropdown__list li a:hover {
  color: var(--color-accent);
  background: rgba(0, 0, 0, 0.02);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero__slideshow {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  clip-path: inset(0 0 0 100%);
  transform: scale(1.05);
  transition: clip-path 1.4s var(--ease-out-expo), transform 7s ease-out;
  z-index: 1;
}

.hero__slide.is-active {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
  z-index: 2;
}

.hero__slide.is-leaving {
  clip-path: inset(0 0 0 0);
  z-index: 1;
}

.hero__slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 27, 42, 0.25) 0%,
    rgba(13, 27, 42, 0.05) 40%,
    rgba(13, 27, 42, 0.35) 100%
  );
}

/* Hero Content */
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 var(--container-padding);
}

.hero__sub {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  opacity: 0.7;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-ja);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero__desc {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.25em;
  opacity: 0.7;
}

/* Hero Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.hero__scroll-text {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
  writing-mode: vertical-rl;
}

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

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  animation: scrollLine 2s ease-in-out infinite;
}

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

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header__en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-header__ja {
  font-family: var(--font-ja);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-primary);
}

/* --- Philosophy Section --- */
.philosophy {
  padding: 160px 0;
  background: var(--color-bg);
}

.philosophy__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.philosophy__lead {
  font-family: var(--font-ja);
  font-size: 30px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 56px;
  text-align: center;
}

.philosophy__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.philosophy__text {
  font-family: var(--font-ja-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 2.2;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

.philosophy__image {
  overflow: hidden;
  border-radius: 2px;
}

.philosophy__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.philosophy__image:hover img {
  transform: scale(1.03);
}

/* --- Business Section --- */
.business {
  padding: 120px 0 160px;
  background: var(--color-bg-gray);
}

.business__desc {
  text-align: center;
  font-size: 15px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  max-width: 600px;
  margin: -32px auto 60px;
}

.business__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.business__card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}

.business__card-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-out-expo);
}

.business__card:hover .business__card-image {
  transform: scale(1.05);
}

.business__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 27, 42, 0.1) 0%,
    rgba(13, 27, 42, 0.6) 100%
  );
}

.business__card-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  color: #fff;
  z-index: 1;
}

.business__card-title {
  font-family: var(--font-ja);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.business__card-concept {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 24px;
}

.business__card-more {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.business__card-more::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
}

.business__card:hover .business__card-more::after {
  transform: scaleX(1);
}

/* --- Identity Interstitial --- */
.identity {
  padding: 140px 0;
  background: var(--color-bg);
  text-align: center;
}

.identity__sub {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--color-text-lighter);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.identity__name {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.identity__tagline {
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
}

/* --- Parallax Banner --- */
.parallax-banner {
  position: relative;
  padding: 200px 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.parallax-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(13, 27, 42, 0.6);
}

.parallax-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.parallax-banner__en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  opacity: 0.8;
}

.parallax-banner__title {
  font-family: var(--font-ja);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}

.parallax-banner__text {
  font-size: 15px;
  font-weight: 300;
  line-height: 2.2;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* --- Page Hero (subpages) --- */
.page-hero {
  position: relative;
  height: 40vh;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.55);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.page-hero__en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
  opacity: 0.8;
}

.page-hero__title {
  font-family: var(--font-ja);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

/* --- Program Section (subpage) --- */
.program-section {
  padding: 120px 0;
}

.program-section:nth-child(even) {
  background: var(--color-bg-gray);
}

.program-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.program-section--reverse .program-section__inner {
  direction: rtl;
}

.program-section--reverse .program-section__inner > * {
  direction: ltr;
}

.program-section__image {
  overflow: hidden;
  border-radius: 2px;
}

.program-section__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.program-section__image:hover img {
  transform: scale(1.03);
}

.program-section__en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.program-section__title {
  font-family: var(--font-ja);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.program-section__concept {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.program-section__text {
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.program-section__features {
  list-style: none;
  display: grid;
  gap: 16px;
}

.program-section__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.03em;
}

.program-section__feature-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--color-accent);
}

/* --- About Section --- */
.about-section {
  padding: 140px 0;
  background: var(--color-bg);
}

.about-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.about-section__en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.about-section__title {
  font-family: var(--font-ja);
  font-size: 28px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 40px;
}

.about-section__text {
  font-size: 15px;
  font-weight: 300;
  line-height: 2.2;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

.about-section__image {
  overflow: hidden;
  border-radius: 2px;
}

.about-section__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.about-section__image:hover img {
  transform: scale(1.03);
}

/* --- About Message --- */
.about-message {
  position: relative;
  padding: 180px 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.about-message__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(13, 27, 42, 0.7);
}

.about-message__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.about-message__en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  opacity: 0.8;
}

.about-message__title {
  font-family: var(--font-ja);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 40px;
}

.about-message__text {
  font-size: 15px;
  font-weight: 300;
  line-height: 2.4;
  letter-spacing: 0.05em;
  opacity: 0.9;
  text-align: left;
}

.about-message__name {
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-top: 40px;
  opacity: 0.8;
}

/* --- About Company --- */
.about-company {
  padding: 120px 0 160px;
  background: var(--color-bg-gray);
}

.company-table {
  max-width: 800px;
  margin: 0 auto;
}

.company-table__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.company-table__row:first-child {
  border-top: 1px solid var(--color-border-light);
}

.company-table__row dt {
  font-family: var(--font-ja-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.company-table__row dd {
  min-width: 0;
  overflow-wrap: break-word;
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

/* --- Button More --- */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ja-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  padding: 10px 24px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--color-primary) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right;
  transition: gap var(--transition-base), background-position 0.5s var(--ease-out-expo), color 0.5s var(--ease-out-expo);
}

.btn-more:hover {
  gap: 18px;
  background-position: left;
  color: #fff;
}

.btn-more__arrow {
  display: flex;
  align-items: center;
  transition: transform var(--transition-base);
}

.btn-more:hover .btn-more__arrow {
  transform: translateX(4px);
}

.btn-more--white {
  color: #fff;
}

/* --- News Section --- */
.news {
  padding: 120px 0 160px;
  background: var(--color-bg);
}

.news__list {
  max-width: 900px;
  margin: 0 auto 48px;
}

.news__item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: opacity var(--transition-base);
}

.news__item:first-child {
  border-top: 1px solid var(--color-border-light);
}

.news__item:hover {
  opacity: 0.7;
}

.news__date {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text-lighter);
  white-space: nowrap;
  flex-shrink: 0;
}

.news__category {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: rgba(42, 125, 95, 0.08);
  padding: 3px 12px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.news__title {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.7;
  color: var(--color-text);
}

.news__more {
  text-align: center;
}

/* --- News Article (individual pages) --- */
.news-article {
  padding: 80px 0 120px;
}

.news-article .container {
  max-width: 800px;
}

.news-article__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.news-article__date {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text-lighter);
}

.news-article__category {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: rgba(42, 125, 95, 0.08);
  padding: 3px 12px;
  border-radius: 2px;
}

.news-article__body {
  font-size: 15px;
  font-weight: 300;
  line-height: 2.2;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

.news-article__body p {
  margin-bottom: 1.8em;
}

.news-article__body p:last-child {
  margin-bottom: 0;
}

.news-article__back {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border-light);
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px;
}

.footer__simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
}

.footer__logo-sub {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.footer__logo-main {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
}

.footer__logo-en {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

.footer__copyright {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background 0.3s ease;
  z-index: 900;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-light);
}

.back-to-top svg {
  transition: transform 0.3s var(--ease-out-quart);
}

.back-to-top:hover svg {
  transform: translateY(-3px);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --container-padding: 32px;
  }

  .business__grid {
    gap: 24px;
  }

  .philosophy__body {
    gap: 40px;
  }

  .program-section__inner {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 24px;
    --header-height: 64px;
  }

  .sp-hide {
    display: none;
  }

  .scroll-fade--from-left {
    transform: translateX(-24px);
  }

  .scroll-fade--from-right {
    transform: translateX(24px);
  }

  /* Header Mobile — right: -100% だとビューポート外の描画域が広がり横スクロールの原因になるため transform で隠す */
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 40px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out-expo);
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .header__nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .header__nav-item > a {
    padding: 16px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--color-border-light);
    width: 100%;
    color: var(--color-text) !important;
  }

  .header__nav-item > a::after {
    display: none;
  }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0 0 8px 16px;
    pointer-events: auto;
    display: none;
  }

  .header__nav-item.has-dropdown.is-open .dropdown {
    display: block;
  }

  .dropdown__list li a {
    padding: 8px 0;
    font-size: 13px;
    color: var(--color-text-light);
  }

  .header__hamburger {
    display: flex;
    z-index: 1001;
  }

  .header__hamburger.is-active span {
    background: var(--color-text) !important;
  }

  /* Hero Mobile */
  .hero__scroll {
    display: none;
  }

  /* Philosophy Mobile */
  .philosophy {
    padding: 80px 0;
  }

  .philosophy__lead {
    font-size: 22px;
  }

  .philosophy__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Business Mobile */
  .business {
    padding: 80px 0;
  }

  .business__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .business__card {
    aspect-ratio: 16 / 9;
  }

  .business__card-content {
    bottom: 24px;
    left: 24px;
    right: 24px;
  }

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

  .business__desc {
    margin-top: -16px;
  }

  /* Identity Mobile */
  .identity {
    padding: 80px 0;
  }

  .identity__name {
    font-size: 28px;
  }

  .identity__tagline {
    font-size: 15px;
  }

  /* Parallax Banner Mobile */
  .parallax-banner {
    padding: 100px 0;
    background-attachment: scroll;
  }

  .parallax-banner__title {
    font-size: 26px;
  }

  /* Page Hero Mobile */
  .page-hero {
    height: 30vh;
    min-height: 240px;
  }

  .page-hero__title {
    font-size: 24px;
  }

  /* About Section Mobile */
  .about-section {
    padding: 80px 0;
  }

  .about-section__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-section__title {
    font-size: 22px;
  }

  .about-message {
    padding: 100px 0;
    background-attachment: scroll;
  }

  .about-message__title {
    font-size: 26px;
  }

  .about-company {
    padding: 80px 0;
  }

  .company-table__row {
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 20px 0;
  }

  /* Program Section Mobile */
  .program-section {
    padding: 80px 0;
  }

  .program-section__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .program-section--reverse .program-section__inner {
    direction: ltr;
  }

  .program-section__title {
    font-size: 22px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header__ja {
    font-size: 22px;
  }

  /* News Article Mobile */
  .news-article {
    padding: 60px 0 80px;
  }

  .news-article__header {
    margin-bottom: 32px;
  }

  .news-article__back {
    margin-top: 48px;
    padding-top: 32px;
  }

  /* News Mobile */
  .news {
    padding: 80px 0;
  }

  .news__item {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .news__title {
    width: 100%;
    flex-basis: 100%;
  }

  /* Footer Mobile */
  .footer {
    padding: 60px 0 32px;
  }

}

@media (max-width: 480px) {
  .philosophy__lead {
    font-size: 20px;
  }

  .about-section__title {
    font-size: 20px;
  }

  .about-message__title {
    font-size: 22px;
  }

  .company-table__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .identity__name {
    font-size: 24px;
  }

  .parallax-banner__title {
    font-size: 22px;
  }
}

/* =============================================
   Service Pages - CTA Button & Ingredient Grid
   ============================================= */

/* --- CTA Button (primary, for external links) --- */
.program-section__cta {
  margin-top: 32px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ja-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--color-accent);
  padding: 14px 32px;
  border-radius: 2px;
  transition: background 0.4s var(--ease-out-expo), gap var(--transition-base);
}

.btn-cta:hover {
  background: var(--color-accent-light);
  gap: 18px;
}

.btn-cta__arrow {
  display: flex;
  align-items: center;
  transition: transform var(--transition-base);
}

.btn-cta:hover .btn-cta__arrow {
  transform: translateX(4px);
}

/* --- Ingredient Grid (LABMU+ detail page) --- */
.ingredient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.ingredient-card {
  padding: 24px;
  background: var(--color-bg-gray);
  border-radius: 2px;
  border-left: 3px solid var(--color-accent);
}

.ingredient-card__name {
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.ingredient-card__desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .ingredient-grid {
    grid-template-columns: 1fr;
  }

  .ingredient-card {
    padding: 20px;
  }
}
