@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Shippori+Mincho:wght@500;600;700&display=swap');

:root {
  --brand: #FF9900;
  --brand-hover: #E58A00;
  --brand-soft: #FFF4E5;
  --bg: linear-gradient(180deg, #f8f3eb 0%, #f3ede3 100%);
  --surface: #FFFDF9;
  --surface-strong: #FFFFFF;
  --ink: #342B25;
  --text-inverse: #FFFFFF;
  --muted: #6C625A;
  --page-accent: var(--brand);
  --page-accent-hover: var(--brand-hover);
  --page-accent-soft: var(--brand-soft);
  --accent: var(--page-accent);
  --accent-hover: var(--page-accent-hover);
  --accent-soft: var(--page-accent-soft);
  --accent-light: #FFD89F;
  --line: #EAEAEA;
  --section-title: var(--ink);
  --page-glow-1: rgba(255, 153, 0, 0.13);
  --page-glow-2: rgba(191, 144, 84, 0.14);
  --shadow-sm: 0 14px 36px rgba(70, 46, 18, 0.08);
  --shadow-md: 0 24px 54px rgba(70, 46, 18, 0.14);
  --shadow-hover: 0 28px 56px rgba(70, 46, 18, 0.16);
  --radius-lg: 24px;
  --radius-md: 14px;
}

body.page-home {
  --page-accent: #C87521;
  --page-accent-hover: #AF6417;
  --page-accent-soft: #FFF2E2;
  --page-glow-1: rgba(255, 153, 0, 0.18);
  --page-glow-2: rgba(212, 132, 41, 0.14);
}

body.page-kurasu,
.theme-kurasu {
  --page-accent: #809D6E;
  --page-accent-hover: #647F55;
  --page-accent-soft: #EEF5E7;
  --accent: #809D6E;
  --accent-hover: #647F55;
  --accent-soft: #EEF5E7;
  --section-title: #587A48;
}

body.page-kurasu {
  --page-glow-1: rgba(128, 157, 110, 0.16);
  --page-glow-2: rgba(255, 153, 0, 0.08);
}

body.page-hataraku,
.theme-hataraku {
  --page-accent: #B37A35;
  --page-accent-hover: #8D5E24;
  --page-accent-soft: #F8ECDE;
  --accent: #B37A35;
  --accent-hover: #8D5E24;
  --accent-soft: #F8ECDE;
  --section-title: #8E571B;
}

body.page-hataraku {
  --page-glow-1: rgba(179, 122, 53, 0.15);
  --page-glow-2: rgba(255, 153, 0, 0.08);
}

body.page-shiraseru,
.theme-shiraseru {
  --page-accent: #4F6FAF;
  --page-accent-hover: #3E5B93;
  --page-accent-soft: #EAF0FB;
  --accent: #4F6FAF;
  --accent-hover: #3E5B93;
  --accent-soft: #EAF0FB;
  --section-title: #345891;
}

body.page-shiraseru {
  --page-glow-1: rgba(79, 111, 175, 0.16);
  --page-glow-2: rgba(255, 153, 0, 0.07);
}

body.page-tsudou,
.theme-tsudou {
  --page-accent: #BC817B;
  --page-accent-hover: #975F5A;
  --page-accent-soft: #F8ECEA;
  --accent: #BC817B;
  --accent-hover: #975F5A;
  --accent-soft: #F8ECEA;
  --section-title: #915752;
}

body.page-tsudou {
  --page-glow-1: rgba(188, 129, 123, 0.14);
  --page-glow-2: rgba(255, 153, 0, 0.06);
}

body.page-neutral,
.theme-neutral {
  --page-accent: #9E8462;
  --page-accent-hover: #7E6648;
  --page-accent-soft: #F4EEE6;
  --accent: #9E8462;
  --accent-hover: #7E6648;
  --accent-soft: #F4EEE6;
  --section-title: #5C4A35;
}

body.page-neutral {
  --page-glow-1: rgba(158, 132, 98, 0.14);
  --page-glow-2: rgba(255, 153, 0, 0.06);
}

/* Anchor Menu (In-page navigation) */
.anchor-menu {
  position: sticky;
  top: 125px; /* Adjusted to fit below the new 2-row header */
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  z-index: 90; /* Just below global header (100) */
  border-bottom: 2px solid var(--brand);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 0; /* Removed margin-bottom since it starts at the top */
}
.anchor-menu .wrap {
  display: flex;
  justify-content: center;
  gap: 32px; /* Decreased from 40px for better rhythm */
  padding: 16px 0;
}
.anchor-menu a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.7;
  text-decoration: none;
  transition: all 0.2s;
  padding: 4px 0;
}
.anchor-menu a:hover {
  opacity: 1;
  color: var(--brand);
}
.anchor-menu a.active {
  opacity: 1;
  color: var(--brand);
}

