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

:root {
  --bg: #f5f1ea;
  --bg-cream: #ebe4d6;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --ink-mute: #6b6b6b;
  --line: #d4cdbc;
  --accent: #8b3a2a;
  --accent-2: #4a5d3a;
  --accent-3: #d4a574;
  --paper: #fdfaf3;
  --shadow: 0 20px 60px -20px rgba(26, 26, 26, 0.15);
  --font-display: 'Shippori Mincho', serif;
  --font-body: 'Zen Kaku Gothic New', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* HEADER */
/* ── HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.header.scrolled { border-color: var(--line); }

/* ヘッダーロゴ：絶対配置で完全中央 */
.header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  line-height: 0;
  z-index: 1;
}
.header .logo img {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity 0.3s;
}
.header .logo:hover img { opacity: 0.7; }

/* フッターロゴ：左寄せ */
.footer .logo {
  position: static;
  left: auto;
  transform: none;
  display: flex;
  align-items: center;
  line-height: 0;
  margin-bottom: 20px;
}
.footer .logo img {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(65deg);
  opacity: 0.95;
  transition: opacity 0.3s;
}
.footer .logo:hover img { opacity: 0.7; }

/* ハンバーガー */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.menu-toggle span {
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  display: block;
}
.menu-toggle:hover span { background: var(--accent); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ヘッダー右 CTA */
.header-cta {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink);
  font-weight: 500;
  transition: color 0.3s;
  z-index: 2;
  white-space: nowrap;
}
.header-cta:hover { color: var(--accent); }

/* ヒーロー等で使う従来の cta-btn は維持 */
.cta-btn {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 26px;
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-btn:hover { background: var(--accent); transform: translateY(-2px); }
.cta-btn svg { width: 14px; height: 14px; }

/* ── スマホ用ヘッダー(CTA非表示・ロゴ拡大) ── */
@media (max-width: 768px) {
  .header {
    padding: 0 16px;
    height: 60px;
  }
  .header .logo img { height: 44px; }
  .header .cta-btn { display: none; }
}
@media (max-width: 600px) {
  .header { height: 56px; }
  .header .logo img { height: 40px; }
}
@media (max-width: 380px) {
  .header { padding: 0 12px; }
  .header .logo img { height: 36px; }
}

/* ── FULLSCREEN MENU ── */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.fullscreen-menu.open {
  opacity: 1;
  visibility: visible;
}

.menu-close {
  position: absolute;
  top: 18px; right: 24px;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  transition: color 0.3s, transform 0.4s ease;
}
.menu-close:hover { color: var(--accent); transform: rotate(90deg); }

.fullscreen-nav ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fullscreen-nav li {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fullscreen-menu.open .fullscreen-nav li { opacity: 1; transform: translateY(0); }
.fullscreen-menu.open .fullscreen-nav li:nth-child(1) { transition-delay: 0.08s; }
.fullscreen-menu.open .fullscreen-nav li:nth-child(2) { transition-delay: 0.15s; }
.fullscreen-menu.open .fullscreen-nav li:nth-child(3) { transition-delay: 0.22s; }
.fullscreen-menu.open .fullscreen-nav li:nth-child(4) { transition-delay: 0.29s; }
.fullscreen-menu.open .fullscreen-nav li:nth-child(5) { transition-delay: 0.36s; }
.fullscreen-menu.open .fullscreen-nav li:nth-child(6) { transition-delay: 0.43s; }

/* ホバーしていない項目を薄く */
.fullscreen-nav ul:has(a:hover) a:not(:hover) {
  opacity: 0.3;
}

.fullscreen-nav a {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.1em;
  line-height: 1.9;
  display: inline-flex;
  align-items: center;
  gap: 0;
  position: relative;
  transform-origin: center center;
  will-change: transform;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    color     0.3s ease,
    opacity   0.3s ease;
}

/* font-size ではなく scale で拡大 → レイアウト再計算なしでスムーズ */
.fullscreen-nav a:hover,
.fullscreen-nav a:focus-visible {
  transform: scale(1.32);
  color: var(--accent);
}

/* 矢印アイコン（ホバーで右からフェードイン） */
.fullscreen-nav a::after {
  content: '→';
  font-family: var(--font-body);
  font-size: 0.55em;
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(-10px, -50%);
  margin-left: 0;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease, margin-left 0.4s ease;
}
.fullscreen-nav a:hover::after,
.fullscreen-nav a:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
  margin-left: 14px;
}

/* タップ操作(モバイル)対応 */
.fullscreen-nav a:active {
  transform: scale(1.32);
  color: var(--accent);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .fullscreen-nav a {
    transition: color 0.2s ease, opacity 0.2s ease;
    will-change: auto;
  }
  .fullscreen-nav a:hover,
  .fullscreen-nav a:focus-visible,
  .fullscreen-nav a:active { transform: none; }
  .fullscreen-nav a::after { display: none; }
}

.menu-info {
  position: absolute;
  bottom: 40px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.45s, transform 0.5s ease 0.45s;
}
.fullscreen-menu.open .menu-info { opacity: 1; transform: translateY(0); }
.menu-info p {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  line-height: 2.2;
}
.menu-brand {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease 0.1s;
}
.fullscreen-menu.open .menu-brand { opacity: 1; }

@media (max-width: 768px) {
  .header { height: 60px; padding: 0 20px; }
  .logo img { height: 36px; }
  .header .cta-btn { padding: 10px 18px; font-size: 12px; }
}

/* HERO */
.hero {
  min-height: 100vh;
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-branches,
.hero-branches-2 { display: none; }

.hero-tree {
  position: absolute;
  right: 40px;
  bottom: 0;
  width: min(920px, 56vw);
  height: auto;
  opacity: 0.20;
  animation: sway 8s ease-in-out infinite;
  transform-origin: bottom right;
}
@keyframes sway {
  0%, 100% { transform: rotate(-0.5deg); }
  50% { transform: rotate(0.5deg); }
}

.leaf {
  position: absolute;
  width: 20px; height: 20px;
  opacity: 0.5;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}
.leaf:nth-child(1) { left: 10%; animation-duration: 18s; animation-delay: 0s; }
.leaf:nth-child(2) { left: 30%; animation-duration: 22s; animation-delay: 3s; }
.leaf:nth-child(3) { left: 55%; animation-duration: 25s; animation-delay: 7s; }
.leaf:nth-child(4) { left: 80%; animation-duration: 20s; animation-delay: 10s; }
.leaf:nth-child(5) { left: 45%; animation-duration: 28s; animation-delay: 14s; }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: end;
}

.hero-eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--accent); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 92px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
  color: var(--ink);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
  display: inline-block;
  transform: translateY(100%);
  animation: slideUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.5s; }
