/*
Theme Name: GENTEN Research Center
Theme URI:
Author: GENTEN
Author URI:
Description: GENTEN Research Center - 人間の可能性を拡張する研究拠点
Version: 1.0.0
Text Domain: genten-theme
*/

/* Font mapping per brand guidelines:
   Full title "GENTEN Research Center" → Arial (Bierstadt代替、Win/Mac両対応)
   Short "GENTEN" → copperplate (Adobe Fonts)
   Footer "Genten Research Center" → magneto (Adobe Fonts)
*/
:root {
  --font-title: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --font-short: "copperplate", serif;
  --font-footer: "magneto", sans-serif;
  --black: #111;
  --white: #fff;
  --off-white: #f8f6f3;
  --gray: #666;
  --light-gray: #e8e5e0;
  --olive: #3d4a2c;
  --isct-blue: #1c3177;
}

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

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

body {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, box-shadow 0.4s, opacity 0.6s ease;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

nav .nav-logo {
  color: var(--black);
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
}

nav .nav-logo-text-link {
  color: var(--black);
  text-decoration: none;
}

nav .nav-logo-icon {
  display: flex;
  align-items: center;
  color: var(--isct-blue);
  transition: opacity 0.4s ease, width 0.4s ease;
}

nav .nav-logo-icon svg {
  width: 180px;
  height: auto;
}

nav .nav-logo-full {
  /* font-family: 'Hind', var(--font-title); */
  font-family: "Hind", sans-serif;
  font-weight: bold;
  font-size: 20px;
  /* letter-spacing: 1px; */
  opacity: 1;
  transition: opacity 0.4s ease;
  top: 3.5px;
  padding-left: 14px;
  position: relative;
  margin-left: 25px;

}

nav .nav-logo-full::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-55%);
  height: 14px;
  border-left: 1px solid #ddd;
  display: none;
}

nav .nav-logo-short {
  font-family: var(--font-short);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  position: absolute;
  left: 130px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: none;
  white-space: nowrap;
}

nav.scrolled .nav-logo-icon {
  opacity: 1;
  pointer-events: auto;
}

/* スクロール時の "GENTEN Research Center" → "GENTEN" 切り替えは不要になったため停止
nav.scrolled .nav-logo-icon svg {
  width: 120px;
  height: auto;
}

nav.scrolled .nav-logo-full {
  opacity: 0;
  pointer-events: none;
}

nav.scrolled .nav-logo-short {
  left: 130px;
  padding-left: 12px;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

nav.scrolled .nav-logo-short::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 14px;
  border-left: 1px solid #ddd;
}
*/

nav .nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav .nav-links a {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  opacity: 0.7;
  transition: opacity 0.3s;
  position: relative;
}

nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.3s ease;
}

nav .nav-links a:hover {
  opacity: 1;
}

nav .nav-links a:hover::after {
  width: 100%;
}

@media (max-width: 1300px) {
  nav {
    padding:
      clamp(1rem, calc(-0.1522rem + 1.8045vw), 1.25rem)
      clamp(1.25rem, calc(-0.1522rem + 2.1951vw), 1.5rem);
  }

  /* nav .nav-logo {
    gap: clamp(0.25rem, calc(-0.9022rem + 1.8045vw), 0.5rem);
  } */

  nav .nav-logo-icon svg {
    width: clamp(120px, calc(-1.7391px + 19.0385vw), 146px);
  }

  nav .nav-logo-full {
    font-size: clamp(12px, calc(2.7826px + 1.4423vw), 16px);    
    margin-left: clamp(4px, calc(-3.6087px + 1.8vw), 14px);
    top: 2px
  }

  nav .nav-logo-full::before {
    height: clamp(10px, calc(0.7826px + 1.4423vw), 12px);
  }

  nav .nav-links {
    gap: clamp(1rem, calc(-0.8435rem + 2.8837vw), 1.5rem);
  }

  nav .nav-links a {
    font-size: clamp(0.64rem, calc(0.3635rem + 0.4326vw), 0.7rem);
    letter-spacing: clamp(0.06em, calc(-0.1243em + 0.2884vw), 0.1em);
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
}

/* ── Loading ── */
body.is-loading {
  overflow: hidden;
}

body.is-loading nav {
  opacity: 0;
  pointer-events: none;
}

body.is-loading .hero {
  visibility: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-moji {
  position: relative;
  height: 40vh;
  max-height: 360px;
  margin-bottom: 2.5rem;
}

.loader-moji img {
  height: 100%;
  width: auto;
  display: block;
}

.loader-moji::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform-origin: top;
  animation: brushReveal 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}

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

.loader-text {
  font-family: var(--font-footer);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--black);
  opacity: 0;
  animation: fadeInContent 0.8s ease-out 2.0s forwards;
}