body.page-kurasu .anchor-menu,
body.page-hataraku .anchor-menu,
body.page-shiraseru .anchor-menu,
body.page-tsudou .anchor-menu {
  border-bottom-color: color-mix(in srgb, var(--accent) 50%, white);
}

body.page-kurasu .anchor-menu a:hover,
body.page-kurasu .anchor-menu a.active,
body.page-hataraku .anchor-menu a:hover,
body.page-hataraku .anchor-menu a.active,
body.page-shiraseru .anchor-menu a:hover,
body.page-shiraseru .anchor-menu a.active,
body.page-tsudou .anchor-menu a:hover,
body.page-tsudou .anchor-menu a.active {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .anchor-menu { top: 90px; } /* Header height on mobile might change */
  .anchor-menu .wrap { gap: 16px; overflow-x: auto; white-space: nowrap; justify-content: flex-start; padding: 14px 20px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 12% 14%, var(--page-glow-1) 0%, transparent 34%),
    radial-gradient(circle at 88% 12%, var(--page-glow-2) 0%, transparent 30%),
    radial-gradient(circle at 80% 88%, rgba(255,255,255,0.75) 0%, transparent 28%),
    linear-gradient(180deg, #f9f5ee 0%, #f4eee5 100%);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

h1, h2, h3, h4, h5, h6, .mincho {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  margin-top: 0;
}

a { color: var(--brand); text-decoration: none; transition: .2s ease; }
a:hover { opacity: 0.8; }

.global-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 12px rgba(200, 100, 0, 0.15);
}
.wrap { width: min(1240px, 94%); margin: 0 auto; }
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 0; /* padding at the top */
}
.header-bottom {
  display: block;
  overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 16px; font-weight: 700; color: var(--ink); font-size: 1.5rem; letter-spacing: 0.05em; text-decoration: none; }
.brand:hover { opacity: 0.8; color: var(--brand); }
.brand-mark {
  width: 60px; height: 60px;
  background: transparent url("images/recovery-logo.png") center / contain no-repeat;
}
.brand div { line-height: 1.3; }

.brand-container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-tagline {
  font-size: 1.1rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--ink) 72%, white);
  letter-spacing: 0.05em;
  padding-left: 16px;
  border-left: 2px solid var(--brand);
  line-height: 1.4;
  margin-top: 2px; /* Align visually with text */
}

@media (max-width: 880px) {
  .brand-tagline { display: none; } /* Hide on mobile to save space */
}

.site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 40px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4f4f4f;
  background: rgba(255, 244, 229, 0.9);
  border: 1px solid rgba(255, 153, 0, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-left: auto; /* Push to the right in the flex container */
  margin-right: 20px;
}
.site-link::after {
  content: "";
  display: inline-block;
  width: 15px; height: 15px;
  margin-left: 2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") center / contain no-repeat;
}
.site-link:hover { 
  text-decoration: none; 
  background: var(--brand); 
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255,153,0,0.22);
}

/* Global External Link Icon */
.external {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.external::after {
  content: "";
  display: inline-block;
  width: 1.1em; height: 1.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") center / contain no-repeat;
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .site-link { display: none; } /* Hide on mobile to save space */
}

.menu-toggle { display: none; }

.menu { 
  display: flex; 
  flex-wrap: nowrap; 
  justify-content: center; /* Changed from flex-start to center */
  gap: 16px; /* Increased from 8px for a more premium look */
  overflow-x: auto; 
  scrollbar-width: none;
  margin-top: 10px; /* Spacing between logo row and menu row */
}
.menu::-webkit-scrollbar { display: none; }

.menu a {
  padding: 12px 16px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  position: relative;
  opacity: 0.7;
}
.menu a:hover {
  opacity: 1;
  color: var(--brand);
}
.menu a.active {
  opacity: 1;
  color: var(--brand);
}
.menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 4px;
  background: var(--brand);
  border-radius: 4px 4px 0 0;
}

body.page-kurasu .menu a:hover,
body.page-kurasu .menu a.active,
body.page-hataraku .menu a:hover,
body.page-hataraku .menu a.active,
body.page-shiraseru .menu a:hover,
body.page-shiraseru .menu a.active,
body.page-tsudou .menu a:hover,
body.page-tsudou .menu a.active {
  color: var(--accent);
}

body.page-kurasu .menu a.active::after,
body.page-hataraku .menu a.active::after,
body.page-shiraseru .menu a.active::after,
body.page-tsudou .menu a.active::after {
  background: var(--accent);
}