.hero-title .accent { color: var(--accent); font-style: italic; font-family: var(--font-accent); font-weight: 500; font-size: 1.3em; display: inline-block; vertical-align: -0.19em; margin-left: -0.15em; }
.hero-title .accent-punct { display: inline-block; vertical-align: -0.19em; font-size: 1.3em; }

@keyframes slideUp { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-desc {
  font-size: 16px;
  line-height: 2;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease 1.1s forwards;
  flex-wrap: wrap;
}

.btn-primary {
  background: #1f4a2c;
  color: var(--paper);
  padding: 18px 40px;
  border-radius: 100px;
  font-size: 14px;
  letter-spacing: 0.15em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-secondary {
  padding: 18px 0;
  font-size: 14px;
  letter-spacing: 0.15em;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}
.btn-secondary::after {
  content: '';
  position: absolute;
  left: 0; bottom: 12px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform-origin: right;
  transition: transform 0.4s ease;
}
.btn-secondary:hover::after { transform-origin: left; transform: scaleX(0.3); }

.hero-meta {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--ink-mute);
  align-self: end;
  padding-bottom: 20px;
  opacity: 0;
  animation: fadeUp 1s ease 1.3s forwards;
}

.scroll-ind {
  position: absolute;
  bottom: 40px;
  left: 32px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 1s ease 1.5s forwards;
  z-index: 3;
}
.scroll-ind::after {
  content: '';
  width: 60px; height: 1px;
  background: var(--ink-mute);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleX(0.5); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-meta { display: none; }
  .hero { padding: 140px 0 80px; }
  .scroll-ind { display: none; }
  /* 欅本体: 右側に薄く配置(横書きヒーロー復帰版) */
  .hero-tree {
    display: block;
    width: 75vw;
    max-width: 380px;
    height: auto;
    right: -10vw;
    bottom: 0;
    top: auto;
    left: auto;
    opacity: 0.45;
    transform-origin: bottom right;
  }
  /* 枝葉SVG: 見出しの高さに配置(右上から左下方向に伸びる) */
  .hero-branches {
    display: block;
    position: absolute;
    width: 85vw;
    max-width: 540px;
    height: auto;
    top: 60px;
    right: -15vw;
    left: auto;
    bottom: auto;
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation:
      branchesGrow 3.2s cubic-bezier(0.45, 0, 0.15, 1) 2.6s forwards,
      branchSway 7s ease-in-out 5.8s infinite;
  }
  @keyframes branchesGrow {
    0%   { transform: scale(0.35) rotate(-26deg); opacity: 0; }
    100% { transform: scale(1) rotate(4deg); opacity: 0.7; }
  }
  @keyframes branchSway {
    0%, 100% { transform: scale(1) rotate(4deg); }
    50%      { transform: scale(1) rotate(7deg); }
  }
  .hero-branches-2 { display: none; }
}
@media (max-width: 768px) {
  .hero {
    align-items: stretch;
    padding: 129px 20px 60px;
    overflow: hidden;
  }
  .hero .container { padding: 0; }
  .hero-branches { top: 81px !important; overflow: visible !important; }
  .hero-inner { display: block; width: 100%; }
  .hero-inner > div:first-child {
    display: flex;
    flex-direction: column;
  }
  .hero-tree { display: none !important; }

  /* 縦書き関連の絶対配置・transform・clip等を全て解除 */
  .hero-title {
    position: static;
    writing-mode: horizontal-tb;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    transform: none;
    margin: 0 0 28px 0;
    padding: 0;
    font-size: clamp(42px, 11.5vw, 58px);
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: break-word;
    z-index: auto;
  }
  .hero-title .line {
    display: block;
    overflow: visible;
    white-space: nowrap;
    clip-path: none;
    animation: none;
  }
  .hero-title .line:nth-child(1),
  .hero-title .line:nth-child(2) {
    padding-top: 0;
    animation: none;
  }
  .hero-title .line span {
    display: inline-block;
    transform: translateY(100%);
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 1;
  }
  /* アクセント文字: デスクトップと同じ装飾を維持 */
  .hero-title .accent {
    font-size: 1.28em;
    margin-left: -0.15em;
    vertical-align: -0.19em;
    font-weight: 700;
  }
  .hero-title .accent-punct {
    font-size: 1.28em;
    vertical-align: -0.19em;
    font-weight: 700;
  }
  .hero-title .kanji-large {
    font-size: 1em;
  }
  .hero-title .tate {
    text-orientation: initial;
    -webkit-text-orientation: initial;
    letter-spacing: normal;
    margin-bottom: 0;
  }
  .hero-title .w-tight {
    margin-bottom: 0;
  }

  .hero-eyebrow {
    font-size: 16px;
    margin-bottom: 16px;
    gap: 12px;
    justify-content: flex-start;
    width: 100%;
  }
  .hero-eyebrow::before { width: 30px; }
  .hero-desc {
    display: block;
    order: 1;
    font-size: 18px;
    line-height: 2;
    color: var(--ink);
    letter-spacing: 0.03em;
    margin: 36px 0 0 0;
    padding-right: 32px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    text-align: left;
  }
  .hero-desc br:first-of-type { display: none; }
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 0 40px 0 0 !important;
    margin: 0 auto !important;
    gap: 16px;
  }
  .hero-actions a,
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 80% !important;
    max-width: 320px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    text-align: center !important;
  }

  .about .section-title,
  .service .section-title,
  .flow .section-title,
  .contact .section-title,
  .why .section-title { font-size: clamp(40px, 11vw, 52px); }
  .contact .contact-info p { font-size: 18px !important; line-height: 2 !important; letter-spacing: 0.03em !important; color: var(--ink) !important; }
  .form .form-row label { font-size: 15px; }
  .form .form-row label .req { font-size: 12px; }
  .form .form-row input, .form .form-row textarea, .form .form-row select { font-size: 17px; }
  .form .form-row-group .form-row { margin-bottom: 0; }
  .form .form-row-group { gap: 24px; margin-bottom: 24px; }
  .form { text-align: left !important; }
  .form .form-submit { display: flex !important; width: fit-content !important; margin-left: auto !important; margin-right: 0 !important; }
  .footer-brand .logo img { height: 40px !important; }
  .footer .footer-brand p { font-size: 15px; line-height: 2; }
  .footer .footer-col h4 { font-size: 20px; margin-bottom: 14px; }
  .footer .footer-col li { font-size: 15px; padding: 6px 0; }
}