.loader-bar-track {
  width: 120px;
  height: 1px;
  background: var(--light-gray);
  margin-top: 1.5rem;
  overflow: hidden;
  opacity: 0;
  animation: fadeInContent 0.4s ease-out 0.2s forwards;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: var(--black);
  animation: loadBar 2.8s ease-in-out 0.2s forwards;
}

@keyframes loadBar {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ── Logo Splash ── */
.logo-splash {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.logo-splash-bg-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.logo-splash-bg-circle--top {
  top: -20%;
  right: -15%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(61,74,44,0.05) 0%, transparent 70%);
}

.logo-splash-bg-circle--bottom {
  bottom: -15%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(61,74,44,0.03) 0%, transparent 70%);
}

.logo-splash-logo {
  position: relative;
  z-index: 2;
  width: 75%;
  max-width: 850px;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.06));
}

.logo-splash-img {
  width: 100%;
  height: auto;
  display: block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.logo-splash.active .logo-splash-img {
  clip-path: inset(0 0 0 0);
}

.logo-splash-subtext {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease 0.6s, transform 1s ease 0.6s;
}

.logo-splash-subtext p {
  font-family: var(--font-footer);
  font-size: clamp(0.65rem, 1.4vw, 0.9rem);
  letter-spacing: 0.35em;
  color: #666;
  /* text-transform: uppercase; */
}

.logo-splash.active {
  opacity: 1;
  visibility: visible;
}

.logo-splash.active .logo-splash-logo {
  opacity: 1;
}

.logo-splash.active .logo-splash-subtext {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: grid;
  grid-template-columns: 47.5% 54%;
  align-items: center;
  background: var(--white);
  overflow: hidden;
  transition: visibility 0s;
}

.hero-art {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  will-change: transform;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 1.2s ease-out 0.3s, transform 1.2s ease-out 0.3s;
}

.hero.active .hero-art img {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  padding: 3rem 5rem 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.2s ease-out 0.3s, transform 1.2s ease-out 0.3s;
}

.hero.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-content::before {
  content: '';
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 80%;
  height: 74vh;
  background: url('assets/images/logo-syo.svg') no-repeat center center;
  background-size: contain;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 3s ease-in-out 1s;
}

.hero.active .hero-content::before {
  opacity: 0.07;
}

.hero-fade {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.2s ease-out 0.3s, transform 1.2s ease-out 0.3s;
}

.hero-fade.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  line-height: 1;
  margin-bottom: 2%;
}

.hero-title-logo {
  width: 39vw;
  height: auto;
  display: block;
}