main { padding: 130px 0 64px; }

/* Elegant Hero Section (Slideshow) */
.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  margin-top: -130px; /* Pull up to cover area behind the header */
}
.hero-inner {
  position: relative;
  height: 100%;
  padding: 180px 0 100px; /* Extra top padding to offset header presence */
  display: flex;
  align-items: center;
  z-index: 10;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideFade 36s infinite;
}
.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: 6s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: 12s; }
.hero-slideshow .slide:nth-child(4) { animation-delay: 18s; }
.hero-slideshow .slide:nth-child(5) { animation-delay: 24s; }
.hero-slideshow .slide:nth-child(6) { animation-delay: 30s; }

@keyframes slideFade {
  0% { opacity: 0; transform: scale(1); }
  5% { opacity: 1; transform: scale(1.01); }
  16.66% { opacity: 1; transform: scale(1.04); }
  21.66% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  background: rgba(255, 252, 246, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,0.5);
}
.hero-content h1 {
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  line-height: 1.5;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero-content p {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
  border-radius: 14px;
}
.btn-md {
  min-height: 48px;
  padding: 0 24px;
}
.btn-lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.02rem;
  border-radius: 18px;
}
.btn-block {
  width: 100%;
}
.btn-primary { 
  background: var(--brand); 
  color: #fff; 
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 22px rgba(255,153,0,0.26),
    0 0 40px rgba(255,153,0,0.18);
}
.btn-primary:hover { 
  opacity: 1; 
  background: var(--brand-hover); 
  transform: translateY(-3px); 
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 0 28px rgba(255,153,0,0.34),
    0 0 52px rgba(255,153,0,0.22);
  color: #fff; 
  border-color: rgba(255,255,255,0.95);
}
.btn-secondary,
.btn-outline {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}
.btn-secondary:hover,
.btn-outline:hover {
  opacity: 1;
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.btn-soft {
  background: rgba(255,255,255,0.82);
  color: var(--accent);
  border-color: rgba(94, 74, 52, 0.1);
  box-shadow: 0 8px 20px rgba(70, 46, 18, 0.06);
}
.btn-soft:hover {
  opacity: 1;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: rgba(94, 74, 52, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(70, 46, 18, 0.09);
}
.btn.external::after {
  margin-left: 2px;
}
.btn-donate {
  min-width: min(100%, 420px);
  padding: 0 38px;
  border-width: 3px;
  border-color: rgba(255,255,255,0.92);
  background:
    linear-gradient(180deg, #ffa71d 0%, #ff9900 52%, #f08a00 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 0 26px rgba(255, 153, 0, 0.3),
    0 0 48px rgba(255, 153, 0, 0.2);
  font-size: 1.04rem;
  letter-spacing: 0.03em;
}
.btn-donate:hover {
  background:
    linear-gradient(180deg, #ffb234 0%, #ffa113 50%, #ea8300 100%);
  border-color: rgba(255,255,255,0.96);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.14),
    0 0 32px rgba(255, 153, 0, 0.36),
    0 0 58px rgba(255, 153, 0, 0.24);
}
.btn-donate.external::after {
  width: 1.15em;
  height: 1.15em;
  margin-left: 6px;
}
.text-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
.text-link:hover {
  opacity: 1;
  color: var(--accent-hover);
}

/* Sections */
.section {
  margin-top: 40px;
  scroll-margin-top: 190px;
}

.service-panel[id],
.info-panel[id],
.step-panel[id],
.card-featured[id],
.family-card[id],
.profile-box[id] {
  scroll-margin-top: 190px;
}

.page-combined-services .section[id] {
  scroll-margin-top: 214px;
}
.section h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  color: var(--section-title);
}
.section h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
  opacity: 0.8;
}

/* Grid Cards (Image + Content) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.activities-grid {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 880px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(94, 74, 52, 0.06);
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card-img-wrap {
  width: calc(100% + 48px);
  margin: -24px -24px 24px -24px;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--line);
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.card:hover .card-img-wrap img { transform: scale(1.05); }

.card-tag {
  align-self: flex-start;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.card h3 { margin: 0 0 14px; font-size: 1.35rem; font-family: "Shippori Mincho", serif; color: var(--ink); }
.card p { margin: 0 0 24px; color: var(--muted); flex-grow: 1; font-size: 1rem; }
.card-link,
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--accent);
  align-self: flex-start;
  text-decoration: none;
}
.card-link::after,
.link-arrow::after {
  content: '→';
  transition: transform 0.2s;
  font-family: sans-serif;
}
.card:hover .card-link::after,
.link-arrow:hover::after {
  transform: translateX(6px);
}

.sns-section-lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.sns-card {
  display: grid;
  gap: 16px;
}

.sns-card-head h3 {
  margin: 0;
}

.sns-card-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sns-thumb-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sns-thumb-row a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.sns-thumb-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.sns-thumb-row a:hover img {
  transform: scale(1.05);
}

.newsletter-card {
  gap: 24px;
}

.newsletter-card-hero {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 280px);
  grid-template-areas: "copy image";
  gap: 22px;
  align-items: center;
  margin-bottom: 26px;
}

.newsletter-card-hero > p {
  grid-area: copy;
}

.newsletter-card-image {
  grid-area: image;
  justify-self: end;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, white);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}

.newsletter-card-image img {
  display: block;
  width: 100%;
  height: auto;
}

.newsletter-card-note {
  margin: 0 0 18px !important;
  font-size: 0.92rem !important;
  color: var(--muted) !important;
}

/* Featured Card (Horizontal layout) */
.card-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-areas: "content image";
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--accent);
  margin-top: 32px;
}
.card-featured-img {
  grid-area: image;
  height: 100%;
  min-height: 280px;
}
.card-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-featured-content {
  grid-area: content;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fffdfa 100%);
}
.card-featured-content p {
  flex-grow: 1;
}
@media (max-width: 880px) {
  .card-featured {
    grid-template-columns: 1fr;
    grid-template-areas: "image" "content";
  }
  .card-featured-img {
    height: 240px;
    min-height: auto;
  }
  .card-featured-content {
    padding: 32px 24px;
  }
  .family-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 24px;
  }
  .family-card-media {
    order: -1;
    width: min(100%, 300px);
  }
  .family-card-price {
    min-width: 0;
  }
  .family-card-price-main {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .family-card-price-divider {
    width: 100%;
    min-height: 1px;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      color-mix(in srgb, var(--accent) 24%, white) 18%,
      color-mix(in srgb, var(--accent) 24%, white) 82%,
      transparent 100%
    );
  }
}