.fullscreen-nav ul { align-items: center; }
.fullscreen-nav a { justify-content: center; text-align: center; }
.menu-info { display: flex; flex-direction: column; align-items: center; }
.menu-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  opacity: 0.85;
  filter: brightness(0.9);
}

@media (max-width: 768px) {
  .service-header .section-title { margin-bottom: 0; }
  .service-header .service-title-line2 { display: inline-block; transform: translateX(120px); font-size: 1.15em; }
  .sp-br { display: inline !important; }
  .about-lead { font-size: 18px; line-height: 2; letter-spacing: 0.03em; }
  .about .about-body { font-size: 18px; line-height: 2; letter-spacing: 0.03em; color: var(--ink); }
}

/* SECTION COMMON */
.section { padding: 140px 0; position: relative; }
@media (max-width: 768px) { .section { padding: 80px 0; } }

.section-label {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--accent); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 80px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  color: var(--ink);
}
.why-title-logo {
  display: inline-block;
  height: 1.1em;
  width: auto;
  vertical-align: middle;
  position: relative;
  top: -0.14em;
  filter: brightness(0) opacity(0.83);
  margin-right: 0.06em;
}
.section-title .accent {
  color: var(--accent);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 1.28em;
}

.section-desc { font-size: 19px; line-height: 2; color: var(--ink-soft); max-width: 600px; }

