/* ============================================
   福祉バンク大館 — Design System & Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&family=Shippori+Mincho:wght@400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Color Palette — Warm Earth Tones */
  --c-cream:       #faf7f2;
  --c-warm-white:  #f5f0e8;
  --c-sand:        #e8dfd3;
  --c-beige:       #d4c8b8;
  --c-warm-brown:  #8b7355;
  --c-dark-brown:  #5c4a32;
  --c-deep-brown:  #3d3024;
  --c-forest:      #4a6741;
  --c-moss:        #6b8f5e;
  --c-sage:        #8faa7e;
  --c-soft-green:  #c5d8b8;
  --c-terracotta:  #c4725e;
  --c-soft-coral:  #e8a090;
  --c-gold:        #c9a96e;
  --c-soft-gold:   #e8d5a8;

  /* Semantic Colors */
  --color-bg:        var(--c-cream);
  --color-bg-alt:    var(--c-warm-white);
  --color-surface:   #ffffff;
  --color-text:      var(--c-deep-brown);
  --color-text-sub:  var(--c-warm-brown);
  --color-accent:    var(--c-forest);
  --color-accent2:   var(--c-terracotta);
  --color-border:    var(--c-sand);

  /* Typography */
  --font-sans:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-serif: 'Shippori Mincho', 'Yu Mincho', serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --header-h:  72px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(61,48,36,0.06);
  --shadow-md: 0 4px 20px rgba(61,48,36,0.08);
  --shadow-lg: 0 8px 40px rgba(61,48,36,0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.5s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 101;
}
.brand-icon {
  width: 42px;
  height: 42px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-copy {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: color 0.4s, text-shadow 0.4s;
}
.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.4s;
}
.site-header.scrolled .brand-name {
  color: var(--c-deep-brown);
  text-shadow: none;
}
.site-header.scrolled .brand-sub {
  color: var(--c-warm-brown);
  opacity: 0.7;
}
.site-header.scrolled .brand-icon {
  box-shadow: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.desktop-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  position: relative;
  transition: color 0.4s, text-shadow 0.4s;
}
.site-header.scrolled .desktop-nav a {
  color: var(--c-warm-brown);
  text-shadow: none;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #ffffff;
  transition: width 0.3s var(--ease-out), background 0.4s;
}
.desktop-nav a:hover { color: #ffffff; }
.site-header.scrolled .desktop-nav a::after { background: var(--c-forest); }
.site-header.scrolled .desktop-nav a:hover { color: var(--c-forest); }
.desktop-nav a:hover::after { width: 100%; }

.header-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  padding: 8px 20px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 100px;
  transition: all 0.3s var(--ease-out);
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.site-header.scrolled .header-contact {
  color: var(--c-forest);
  border-color: var(--c-forest);
  text-shadow: none;
}
.header-contact:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.8);
  color: white;
}
.site-header.scrolled .header-contact:hover {
  background: var(--c-forest);
  color: white;
  border-color: var(--c-forest);
}
.header-contact svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Mobile Menu Button */
.menu-button {
  display: none;
  width: 36px; height: 36px;
  position: relative;
  z-index: 101;
}
.menu-button span {
  display: block;
  width: 22px; height: 2px;
  background: #ffffff;
  transition: all 0.3s var(--ease-out), background 0.4s;
}
.site-header.scrolled .menu-button span {
  background: var(--c-deep-brown);
  position: absolute;
  left: 7px;
  transition: all 0.3s var(--ease-out);
}
.menu-button span:first-child { top: 12px; }
.menu-button span:last-child { top: 22px; }
.menu-button[aria-expanded="true"] span:first-child {
  top: 17px; transform: rotate(45deg);
}
.menu-button[aria-expanded="true"] span:last-child {
  top: 17px; transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(250,247,242,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.mobile-menu nav a {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--c-deep-brown);
  transition: color 0.3s;
}
.mobile-menu nav a:hover { color: var(--c-forest); }
.mobile-menu .mobile-contact {
  margin-top: var(--space-md);
  padding: 12px 32px;
  background: var(--c-forest);
  color: white;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(61,48,36,0.88) 0%,
    rgba(61,48,36,0.65) 35%,
    rgba(61,48,36,0.40) 60%,
    rgba(61,48,36,0.25) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}
.hero-content-inner {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-soft-gold);
  margin-bottom: var(--space-md);
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--c-soft-gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  margin-bottom: var(--space-md);
  max-width: 600px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.9);
}
.hero-title em {
  font-style: normal;
  color: var(--c-soft-gold);
  text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.9);
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #ffffff;
  max-width: 540px;
  margin-bottom: var(--space-lg);
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--c-forest);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.3s var(--ease-out);
  border: 2px solid var(--c-forest);
}
.button-primary:hover {
  background: var(--c-moss);
  border-color: var(--c-moss);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74,103,65,0.3);
}
.button-primary svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.button-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s;
}
.button-ghost:hover { color: white; }
.button-ghost span { text-decoration: underline; text-underline-offset: 4px; }

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  padding: var(--space-3xl) 0;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-forest);
  margin-bottom: var(--space-sm);
}
.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--c-forest);
  border-radius: 1px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-deep-brown);
  margin-bottom: var(--space-md);
}
.section-desc {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--c-warm-brown);
  max-width: 600px;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.philosophy {
  background: var(--color-bg);
}
.philosophy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.philosophy-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.philosophy-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.philosophy-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
}
.philosophy-badge {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  background: rgba(74,103,65,0.9);
  backdrop-filter: blur(8px);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.philosophy-text .section-desc {
  margin-bottom: var(--space-lg);
}

.philosophy-values {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.philosophy-value {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--c-sand);
}
.philosophy-value:last-child { border-bottom: none; }
.value-marker {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-soft-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-marker svg {
  width: 18px; height: 18px;
  stroke: var(--c-forest);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value-text h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--c-deep-brown);
}
.value-text p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--c-warm-brown);
}

