/* ============================================
   司法書士法人ホープス
   和韻 × 洗練 — 格調ある和のデザイン
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Shippori+Mincho:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* 和色パレット */
  --akane: #8C3333;
  --akane-deep: #6B1A1A;
  --akane-soft: #A64B4B;
  --akane-glow: rgba(140, 51, 51, 0.15);
  --shu: #C14B3E;
  --sumi: #1C1916;
  --usuzumi: #6B6460;
  --hai: #9A9490;
  --kinari: #F5EFE6;
  --kinari-deep: #EAE0D2;
  --shironeri: #FAF8F4;
  --kitsune: #C8A87E;
  --kitsune-light: rgba(200, 168, 126, 0.12);

  /* Semantic */
  --ink: var(--sumi);
  --text: #37322D;
  --text-secondary: #6B6460;
  --text-tertiary: #9A9490;
  --bg: #FFFFFF;
  --bg-warm: var(--shironeri);
  --bg-tint: var(--kinari);
  --border: #E0D8CF;
  --border-light: #EDE7DF;
  --white: #FFFFFF;

  /* Shadows — warm sumi-tinted */
  --shadow-sm: 0 1px 4px rgba(28, 25, 22, 0.06);
  --shadow-md: 0 4px 20px rgba(28, 25, 22, 0.08);
  --shadow-lg: 0 12px 40px rgba(28, 25, 22, 0.12);
  --shadow-glow: 0 0 40px rgba(140, 51, 51, 0.08);

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

  /* Spacing — 4px scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: 0.04em;
  word-break: auto-phrase;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
table { border-collapse: collapse; }
button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--akane); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: 1000px; margin: 0 auto; padding: 0 32px; }
section { padding: clamp(var(--space-10), 8vw, var(--space-16)) 0; }

/* ============================================
   和紙テクスチャ — Washi noise overlay
   ============================================ */
.kinari-bg {
  position: relative;
  background: var(--kinari);
}

.kinari-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

.kinari-bg > * { position: relative; z-index: 1; }

/* ============================================
   和柄 SVG パターン — 青海波 (Seigaiha)
   ============================================ */
