/* ============================================
   相続のまどか - Style
   和モダン・墨色・古金・和紙テクスチャ
   ============================================ */

:root {
  --primary: #2C2C2C;
  --primary-light: #4A4A4A;
  --accent: #B8953E;
  --accent-light: #D4B066;
  --accent-dark: #8C6F2A;
  --bg: #F5F0E8;
  --bg-warm: #EDE6D8;
  --bg-dark: #3A3530;
  --text: #2C2C2C;
  --text-light: #6B6560;
  --text-on-dark: #E8E0D4;
  --white: #FEFCF8;
  --border: #D4CCBC;
  --serif: 'Shippori Mincho', serif;
  --sans: 'Noto Sans JP', sans-serif;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

/* Washi paper texture via CSS */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(212, 204, 188, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(184, 149, 62, 0.03) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(212, 204, 188, 0.1) 0%, transparent 45%);
}

/* Washi fiber texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  background-image:
    url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.sp-only { display: none; }

/* === Shared Section === */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.section-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.gold-divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 28px 0 32px;
}

.section-intro {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 2;
  max-width: 600px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}

.header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(245, 240, 232, 0.97);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-main {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  transition: color 0.3s;
  font-weight: 400;
}

.header-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 2px;
  font-weight: 500 !important;
  transition: background 0.3s !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--primary);
  position: absolute;
  left: 0;
  transition: 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg-kanji {
  position: absolute;
  font-family: var(--serif);
  font-size: clamp(200px, 30vw, 420px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(44, 44, 44, 0.06);
  writing-mode: vertical-rl;
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
  line-height: 1;
  letter-spacing: 0.1em;
  z-index: 0;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-lead {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 32px;
  font-weight: 500;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 32px;
}

.hero-gold-line {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 32px;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 2;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
}

.hero-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--white);
  background: var(--primary);
  padding: 16px 40px;
  border: none;
  border-radius: 2px;
  transition: background 0.4s, transform 0.3s;
  font-weight: 500;
}

.hero-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

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

/* ============================================
   PHILOSOPHY
   ============================================ */
.section-philosophy {
  background: var(--bg);
}

.philosophy-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  margin-top: 48px;
  align-items: start;
}

.philosophy-lead {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 2;
  color: var(--primary);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.philosophy-paragraphs p {
  margin-bottom: 20px;
  line-height: 2.1;
  color: var(--text-light);
}

.philosophy-paragraphs strong {
  color: var(--primary);
  font-weight: 600;
}

.philosophy-stat-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px 32px;
  background: var(--white);
  border-left: 2px solid var(--accent);
  position: sticky;
  top: 100px;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-unit {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
  margin-left: 4px;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* ============================================
   PILLARS
   ============================================ */
.section-pillars {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-pillars .section-title {
  color: var(--text-on-dark);
}

.section-pillars .section-intro {
  color: rgba(232, 224, 212, 0.7);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.pillar-card {
  padding: 40px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 149, 62, 0.15);
  transition: border-color 0.4s, background 0.4s, transform 0.4s;
  position: relative;
}

.pillar-card:hover {
  border-color: rgba(184, 149, 62, 0.4);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
}

.pillar-number {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.pillar-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.pillar-en {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 400;
}

.pillar-line {
  width: 24px;
  height: 1px;
  background: var(--accent);
  margin: 20px 0;
}

.pillar-desc {
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(232, 224, 212, 0.75);
}

.pillars-center-diagram {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

.diagram-center {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.diagram-center::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(184, 149, 62, 0.2);
}

.diagram-label {
  font-family: var(--serif);
  font-size: 0.9rem;
  text-align: center;
  color: var(--accent-light);
  line-height: 1.7;
  letter-spacing: 0.1em;
}

/* ============================================
   CASES
   ============================================ */
.section-cases {
  background: var(--bg);
}

.cases-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 56px;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.4s;
}

.case-card:hover {
  box-shadow: 0 8px 32px rgba(44, 44, 44, 0.06);
}

.case-header {
  padding: 32px 40px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(184, 149, 62, 0.04), transparent);
}

.case-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 500;
}

.case-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.08em;
}

.case-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

.case-body {
  padding: 32px 40px;
}

.case-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.case-row:last-child { margin-bottom: 0; }

.case-label {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  padding-top: 2px;
}

.case-row p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.9;
}

/* ============================================
   TEAM
   ============================================ */
.section-team {
  background: var(--bg-warm);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.team-member {
  text-align: center;
  padding: 48px 24px 40px;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 0.4s, box-shadow 0.4s;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44, 44, 44, 0.06);
}

.team-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  color: var(--accent);
}

.team-icon svg {
  width: 100%;
  height: 100%;
}

.team-role {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 8px;
}

.team-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.team-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   FLOW
   ============================================ */
.section-flow {
  background: var(--bg);
}

.flow-timeline {
  margin-top: 56px;
  position: relative;
  padding-left: 80px;
}