/* News Section */
.news-list {
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(94, 74, 52, 0.06);
}
.news-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}
.news-item:last-of-type { border-bottom: none; }
.news-date { font-weight: 700; color: var(--accent); font-size: 1.08rem; }
.news-title { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.news-title:hover { color: var(--accent); }
.news-text { color: var(--muted); font-size: 1.1rem; line-height: 1.6; }

/* Thought Content */
.thought-content {
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  padding: 24px 48px 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(94, 74, 52, 0.06);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink);
}
.thought-content p { margin-bottom: 24px; }
.thought-content p:last-child { margin-bottom: 0; }

.section-intro {
  text-align: center;
}

.section-intro-spaced {
  margin-bottom: 48px;
}

.section-intro-title {
  font-size: clamp(1.9rem, 3.5vw, 2.4rem);
  color: var(--section-title);
  margin-bottom: 20px;
}

.section-intro-lead {
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 16px;
}

.section-highlight {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--section-title);
  margin-bottom: 24px;
}

.section-highlight-accent {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 32px;
  text-align: center;
}

.content-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin: 40px 0;
  align-items: center;
}

.media-frame {
  border-radius: 24px;
  overflow: hidden;
}

.media-frame-tall {
  height: 300px;
}

.media-frame img,
.media-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.accent-heading {
  color: var(--accent);
  margin-bottom: 16px;
}

.subtle-top-divider {
  text-align: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px dashed var(--line);
}

.subtle-top-divider p {
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.callout-card {
  margin-top: 40px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, white);
  border-radius: 24px;
  padding: 28px 32px;
}

.callout-card p {
  margin: 0;
}

.callout-card strong {
  display: inline-block;
  margin-bottom: 10px;
}

.callout-card-centered {
  text-align: center;
}

.action-stack {
  margin-top: 32px;
}

.action-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.final-cta-section {
  padding: 60px 0;
}

.final-cta {
  text-align: center;
  background: var(--surface);
  border: 2px solid var(--accent);
  padding: 48px;
  border-radius: 40px;
}

.final-cta-title {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 24px;
}

.final-cta-actions {
  margin-top: 32px;
}

.final-cta-follow {
  text-align: center;
  margin-top: 48px;
}

.panel-spaced {
  margin-bottom: 56px;
}

.panel-spaced-sm {
  margin-bottom: 48px;
}

.section-divider {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.linked-card {
  text-decoration: none;
  color: inherit;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 86%, white), rgba(255,255,255,0.98));
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--section-title);
}

.media-placeholder strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.media-placeholder span {
  font-size: 0.92rem;
  color: var(--muted);
}

.card-featured-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag-row {
  margin-bottom: 12px;
}