.seigaiha-divider {
  width: 100%;
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cpath d='M56 26v2h-7.75c2.3-1.27 4.94-2 7.75-2zm-26 2a2 2 0 1 0-4 0h-4.09A25.98 25.98 0 0 0 0 16v-2c.67 0 1.34.02 2 .07V14a2 2 0 0 0-2-2v-2a4 4 0 0 1 3.98 3.6 28.09 28.09 0 0 1 2.8-3.86A8 8 0 0 0 0 6V4a9.99 9.99 0 0 1 8.17 4.23c.94-.95 1.96-1.83 3.03-2.63A13.98 13.98 0 0 0 0 0h7.75c2 1.1 3.73 2.63 5.1 4.45 1.12-.72 2.3-1.37 3.53-1.93A20.1 20.1 0 0 0 14.28 0h2c1.42 1.45 2.58 3.13 3.46 4.98A24.04 24.04 0 0 1 28 2c2.96 0 5.8.68 8.26 1.97.88-1.85 2.04-3.52 3.46-4.97h2a20.1 20.1 0 0 0-2.1 2.52c1.23.56 2.41 1.2 3.54 1.93A16.08 16.08 0 0 1 48.25 0H56c-4.58 0-8.65 2.2-11.2 5.6 1.07.8 2.09 1.68 3.03 2.63A9.99 9.99 0 0 1 56 4v2a8 8 0 0 0-6.77 3.74 28.09 28.09 0 0 1 2.8 3.86A4 4 0 0 1 56 10v2a2 2 0 0 0-2 2 .18.18 0 0 0 0 .07c.66-.05 1.33-.07 2-.07v2c-11.04 0-20 8.95-20 20h-4a2 2 0 1 0-4 0h-4a2 2 0 1 0-4 0zm4-4a4 4 0 0 1 4-4 4 4 0 0 1 4 4 4 4 0 0 1-4 4 4 4 0 0 1-4-4zm-2-22a2 2 0 1 0-4 0 2 2 0 0 0 4 0zM0 28c0-11.05 8.95-20 20-20v2c-1.42 0-2.82.12-4.18.36-1 .36-1.82 1.18-1.82 2.14 0 .54.18 1.04.48 1.43A17.9 17.9 0 0 0 2.1 28H0z' fill='%23C8A87E' fill-opacity='0.06' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ============================================
   麻の葉パターン (Asanoha) — 装飾背景
   ============================================ */
.asanoha-accent {
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23C8A87E' stroke-width='0.5' opacity='0.12'%3E%3Cpath d='M0 0l40 40M80 0L40 40M0 80l40-40M80 80L40 40'/%3E%3Cpath d='M40 0v80M0 40h80'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   朱印・落款 (Hanko Seal)
   ============================================ */
.hanko {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 2px solid var(--akane);
  border-radius: 2px;
  position: relative;
  transform: rotate(-5deg);
  flex-shrink: 0;
}

.hanko::after {
  content: "望";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--akane);
  line-height: 1;
}

/* ============================================
   SCROLL ANIMATIONS — Fade-in system
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

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

.fade-in-d1 { transition-delay: 0.1s; }
.fade-in-d2 { transition-delay: 0.2s; }
.fade-in-d3 { transition-delay: 0.3s; }
.fade-in-d4 { transition-delay: 0.4s; }
.fade-in-d5 { transition-delay: 0.5s; }

/* ============================================
   HEADER — Glassmorphism on scroll
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: background var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 var(--border);
}

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

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

.logo-main {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 700;
  color: var(--ink); letter-spacing: 0.14em; line-height: 1;
}

.logo-divider {
  width: 1px; height: 18px;
  background: var(--border);
  flex-shrink: 0;
}

.logo-en {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 500;
  color: var(--hai); letter-spacing: 0.2em;
  line-height: 1;
}

.nav-list { display: flex; align-items: center; gap: 0; }

.nav-list li a {
  display: block; padding: 8px 16px;
  font-size: 0.76rem; font-weight: 400;
  color: var(--text-secondary); letter-spacing: 0.06em;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 16px; right: 16px;
  height: 1.5px;
  background: var(--akane);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out);
}

.nav-list li a:hover { color: var(--ink); }
.nav-list li a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  margin-left: 12px;
  background: var(--akane); color: var(--white) !important;
  padding: 10px 24px !important; border-radius: 0 !important;
  font-weight: 500 !important; letter-spacing: 0.1em !important;
  transition: background var(--duration-fast) var(--ease-out) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--akane-deep) !important;
  color: var(--white) !important;
}

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

.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
  transform-origin: center;
}

/* ============================================
   HERO — Suminagashi ink with parallax
   ============================================ */
.hero {
  position: relative;
  min-height: min(75vh, 680px);
  max-height: 720px;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: -20px;
  background: url('images/hero-bg.png') center center / cover no-repeat;
  will-change: transform;
}

/* Suminagashi ink overlay — multi-layer gradient */
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(28, 25, 22, 0.6) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 80%, rgba(28, 25, 22, 0.3) 0%, transparent 50%),
    linear-gradient(160deg, rgba(28, 25, 22, 0.6) 0%, rgba(28, 25, 22, 0.4) 60%, rgba(28, 25, 22, 0.55) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1000px; margin: 0 auto; padding: 0 32px;
  text-align: center;
}

/* 縦書きアクセント — 非表示 */
.hero-vertical {
  display: none;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.18em;
  margin-bottom: var(--space-5);
  display: flex; align-items: center; justify-content: center; gap: 1.2em;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero-sub::before,
.hero-sub::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.97);
  line-height: 1.75;
  margin-bottom: var(--space-5);
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-actions {
  display: flex; align-items: center; gap: 16px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.8s forwards;
}

/* ヒーロー下部のフェード */
.hero-pattern {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(255,255,255,0.5) 0%, transparent 100%);
}


/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em;
  border: none; border-radius: 0; cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.btn-primary {
  background: var(--akane); color: var(--white);
}