.flow-timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.flow-step {
  position: relative;
  margin-bottom: 48px;
  padding: 32px 40px;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.flow-step:last-child { margin-bottom: 0; }

.flow-step:hover {
  box-shadow: 0 4px 20px rgba(44, 44, 44, 0.05);
}

.flow-step-number {
  position: absolute;
  left: -68px;
  top: 32px;
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 50%;
  letter-spacing: 0.05em;
}

.flow-step h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.9;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.section-testimonials {
  background: var(--bg-warm);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.testimonial-card {
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

.testimonial-quote {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: -8px;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.testimonial-name {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.testimonial-detail {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ============================================
   PROFILE
   ============================================ */
.section-profile {
  background: var(--bg);
}

.profile-content {
  margin-top: 48px;
}

.profile-name-block {
  margin-bottom: 48px;
}

.profile-office {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.profile-name {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary);
}

.profile-name-reading {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 16px;
  letter-spacing: 0.12em;
}

.profile-timeline {
  position: relative;
  padding-left: 140px;
  margin-bottom: 48px;
}

.timeline-item {
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

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

.timeline-year {
  position: absolute;
  left: -140px;
  width: 120px;
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  top: 2px;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.9;
}

.profile-qualifications {
  padding: 32px 40px;
  background: var(--white);
  border: 1px solid var(--border);
}

.profile-qualifications h4 {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--primary);
}

.profile-qualifications li {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.profile-qualifications li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* ============================================
   CONTACT
   ============================================ */
.section-contact {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-contact .section-title {
  color: var(--text-on-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 56px;
  align-items: start;
}

.contact-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 20px;
  margin-bottom: 24px;
  font-weight: 500;
}

.contact-lead {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 2;
  margin-bottom: 40px;
  color: var(--text-on-dark);
}

.contact-lead strong {
  color: var(--accent-light);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.contact-phone {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--text-on-dark);
  transition: color 0.3s;
}

.contact-phone:hover {
  color: var(--accent-light);
}

.contact-detail-note {
  font-size: 0.75rem;
  color: rgba(232, 224, 212, 0.6);
  display: block;
  margin-top: 4px;
}

.contact-detail-item p {
  font-size: 0.88rem;
  color: rgba(232, 224, 212, 0.8);
  line-height: 1.7;
}

/* Contact Form */
.contact-form-wrap {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 149, 62, 0.15);
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: rgba(232, 224, 212, 0.85);
}

.required {
  font-size: 0.65rem;
  color: var(--accent);
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(184, 149, 62, 0.2);
  color: var(--text-on-dark);
  font-family: var(--sans);
  font-size: 0.9rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(232, 224, 212, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

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

.form-group select option {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border-radius: 2px;
  font-weight: 500;
}

.form-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.form-note {
  font-size: 0.75rem;
  color: rgba(232, 224, 212, 0.5);
  margin-top: 12px;
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1E1C1A;
  color: rgba(232, 224, 212, 0.7);
  padding: 64px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(184, 149, 62, 0.1);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--text-on-dark);
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(232, 224, 212, 0.5);
  letter-spacing: 0.1em;
}

.footer-info {
  display: flex;
  gap: 48px;
}

.footer-info-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.footer-info-item p {
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-info-item a {
  transition: color 0.3s;
}

.footer-info-item a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(232, 224, 212, 0.35);
}

/* ============================================
   ANIMATIONS (scroll reveal)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(245, 240, 232, 0.98);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }
  .header-nav.open a {
    font-size: 1rem;
    color: var(--primary);
  }
  .header-nav.open .nav-cta {
    margin-top: 16px;
  }
  .hamburger { display: block; }

  .philosophy-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .philosophy-stat-block {
    flex-direction: row;
    position: static;
    justify-content: space-around;
  }

  .stat-item { text-align: center; }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-info {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  html { font-size: 15px; }
  .sp-only { display: inline; }

  .container { padding: 0 20px; }

  .section { padding: 80px 0; }

  .section-title { font-size: 1.6rem; }

  .hero-bg-kanji {
    font-size: 180px;
    right: 5%;
    -webkit-text-stroke-width: 0.5px;
  }

  .hero-tagline {
    font-size: 1.8rem;
  }

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

  .pillar-card {
    padding: 28px 24px;
  }

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

  .flow-timeline {
    padding-left: 56px;
  }

  .flow-timeline::before {
    left: 20px;
  }

  .flow-step-number {
    left: -48px;
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .flow-step {
    padding: 24px;
  }

  .case-header,
  .case-body {
    padding: 24px;
  }

  .case-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .profile-timeline {
    padding-left: 0;
  }

  .timeline-year {
    position: static;
    width: auto;
    margin-bottom: 4px;
  }

  .contact-form-wrap {
    padding: 24px;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .profile-name-reading {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .contact-phone {
    font-size: 1.2rem;
  }
}