.tag-row .card-tag + .card-tag {
  margin-left: 8px;
}

.card-tag-strong {
  background: var(--accent);
  color: #fff;
  border: none;
}

.card-tag-alert {
  background: #ff4400;
  color: #fff;
  padding: 4px 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  border: none;
}

.article-content {
  line-height: 2;
  font-size: 1.05rem;
}

.article-content h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin: 40px 0 24px;
  border-bottom: 2px solid var(--accent-hover);
  padding-bottom: 8px;
}

.article-content p {
  margin-bottom: 24px;
}

.article-title-center {
  font-size: 1.8rem;
  color: var(--accent);
  text-align: center;
  margin: 0 0 40px;
  border-bottom: none;
  padding-bottom: 0;
}

.article-image {
  margin: 40px auto;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.article-image:hover img {
  transform: scale(1.02);
}

.article-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 12px;
}

.footnote {
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 40px;
}

.case-study {
  background: var(--accent-soft);
  padding: 32px;
  border-radius: var(--radius-md);
  margin: 32px 0;
}

.case-study h4 {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.overview-block-title {
  margin-bottom: 24px;
  font-size: 1.4rem;
  color: var(--accent);
}

.pillars-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.pillar-card {
  background: var(--accent-soft);
  padding: 24px;
  border-radius: 16px;
}

.pillar-card h4 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.pillar-card p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.detail-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.detail-table tr {
  border-bottom: 1px solid var(--line);
}

.detail-table tr:last-child {
  border-bottom: none;
}

.detail-table th,
.detail-table td {
  padding: 16px 24px;
}

.detail-table th {
  width: 30%;
  background: rgba(0,0,0,0.02);
  text-align: left;
  font-weight: 700;
  vertical-align: top;
}

.timeline {
  display: grid;
  gap: 20px;
  font-size: 0.95rem;
}

.timeline-item {
  display: flex;
  gap: 24px;
}

.timeline-date {
  font-weight: 700;
  min-width: 80px;
  color: var(--accent);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.section-subtitle-left {
  text-align: left;
  left: 0;
  transform: none;
}

.section-subtitle-left::after {
  left: 0;
  transform: none;
}

.support-methods {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.support-method-card {
  margin: 0;
  background: var(--surface);
}

.support-method-card h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.support-method-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

.fund-use-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  text-align: left;
}

.fund-use-grid h5 {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.fund-use-grid p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.family-card {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 32px 36px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 92%, white) 0%, rgba(255,255,255,0.98) 72%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, white);
  box-shadow:
    0 24px 54px color-mix(in srgb, var(--accent) 10%, transparent),
    inset 0 0 0 1px rgba(255,255,255,0.58);
}

.family-card-copy h3 {
  color: var(--accent);
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  margin-bottom: 16px;
}

.family-card-copy p {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.85;
}

.family-card-price {
  display: grid;
  gap: 10px;
  min-width: min(100%, 520px);
  padding: 18px 22px 22px;
  margin-bottom: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, white);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 8%, transparent);
}

.family-card-price-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr);
  align-items: stretch;
  gap: 16px;
  color: var(--ink);
}

.family-card-price-block {
  display: grid;
  gap: 8px;
  align-content: center;
}

.family-card-price-block small {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.family-card-price-block strong {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
}

.family-card-price-amount strong {
  color: color-mix(in srgb, var(--accent) 26%, var(--ink));
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.family-card-price-amount strong span {
  font-size: 0.32em;
  font-weight: 700;
  color: var(--muted);
}

.family-card-price-divider {
  width: 1px;
  min-height: 72px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--accent) 24%, white) 18%,
    color-mix(in srgb, var(--accent) 24%, white) 82%,
    transparent 100%
  );
}

.family-card-actions {
  margin-top: 4px;
}

.family-card-media {
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
  justify-self: center;
  border-radius: 28px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid rgba(94, 74, 52, 0.08);
  box-shadow:
    0 20px 40px rgba(94, 74, 52, 0.08),
    var(--shadow-sm);
}

.family-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-kurasu .wrap > .section:first-of-type .thought-content,
body.page-hataraku .wrap > .section:first-of-type .thought-content,
body.page-shiraseru .wrap > .section:first-of-type .thought-content,
body.page-tsudou .wrap > .section:first-of-type .thought-content {
  position: relative;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 92%, white) 0%, rgba(255,255,255,0.98) 72%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, white);
  box-shadow:
    0 24px 54px color-mix(in srgb, var(--accent) 10%, transparent),
    inset 0 0 0 1px rgba(255,255,255,0.58);
}