.btn-primary:hover { background: var(--akane-deep); }

.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: rgba(200, 168, 126, 0.5); color: var(--kitsune); }

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--ink); line-height: 1.5;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  position: relative;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--akane);
}

.section-desc {
  font-size: 0.84rem; font-weight: 400;
  color: var(--text-secondary);
  line-height: 2; max-width: 780px;
  margin-bottom: var(--space-6);
}


/* ============================================
   ABOUT — Profile with hanko seal
   ============================================ */
.about {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* 麻の葉 背景装飾 — 右上 */
.about .asanoha-accent {
  top: 40px; right: -60px;
  opacity: 0.5;
}

.about-philosophy {
  position: relative;
  overflow: hidden;
  padding-top: clamp(var(--space-8), 5vw, var(--space-10));
  padding-bottom: clamp(var(--space-8), 5vw, var(--space-10));
}

.about-philosophy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/about-bg.jpg') center / cover no-repeat;
  opacity: 0.75;
  z-index: 0;
}

.about-philosophy > * {
  position: relative;
  z-index: 1;
}

.about-intro {
  max-width: 100%;
  padding-left: 1.5em;
}

.about-grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 56px; align-items: start;
}

.about-photo { position: relative; }

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* 写真の装飾フレーム — 和の額縁 */
.about-photo::before {
  content: "";
  position: absolute;
  top: -8px; left: -8px;
  right: 8px; bottom: 8px;
  border: 1px solid var(--kitsune);
  opacity: 0.25;
  z-index: -1;
}

.about-name-row {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: 0.15rem;
}

.about-name {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--ink); letter-spacing: 0.1em;
}

.about-role {
  font-size: 0.75rem; color: var(--text-tertiary);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.about-text {
  font-size: 0.92rem; font-weight: 400;
  color: var(--text); line-height: 2.2;
  margin-bottom: var(--space-4);
  letter-spacing: 0.03em;
}

.about-career {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-light);
}

.about-career-title {
  font-family: var(--font-display);
  font-size: 0.88rem; font-weight: 700;
  color: var(--ink); letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.career-list li {
  font-size: 0.82rem; color: var(--text-secondary);
  padding: 6px 0; display: flex; gap: 16px;
  position: relative;
}

.career-year {
  flex-shrink: 0; width: 72px;
  color: var(--akane); font-weight: 600; font-size: 0.78rem;
}

/* ============================================
   STRENGTHS — kinari bg + washi texture
   ============================================ */
.strengths {
  background: var(--kinari);
  position: relative;
  overflow: hidden;
}

/* washi noise */
.strengths::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

/* 紗綾形 (Sayagata) — 卍崩しの連続模様 */
.strengths::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h10v-10h10v-10M20 0v10h10v10h10M40 20h-10v10h-10v10M20 40v-10h-10v-10h-10' fill='none' stroke='%23C8A87E' stroke-width='0.5' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.strengths > .container { position: relative; z-index: 1; }

.strengths-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: var(--space-6);
}

.strength-item {
  position: relative;
  padding: 36px 28px;
  background: var(--kinari);
  display: flex; flex-direction: column; gap: var(--space-4);
  transition: background var(--duration-normal) var(--ease-out);
  overflow: hidden;
}

.strength-item:hover { background: var(--kinari-deep); }

.strength-icon {
  position: absolute;
  top: -12px; right: -8px;
  font-size: 9rem;
  color: var(--kitsune);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
}

.strength-rule {
  width: 24px; height: 1px;
  background: var(--akane);
}

.strength-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--ink); letter-spacing: 0.06em;
  line-height: 1.5;
}

.strength-item p {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.95;
}

/* ============================================
   SERVICES — Cards with image + hover magic
   ============================================ */
.services { background: var(--bg); }

.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}

.service-card {
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  background: var(--bg);
  transition: background var(--duration-normal) var(--ease-out);
}

.service-card:hover {
  background: var(--shironeri);
}

.service-card-img {
  width: 100%; height: 180px; object-fit: cover;
}

.service-card-body { padding: 28px; position: relative; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--ink); margin-bottom: var(--space-3); letter-spacing: 0.04em;
}