/* ============================================
   DAY SERVICE SECTION
   ============================================ */
.dayservice {
  background: var(--c-warm-white);
  position: relative;
  overflow: hidden;
}
.dayservice::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-soft-green) 0%, transparent 70%);
  opacity: 0.15;
}

.dayservice-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}
.dayservice-header .section-label {
  justify-content: center;
}

.dayservice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.dayservice-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.dayservice-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.dayservice-card-img {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.dayservice-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.dayservice-card:hover .dayservice-card-img img {
  transform: scale(1.05);
}
.dayservice-card-tag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: rgba(74,103,65,0.85);
  backdrop-filter: blur(6px);
  color: white;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.dayservice-card-body {
  padding: var(--space-md);
}
.dayservice-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-deep-brown);
  margin-bottom: 8px;
}
.dayservice-card-body p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--c-warm-brown);
}

.dayservice-note {
  text-align: center;
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-sand);
}
.dayservice-note p {
  font-size: 0.85rem;
  color: var(--c-warm-brown);
  line-height: 1.8;
}
.dayservice-note strong {
  color: var(--c-forest);
}

/* ============================================
   MUTUAL AID SECTION
   ============================================ */
.mutual-aid {
  background: var(--c-deep-brown);
  color: white;
  position: relative;
  overflow: hidden;
}
.mutual-aid::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-forest) 0%, transparent 70%);
  opacity: 0.15;
}

.mutual-aid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.mutual-aid-text .section-label {
  color: var(--c-soft-gold);
}
.mutual-aid-text .section-label::before {
  background: var(--c-soft-gold);
}
.mutual-aid-text .section-title {
  color: white;
}
.mutual-aid-text .section-desc {
  color: rgba(255,255,255,0.7);
}

/* Cycle Diagram — Redesigned Triangle Layout */
.cycle-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}
.cycle-ring {
  position: relative;
  width: 320px;
  height: 320px;
}
/* Outer dashed orbit ring */
.cycle-ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: 50%;
  animation: rotateSlowly 30s linear infinite;
}
.cycle-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}
.cycle-center strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 4px;
  line-height: 1.4;
}
.cycle-center small {
  font-size: 0.65rem;
  opacity: 0.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cycle-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  z-index: 2;
}
.cycle-node-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.4s var(--ease-out);
}
.cycle-node:hover .cycle-node-icon {
  transform: scale(1.1);
}
.cycle-node-icon svg {
  width: 24px; height: 24px;
  stroke: white; fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Top node — 助ける */
.cycle-node:nth-child(2) {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
}
/* Bottom-right node — ポイントを貯める */
.cycle-node:nth-child(3) {
  bottom: 0;
  right: -10px;
}
/* Bottom-left node — 助けられる */
.cycle-node:nth-child(4) {
  bottom: 0;
  left: -10px;
}
/* Connecting arrows between nodes */
.cycle-connector {
  position: absolute;
  z-index: 1;
}
.cycle-connector svg {
  stroke: rgba(255,255,255,0.25);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 6 4;
}
@keyframes rotateSlowly {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   COMMUNITY SECTION
   ============================================ */
.community {
  background: var(--color-bg);
  position: relative;
}
.community-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.community-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.community-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.community-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.community-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.community-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--c-soft-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg {
  width: 22px; height: 22px;
  stroke: var(--c-forest);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-text h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-deep-brown);
  margin-bottom: 4px;
}
.feature-text p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--c-warm-brown);
}

/* ============================================
   CONTACT / MAIL SECTION
   ============================================ */
.contact {
  background: var(--c-warm-white);
  position: relative;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}
