/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
  /* Colors - Base */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray: #f5f5f5;
  --color-dark-gray: #1a1a1a;

  /* Fonts */
  --font-en: 'PT Serif', serif;
  --font-ja: 'BIZ UDPMincho', serif;

  /* Theme Variables (Dynamic) */
  --theme-bg: var(--color-white);
  --theme-text: var(--color-black);

  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 2.5rem;
  --spacing-lg: 5rem;
  --spacing-xl: 10rem;
}

/*
  TOP Page 6 Color Themes 
*/
body.page-top {
  --theme-bg: #0000FF;
  --theme-text: #FFFFFF;
}

body.theme-1 {
  --theme-bg: #0000FF;
  --theme-text: #FFFFFF;
}

body.theme-2 {
  --theme-bg: #00FF00;
  --theme-text: #000000;
}

body.theme-3 {
  --theme-bg: #00FFFF;
  --theme-text: #000000;
}

body.theme-4 {
  --theme-bg: #FF00FF;
  --theme-text: #FFFFFF;
}

body.theme-5 {
  --theme-bg: #FFFF00;
  --theme-text: #000000;
}

body.theme-6 {
  --theme-bg: #FF0000;
  --theme-text: #FFFFFF;
}


/* ==========================================================================
   Global Styles
   ========================================================================== */
html,
body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  /* Prevent horizontal overflow on mobile simulators */
  background-color: var(--theme-bg);
  color: var(--theme-text);
  font-family: var(--font-ja);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

/* English Text Wrapper */
.en {
  font-family: var(--font-en);
}

@media (min-width: 481px) {
  .hidden-pc {
    display: none;
  }
}

@media (max-width: 480px) {
  .hidden-sp {
    display: none;
  }
}

/* ----------------------------------------------------
   Multilingual Formatting (日英併記の共通フォーマット)
---------------------------------------------------- */
/* 英語テキストの基本色分け（グレーダウン） */
p.en,
.c-list-check.en {
  // color: #555;
}

/* 日本語等要素の直後に来る英語要素への自動余白（くっつくのを防止） */
p + p.en,
.c-text-ja + .en,
.c-text-ja + .c-text-en,
.c-list-check + .c-list-check.en,
.content-block + .content-block.en {
  margin-top: 2.5rem;
}

/* 日本語・英語テキストブロックの直後に別の要素（画像やFAQ等）が続く場合の余白 */
p + figure,
.c-text-ja + figure,
p.en + figure,
.c-text-en + figure,
.c-list-check + figure,
.c-list-check.en + figure,
p.en + .c-accordion,
.c-text-en + .c-accordion,
.c-list-check.en + .c-accordion {
  margin-top: 4rem;
}

.fw-bold {
  font-weight: 500;
}

.text-lg {
  font-size: 1.2em !important;
}


/* ==========================================================================
   Scroll Fade Animation (.js-fadein)
   ========================================================================== */
.js-fadein {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js-fadein.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   Header & Menu Overlay
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  color: var(--theme-text);
}

.header__logo {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 101;
}

.header__menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 32px;
  height: 32px;
  color: inherit;
  position: relative;
  z-index: 101;
}

.header__menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Open state for hamburger -> X */
.header__menu-btn.is-active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.header__menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn.is-active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Overlay Menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  /* Mobile browser bottom bar handling */
  background-color: var(--color-black);
  color: var(--color-white);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  overflow-y: auto;
  /* Allow scrolling if items overflow */
}

.menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.menu-overlay__nav {
  text-align: center;
  width: 100%;
  padding: 8rem 0 4rem;
  /* Top padding to avoid header overlap */
  min-height: 100%;
  /* Ensure content can fill or scroll */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-overlay__nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Layout for Menu Links */
.menu-overlay__nav li {
  margin-bottom: 2vh;
  /* Use vh for dynamic spacing to fit screens */
}

.menu-overlay__nav a {
  font-family: var(--font-en);
  font-size: min(1.8rem, 8vw);
  /* 左右に余白が生まれるよう8vw上限で縮小 */
  font-weight: 500;
  letter-spacing: 0.1em;
  display: block;
  transition: opacity 0.3s ease;
}

.menu-overlay__nav a:hover {
  opacity: 0.6;
}


/* ==========================================================================
   Typography Layout (Dynamic via JS & CSS)
   ========================================================================== */
.dynamic-typo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 4rem;
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.fonts-loaded .dynamic-typo-container {
  opacity: 1;
}

.dynamic-typo {
  font-family: var(--font-en);
  font-size: 100px;
  /* 原則として100pxを維持 */
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-align: left;
}

.typo-line {
  display: inline-block;
  white-space: nowrap;
  /* prevents any random word wrap */
}

/* Main typography mobile scaling */
@media (max-width: 1024px) {
  .dynamic-typo {
    /* 11vwが100pxを下回るタイミング（約910px以下）で初めて縮小を開始 */
    font-size: min(100px, 11.5vw);
  }
}

@media (max-width: 480px) {
  .dynamic-typo-container {
    padding: 0 1rem;
    /* スマホ時のコンテナ余白を減らしテキスト領域を確保 */
  }

  .dynamic-typo {
    font-size: 10.5vw;
    /* SEでも3行で入るように縮小割合を調整 */
  }
}


/* ==========================================================================
   Page: TOP
   ========================================================================== */
.page-top main {
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.top-footer-credit {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-en);
  font-size: min(0.8rem, 2.5vw);
  /* Changed from 3.5vw to fit SE width */
  font-weight: 600;
  white-space: nowrap;
  /* 1行に収めるための指定 */
}


/* ==========================================================================
   Common Components (Headings & Titles)
   ========================================================================== */
.page-title {
  max-width: 1180px;
  margin: 0 auto 10rem;
  padding-top: 15rem;
  padding-left: 2rem;
  padding-right: 2rem;
  text-align: center;
  font-family: var(--font-en);
  font-size: min(5rem, 15vw);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.page-about .page-title,
.page-programs .page-title {
  text-align: center;
}

/* Section Titles (H2) */
.section-title {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-about .section-title,
.page-programs .section-title {
  align-items: center;
  text-align: center;
}

.section-title__sub {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.section-title__main {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Common Layouts & Blocks (.l-grid, .img-placeholder)
   ========================================================================== */
.img-placeholder {
  width: 100%;
  max-width: 1200px;
  height: 30vh;
  min-height: 300px;
  background-color: var(--color-black);
  margin: 0 auto 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 500;
  font-family: var(--font-en);
  font-size: 2rem;
}

/* Grid System */
.l-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(var(--cols-sp, 1), 1fr);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 769px) { /* Adjust column count for desktop based on inline style */
  .l-grid {
    grid-template-columns: repeat(var(--cols, 3), 1fr);
  }
}

/* ==========================================================================
   Common UI Components (.c-card, .c-btn, etc)
   ========================================================================== */

/* Cards */
.c-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}
.c-card:hover {
  opacity: 0.8;
}
.c-card__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--color-black);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-en);
  font-weight: 500;
  overflow: hidden;
}
.c-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.c-card:hover .c-card__img-wrap img {
  transform: scale(1.05); /* Zoom effect on hover */
}
.c-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}
.c-card__date {
  font-family: var(--font-en);
  font-weight: 600;
}
.c-card__title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Category Tags */
.c-tag {
  display: inline-block;
  padding: 0.25rem 1rem;
  background-color: #f0f0f0;
  color: var(--color-black);
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
}
.c-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
  justify-content: flex-start;
}

/* Check Lists */
.c-list-check {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-align: left;
}
.c-list-check li {
  position: relative;
  padding-left: 2rem;
  font-weight: 500;
}
.c-list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 16px;
  height: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2"><polyline points="20 6 9 17 4 12"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Accordion (FAQ) */