.service-card p {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.95;
}

/* ============================================
   FLOW — Bold number timeline
   ============================================ */
.flow {
  background: var(--kinari);
  position: relative;
  overflow: hidden;
}

.flow::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

/* 紗綾形 (Sayagata) — 卍崩しの連続模様 */
.flow::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h10v-10h10v-10M20 0v10h10v10h10M40 20h-10v10h-10v10M20 40v-10h-10v-10h-10' fill='none' stroke='%23C8A87E' stroke-width='0.5' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.flow > .container { position: relative; z-index: 1; }

.flow-timeline {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: var(--space-8);
}

.flow-card {
  padding: 24px 18px;
  background: var(--kinari);
  transition: background var(--duration-normal) var(--ease-out);
}

.flow-card:hover { background: var(--kinari-deep); }

.flow-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-4);
}

.flow-card-num {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2rem; font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--akane-soft);
  letter-spacing: 0.06em;
}

.flow-card-arrow {
  color: var(--akane);
  display: flex; align-items: center;
  opacity: 0.7;
}

.flow-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0.4rem;
  letter-spacing: 0.04em; line-height: 1.4;
}

.flow-card p {
  font-size: 0.76rem; color: var(--text-tertiary); line-height: 1.85;
}

/* ============================================
   PRICE — Light table headers
   ============================================ */
.price-section { background: var(--bg); }

.price-category { margin-bottom: var(--space-8); }
.price-category:last-of-type { margin-bottom: 0; }

.price-category h3 {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-3);
  letter-spacing: 0.04em;
  padding-left: 16px;
  border-left: 3px solid var(--akane);
}

.price-table { width: 100%; font-size: 0.84rem; border: 1px solid var(--border); }

.price-table th,
.price-table td {
  padding: 13px 18px; text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.price-table thead th {
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 0.08em;
  background: var(--kinari);
  border-bottom: 1px solid var(--border);
}

.price-table tbody td { color: var(--text); }

.price-table tbody td:nth-child(2) {
  font-weight: 600; color: var(--ink); white-space: nowrap;
}

.price-table tbody td:nth-child(3) {
  color: var(--text-secondary); font-size: 0.8rem;
}

.price-table tbody tr:last-child td { border-bottom: none; }

.price-table tbody tr {
  transition: background var(--duration-fast) var(--ease-out);
}
.price-table tbody tr:hover { background: var(--shironeri); }

.price-note {
  margin-top: var(--space-6); font-size: 0.78rem;
  color: var(--text-tertiary); line-height: 1.9;
}

/* ============================================
   FAQ — Accordion with wa accent
   ============================================ */
.faq-section {
  background: var(--kinari);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

/* 紗綾形 (Sayagata) — 卍崩しの連続模様 */
.faq-section::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h10v-10h10v-10M20 0v10h10v10h10M40 20h-10v10h-10v10M20 40v-10h-10v-10h-10' fill='none' stroke='%23C8A87E' stroke-width='0.5' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.faq-section > .container { position: relative; z-index: 1; }

.faq-list { max-width: 100%; padding-left: 1.5em; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  display: flex; align-items: flex-start; gap: var(--space-4);
  padding: 22px 0;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 500;
  color: var(--ink); text-align: left;
  line-height: 1.7; letter-spacing: 0.02em;
  transition: color var(--duration-fast) var(--ease-out);
}

.faq-question:hover { color: var(--akane); }

.faq-question-label {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 700;
  color: var(--akane); letter-spacing: 0.05em;
  padding-top: 1px;
}

.faq-question-icon {
  flex-shrink: 0;
  margin-left: auto;
  width: 20px; height: 20px;
  position: relative; top: 4px;
}

.faq-question-icon::before,
.faq-question-icon::after {
  content: "";
  position: absolute;
  background: var(--hai);
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-normal) var(--ease-out);
}

.faq-question-icon::before {
  top: 50%; left: 3px; right: 3px;
  height: 1.5px; transform: translateY(-50%);
}

.faq-question-icon::after {
  left: 50%; top: 3px; bottom: 3px;
  width: 1.5px; transform: translateX(-50%);
}

.faq-item.open .faq-question-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer-inner {
  padding: 0 0 24px 40px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 2;
}

/* ============================================
   OFFICE
   ============================================ */
.office {
  background: var(--bg);
}

.office-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 36px; align-items: start;
}