.hero.active .hero-title-logo {
  animation: heartbeat 4s ease-in-out 4s infinite;
  transform-origin: center center;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.hero-subtitle-jp {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-top: -0.5rem;
}

.hero-subtitle-en {
  font-family: var(--font-footer);
  font-size: clamp(1rem, 1.45vw, 1.45rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-founder {
  padding-top: 1.5rem;
  border-top: 1px solid var(--light-gray);
}

.hero-founder-name {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-founder-title {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 0.3rem;
  letter-spacing: 0.03em;
}

@keyframes fadeInContent {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 1.5s ease-out;
  transition-delay: 3s;
  z-index: 2;
  will-change: transform, opacity;
}

.hero.active .hero-scroll {
  opacity: 1;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.hero-scroll .line {
  width: 1px;
  height: 40px;
  background: var(--gray);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Section common ── */
section {
  padding: 8rem 3rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 3rem;
}

.section-heading {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.section-heading-jp {
  font-size: clamp(1rem, 2.5vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 2rem;
}

/* ── About ── */
.about {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.about canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about .section-inner {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.about-text .en {
  font-family: var(--font-title);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray);
}

.about-detail {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(120, 120, 120, 0.2);
}

.about-detail p {
  font-size: 0.9rem;
  line-height: 2.2;
  color: var(--black);
  margin-bottom: 1.8em;
}

.about-detail p:last-child {
  margin-bottom: 0;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: start;
}


.about-image img {
  width: 100%;
  max-width: 370px;
  /* filter: drop-shadow(0 30px 60px rgba(15, 58, 45, 0.3)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15)); */
  animation: floatCalligraphy 6s ease-in-out infinite;
}

@keyframes floatCalligraphy {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.founder {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
}

.founder-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.founder-title {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.3rem;
}

/* ── Typewriter ── */
.typewriter {
  display: inline-block;
  border-right: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
}

.typewriter.typing {
  border-right-color: var(--black);
  animation: blink-caret 0.7s step-end infinite;
}

.typewriter.done {
  border-right-color: transparent;
  animation: none;
}

@keyframes blink-caret {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--black); }
}

/* ── Calligraphy Banner ── */
.calligraphy-banner {
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 0;
}

.calligraphy-banner-img {
  width: 45%;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 1;
  /* filter: contrast(1.1) drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3)); */
}

/* ── Framework ── */
.framework {
  background: var(--off-white);
  position: relative;
}

.framework-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.framework-layer {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--light-gray);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.framework-layer.visible {
  opacity: 1;
  transform: translateY(0);
}

.framework-layer:last-child {
  border-bottom: none;
}

.layer-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.layer-label .jp {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.layer-label .en {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

.layer-arrow {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.layer-arrow svg {
  width: 24px;
  height: 24px;
  color: var(--gray);
  animation: arrow-float 1.5s ease-in-out infinite;
}

@keyframes arrow-float {
  0%, 100% { transform: translateY(4px); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.layer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.layer-tag {
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 100px;
  background: var(--white);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.framework-note {
  margin-top: 3rem;
  text-align: center;
  font-family: var(--font-short);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gray);
}

/* ── Activities ── */
.activities {
  background: var(--off-white, #f9f9f6);
  padding: 5rem 0;
}

.activities-heading {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

.activities-heading .en {
  display: block;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray);
  margin-top: 0.3rem;
}

.activities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.activity-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.activity-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.activity-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.activity-members {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.8rem;
}

.activity-link {
  font-size: 0.75rem;
  color: var(--gray);
  text-decoration: underline;
  transition: color 0.3s ease;
  word-break: break-all;
}

.activity-link:hover {
  color: var(--black);
  text-decoration: none;
}

.activity-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ── Identity ── */
.identity {
  background: var(--white);
}

.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.identity-logo {
  display: flex;
  justify-content: center;
}

.identity-logo img {
  width: 100%;
  max-width: 360px;
}

.identity-text p {
  font-size: 0.95rem;
  line-height: 2;
  margin-bottom: 1.5rem;
}

.identity-text .en {
  font-family: var(--font-title);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray);
}

/* ── Domains ── */
.domains {
  background: var(--white);
}

.domains-header {
  position: relative;
  margin-bottom: 7%;
  padding-bottom: 3rem;
}

.domains-header-profile {
  position: absolute;
  right: 0;
  top: 0;
  width: 33vw;
  max-width: 460px;
  text-align: right;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.domains-header-profile.visible {
  opacity: 1;
  transform: translateX(0);
}

.profile-img-wrap {
  position: relative;
}

.profile-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  transition: opacity 0.6s ease;
}

.profile-img-wrap .profile-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.profile-img-wrap.show-hover .profile-hover {
  opacity: 1;
}

.connector-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}

.connector-line path {
  stroke-dasharray: 0;
  stroke-dashoffset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.domains-header-profile .profile-info {
  margin-top: 0.5rem;
}

/* ── Cycle Layout ── */
.cycle-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  margin-left: 2vw;
  gap: 2rem;
  align-items: start;
  margin-top: 4.5rem;
}

.cycle-left {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.cycle-left.visible {
  opacity: 1;
  transform: scale(1);
}

.cycle-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.profile-info {
  text-align: center;
}

.cycle-canvas-wrap {
  position: relative;
  width: 480px;
  height: 480px;
  aspect-ratio: 1 / 1;
}

.cycle-canvas-wrap canvas {
  width: 480px;
  height: 480px;
}

.cycle-canvas-wrap .cycle-text {
  position: absolute;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.5;
  white-space: nowrap;
}

.cycle-canvas-wrap .cycle-text-top {
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.cycle-canvas-wrap .cycle-text-bottom {
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.cycle-canvas-wrap .cycle-text .en {
  display: block;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray);
  letter-spacing: 0.08em;
}

.profile-name {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.profile-title {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.03em;
}

.domains-highlights {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.domains-highlights li {
  font-size: 1rem;
  line-height: 1.8;
  padding-left: 1.2rem;
  position: relative;
}

.domains-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
}

.domains-description-heading {
  font-family: var(--font-title);
  font-size: clamp(3rem, 6vw, 8rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 2rem;
}

.domains-description-heading .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  background-image: linear-gradient(180deg, #d5d5cf 0%, #e9e9e3 50%, #ece6da 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.domains-description-heading .char.show {
  opacity: 1;
  transform: translateY(0);
}

.domains-description {
  margin: 0 0 10%;
  padding: 2.5rem 3rem;
  font-size: 0.95rem;
  line-height: 2.2;
  color: var(--clr-body);
  border: none;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(240, 238, 234, 0.6), rgba(255, 255, 255, 0.8));
  /* box-shadow:
    inset 3px 3px 8px rgba(0, 0, 0, 0.06),
    inset -3px -3px 8px rgba(255, 255, 255, 0.9); */
}

.domains-description p + p {
  margin-top: 1.8em;
}

.domains-sub-heading {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.domains-intro {
  font-size: 0.95rem;
  line-height: 2;
  max-width: 750px;
  margin-bottom: 3.5rem;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
}

.domain-card {
  padding: 2.5rem;
  background: var(--off-white);
  transition: background 0.3s;
}

.domain-card:hover {
  background: var(--light-gray);
}

.domain-number {
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  margin-bottom: 1rem;
}

.domain-title-jp {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.domain-title-en {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 1.2rem;
}

.domain-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--gray);
}

/* ── News ── */
.news-section {
  background: var(--off-white);
  padding-bottom: 3%;
  position: relative;
  overflow: hidden;
}

.news-section > .news-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.news-section > .section-inner {
  position: relative;
  z-index: 1;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.news-card {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.news-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--light-gray);
}

.news-card-body {
  padding: 1.5rem;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.news-card-date {
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.news-card-cat {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--black);
  padding: 0.15rem 0.6rem;
  line-height: 1.6;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.03em;
  margin-bottom: 0.8rem;
}

.news-card-excerpt {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--gray);
}

.news-more {
  text-align: center;
  margin-top: 3rem;
}

.news-more a {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  padding: 0.8rem 2.5rem;
  border: 1px solid var(--black);
  transition: background 0.3s, color 0.3s;
}

.news-more a:hover {
  background: var(--black);
  color: var(--white);
}

.news-coming {
  text-align: center;
  padding: clamp(5rem, 10vw, 9rem) 2rem;
  margin: 3rem clamp(1.5rem, 4vw, 4rem) 5rem;
  position: relative;
  background: #191b26;
  color: var(--white);
  border-radius: 0;
  overflow: hidden;
}

.news-coming::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(50,60,110,0.5) 0%, rgba(35,40,65,0.2) 50%, transparent 75%);
  pointer-events: none;
}

.news-coming::after {
  content: '';
  position: absolute;
  top: clamp(10px, 2vw, 18px);
  left: clamp(10px, 2vw, 18px);
  right: clamp(10px, 2vw, 18px);
  bottom: clamp(10px, 2vw, 18px);
  border: 1px solid rgba(255,255,255,0.5);
  pointer-events: none;
}

.news-coming-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.news-coming .news-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.news-coming-eyebrow {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
  position: relative;
}

.news-coming-date {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
  position: relative;
}

.news-coming-title {
  font-family: var(--font-short);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85);
  margin-top: 2rem;
  text-transform: uppercase;
  position: relative;
}

.news-coming-text {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.75);
  margin-top: 1rem;
  position: relative;
}

.news-coming .news-coming-link {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.9em 3em;
  margin-top: 3rem;
  position: relative;
  transition: all 0.3s;
}

.news-coming .news-coming-link:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.news-empty {
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  padding: 3rem 0;
}

/* ── Contact ── */
.contact-section {
  background: var(--off-white);
}

.contact-cta {
  text-align: center;
  margin-top: 2rem;
}

.contact-cta p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.contact-cta-btn {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background: #1a1a1a;
  padding: 1rem 4rem;
  border: 1px solid #1a1a1a;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.contact-cta-btn:hover {
  background: transparent;
  color: #1a1a1a;
  border-color: #1a1a1a;
  transform: translateY(-2px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.contact-block h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.contact-block p {
  font-size: 0.85rem;
  line-height: 2;
  color: var(--gray);
}

.contact-block a {
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--light-gray);
  transition: border-color 0.3s;
}

.contact-block a:hover {
  border-color: var(--black);
}

.contact-note {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 1rem;
  line-height: 1.8;
}

/* ── Calligraphy divider ── */
.calligraphy-section {
  padding: 0;
  background: var(--black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  overflow: hidden;
  min-height: 500px;
}

.calligraphy-left {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 3rem;
}

.calligraphy-left img {
  max-width: 400px;
  width: 80%;
  filter: invert(1);
  opacity: 0.9;
}

.calligraphy-portrait {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
}

.calligraphy-portrait img {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ── Acronym ── */
.acronym {
  background: var(--off-white);
  text-align: center;
}

.acronym-display {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin-top: 2rem;
}

.acronym-display .highlight {
  color: var(--olive);
  font-weight: 700;
}

/* ── Footer ── */
footer {
  background: #060D2B;
  color: var(--white);
  padding: 4rem 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo-icon {
  margin-bottom: 1rem;
  color:#fff;
  display: block;
  margin-bottom: 10px;
}

.footer-logo-icon svg {
  width: 160px;
  height: auto;
  fill: var(--white);
  color: var(--white);
}

.footer-logo {
  font-family: var(--font-footer);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
}

.footer-sub {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  color: #fff;
}

.footer-right {
  text-align: right;
}

.footer-copy {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.footer-support {
  font-size: 0.7rem;
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.footer-support a {
  color: #fff;
  text-decoration: none;
}

.footer-support a:hover {
  opacity: 0.7;
}

/* ── Floating Button & Modal ── */
.fab-button {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  border: none;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 90;
  padding: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: none;
}

.fab-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.fab-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fab-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fab-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.fab-modal {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.fab-modal-overlay.open .fab-modal {
  transform: translateY(0);
}

.fab-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
}

.fab-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.fab-modal p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray);
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ── Blog / Single / Page ── */
.site-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.site-main article {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--light-gray);
}

.site-main article:last-child {
  border-bottom: none;
}

.entry-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.8rem;
}

.page .section-label {
  text-align: center;
  margin-bottom: 1rem;
  display: none;
}

.page .entry-title {
  text-align: center;
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
}

.entry-title a {
  color: var(--black);
  text-decoration: none;
}

.entry-title a:hover {
  opacity: 0.7;
}

.entry-meta {
  font-family: var(--font-title);
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.entry-cat {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--black);
  padding: 0.15rem 0.6rem;
  line-height: 1.6;
}

.entry-content {
  font-size: 0.95rem;
  line-height: 2;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.pagination {
  text-align: center;
  padding: 2rem 0;
}

.pagination a,
.pagination span {
  font-family: var(--font-title);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  color: var(--black);
  text-decoration: none;
}

.pagination .current {
  border-bottom: 2px solid var(--black);
}

/* ── Member Page ── */
.member-page {
  max-width: 1100px;
}

.member-description {
  position: relative;
  margin: 1.5rem 0 4rem;
  padding: 5rem 2rem;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--light-gray);
}

.member-vortex-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.member-description-text {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.member-description-ja {
  text-align: center;
  font-size: 0.95rem;
  line-height: 2.2;
  color: var(--black);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.member-description-en {
  text-align: center;
  font-family: var(--font-title);
  font-size: 0.85rem;
  line-height: 2;
  color: var(--gray);
  letter-spacing: 0.03em;
}

.member-staff {
  padding-top: 3%;
  counter-reset: member-group;
}

.member-staff-title {
  text-align: center;
  margin-bottom: 4.5rem;
  padding-bottom: 1.8rem;
  position: relative;
  display: block;
}

.member-staff-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 1px;
  background: var(--black);
}

.member-staff-title .ja {
  display: block;
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--black);
  margin-bottom: 0.7rem;
}

.member-staff-title .en {
  display: block;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gray);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.member-staff-nav {
  position: static;
  top: auto;
  left: auto;
  width: auto;
  z-index: auto;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin: -2rem auto 4rem;
  max-width: 900px;
}

.member-staff-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--gray);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 0.35rem;
}

.member-staff-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.3s ease, left 0.3s ease;
}

.member-staff-nav a:hover {
  color: var(--black);
}

.member-staff-nav a:hover::after {
  width: 100%;
  left: 0;
}

.member-staff-nav a .ja {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: inherit;
}

.member-staff-nav a .en {
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gray);
}

.member-group {
  counter-increment: member-group;
  margin-bottom: 5rem;
  scroll-margin-top: 100px;
}

.member-group:last-child {
  margin-bottom: 0;
}

.member-group-title {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  padding: 0;
  border: none;
  position: relative;
}

.member-group-title::before {
  content: counter(member-group, decimal-leading-zero);
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: bold;
  color: #c4a55a;
  letter-spacing: 0.1em;
  padding-right: 1.2rem;
  border-right: 1px solid var(--light-gray);
  flex-shrink: 0;
}

.member-group-title .ja {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--black);
}

.member-group-title .en {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gray);
  margin-left: 0.3rem;
}

.member-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--light-gray);
  margin-left: 0.5rem;
}

.member-partners {
  margin-top: 6rem;
  padding-top: 5rem;
  border-top: 1px solid var(--light-gray);
  counter-reset: member-group;
}

.member-partners-description {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
  font-size: 0.95rem;
  line-height: 2.2;
  color: var(--gray);
  letter-spacing: 0.05em;
}

.member-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.member-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  /* grid-template-columns: 160px 1fr; */
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--light-gray);
}

.member-group:not(#member) .member-card {
  grid-template-columns: 140px 1fr;
  gap: 2rem;
}

.member-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.member-card-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.member-card-noimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--off-white);
}

.member-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.member-card-name {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.member-group:not(#member) .member-card-name {
  font-size: 1.1rem;
}

.member-card-name-en {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 1.2rem;
}

.member-card-section {
  margin-bottom: 5%;
}

.member-card-section:last-child {
  margin-bottom: 0;
}

.member-card-section-title {
  font-size: 0.7rem;
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--black);
  margin-bottom: 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--light-gray);
}

.member-card-section p {
  font-size: 0.82rem;
  line-height: 2;
  color: var(--gray);
}

.member-card-detail,
.member-card-detail a{
  font-size: 0.82rem;
  line-height: 2;
  color: var(--gray);
}
.member-card-detail a:hover{
  text-decoration: none;
}

.member-card-detail p {
  margin-bottom: 0.5rem;
}

.member-card-detail p:last-child {
  margin-bottom: 0;
}

.member-card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--gray);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 0;
  transition: color 0.3s;
  order: 2;
  align-self: flex-start;
}