.c-accordion {
  width: 100%;
  border-top: 1px solid #ccc;
}
.c-accordion details {
  border-bottom: 1px solid #ccc;
}
.c-accordion summary {
  padding: 2rem 4rem 2rem 0;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  list-style: none; /* remove default triangle in some browsers */
}
.c-accordion summary::-webkit-details-marker {
  display: none;
}
.c-accordion summary::after,
.c-accordion summary::before {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 14px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s ease;
  margin-top: -1px;
}
.c-accordion summary::before {
  transform: rotate(90deg);
}
.c-accordion summary::after {
  transform: rotate(0deg);
}
.c-accordion details[open] summary::before {
  transform: rotate(0deg);
}
.c-accordion__content {
  padding: 2rem;
  background-color: var(--color-gray);
  margin-bottom: 2rem;
  line-height: 2;
  font-size: 0.95rem;
}
/* FAQ内のテキストマージン調整（不要な巨大余白で箱が無駄に広がるのを防ぐ） */
.c-accordion__content .c-text-ja,
.c-accordion__content .c-text-en {
  margin-bottom: 1.5rem;
}
.c-accordion__content :last-child {
  margin-bottom: 0 !important;
}
/* FAQアイコン（A）とテキストの天地（上部）揃え用 */
.c-accordion__content > div {
  align-items: flex-start !important;
}
.c-accordion__content > div > span:first-child {
  line-height: 1 !important;
  margin-top: 0.4rem !important; /* フォントのキャップハイトと行間のズレを吸収 */
  display: block;
}