body.page-kurasu .wrap > .section:first-of-type .thought-content::before,
body.page-hataraku .wrap > .section:first-of-type .thought-content::before,
body.page-shiraseru .wrap > .section:first-of-type .thought-content::before,
body.page-tsudou .wrap > .section:first-of-type .thought-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 80%, white), color-mix(in srgb, var(--accent) 42%, white));
}

body.page-kurasu .wrap > .section:first-of-type .thought-content::before,
body.page-shiraseru .wrap > .section:first-of-type .thought-content::before,
body.page-tsudou .wrap > .section:first-of-type .thought-content::before {
  display: none;
}

/* Profile Section */
.profile-box {
  display: flex;
  gap: 32px;
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(94, 74, 52, 0.06);
  align-items: center;
}
.profile-img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-md); border: 4px solid var(--surface); }
.profile-info h3 { margin: 0 0 8px; font-size: 1.6rem; color: var(--ink); }
.profile-name {
  margin-top: 20px;
  margin-bottom: 0;
  line-height: 1.15;
}

.profile-box-top {
  align-items: flex-start;
  gap: 48px;
}

.profile-box-stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
}

.profile-head-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.profile-head-inline .profile-img {
  width: 136px;
  height: 136px;
}

.profile-head-inline .profile-name {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.3rem);
  line-height: 1.15;
}

.profile-head-inline .profile-name-kana {
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 500;
}

.bio-section {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.8;
}

.profile-name-kana {
  display: block;
  margin-top: 6px;
  font-size: 0.52em;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.profile-catch {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  line-height: 1.45;
  color: var(--accent);
  text-align: center;
}

.profile-info p.title { font-weight: 700; color: var(--muted); margin-bottom: 16px; font-size: 0.95rem; }
.profile-info p.bio { font-size: 1rem; color: var(--ink); line-height: 1.8; }
.profile-info .action-stack {
  display: flex;
  justify-content: center;
}

/* Note */
.note {
  margin-top: 40px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}
.note a { color: var(--accent); text-decoration: underline; font-weight: 700; }

.personal-note {
  margin-top: 32px;
  padding: 24px 28px;
  background: color-mix(in srgb, var(--accent-soft) 70%, white);
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, white);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 6%, transparent);
  font-size: 0.95rem;
}

.personal-note p {
  margin: 0;
  color: var(--ink);
  line-height: 1.8;
}

.personal-note strong {
  color: var(--section-title);
}

.personal-note-award {
  margin-top: 10px !important;
  font-size: 0.85rem;
  color: var(--muted) !important;
}

body.page-representative .representative-content {
  display: grid;
  gap: 34px;
}

body.page-representative .representative-hero {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 92%, white) 0%, rgba(255,255,255,0.98) 72%);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, white);
  box-shadow:
    0 24px 54px color-mix(in srgb, var(--accent) 10%, transparent),
    inset 0 0 0 1px rgba(255,255,255,0.58);
}

body.page-representative .representative-hero-head {
  text-align: center;
  min-width: 220px;
}

body.page-representative .representative-hero-head .profile-name {
  margin-top: 16px;
  font-size: clamp(1.85rem, 3vw, 2.2rem);
}

body.page-representative .representative-hero-head .profile-name-kana {
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 500;
}

body.page-representative .representative-hero-copy {
  display: grid;
  gap: 10px;
}

body.page-representative .representative-hero-copy p {
  margin: 0;
  line-height: 1.85;
}

body.page-representative .overview-block-title {
  margin-bottom: 14px;
}

body.page-representative .timeline,
body.page-representative .books-grid,
body.page-representative .detail-table-wrap {
  margin-top: -8px;
}

body.page-representative .timeline-date {
  min-width: 64px;
}

body.page-representative .books-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.page-representative .book-card {
  display: grid;
  gap: 14px;
  align-content: start;
  border-top: 4px solid var(--accent);
}

body.page-representative .book-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
}

body.page-representative .book-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

body.page-representative .book-action {
  margin-top: auto;
}

ul.clean { margin: 8px 0 0; padding-left: 1.4rem; }

/* Footer */
footer {
  margin-top: 100px;
  border-top: 1px solid rgba(255,255,255,0.16);
  background: transparent;
  color: var(--surface);
  font-size: 0.95rem;
  opacity: 0.9;
}
footer .wrap { padding: 40px 0; text-align: center; }

.site-footer {
  margin-top: 100px;
  background: #221a10;
  color: #a08870;
  padding: 64px 0 36px;
  border: none;
  opacity: 1;
}

.site-footer .wrap {
  padding: 0;
  text-align: left;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  color: #e0c9a8;
  font-family: "Shippori Mincho", serif;
  font-size: 1rem;
  font-weight: 700;
}