.member-card-toggle:hover {
  color: var(--black);
}

.member-card-toggle .toggle-arrow {
  position: relative;
  display: inline-block;
  top: 0;
  transition: transform 0.3s;
  font-size: 1.1em;
}

.member-card-toggle[aria-expanded="true"] .toggle-arrow {
  top: 0px;
  transform: rotate(-90deg);
}

.member-card-accordion {
  order: 1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
  padding-bottom: 0;
}

.member-card-accordion.open {
  opacity: 1;
  padding-bottom: 1.2rem;
}

.member-empty {
  font-size: 0.9rem;
  color: var(--gray);
  text-align: center;
  padding: 4rem 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1rem; background: #fff; }
  nav .nav-links { display: none; }
  nav .nav-logo-icon svg { width: 124px; }
  nav .nav-logo-full { font-size: 14px;margin-left: 7px; top: 0px;}
  .hamburger { display: flex; }

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

  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    z-index: 99;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu a {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--black);
  }

  section { padding: 3rem 1.5rem; }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 32vh auto;
    height: auto;
    min-height: 100vh;
    padding-top: 56px;
  }

  .hero-art {
    height: 50vh;
    padding: 60px 0 0 0;
  }

  .hero-content {
    padding: 5rem 1.5rem 5rem;
    text-align: center;
  }

  .hero-title {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content::before {
    width: 60%;
    height: 42vh;
  }

  .hero.active .hero-content::before {
    opacity: 0.05;
  }

  .hero-founder {
    text-align: center;
  }

  .about-grid,
  .identity-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    position: static;
    transform: none;
  }

  .about-image img {
    width: 60vw;
    max-width: none;
  }

  .framework .section-heading {
    font-size: 23px;
  }

  .identity-grid > .identity-logo {
    order: -1;
  }

  .framework-layer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .domains-header-profile {
    position: static;
    width: 100%;
    max-width: 280px;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
  }

  .cycle-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cycle-left {
    order: 0;
  }

  .cycle-canvas-wrap {
    width: 320px;
    height: 320px;
  }

  .cycle-canvas-wrap canvas {
    width: 320px;
    height: 320px;
  }

  .calligraphy-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .calligraphy-left { padding: 3rem 1.5rem; }

  .calligraphy-portrait img { max-width: 320px; }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .member-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .member-group:not(#member) .member-card {
    grid-template-columns: 70px 1fr;
    gap: 1rem;
  }

  .member-card-name,
  .member-group:not(#member) .member-card .member-card-name {
    font-size: 1rem;
  }

  .member-card-img img {
    max-width: 240px;
    margin:auto;
  }

  .member-description {
    margin: 1rem 0 2.5rem;
    padding: 3rem 1rem;
  }

  .member-description-ja {
    font-size: 0.85rem;
    line-height: 2;
  }

  .member-description-en {
    font-size: 0.75rem;
  }

  .member-staff-title {
    margin-bottom: 3rem;
    padding-bottom: 1.4rem;
  }

  .member-staff-title .ja {
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.5rem;
  }

  .member-staff-title .en {
    font-size: 0.62rem;
    letter-spacing: 0.24em;
  }

  .member-group {
    margin-bottom: 3.5rem;
  }

  .member-group-title {
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
    margin-bottom: 1.8rem;
  }

  .member-group-title::before {
    font-size: 0.7rem;
    padding-right: 0.9rem;
  }

  .member-group-title .ja {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
  }

  .member-group-title .en {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    margin-left: 0;
    flex-basis: 100%;
  }

  .member-partners {
    margin-top: 4rem;
    padding-top: 3rem;
  }

  .member-partners-description {
    margin-bottom: 2.5rem;
    font-size: 0.85rem;
    line-height: 2;
    padding: 0 0.5rem;
  }

  .member-group-title::after {
    display: none;
  }

  .member-staff-nav {
    gap: 0.8rem 1.2rem;
    margin: -1rem auto 2.5rem;
    padding: 0 0.5rem;
  }

  .member-staff-nav a .ja {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .member-staff-nav a .en {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
  }

  .member-group {
    scroll-margin-top: 80px;
  }

  .site-main {
    padding: 6rem 1.5rem 3rem;
  }

  .entry-title {
    font-size: 1.4rem;
  }

  .contact-page .entry-content {
    padding: 2rem 0;
  }

  /* Activities SP */
  .activities {
    padding: 3rem 0;
  }

  .activities .section-inner {
    padding: 0 1.5rem;
  }

  .activities-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .activities-heading {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .activity-card {
    padding: 1.2rem;
  }
}

/* ── Contact Page (CF7 Form) ── */
.page-template-default .site-main {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.contact-page .entry-content {
  padding: 3rem 0 4rem;
}

.contact-page .entry-content > p {
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 2;
  margin-bottom: 3rem;
}

/* CF7 Form Styling */
.wpcf7 {
  max-width: 640px;
  margin: 0 auto;
}

.wpcf7-form p {
  margin-bottom: 1.8rem;
}

.wpcf7-form label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.6rem;
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-size: 0.9rem;
  color: var(--black);
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: var(--black);
  background: var(--white);
}

.wpcf7-form textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.8;
}