.contact-info-card {
  padding: var(--space-xl);
  background: var(--c-deep-brown);
  color: white;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.contact-info-card::after {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-forest) 0%, transparent 70%);
  opacity: 0.2;
}
.contact-info-card .section-label {
  color: var(--c-soft-gold);
}
.contact-info-card .section-label::before {
  background: var(--c-soft-gold);
}
.contact-info-card .section-title {
  color: white;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}
.contact-info-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-detail-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg {
  width: 18px; height: 18px;
  stroke: var(--c-soft-gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-detail div small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 2px;
}
.contact-detail div span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Mail Form — Creative Envelope Style */
.mail-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
/* Decorative envelope flap */
.mail-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--c-forest), var(--c-moss), var(--c-sage), var(--c-moss), var(--c-forest));
}
.mail-form-head {
  background: linear-gradient(135deg, var(--c-forest) 0%, var(--c-dark-brown) 100%);
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  position: relative;
  overflow: hidden;
}
.mail-form-head::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.mail-form-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.mail-form-head span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.mail-form-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  line-height: 1.5;
}
.mail-form-title small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.mail-form-to {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-sm);
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}
.mail-form-to svg {
  width: 14px; height: 14px;
  stroke: var(--c-soft-gold);
  fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.mail-form-body {
  padding: var(--space-lg) var(--space-lg) var(--space-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-deep-brown);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-field label i {
  font-style: normal;
  font-size: 0.65rem;
  color: white;
  background: var(--c-terracotta);
  padding: 1px 8px;
  border-radius: 100px;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 14px 16px;
  border: 1.5px solid var(--c-sand);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--c-deep-brown);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  outline: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--c-forest);
  box-shadow: 0 0 0 4px rgba(74,103,65,0.08);
  transform: translateY(-1px);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--c-beige);
}

.mail-form-foot {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  border-top: 1px dashed var(--c-sand);
  margin: 0 var(--space-lg);
  padding-left: 0;
  padding-right: 0;
}
.mail-form-foot p {
  font-size: 0.75rem;
  color: var(--c-warm-brown);
  max-width: 280px;
  line-height: 1.6;
}
.mail-form-foot button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--c-forest), var(--c-moss));
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.mail-form-foot button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1));
}
.mail-form-foot button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74,103,65,0.35);
}
.mail-form-foot button svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  position: relative; z-index: 1;
}
.mail-form-foot button span {
  position: relative; z-index: 1;
}

/* Form Success State */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}
.form-success.active { display: block; }
.form-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-soft-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}
.form-success-icon svg {
  width: 32px; height: 32px;
  stroke: var(--c-forest);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--c-deep-brown);
  margin-bottom: 8px;
}
.form-success p {
  font-size: 0.9rem;
  color: var(--c-warm-brown);
  line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--c-deep-brown);
  color: white;
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-lg);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .brand-icon {
  width: 44px; height: 44px;
}
.footer-brand-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}
.footer-brand-text span {
  font-size: 0.7rem;
  opacity: 0.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-sm);
  max-width: 300px;
}

.footer-nav h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--space-sm);
}
.footer-nav a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  padding: 6px 0;
  transition: color 0.3s;
}
.footer-nav a:hover { color: white; }

.footer-contact-info h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--space-sm);
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-contact-item svg {
  width: 16px; height: 16px;
  stroke: var(--c-soft-gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.footer-contact-item span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}
.footer-bottom a:hover { color: white; }

/* ============================================
   FLOATING CONTACT BUTTON
   ============================================ */
.floating-contact {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--c-forest);
  color: white;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(74,103,65,0.35);
  transition: all 0.3s var(--ease-out);
  opacity: 0;
  transform: translateY(20px);
}
.floating-contact.visible {
  opacity: 1;
  transform: translateY(0);
}
.floating-contact:hover {
  background: var(--c-moss);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(74,103,65,0.45);
}
.floating-contact svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .philosophy-layout,
  .community-layout,
  .mutual-aid-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .community-layout .community-text { order: 1; }
  .community-layout .community-visual { order: 2; }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
    --space-2xl: 4rem;
  }

  .desktop-nav,
  .header-contact { display: none; }
  .menu-button { display: block; }

  .hero {
    min-height: 90vh;
    padding-bottom: var(--space-xl);
  }
  .hero-title {
    font-size: clamp(1.7rem, 6vw, 2.5rem);
  }
  .hero-scroll { display: none; }

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

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

  .mail-form-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .mail-form-foot p {
    max-width: none;
    text-align: center;
  }
  .mail-form-foot button {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .floating-contact span { display: none; }
  .floating-contact {
    padding: 16px;
    border-radius: 50%;
    right: var(--space-md);
    bottom: var(--space-md);
  }

  .cycle-ring {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