.site-footer-brand:hover {
  color: #f0dbc0;
}

.site-footer-mark {
  filter: brightness(0) saturate(100%) invert(82%) sepia(13%) saturate(541%) hue-rotate(346deg) brightness(96%) contrast(88%);
}

.site-footer-desc {
  margin: 0;
  max-width: 32rem;
  font-size: 0.9rem;
  line-height: 2;
  color: #806a50;
}

.site-footer-title {
  margin: 0 0 14px;
  padding: 0;
  border: none;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: #a08870;
  font-weight: 700;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.site-footer-contact,
.site-footer-links {
  font-size: 0.9rem;
  line-height: 2;
  color: #806a50;
}

.site-footer-contact {
  margin: 0;
}

.site-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-links li {
  margin-bottom: 2px;
}

.site-footer-links a {
  color: #806a50;
}

.site-footer-links a:hover {
  color: #e0c9a8;
  opacity: 1;
}

.site-footer-bottom {
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid #3a2a18;
  text-align: center;
  color: #5a4535;
  font-size: 0.78rem;
}

.theme-section .thought-content {
  background:
    linear-gradient(180deg, var(--accent-soft) 0%, rgba(255,255,255,0.98) 180px),
    var(--surface-strong);
}

.theme-card {
  background:
    linear-gradient(180deg, var(--accent-soft) 0%, rgba(255,255,255,0.98) 220px),
    var(--surface-strong);
  border-top: 4px solid var(--accent);
}

.theme-card h3 {
  color: var(--section-title);
}

.service-panel {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 96%, white) 0%, rgba(255,255,255,0.98) 240px),
    var(--surface-strong);
  border: 1px solid rgba(94, 74, 52, 0.08);
  border-top: 4px solid var(--accent);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow:
    0 20px 44px color-mix(in srgb, var(--accent) 10%, transparent),
    var(--shadow-sm);
  padding: 36px;
  display: grid;
  gap: 32px;
}

.service-panel-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.service-panel-copy h3 {
  color: var(--section-title);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin-bottom: 16px;
}

.service-panel-subtype {
  display: inline-block;
  margin-left: 0.25em;
  font-size: 0.56em;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: middle;
}

.service-panel-copy p {
  margin-bottom: 16px;
  color: var(--ink);
}

.service-panel-lead {
  font-size: 1.08rem;
  line-height: 1.9;
}

.service-panel-media {
  width: 340px;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--line);
  justify-self: end;
}

.service-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.service-panel-body {
  display: grid;
  gap: 28px;
}

.service-panel-group {
  display: grid;
  gap: 14px;
}

.service-panel-heading {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 14px;
}

.service-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-panel-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-panel-item,
.info-panel-point {
  background: color-mix(in srgb, var(--accent-soft) 34%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, white);
  border-top: 6px solid color-mix(in srgb, var(--accent) 88%, white);
  border-radius: 24px;
  padding: 22px 22px 20px;
  color: var(--ink);
  min-height: 100%;
  box-shadow:
    0 18px 36px color-mix(in srgb, var(--accent) 8%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.45);
}

.service-panel-item strong {
  display: block;
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.service-panel-item-thumb {
  display: block;
  width: clamp(120px, 55%, 170px);
  height: clamp(90px, 24vw, 128px);
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, white);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 12%, transparent);
  margin: 2px 0 12px;
}

.service-panel-meta-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-panel-note {
  background: color-mix(in srgb, var(--accent-soft) 28%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 10%, white);
  border-radius: 22px;
  padding: 22px 24px;
  color: var(--ink);
  min-height: 100%;
}

.service-panel-note strong {
  display: block;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 10px;
}

.service-panel-note-actions {
  margin-top: 16px;
}

.service-panel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 4px;
}

.service-panel-actions .btn {
  min-width: 200px;
}

.info-panel {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 32px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.75), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 252, 247, 0.94) 100%);
  border: 1px solid rgba(94, 74, 52, 0.08);
  box-shadow: 0 26px 56px rgba(94, 74, 52, 0.08);
}

body.page-kurasu .info-panel,
body.page-hataraku .info-panel,
body.page-shiraseru .info-panel,
body.page-tsudou .info-panel {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent-soft) 52%, white), transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 64%, white) 0%, rgba(255, 252, 247, 0.95) 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, white);
  box-shadow: 0 26px 56px color-mix(in srgb, var(--accent) 9%, transparent);
}

.info-panel-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.info-panel-copy h3 {
  color: var(--accent);
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  margin-bottom: 16px;
}

.info-panel-copy p {
  margin-bottom: 16px;
  color: var(--ink);
}

.info-panel-copy p:last-child {
  margin-bottom: 0;
}