.wpcf7-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Radio & Checkbox */
.wpcf7-form .wpcf7-radio,
.wpcf7-form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  margin-top: 0.3rem;
}

.wpcf7-form .wpcf7-list-item {
  margin: 0;
}

.wpcf7-form .wpcf7-list-item label {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Submit Button */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 2.5rem auto 0;
  padding: 1rem 2rem;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--black);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.wpcf7-form input[type="submit"]:disabled,
.wpcf7-form .wpcf7-submit:disabled {
  background: #ccc !important;
  color: #888 !important;
  border-color: #ccc !important;
  cursor: not-allowed;
  opacity: 1;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
  background: var(--white);
  color: var(--black);
}

/* Validation */
.wpcf7-not-valid {
  border-color: #c0392b !important;
}

.wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #c0392b;
  margin-top: 0.4rem;
  letter-spacing: 0.02em;
}

/* Response Messages */
.wpcf7-response-output {
  margin: 2rem 0 0 !important;
  padding: 1rem 1.2rem !important;
  font-size: 0.85rem;
  line-height: 1.8;
  border-radius: 0 !important;
}

.wpcf7-mail-sent-ok {
  border-color: var(--olive) !important;
  color: var(--olive);
  background: rgba(61, 74, 44, 0.05);
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--olive) !important;
  color: var(--olive);
  background: rgba(61, 74, 44, 0.05);
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: #c0392b !important;
  color: #c0392b;
  background: rgba(192, 57, 43, 0.05);
}

/* Spinner */
.wpcf7-spinner {
  margin: 1rem auto 0;
  display: block;
}

/* Acceptance checkbox */
.wpcf7-form .wpcf7-acceptance label {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.03em;
  color: var(--gray);
  line-height: 1.8;
}

/* File upload */
.wpcf7-form input[type="file"] {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Privacy Policy Box */
.privacy-policy-box {
  max-width: 640px;
  margin: 2rem auto;
}

.privacy-policy-box h4 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.privacy-policy-scroll {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  background: #fafafa;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 1rem;
}

.privacy-policy-scroll h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  margin: 1rem 0 0.3rem;
}

.privacy-policy-scroll h4:first-of-type {
  margin-top: 0.5rem;
}

.privacy-policy-scroll ul {
  padding-left: 1.2rem;
  margin: 0.3rem 0;
}

.privacy-policy-scroll li {
  margin-bottom: 0.2rem;
}

.privacy-policy-agree {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.privacy-policy-agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--black);
}

/* Responsive for Contact Page */
@media (max-width: 900px) {
  .contact-page .entry-content {
    padding: 2rem 0 3rem;
  }

  .wpcf7-form input[type="submit"],
  .wpcf7-form .wpcf7-submit {
    max-width: 100%;
  }
}