/* Buttons */
.c-btn-more {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 2px solid var(--color-black);
  padding-bottom: 4px;
  display: inline-block;
  margin-top: 2rem;
  transition: opacity 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.c-btn-more:hover {
  opacity: 0.6;
}

/* Large Contact Banner */
.c-contact-banner {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 8rem 2rem;
  text-align: center;
  max-width: 1180px;
  margin: 10rem auto 10rem;
}
.c-contact-banner__sub {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.c-contact-banner__main {
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 500;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .c-contact-banner__main {
    font-size: 3rem;
  }
}
.c-contact-banner__desc {
  font-size: 0.95rem;
  margin-bottom: 4rem;
}
.c-btn-primary {
  display: inline-block;
  background-color: var(--color-white);
  color: var(--color-black);
  padding: 1.5rem 4rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--color-white);
  transition: background-color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.c-btn-primary:hover {
  background-color: transparent;
  color: var(--color-white);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Common Section Container (.l-section)
   ========================================================================== */
.l-section {
  max-width: 1180px;
  margin: 0 auto 10rem;
  text-align: left;
  padding: 0 2rem;
}

.page-about .l-section,
.page-programs .l-section {
  max-width: 800px;
  text-align: center;
}

.c-text-ja {
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 4rem;
}

.c-text-en {
  font-size: 1rem;
  line-height: 1.8;
  // color: #555;
}

/* Content blocks */
.content-block {
  margin-bottom: 4rem;
}

.content-block p {
  line-height: 2.2;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.content-block--en p {
  // color: #555;
}

.btn-view-team {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 2px solid var(--color-black);
  padding-bottom: 4px;
  display: inline-block;
  margin-top: 2rem;
  transition: opacity 0.3s ease;
}

.btn-view-team:hover {
  opacity: 0.6;
}

/* ==========================================================================
   Project Meta (Collaborators / Member)
   ========================================================================== */
.c-project-meta {
  display: flex;
  gap: 40px;
  margin-bottom: 4rem;
  text-align: left;
}

.c-project-meta__col {
  flex: 1;
}

.c-project-meta__title {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* Collaborators DL */
.c-collaborators {
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 0.5rem;
  column-gap: 1rem;
  font-size: 0.9rem;
  line-height: 2;
}
.c-collaborators dt {
  font-weight: normal;
}
.c-collaborators dt::after {
  content: " :";
}
.c-collaborators dd {
  margin: 0;
}

/* Members UL */
.c-members {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
}
.c-member {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 150px;
}
a.c-member {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}
a.c-member:hover {
  opacity: 0.8;
}
.c-member__img {
  width: 100%;
  aspect-ratio: 3/4;
  background-color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-en);
  font-weight: 500;
}
.c-member__info {
  line-height: 1.4;
}
.c-member__name {
  font-weight: 500;
  font-family: var(--font-en);
}
.c-member__role {
  font-size: 0.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 8rem 4rem 4rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8rem;
}

/* Instagram Icon */
.footer__sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* Footer Menu */
.footer__nav {
  width: 100%;
}

.footer__nav-groups {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-group-1,
.nav-group-2,
.nav-group-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5vw;
  justify-content: flex-end;
}

.footer__nav a {
  transition: opacity 0.3s ease;
}

.footer__nav a:hover {
  opacity: 0.6;
}

.footer__bottom {
  border-top: none;
}

.footer__bottom .dynamic-typo-container {
  padding: 0;
  /* フッター自体のpaddingと二重になるのを防ぎ、左揃えを強制 */
}

.footer__credit {
  font-family: var(--font-en);
  font-size: min(0.8rem, 2.5vw);
  /* Responsive 1-line fitting, tighter for SE */
  font-weight: 600;
  margin-top: 2.5rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.fonts-loaded .footer__credit {
  opacity: 1;
}

/* ==========================================================================
   Responsive (SP)
   ========================================================================== */
@media (max-width: 1024px) {
  .header {
    padding: 1.5rem 1rem;
  }

  .dynamic-typo-container {
    padding: 0 1.5rem;
  }

  .footer {
    padding: 4rem 1.5rem 2rem;
  }

  .footer__top {
    flex-direction: column-reverse;
    margin-bottom: 4rem;
    gap: 4rem;
  }

  .footer__sns {
    margin-bottom: 0;
  }

  .footer__nav {
    max-width: 100%;
  }

  .footer__nav-groups {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
  }
  
  .nav-group-1,
  .nav-group-2,
  .nav-group-3 {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2rem;
    justify-content: flex-start;
    flex: 1;
  }
}

@media (max-width: 768px) {

  /* スマホ版: 全ページのH1を中央寄せ */
  .page-title {
    padding-top: 8rem;
    margin-bottom: 5rem;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    font-size: min(3rem, 12vw);
  }

  .l-section {
    text-align: left;
    padding: 0 1.25rem; /* 左右の余白を縮小 */
  }

  /* スマホビューでは、h1、h2以外のテキストは左寄せ */
  .content-block,
  .content-block p,
  .c-text-ja,
  .c-text-en,
  .c-list-check {
    text-align: left !important;
  }

  .l-grid {
    gap: 1.25rem; /* 記事間の余白を縮小 (20px程度に変更) */
  }

  .c-category-nav {
    gap: 0.25em;
  }

  /* ARCHIVE詳細画面等のメタ情報（Collaborators/Member）は段落ちして全幅 */
  .c-project-meta {
    flex-direction: column;
    gap: 3rem;
  }
  
  .c-collaborators {
    grid-template-columns: 1fr;
    row-gap: 0.25rem;
  }
  .c-collaborators dt::after {
    content: "";
  }
  .c-collaborators dd {
    margin-bottom: 0.75rem;
  }

  .c-card__title {
    font-size: 0.85rem;
  }

  .c-tag {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }

  .page-about .section-title,
  .page-programs .section-title,
  .img-placeholder {
    text-align: center;
    /* 意図的に中央維持 */
  }

  /* ABOUT / PROGRAMS の本文エリアはスマホ時左寄せにリセット */
  .page-about .l-section,
  .page-programs .l-section {
    text-align: left;
  }
}

/* ==========================================================================
   Swup Transition Styles
   ========================================================================== */
.transition-fade {
  transition: opacity 0.6s ease, transform 0.6s ease;
  opacity: 1;
}

html.is-animating .transition-fade {
  opacity: 0;
  transform: translateY(20px);
}

html.is-leaving .transition-fade {
  opacity: 0;
  transform: translateY(-20px);
}

/* ==========================================================================
   Form Components (.c-form)
   ========================================================================== */
.c-form {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.c-form__group {
  margin-bottom: 3rem;
  text-align: left;
}

.c-form__label {
  display: block;
  font-weight: 500;
  margin-bottom: 1rem;
}

.c-form__required {
  color: #d15656;
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

.c-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.c-form__radios label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.c-form__radios input[type="radio"] {
  accent-color: var(--color-black);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.c-form__input,
.c-form__textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  background-color: var(--color-white);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.c-form__input:focus,
.c-form__textarea:focus {
  outline: none;
  border-color: var(--color-black);
}

.c-form__textarea {
  min-height: 200px;
  resize: vertical;
}

.c-form__note {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}

.c-form__privacy {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 5rem;
  margin-bottom: 2rem;
}

.c-form__privacy a {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: inherit;
}

.c-form__submit-wrap {
  text-align: center;
}

.c-form__submit {
  display: inline-block;
  width: 100%;
  max-width: 400px;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem 4rem;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid var(--color-black);
  cursor: pointer;
  transition: background-color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.c-form__submit:hover {
  background-color: transparent;
  color: var(--color-black);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .c-form__radios {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   Page: Team Detail (.page-team-detail / .p-team-detail)
   ========================================================================== */
.p-team-detail__hero {
  position: relative;
  width: 100%;
  margin-bottom: 4rem;
}

.p-team-detail__hero-img {
  width: 100%;
  aspect-ratio: 2 / 1;
  background-color: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
}

.p-team-detail__hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-team-detail__hero-info {
  position: absolute;
  bottom: clamp(1.5rem, 5vw, 3rem);
  left: clamp(1.5rem, 5vw, 4rem);
  color: var(--color-white);
  z-index: 2;
}

.p-team-detail__hero-role {
  font-family: var(--font-en);
  font-size: clamp(0.75rem, 2.5vw, 0.9rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.p-team-detail__hero-name {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 500;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.p-team-detail__hero-name-ja {
  display: block;
  font-size: clamp(0.85rem, 3vw, 1rem);
  margin-bottom: 1rem;
  opacity: 0.8;
  font-weight: normal;
}

.p-team-detail__hero-sns {
  display: inline-block;
  color: inherit;
  transition: opacity 0.3s ease;
}

.p-team-detail__hero-sns:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .p-team-detail__hero-img {
    aspect-ratio: 4 / 3;
  }
  
  .p-team-detail__hero-info {
    position: static;
    color: var(--color-black);
    padding: 1.5rem 0 0;
  }
  
  .p-team-detail__hero-sns {
    color: var(--color-black);
  }
}

/* ==========================================================================
   Page: Archive Detail (.p-archive-detail)
   ========================================================================== */
.p-archive-detail {
  padding-bottom: 6rem;
}

.p-archive-detail .page-title {
  margin-bottom: 4rem;
}

.p-archive-detail__post-header {
  margin-bottom: 6rem;
}

.p-archive-detail__post-title {
  font-family: var(--font-ja);
  font-size: 2rem;
  font-weight: 500;
  margin-top: 1.5rem;
}

.p-archive-detail__main-img-wrap {
  margin-bottom: 0;
}

/* Override .img-placeholder defaults for inner images */
.p-archive-detail__main-img-wrap .img-placeholder,
.p-archive-detail__gallery-img .img-placeholder {
  width: 100%;
  height: auto;
  min-height: unset;
  margin: 0;
}

.p-archive-detail__main-img-wrap .img-placeholder {
  aspect-ratio: 16 / 9;
}

.p-archive-detail__gallery-img .img-placeholder {
  aspect-ratio: 4 / 3;
}

.p-archive-detail__gallery-img--port {
  aspect-ratio: 3 / 4 !important;
}

.p-archive-detail__content {
  margin-bottom: 4rem;
  padding-top: 4rem;
}

.p-archive-detail__content p {
  margin-bottom: 2rem;
  line-height: 2;
}

/* Back Button */
.p-archive-detail__back a {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-black);
  padding-bottom: 4px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.p-archive-detail__back a:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .p-archive-detail .page-title {
    margin-bottom: 2rem;
  }
  .p-archive-detail__post-header {
    margin-bottom: 2rem;
  }
  .p-archive-detail__post-title {
    font-size: 1.5rem;
  }
  .p-archive-detail__content {
    padding-top: 2rem;
  }
}

/* ==========================================================================
   Flow Diagram (.p-flow)
   ========================================================================== */
.p-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.p-flow__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}

.p-flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
}

.p-flow__arrow svg {
  width: 24px;
  height: 24px;
}

.p-flow__note {
  font-size: 0.85rem;
  // color: #555;
  text-align: right;
  margin-top: 1rem;
}

@media (min-width: 769px) {
  .p-flow {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .p-flow__item {
    padding: 2rem 1rem;
    font-size: 1rem;
  }
  
  .p-flow__arrow svg {
    transform: rotate(-90deg);
  }
}
/* ABOUT THE AUTHOR Component */
.c-author__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}
@media (max-width: 768px) {
    .c-author__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .c-author__info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .c-author__info > p {
        text-align: left;
    }
    .c-author__info > div:last-child {
        width: 100%;
    }
}


/* ==========================================================================
   Curriculum List (.c-curriculum)
   ========================================================================== */
.c-curriculum {
  display: flex;
  flex-direction: column;
  margin-top: 3rem;
  margin-bottom: 4rem;
  border-top: 2px solid var(--color-black);
}

.c-curriculum__item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #e0e0e0;
  padding: 2rem 0;
  transition: background-color 0.4s ease, padding-left 0.4s ease;
}

.c-curriculum__item:hover {
  background-color: #fafafa;
}

.c-curriculum__item:last-child {
  border-bottom: 2px solid var(--color-black);
}

.c-curriculum__num {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.05em;
}

.c-curriculum__num::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--color-black);
  border-radius: 50%;
}

.c-curriculum__title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.c-curriculum__en {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: #999;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

@media (min-width: 769px) {
  .c-curriculum__item {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    padding: 2.5rem 1rem;
  }
  
  .c-curriculum__item:hover {
    padding-left: 1.5rem;
  }
  
  .c-curriculum__num {
    width: 80px;
    flex-shrink: 0;
    margin-bottom: 0;
    margin-top: 0.35rem;
  }
  
  .c-curriculum__content {
    flex-grow: 1;
  }
}



/* ==========================================================================
   PRICE Page (.c-price-table)
   ========================================================================== */
.c-price-wrapper {
  width: 100%;
}

.c-price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  font-size: 1rem;
}

.c-price-table th,
.c-price-table td {
  border: 1px solid var(--color-black);
  padding: 2rem 1.5rem;
  vertical-align: middle;
  text-align: center;
}

.c-price-table__label {
  width: 25%;
  font-weight: 500;
  text-align: center !important;
}

.c-price-table td {
  width: 37.5%;
}

.c-price-table__tax {
  font-size: 0.8rem;
}

.c-price-buttons {
  display: flex;
  justify-content: flex-end;
}

.c-price-buttons__spacer {
  width: 25%;
  border: 1px solid transparent;
}

.c-price-buttons__actions {
  width: 75%;
  display: flex;
}

.c-price-buttons__btn {
  display: block;
  flex: 1;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem 1rem;
  text-align: center;
  font-family: var(--font-en);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.3s ease;
  border: 1px solid var(--color-black);
}

.c-price-buttons__btn:first-child {
  border-right: 1px solid var(--color-white);
}

.c-price-buttons__btn:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .c-price-table {
    font-size: 0.85rem;
  }
  
  .c-price-table th,
  .c-price-table td {
    padding: 1.25rem 1rem;
  }
  
  .c-price-table__label {
    display: none;
  }
  
  .c-price-table td {
    width: 50%;
  }

  .c-price-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 0.5rem;
  }
  
  .c-price-table tr:first-child td::before {
    display: none;
  }

  .c-price-table tr:first-child td {
    text-align: center !important;
  }

  .c-price-table__tax {
    font-size: 0.75rem;
    display: block;
    margin-top: 0.25rem;
  }
  
  .c-price-buttons__spacer {
    display: none;
  }
  
  .c-price-buttons__actions {
    width: 100%;
  }
  
  .c-price-buttons__btn {
    padding: 1.25rem 0.5rem;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Page: ABOUT - Logic List (.c-logic-list)
   ========================================================================== */
.c-logic-list {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  list-style: none;
  padding: 0;
  margin: 6rem auto;
  width: 100%;
  gap: 5%;
}

.c-logic-list__item {
  width: 16%;
  max-width: 140px;
  text-align: center;
  position: relative;
  list-style: none;
  container-type: inline-size;
}

.c-logic-list__img {
  width: 100%;
  max-width: 140px;
  margin: 0 auto 1.5rem;
}

.c-logic-list__img img {
  width: 100%;
  height: auto;
  display: block;
}

.c-logic-list__title {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--color-black);
}

.c-logic-list__num {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 1.25rem;
}

.c-logic-list__title--bilingual {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.4;
}
.c-logic-list__title--bilingual .c-logic-list__num {
  margin-bottom: 0.2em;
  margin-right: 0 !important;
}
.c-logic-list__title--bilingual .en {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0;
}

/* Arrow via pseudo-element */
.c-logic-list__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: clamp(30px, 7.5vw, 70px);
  top: calc(min(100cqw, 140px) / 2);
  right: -15.625%;
  width: 24px;
  height: 24px;
  transform: translate(50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Scroll Animation (Fade-in one by one) */
.c-logic-list__item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js-fadein.is-visible .c-logic-list__item {
  opacity: 1;
  transform: translateY(0);
}

.js-fadein.is-visible .c-logic-list > li:nth-child(1) { transition-delay: 0.1s; }
.js-fadein.is-visible .c-logic-list > li:nth-child(2) { transition-delay: 0.25s; }
.js-fadein.is-visible .c-logic-list > li:nth-child(3) { transition-delay: 0.4s; }
.js-fadein.is-visible .c-logic-list > li:nth-child(4) { transition-delay: 0.55s; }
.js-fadein.is-visible .c-logic-list > li:nth-child(5) { transition-delay: 0.7s; }

@media (max-width: 768px) {
  .c-logic-list {
    flex-direction: column;
    align-items: center;
    margin: 2rem auto;
    gap:24px;
  }

  .c-logic-list__item {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .c-logic-list__img {
    margin: 0;
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .c-logic-list__title {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .c-logic-list__title br {
    display: none;
  }

  .c-logic-list__num {
    font-size: 1.1rem;
    margin-right: 0.25em;
  }

  .c-logic-list__title--bilingual {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: 
      "num ja"
      "num en";
    text-align: left;
    column-gap: 0.35em;
    row-gap: 0;
    align-items: baseline;
  }
  .c-logic-list__title--bilingual .c-logic-list__num {
    grid-area: num;
    margin-bottom: 0;
  }
  .c-logic-list__title--bilingual .ja {
    grid-area: ja;
  }
  .c-logic-list__title--bilingual .en {
    grid-area: en;
    margin-top: 0.1em;
  }

  .c-logic-list__item:not(:last-child)::after {
    top: 140px;
    bottom: auto;
    left: 58px;
    right: auto;
    transform: rotate(90deg);
  }
}



/* ==========================================================================
   Added from inline styles for Team / Price
   ========================================================================== */
.c-card__title--team {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-en);
  font-weight: 500;
}

.c-card__role {
  font-size: 0.75rem;
  font-family: var(--font-en);
  font-weight: 500;
}

.c-price-large {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 500;
  font-family: var(--font-en);
  line-height: 1;
  margin-bottom: 1rem;
  color: #111;
}

/* ==========================================================================
   Added: ABOUT Catchphrase
   ========================================================================== */
.c-about-catchphrase {
  font-size: min(5rem, 15vw);
  display: inline-block;
  line-height: 1.3;
}
.c-about-catchphrase-en {
  font-size: min(3.9rem, 8.75vw);
  display: inline-block;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .c-about-catchphrase {
    font-size: min(3rem, 11vw);
  }
  .c-about-catchphrase-en {
    font-size: min(3rem, 8.6vw);
  }
}

/* Fix main image stretch */
.p-archive-detail__main-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   Policy Pages (.c-policy-*)
   ========================================================================== */
.c-policy-wrapper {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  padding: 0 5%;
}

.c-policy-section {
  margin-top: 4rem;
}

.c-policy-section--sm {
  margin-top: 3rem;
}

.c-policy-heading {
  font-size: 1.5rem;
  font-weight: normal;
  border-bottom: 1px solid var(--color-border, #ccc);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.c-policy-heading--sm {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.c-policy-text {
  line-height: 1.8;
}

.c-policy-text--mb {
  line-height: 1.8;
  margin-bottom: 2rem;
}

.c-policy-text--mb-sm {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.c-policy-list {
  list-style: disc;
  margin-left: 1.5rem;
  line-height: 1.8;
}

.c-policy-list--none {
  list-style: none;
  padding: 0;
  line-height: 1.8;
}

.c-policy-list--none > li {
  margin-bottom: 1rem;
}

.c-policy-note {
  line-height: 1.8;
  margin-top: 1.5rem;
  font-size: 0.9em;
}

.c-policy-link {
  text-decoration: underline;
}