.info-panel-media {
  width: 340px;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow-md);
  justify-self: end;
}

.info-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.info-panel-hero > .info-panel-media:first-child {
  justify-self: start;
}

.info-panel-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-panel-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.info-panel-point h4 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: var(--ink);
}

.info-panel-point p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.step-panel {
  display: grid;
  gap: 30px;
  padding: 32px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.74), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 252, 247, 0.95) 100%);
  border: 1px solid rgba(94, 74, 52, 0.08);
  box-shadow: 0 26px 56px rgba(94, 74, 52, 0.08);
}

.step-panel-intro {
  max-width: 1120px;
}

.step-panel-intro p {
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}

.step-panel-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-item {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 28px 24px 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(94, 74, 52, 0.07);
  box-shadow: 0 18px 36px rgba(94, 74, 52, 0.05);
}

.step-item-badge {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 22%, transparent);
}

.step-item h3 {
  margin: 0;
  font-size: 1.28rem;
  color: var(--ink);
}

.step-item p {
  margin: 0;
  color: var(--muted);
}

.theme-section .card {
  border-top: 4px solid var(--accent);
}

.theme-section .card-featured {
  border-color: var(--accent);
}

.theme-section .card-link,
.theme-section .news-date,
.theme-section .news-title:hover,
.theme-section .note a {
  color: var(--accent);
}

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

@media (max-width: 1024px) {
  .menu { flex-wrap: wrap; }
  .profile-box { flex-direction: column; text-align: center; }
  .sns-grid { grid-template-columns: 1fr; }
  .newsletter-card-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "image";
  }
  .newsletter-card-image { max-width: 360px; width: 100%; justify-self: center; }
  body.page-representative .representative-hero-copy { text-align: left; }
  body.page-representative .books-grid { grid-template-columns: 1fr; }
  .content-split,
  .pillars-grid { grid-template-columns: 1fr; }
  .service-panel-top { grid-template-columns: 1fr; }
  .service-panel-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-panel-meta-grid { grid-template-columns: 1fr; }
  .info-panel-hero,
  .info-panel-points,
  .step-panel-track { grid-template-columns: 1fr; }
  .step-panel-track::before {
    top: 0;
    bottom: 0;
    left: 30px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent) 18%, transparent) 0%,
      color-mix(in srgb, var(--accent) 45%, transparent) 50%,
      color-mix(in srgb, var(--accent) 18%, transparent) 100%
    );
  }
  .site-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 880px) {
  .header-top { align-items: center; justify-content: space-between; padding: 10px 0; }
  .header-bottom { display: block; }
  
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    position: relative;
  }
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--ink);
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  .menu-toggle.is-active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
  .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

  .menu { 
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 252, 247, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
  }
  .menu.is-active {
    opacity: 1;
    pointer-events: auto;
  }
  .menu a {
    font-size: 1.25rem;
    padding: 10px 24px;
    border-radius: 999px; /* Revert to rounded pills for mobile overlay */
    white-space: normal;
  }

  main { padding-top: 160px; }
  .thought-content,
  .final-cta {
    padding: 24px;
  }
  body.page-representative .representative-content {
    gap: 26px;
  }
  body.page-representative .representative-hero {
    padding: 28px 22px;
  }
  .service-panel {
    padding: 24px;
    gap: 24px;
  }
  .service-panel-media {
    width: min(100%, 360px);
    max-width: none;
    min-height: 0;
    justify-self: center;
  }
  .info-panel {
    padding: 24px;
    gap: 24px;
  }
  .info-panel-media {
    width: min(100%, 360px);
    max-width: none;
    min-height: 0;
    justify-self: center;
  }
  .step-panel {
    padding: 24px;
    gap: 24px;
  }
  .step-item {
    padding: 22px 20px 20px 84px;
  }
  .step-item-badge {
    position: absolute;
    top: 20px;
    left: 18px;
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }
  .service-panel-menu-grid {
    grid-template-columns: 1fr;
  }
  .service-panel-actions .btn {
    width: 100%;
    min-width: 0;
  }
  .site-footer {
    padding: 48px 0 30px;
  }
  .site-footer-brand {
    margin-bottom: 16px;
  }
  .site-footer-bottom {
    margin-top: 36px;
  }
  .timeline-item {
    flex-direction: column;
    gap: 6px;
  }
  .detail-table,
  .detail-table tbody,
  .detail-table tr,
  .detail-table th,
  .detail-table td {
    display: block;
    width: 100%;
  }
  .detail-table th,
  .detail-table td {
    padding: 14px 18px;
  }
  .detail-table th {
    border-bottom: 1px solid var(--line);
  }
}