.office-table { width: 100%; font-size: 0.85rem; }

.office-table th,
.office-table td {
  padding: 11px 0; border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.office-table th {
  width: 96px; font-weight: 600;
  color: var(--text); font-size: 0.82rem;
}

.office-table td { color: var(--text-secondary); overflow-wrap: anywhere; }

.office-map {
  overflow: hidden; border: 1px solid var(--border);
}

.office-map iframe { width: 100%; height: 360px; border: none; display: block; }

/* ============================================
   CTA — Sumi dark with kitsune accent
   ============================================ */
.cta-section {
  position: relative;
  padding: clamp(var(--space-8), 5vw, var(--space-10)) 0;
  text-align: center;
  background: var(--kinari);
  overflow: hidden;
}

/* 和紙テクスチャ */
.cta-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

/* 紗綾形模様 — やや濃いめ */
.cta-section::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h10v-10h10v-10M20 0v10h10v10h10M40 20h-10v10h-10v10M20 40v-10h-10v-10h-10' fill='none' stroke='%23C8A87E' stroke-width='0.5' opacity='0.09'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.cta-bg { display: none; }

.cta-section .container { position: relative; z-index: 1; }

.cta-section p {
  font-size: 1.1rem; color: var(--ink);
  margin-bottom: 0.4rem;
  font-family: var(--font-display); letter-spacing: 0.08em;
  font-weight: 600;
}

.cta-section .cta-sub {
  font-family: var(--font-body);
  font-size: 0.78rem; color: var(--text-tertiary);
  margin-bottom: var(--space-6); letter-spacing: 0.03em;
}

.cta-actions { display: flex; justify-content: center; gap: 14px; }

.btn-white {
  background: var(--white); color: var(--akane-deep);
  border: 1px solid var(--border);
}
.btn-white:hover { background: var(--shironeri); }

.btn-outline-white {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-outline-white:hover {
  border-color: var(--kitsune);
  color: var(--akane);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--sumi);
  color: rgba(255,255,255,0.35);
  padding: 18px 0 14px;
}

.footer-row {
  display: flex; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
}

.footer-address {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
}

.footer-sep {
  width: 1px; height: 12px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.footer-row a {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  transition: color var(--duration-fast) var(--ease-out);
}
.footer-row a:hover { color: var(--kitsune); }

.footer-bottom {
  text-align: center; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.6rem;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 40px; height: 40px;
  background: var(--sumi); color: var(--kitsune);
  border: 1px solid rgba(200, 168, 126, 0.2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-out),
              visibility var(--duration-normal) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
  z-index: 99;
}

.back-to-top.visible { opacity: 0.7; visibility: visible; }
.back-to-top:hover { opacity: 1; border-color: var(--kitsune); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page { padding-top: 72px; }

.page-header {
  position: relative; padding: 48px 0; text-align: center; overflow: hidden;
}

.page-header-bg {
  position: absolute; inset: 0;
  background: url('images/hero-bg.png') center center / cover no-repeat;
}

.page-header-bg::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(28, 25, 22, 0.86);
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.08em; margin-bottom: 0.25rem;
}

.page-header p { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

.contact-section { background: var(--shironeri); padding: 56px 0 72px; }

.contact-form {
  max-width: 600px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--border); padding: 40px 36px;
}

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

.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text); margin-bottom: 5px; letter-spacing: 0.03em;
}

.badge-required, .badge-optional {
  display: inline-block; font-size: 0.6rem; font-weight: 600;
  padding: 1px 6px; border-radius: 2px;
  margin-left: 6px; vertical-align: middle; letter-spacing: 0.05em;
}