/* ABOUT */
.about { background: var(--paper); position: relative; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
}

.about-visual {
  position: relative;
  aspect-ratio: 4/5;
}
.about-tree-big {
  position: absolute;
  inset: 0;
}
.about-tree-big .kofun,
.about-tree-big .kofun-illustration {
  position: absolute;
  left: 38%;
  top: 50%;
  width: 72%;
  height: auto;
  opacity: 0.45;
  z-index: 1;
  transform: translate(-50%, -50%) rotate(-4deg);
}
.kofun-illustration { background: none !important; }
@keyframes balloonFloat {
  0%, 100% { transform: translate(90px, 130px); }
  25%       { transform: translate(93px, 122px); }
  50%       { transform: translate(88px, 126px); }
  75%       { transform: translate(92px, 120px); }
}
.balloon {
  animation: balloonFloat 7s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@media (prefers-reduced-motion: reduce) {
  .about-tree-big .kofun,
  .about-tree-big .kofun-illustration { transform: translate(-50%, -50%) rotate(-4deg); }
  .balloon { animation: none; }
}

.about-content h2 { margin-bottom: 32px; }
.about-lead {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 2;
  margin-bottom: 28px;
  color: var(--ink);
  font-weight: 500;
}
.about-body { font-size: 19px; line-height: 2.1; color: var(--ink-soft); margin-bottom: 20px; }

.about-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.about-number .num {
  font-family: var(--font-accent);
  font-size: 60px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.about-number .num sup {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 22px;
  margin-left: 4px;
  vertical-align: baseline;
}
.about-number .label { font-size: 16px; letter-spacing: 0.15em; color: var(--ink-mute); }

@media (max-width: 768px) {
  .about-numbers { grid-template-columns: repeat(3, 1fr); gap: 16px; justify-items: center; }
  .about-number { text-align: center; }
  .about-number .num { font-size: 48px; margin-bottom: 8px; }
  .about-number .num sup { font-size: 18px; }
  .about-number .label { font-size: 12px; }
  .about { position: relative; overflow: hidden; }
  .about-visual {
    display: block;
    position: absolute;
    top: -108px;
    right: 0;
    width: 70vw;
    max-width: 320px;
    z-index: 0;
    pointer-events: none;
    opacity: 1 !important;
    margin: 0;
    transform: rotate(2deg) scaleX(-1) !important;
    transform-origin: center;
  }
  .about-content { position: relative; z-index: 1; }
  .about-visual .kofun-illustration { opacity: 0.18 !important; }
  .why-header .section-title { word-break: normal; overflow-wrap: normal; text-indent: 0; transform: none; font-size: clamp(34px, 9vw, 44px) !important; }
  .why-header .why-title-line1 { white-space: nowrap; display: inline-block; transform: translateX(-52px); }
  .why-header .why-title-line2 { display: inline-block; transform: translateX(-12px); font-size: 1em; }
  .why .why-header { margin-bottom: 40px !important; }
  .why .why-item:first-child { padding-top: 16px !important; }
  .why .why-item-number { font-size: 100px; margin-bottom: 28px; }
  .why .why-item-icon { width: 80px; height: 80px; margin: 0 auto 28px; }
  .why .why-item h3 { font-size: 28px; margin-bottom: 20px; }
  .why .why-item p { font-size: 18px; line-height: 2; letter-spacing: 0.03em; color: var(--ink); }
  .why .why-grid { gap: 16px; }
  .why .why-item { padding: 24px 20px; }
  .flow .flow-step-title {
    font-size: 26px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .flow .flow-step-duration { font-size: 18px; }
  .flow .flow-step-desc { font-size: 18px; line-height: 2; letter-spacing: 0.03em; color: var(--ink); }
  .flow { position: relative; overflow: hidden; }
  .flow .flow-header { position: relative; }
  .flow .flow-header::before,
  .flow .flow-header::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 130px;
    transform: none;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' fill='none'><path d='M 580 380 C 520 320 460 240 380 180 C 320 130 250 100 180 80' stroke='%231a1a1a' stroke-width='11' stroke-linecap='round'/><path d='M 460 240 C 440 200 420 160 400 130' stroke='%231a1a1a' stroke-width='7' stroke-linecap='round'/><path d='M 460 240 C 480 210 510 180 530 150' stroke='%231a1a1a' stroke-width='6' stroke-linecap='round'/><path d='M 380 180 C 350 150 320 120 290 95' stroke='%231a1a1a' stroke-width='7' stroke-linecap='round'/><path d='M 380 180 C 380 150 380 120 380 85' stroke='%231a1a1a' stroke-width='5.5' stroke-linecap='round'/><path d='M 280 110 C 250 90 220 70 195 55' stroke='%231a1a1a' stroke-width='5' stroke-linecap='round'/><path d='M 180 80 C 160 60 140 45 120 30' stroke='%231a1a1a' stroke-width='4.5' stroke-linecap='round'/><path d='M 180 80 C 200 55 215 35 225 20' stroke='%231a1a1a' stroke-width='4' stroke-linecap='round'/><circle cx='120' cy='30' r='24' fill='%234a5d3a' opacity='0.86'/><circle cx='105' cy='44' r='19' fill='%234a5d3a' opacity='0.82'/><circle cx='135' cy='38' r='20' fill='%234a5d3a' opacity='0.84'/><circle cx='115' cy='14' r='15' fill='%234a5d3a' opacity='0.82'/><circle cx='225' cy='20' r='20' fill='%234a5d3a' opacity='0.85'/><circle cx='210' cy='32' r='16' fill='%234a5d3a' opacity='0.82'/><circle cx='240' cy='28' r='17' fill='%234a5d3a' opacity='0.83'/><circle cx='195' cy='55' r='18' fill='%234a5d3a' opacity='0.84'/><circle cx='178' cy='62' r='14' fill='%234a5d3a' opacity='0.81'/><circle cx='208' cy='65' r='15' fill='%234a5d3a' opacity='0.83'/><circle cx='290' cy='95' r='22' fill='%234a5d3a' opacity='0.86'/><circle cx='270' cy='105' r='17' fill='%234a5d3a' opacity='0.82'/><circle cx='305' cy='110' r='18' fill='%234a5d3a' opacity='0.84'/><circle cx='380' cy='85' r='20' fill='%234a5d3a' opacity='0.85'/><circle cx='365' cy='98' r='16' fill='%234a5d3a' opacity='0.82'/><circle cx='395' cy='98' r='17' fill='%234a5d3a' opacity='0.83'/><circle cx='400' cy='130' r='18' fill='%234a5d3a' opacity='0.84'/><circle cx='385' cy='142' r='14' fill='%234a5d3a' opacity='0.81'/><circle cx='415' cy='138' r='15' fill='%234a5d3a' opacity='0.83'/><circle cx='530' cy='150' r='20' fill='%234a5d3a' opacity='0.85'/><circle cx='513' cy='162' r='16' fill='%234a5d3a' opacity='0.82'/><circle cx='545' cy='160' r='17' fill='%234a5d3a' opacity='0.83'/><circle cx='195' cy='50' r='11' fill='%238b3a2a' opacity='0.46'/><circle cx='380' cy='95' r='10' fill='%238b3a2a' opacity='0.46'/><circle cx='295' cy='105' r='10' fill='%238b3a2a' opacity='0.44'/><circle cx='540' cy='155' r='9' fill='%238b3a2a' opacity='0.4'/><circle cx='135' cy='40' r='9' fill='%23d4a574' opacity='0.5'/><circle cx='240' cy='30' r='8' fill='%23d4a574' opacity='0.45'/><circle cx='405' cy='135' r='8' fill='%23d4a574' opacity='0.45'/></svg>");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
  }
  .flow .flow-header::before {
    left: -80px;
    transform: scaleX(-1);
  }
  .flow .flow-header::after { right: -80px; }
  .flow .flow-header { margin-bottom: 40px !important; }
  .why-header .why-num { font-family: var(--font-display); font-style: normal; display: inline-block; transform: skewX(-10deg); }
}

/* SERVICE */
.service { background: var(--bg); }
.service-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.service-header .section-title {
  word-break: keep-all;
  overflow-wrap: break-word;
}
@media (min-width: 769px) {
  .about-tree-big .kofun-illustration { width: 100%; left: calc(35% - 4px); }
  .service-header {
    display: block !important;
  }
  .service-header .section-desc {
    max-width: 720px !important;
    width: auto;
    line-height: 2 !important;
    margin: 32px 0 0 !important;
  }
  .hero-desc {
    font-size: 19px;
    line-height: 2;
  }
  .hero-inner > div:first-child { transform: translateX(-130px); }
  .plans-grid {
    max-width: 1080px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
    gap: 40px;
  }
  .plan-card { padding: 56px 48px; }
}
@media (max-width: 768px) {
  .service-header { grid-template-columns: 1fr; gap: 32px; margin-bottom: 24px; }
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; gap: 20px; } }

.plan {
  background: var(--paper);
  padding: 48px 40px;
  border-radius: 4px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid transparent;
  overflow: hidden;
}
.plan::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.plan:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}
.plan:hover::before { transform: scaleX(1); }