.badge-required { background: var(--akane); color: var(--white); }
.badge-optional { background: var(--kinari); color: var(--text-tertiary); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 0.88rem; font-family: var(--font-body);
  color: var(--text); background: var(--bg);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--akane);
  box-shadow: 0 0 0 3px var(--akane-glow);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-radio-group { display: flex; gap: 20px; padding-top: 4px; }

.form-radio-group label {
  display: flex; align-items: center; gap: 5px;
  font-weight: 400; cursor: pointer;
}

.form-radio-group input[type="radio"] { width: auto; accent-color: var(--akane); }

.form-consent {
  text-align: center; margin: 28px 0 22px;
  font-size: 0.8rem; color: var(--text-tertiary);
}

.form-consent a {
  color: var(--akane); text-decoration: underline;
  text-underline-offset: 2px;
}
.form-consent a:hover { color: var(--akane-deep); }

.form-submit { text-align: center; }
.form-submit .btn { min-width: min(200px, 100%); }

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-page { padding-top: 72px; }

.privacy-content {
  max-width: 680px; margin: 0 auto; padding: 48px 28px 80px;
}

.privacy-content > p:first-child {
  font-size: 0.88rem; color: var(--text-secondary);
  margin-bottom: 1.5rem; line-height: 2;
}

.privacy-content h2 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--ink); letter-spacing: 0.04em;
  margin: 2.25rem 0 0.6rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.privacy-content h2:first-of-type { margin-top: 0; }

.privacy-content h3 {
  font-size: 0.84rem; font-weight: 600;
  color: var(--ink); margin: 0.75rem 0 0.25rem;
}

.privacy-content p {
  font-size: 0.84rem; margin-bottom: 0.75rem;
  color: var(--text); line-height: 2;
}

.privacy-content ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }

.privacy-content li {
  font-size: 0.82rem; color: var(--text);
  margin-bottom: 0.4rem; list-style: disc; line-height: 1.9;
}

.privacy-content li::marker { color: var(--text-tertiary); }

.privacy-date {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-align: right;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .header-inner { padding: 0 20px; }
  .logo-main { font-size: 0.9rem; }
  .logo { gap: 8px; }
  .nav-list li a { padding: 8px 10px; font-size: 0.7rem; }
  .nav-cta { margin-left: 8px; padding: 8px 16px !important; font-size: 0.7rem !important; }

  .footer-row { gap: 10px 12px; }
  .footer-address, .footer-row a, .footer-name { font-size: 0.65rem; white-space: nowrap; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }

  .nav-list {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    width: 100vw; height: calc(100vh - 72px);
    background: #F5EFE6;
    flex-direction: column; align-items: center;
    justify-content: center; gap: 8px; z-index: 999;
  }

  .nav-list.active { display: flex; }
  .nav-list li a { font-size: 0.95rem; padding: 14px 24px; }
  .nav-list li a::after { display: none; }

  .hamburger { display: flex; }

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

  .hero { padding: 100px 0 48px; min-height: 50vh; }
  .hero-bg { background-size: cover; background-position: center center; }
  .hero-sub { font-size: 0.85rem; letter-spacing: 0.12em; margin-bottom: var(--space-3); }
  .hero-sub::before, .hero-sub::after { width: 24px; }
  .hero h1 { font-size: 1.5rem; line-height: 1.7; }
  .hero-vertical { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 240px; margin: 0 auto; }

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

  .services-grid { grid-template-columns: 1fr; }
  .service-card-img { height: 160px; }

  .flow-timeline { grid-template-columns: 1fr; }
  .flow-card { padding: 20px 24px; }
  .flow-card-arrow { display: none; }

  .office-grid { grid-template-columns: 1fr; gap: 24px; }

  .footer-row { justify-content: center; text-align: center; flex-direction: column; gap: 6px; }
  .footer-sep { display: none; }
  .footer-address { white-space: normal; }
  .footer-zip { display: block; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }

  .cta-actions { flex-direction: column; align-items: center; }

  .price-table { font-size: 0.78rem; }
  .price-table th, .price-table td { padding: 10px 10px; }
  .price-table thead th { white-space: nowrap; }

  .price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .form-radio-group { flex-direction: column; gap: 8px; }
  .form-radio-group label { min-height: 44px; }

  .asanoha-accent { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.2rem; }
  .hero-sub { font-size: 0.75rem; gap: 0.8em; }
  .hero-sub::before, .hero-sub::after { width: 20px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .section-heading { font-size: 1.25rem; }

  .service-detail-item { grid-template-columns: 1fr; }
  .confirm-table th { width: 100%; display: block; }
  .confirm-table td { display: block; }
}


/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */
.service-page { padding-top: 72px; }

.service-detail {
  padding: clamp(var(--space-8), 5vw, var(--space-10)) 0;
  background: var(--white);
}

.service-detail.alt {
  background: var(--shironeri);
}

.service-detail-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.service-detail.alt .service-detail-item {
  direction: rtl;
}
.service-detail.alt .service-detail-item > * {
  direction: ltr;
}

.service-detail-img img {
  width: 100%;
  height: auto;
  display: block;
}

.service-detail-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--kitsune);
  letter-spacing: 0.15em;
  margin-bottom: 6px;
  font-weight: 600;
}