.plan.featured { background: var(--ink); color: var(--paper); }
.plan.featured .plan-name { color: var(--paper); }
.plan.featured .plan-price-main { color: var(--paper); }
.plan.featured .plan-tag { background: var(--accent-3); color: var(--ink); }
.plan.featured .plan-features li { color: rgba(253, 250, 243, 0.8); border-color: rgba(253, 250, 243, 0.15); }
.plan.featured .plan-desc { color: rgba(253, 250, 243, 0.7); }

.plan-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--accent);
  color: var(--paper);
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.1em;
}

.plan-number { font-family: var(--font-accent); font-size: 14px; font-style: italic; color: var(--ink-mute); margin-bottom: 12px; }
.plan.featured .plan-number { color: var(--accent-3); }

.plan-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
}
.plan-desc {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.9;
  margin-bottom: 32px;
  min-height: 50px;
}

.plan-price {
  padding: 24px 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.plan.featured .plan-price { border-color: rgba(253, 250, 243, 0.15); }
.plan-price-main {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan-price-main .yen { font-size: 18px; }
.plan-price-main .tilde { font-size: 14px; color: var(--ink-mute); margin-left: 4px; }
.plan-price-sub { font-size: 11px; color: var(--ink-mute); margin-top: 6px; letter-spacing: 0.05em; }
.plan.featured .plan-price-sub { color: rgba(253, 250, 243, 0.5); }

.plan-features { list-style: none; margin-bottom: 36px; }

.plan-cta {
  display: block;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.15em;
  border-radius: 100px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s;
}
.plan-cta:hover { background: var(--ink); color: var(--paper); }
.plan.featured .plan-cta { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.plan.featured .plan-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* ── サービスリスト（中央寄せ・要素単体ホバー） ── */
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 60px;
  justify-items: center;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 24px;
  border: none;
  background: transparent;
  width: 100%;
  max-width: 480px;
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.4s ease;
  cursor: pointer;
}

/* ハンバーガーメニュー流: ホバー中の項目以外を薄く */
.service-list:has(.service-item:hover) .service-item:not(:hover) {
  opacity: 0.25;
}

.service-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(232, 223, 200, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-item:hover .service-icon {
  transform: scale(1.3);
  background: rgba(232, 223, 200, 0.85);
}
.service-icon svg {
  width: 44px;
  height: 44px;
  stroke: #8b3a2a;
  stroke-width: 1.5;
  fill: none;
}

.service-text-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 26px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-item:hover .service-text-title {
  transform: scale(1.18);
  color: #8b3a2a;
}
.service-text-sub {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  letter-spacing: 0.02em;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-item:hover .service-text-sub { color: #555; }

.sp-br { display: none; }

@media (max-width: 768px) {
  .service-list {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
    justify-items: start;
    margin-top: 44px;
  }
  .service-item { padding: 20px 0; gap: 20px; max-width: 100%; }
  .service-text-title { font-size: 20px; white-space: normal; }
  .service-text-sub { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
  .service-list:has(.service-item:hover) .service-item:not(:hover) { opacity: 1; }
  .service-item:hover .service-icon,
  .service-item:hover .service-text-title { transform: none; }
  .service-header,
  .service-header .section-label,
  .service-header .section-title,
  .service-header .section-desc { text-align: left; }
  .service-header .section-desc {
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0.03em;
    color: var(--ink);
  }
  .service-header .section-desc br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .service-item,
  .service-icon,
  .service-text-title,
  .service-text-sub { transition: none; }
  .service-list:has(.service-item:hover) .service-item:not(:hover) { opacity: 1; }
  .service-item:hover .service-icon,
  .service-item:hover .service-text-title { transform: none; }
}

/* WHY */
.why { background: var(--paper); position: relative; overflow: hidden; }
.why::before {
  content: '';
}

.why-decoration {
  position: absolute;
  top: calc(42% + 3mm);
  transform: translateY(-50%);
  transform-origin: bottom center;
  width: 500px;
  height: auto;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.why-decoration.left {
  left: 0;
  animation: swayWhyLeft 8s ease-in-out infinite;
}
.why-decoration.right {
  right: 0;
  animation: swayWhyRight 8s ease-in-out infinite;
}
@keyframes swayWhyLeft {
  0%, 100% { transform: translateY(-50%) scaleX(-1) rotate(-0.5deg); }
  50%      { transform: translateY(-50%) scaleX(-1) rotate(0.5deg); }
}
@keyframes swayWhyRight {
  0%, 100% { transform: translateY(-50%) rotate(-0.5deg); }
  50%      { transform: translateY(-50%) rotate(0.5deg); }
}
.why-content { position: relative; z-index: 1; }
@media (max-width: 768px) {
  .why-decoration { display: none; }
}

.why-header { text-align: center; margin-bottom: 80px; }
.why-header .section-title { text-align: center; text-indent: 0.8em; }
.why-header .section-label { justify-content: center; }
.why-header .section-label::before { display: none; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 32px; } }

.why-item { text-align: center; padding: 40px 20px; position: relative; }
.why-item-number {
  font-family: var(--font-accent);
  font-size: 80px;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
  font-weight: 300;
  opacity: 0.6;
}
.why-item-icon {
  width: 60px; height: 60px;
  margin: 0 auto 24px;
  color: var(--accent);
}
.why-item h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
}
.why-item p { font-size: 18px; line-height: 2; color: var(--ink-soft); }

@media (min-width: 901px) {
  .why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .why-item-number {
    margin-bottom: 32px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .why-item-icon {
    margin: 0 0 32px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .why-item h3 {
    margin-bottom: 24px;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .why-item p {
    flex-grow: 1;
  }
}

/* FLOW */
.flow { background: var(--paper); }
.flow-header { text-align: center; margin-bottom: 80px; }
.flow-header .section-label { justify-content: center; }
.flow-header .section-label::before { display: none; }

.flow-steps { position: relative; max-width: 900px; margin: 0 auto; }
.flow-steps::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--line));
}
@media (max-width: 768px) { .flow-steps::before { left: 28px; } }

.flow-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 32px 0;
  align-items: start;
}
@media (max-width: 768px) { .flow-step { grid-template-columns: 56px 1fr; gap: 24px; } }

.flow-step-num {
  width: 80px; height: 80px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: 28px;
  font-style: italic;
  color: var(--accent);
  position: relative;
  z-index: 2;
  transition: all 0.3s;
}
.flow-step:hover .flow-step-num {
  background: var(--accent);
  color: var(--paper);
  transform: scale(1.05);
}
@media (max-width: 768px) { .flow-step-num { width: 56px; height: 56px; font-size: 20px; } }

.flow-step-content { padding-top: 14px; }
.flow-step-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.flow-step-duration {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 18px;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.05em;
}
.flow-step-desc { font-size: 18px; line-height: 2; color: var(--ink-soft); }

/* PLANS */
.plans { background: var(--bg); position: relative; overflow: hidden; display: block; grid-template-columns: none; gap: 0; }
.plans .container { position: relative; z-index: 2; }
.plans-tree {
  position: absolute;
  right: -8vw;
  top: 80px;
  left: auto;
  bottom: auto;
  width: min(820px, 65vw);
  height: auto;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  transform-origin: top right;
}
@media (max-width: 768px) {
  .plans-tree {
    width: 80vw;
    max-width: 380px;
    top: 60px;
    right: -15vw;
    left: auto;
    bottom: auto;
    opacity: 0.18;
    transform-origin: top right;
  }
}
.plans-header { margin-bottom: 60px; }
.plans-header .plans-num { font-family: var(--font-display); font-style: normal; display: inline-block; transform: skewX(-10deg); }
.plans-header .section-title { word-break: keep-all; overflow-wrap: break-word; white-space: nowrap; }
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.plan-card {
  background: var(--paper);
  padding: 40px 32px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.plan-card-label {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}
.plan-card-name {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}
.plan-card-price {
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan-price-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.02em;
}
.plan-price-unit {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.plan-card-desc {
  font-size: 19px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.plan-features {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
  padding-top: 32px !important;
  margin-top: 32px !important;
}
.plan-features li {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1em;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.plan-cta-btn {
  display: block;
  margin-top: -8px;
  padding: 16px 24px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  text-decoration: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.15em;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.plan-cta-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .plans-grid { grid-template-columns: 1fr; gap: 20px; max-width: 100%; }
  .plan-card { padding: 32px 24px; }
  .plans-header { margin-bottom: 40px; }
  .plans .section-title { font-size: clamp(40px, 11vw, 52px); }
  .plan-card-label { font-size: 17px; }
  .plan-card-name { font-size: 36px; }
  .plan-card-desc { font-size: 18px; line-height: 2; letter-spacing: 0.03em; color: var(--ink); }
  .plan-features li { font-size: 18px; line-height: 2; letter-spacing: 0.03em; color: var(--ink); }
  .plan-price-num { font-size: 40px; }
  .plan-card-desc { font-size: 16px; }
  .plan-features li { font-size: 15px; }
}

/* WORKS */
.works { background: var(--bg); }
.works-header { text-align: center; margin-bottom: 80px; }
.works-header .section-label { justify-content: center; }
.works-header .section-label::before { display: none; }
.works-header .section-title { text-align: center; }
.works-header .section-desc { max-width: 540px; margin: 0 auto; text-align: center; }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .works-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 600px) { .works-grid { grid-template-columns: 1fr; } }

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  color: var(--ink);
  position: relative;
  cursor: pointer;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-card-placeholder { opacity: 0.38; pointer-events: none; cursor: default; }
.work-card-upcoming { opacity: 0.42; pointer-events: none; cursor: not-allowed; }

.work-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-cream);
  flex-shrink: 0;
}
.work-thumbnail svg { display: block; width: 100%; height: 100%; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.work-card:hover .work-thumbnail svg { transform: scale(1.04); }

.work-number {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(253,250,243,0.55);
  z-index: 3;
  line-height: 1;
}
.work-number-dark { color: rgba(26,26,26,0.35); }

.work-info {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.work-category {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 7px;
}
.work-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.work-desc {
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 14px;
  flex: 1;
}
.work-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.work-tags span {
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-mute);
  transition: border-color 0.3s, color 0.3s;
}
.work-card:hover .work-tags span { border-color: var(--accent); color: var(--accent); }
.work-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.work-link-case {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  padding: 10px 0;
  transition: color 0.3s;
  display: inline-block;
}
.work-link-case:hover { color: var(--ink); }
.work-link-demo {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 10px 0;
  transition: opacity 0.3s;
  display: inline-block;
  margin-left: auto;
}
.work-link-demo:hover { opacity: 0.7; }
.works-more { text-align: center; margin-top: 60px; }
.works-sample-note {
  text-align: center;
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 20px;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

/* CTA */
.cta-section {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(139, 58, 42, 0.3) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(74, 93, 58, 0.2) 0%, transparent 60%);
}
.cta-section::after {
  content: '';
}

.cta-inner { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; }
.cta-inner .section-label { justify-content: center; color: var(--accent-3); }
.cta-inner .section-label::before { background: var(--accent-3); }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  color: var(--paper);
}
.cta-title .accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--accent-3);
  font-weight: 500;
}
.cta-desc { font-size: 15px; line-height: 2; color: rgba(253, 250, 243, 0.75); margin-bottom: 48px; }
.cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.btn-light {
  background: var(--paper);
  color: var(--ink);
  padding: 18px 40px;
  border-radius: 100px;
  font-size: 14px;
  letter-spacing: 0.15em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s;
}
.btn-light:hover { background: var(--accent-3); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid rgba(253, 250, 243, 0.3);
  color: var(--paper);
  padding: 18px 40px;
  border-radius: 100px;
  font-size: 14px;
  letter-spacing: 0.15em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s;
}
.btn-outline:hover { background: rgba(253, 250, 243, 0.08); border-color: var(--paper); }

/* CONTACT */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 12px; } }

.contact-info p { font-size: 19px; line-height: 2; color: var(--ink-soft); margin-bottom: 32px; letter-spacing: 0.02em; }

.contact-meta { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.contact-meta-item {
  padding: 16px 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  align-items: center;
}
.contact-meta-item:last-child { border-bottom: none; }
.contact-meta-item .label {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--accent);
  font-size: 15px;
}
.contact-meta-item .value { color: var(--ink); }
.contact-meta-item .tel {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.form { background: var(--bg); padding: 48px; border-radius: 4px; }
@media (max-width: 768px) { .form { padding: 28px; } }

.form-row { margin-bottom: 24px; }
.form-row label {
  display: block;
  font-size: 15px;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  margin-bottom: 10px;
  font-weight: 500;
}
.form-row label .req { color: var(--accent); margin-left: 6px; font-size: 12px; }

.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  transition: border-color 0.3s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row textarea { resize: vertical; min-height: 100px; }

.form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.form-row-group .form-row { margin-bottom: 0; }
@media (max-width: 600px) { .form-row-group { grid-template-columns: 1fr; } }

.form-submit {
  background: var(--ink);
  color: var(--paper);
  padding: 20px 48px;
  border-radius: 100px;
  font-size: 16px;
  letter-spacing: 0.15em;
  font-weight: 500;
  margin-top: 20px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.form-submit:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }

/* FOOTER */
.footer { background: var(--ink); color: var(--paper); padding: 80px 0 32px; position: relative; overflow: hidden; }
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .logo { color: var(--paper); margin-bottom: 20px; }
.footer-brand p { font-size: 13px; line-height: 2; color: rgba(253, 250, 243, 0.6); margin-top: 16px; }

.footer-col h4 {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 16px;
  color: var(--accent-3);
  margin-bottom: 20px;
  font-weight: 400;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 6px 0; font-size: 13px; color: rgba(253, 250, 243, 0.7); }
.footer-col a { transition: color 0.3s; }
.footer-col a:hover { color: var(--accent-3); }

.footer-bottom {
  border-top: 1px solid rgba(253, 250, 243, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(253, 250, 243, 0.5);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 16px;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.reveal-left  { transform: translateY(20px) translateX(-28px); }
.reveal.reveal-right { transform: translateY(20px) translateX(28px); }
.reveal.reveal-left.visible,
.reveal.reveal-right.visible { transform: translateY(0) translateX(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* セクションラベルの横線を視界に入ったときに伸ばす */
.reveal .section-label::before {
  width: 0;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}
.reveal.visible .section-label::before { width: 30px; }

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
#preloader.fade-out { opacity: 0; pointer-events: none; }
#preloader.hidden { display: none; }
.preloader-logo {
  width: clamp(180px, 28vw, 340px);
  height: auto;
  opacity: 0;
  transform: scale(0.97);
  animation: plLogoIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}
@keyframes plLogoIn {
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 768px) {
  .preloader-logo { width: min(72vw, 320px); }
}