.service-detail-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.service-detail-body p {
  font-size: 0.88rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.service-detail-list {
  margin-top: 20px;
  padding-left: 1.25rem;
}

.service-detail-list li {
  font-size: 0.84rem;
  color: var(--text);
  margin-bottom: 6px;
  list-style: disc;
  line-height: 1.8;
}

.service-detail-list li::marker {
  color: var(--akane);
}

@media (max-width: 768px) {
  .service-detail-item {
    grid-template-columns: 1fr;
  }
  .service-detail.alt .service-detail-item {
    direction: ltr;
  }
  .service-detail-img {
    max-width: 480px;
  }
}

/* ============================================
   CONFIRM PAGE
   ============================================ */
.confirm-page { padding-top: 72px; }

.confirm-table-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 32px 36px;
}

.confirm-table {
  width: 100%;
  font-size: 0.88rem;
}

.confirm-table th,
.confirm-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.confirm-table th {
  width: 160px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.82rem;
  white-space: nowrap;
  padding-right: 16px;
}

.confirm-table td {
  color: var(--text-secondary);
}

.confirm-message {
  white-space: pre-wrap;
  word-break: break-word;
}

.confirm-actions {
  max-width: 640px;
  margin: 0 auto;
}

.confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}
.btn-secondary:hover {
  border-color: var(--kitsune);
  background: var(--kinari);
}

@media (max-width: 768px) {
  .confirm-table-wrap { padding: 20px 16px; }
  .confirm-table th { width: auto; display: block; padding-right: 0; }
  .confirm-table td { display: block; padding-top: 4px; }
  .confirm-buttons { flex-direction: column; align-items: center; }
}

/* ============================================
   THANKS PAGE
   ============================================ */
.thanks-page { padding-top: 72px; }

.thanks-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}

.thanks-content p {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.error-message {
  color: var(--akane);
  font-weight: 600;
}

.thanks-actions {
  margin-top: 36px;
}

/* ============================================
   FORM VALIDATION ERRORS
   ============================================ */
.form-error {
  display: block;
  font-size: 0.72rem;
  color: var(--akane);
  margin-top: 4px;
  min-height: 1em;
}

.has-error {
  border-color: var(--akane) !important;
  box-shadow: 0 0 0 3px var(--akane-glow) !important;
}

.form-errors-summary {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 28px;
  background: #fff5f5;
  border: 1px solid var(--akane);
  text-align: center;
}

.form-errors-summary p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--akane);
  margin-bottom: 12px;
}

.form-errors-summary ul {
  text-align: left;
  padding-left: 1.25rem;
  margin-bottom: 20px;
}

.form-errors-summary li {
  font-size: 0.82rem;
  color: var(--akane);
  margin-bottom: 4px;
  list-style: disc;
}

/* ============================================
   CONSENT CHECKBOX
   ============================================ */
.consent-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 400 !important;
}

.consent-label input[type="checkbox"] {
  width: auto;
  accent-color: var(--akane);
}
