/* ============================================================
   タングルサロンナビ — design tokens
   紙タイルと墨、鉛筆、みどり。描く瞑想の道具箱から。
   ============================================================ */
:root {
  --paper: #fbf9f5;
  --tile: #ffffff;
  --washi: #f2ece1;
  --ink: #2b2723;
  --ink-soft: #4d463f;
  --graphite: #8a8278;
  --midori: #5f7a5a;
  --midori-deep: #46603f;
  --midori-wash: #eef1ea;
  --line: rgba(43, 39, 35, 0.16);
  --line-strong: rgba(43, 39, 35, 0.4);
  --radius: 4px;
  --font-display: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--midori-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--midori-deep);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .brand-mark {
  display: inline-block;
  width: 0.72em; height: 0.72em;
  border: 1.5px solid var(--ink);
  margin-right: 0.45em;
  transform: rotate(-6deg) translateY(1px);
  background:
    repeating-linear-gradient(45deg, transparent 0 3px, var(--line-strong) 3px 4px);
}
.site-nav { display: flex; gap: 20px; font-size: 0.88rem; }
.site-nav a { color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 36px; }
.hero .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: var(--graphite);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  line-height: 1.5;
  letter-spacing: 0.05em;
}
.hero h1 .accent { color: var(--midori-deep); }
.hero .lede {
  margin-top: 18px;
  max-width: 34em;
  color: var(--ink-soft);
}
.hero-tangle { margin-top: 34px; overflow: hidden; }
.hero-tangle svg { width: 100%; height: auto; display: block; }
.hero-tangle path, .hero-tangle circle {
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.3;
  stroke-linecap: round;
}
.hero-tangle .t-green { stroke: var(--midori); }

@media (prefers-reduced-motion: no-preference) {
  .hero-tangle .draw {
    stroke-dasharray: var(--len, 300);
    stroke-dashoffset: var(--len, 300);
    animation: draw 2.6s ease-out forwards;
  }
  .hero-tangle .draw.d2 { animation-delay: 0.5s; }
  .hero-tangle .draw.d3 { animation-delay: 1s; }
  .hero-tangle .draw.d4 { animation-delay: 1.5s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- search panel ---------- */
.search-panel {
  background: var(--tile);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 8px 0 0;
  box-shadow: 3px 3px 0 var(--washi);
}
.search-panel .panel-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.search-row select,
.search-row input[type="search"] {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  min-width: 180px;
}
.search-row input[type="search"] { flex: 1 1 200px; }
.format-toggles { display: flex; gap: 8px; }
.format-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.88rem;
  cursor: pointer;
  background: var(--paper);
  user-select: none;
}
.format-toggles input { accent-color: var(--midori-deep); }
.format-toggles label:has(input:checked) {
  background: var(--midori-wash);
  border-color: var(--midori-deep);
  color: var(--midori-deep);
}
.result-count { font-size: 0.85rem; color: var(--graphite); margin-left: auto; }

/* ---------- sections ---------- */
.section { padding: 52px 0 8px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.section-head .rule { flex: 1; height: 1px; background: var(--line); }
.section-head .count { font-size: 0.85rem; color: var(--graphite); white-space: nowrap; }

/* ---------- teacher cards = 紙タイル ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
  padding-bottom: 40px;
}
.card {
  position: relative;
  background: var(--tile);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 3px 3px 0 var(--washi);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: 5px 6px 0 var(--washi);
}
.card::after {
  /* 紙タイルの角に、鉛筆の下書き線 */
  content: "";
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  opacity: 0.9;
}
.card .card-pref {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--graphite);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.card h3 a { color: var(--ink); }
.card .card-headline {
  font-size: 0.88rem;
  color: var(--ink-soft);
  flex: 1;
}
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 2px 10px;
  border: 1px solid var(--midori-deep);
  color: var(--midori-deep);
  background: var(--midori-wash);
}
.badge.badge-format {
  border-color: var(--line-strong);
  color: var(--ink-soft);
  background: var(--paper);
}
.badge.badge-sample {
  border: 1px dashed var(--graphite);
  color: var(--graphite);
  background: transparent;
}
.card .card-link {
  font-size: 0.85rem;
  align-self: flex-start;
  border-bottom: 1px solid var(--midori-deep);
  padding-bottom: 1px;
}
.card .card-link:hover { text-decoration: none; opacity: 0.75; }

/* ---------- area chips ---------- */
.region-block { margin-bottom: 26px; }
.region-block h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.pref-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pref-chips a {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--tile);
  padding: 6px 16px;
  font-size: 0.88rem;
  color: var(--ink);
}
.pref-chips a:hover {
  text-decoration: none;
  background: var(--midori-wash);
  border-color: var(--midori-deep);
  color: var(--midori-deep);
}
.pref-chips .chip-count { color: var(--graphite); font-size: 0.78rem; margin-left: 4px; }

/* ---------- about band ---------- */
.about-band {
  background: var(--washi);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
  margin-top: 40px;
}
.about-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}
.about-cols h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.about-cols p { color: var(--ink-soft); font-size: 0.94rem; }
.about-cols p + p { margin-top: 10px; }
.about-cols .note { font-size: 0.82rem; color: var(--graphite); margin-top: 12px; }
.about-cols .about-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--midori-deep);
  border-bottom: 1px solid var(--midori-deep);
  padding-bottom: 1px;
}
.about-cols .about-more:hover { text-decoration: none; opacity: 0.75; }

/* ---------- CTA ---------- */
.cta-band { padding: 64px 0 72px; text-align: center; }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.cta-band p { color: var(--ink-soft); max-width: 36em; margin: 0 auto 24px; }
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  padding: 13px 36px;
  border-radius: 999px;
  border: 1.5px solid var(--midori-deep);
  background: var(--midori-deep);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn.btn-ghost { background: transparent; color: var(--midori-deep); }

/* ---------- teacher detail ---------- */
.breadcrumb { font-size: 0.82rem; color: var(--graphite); padding: 20px 0 0; }
.breadcrumb a { color: var(--graphite); }
.profile { padding: 30px 0 10px; display: grid; grid-template-columns: 92px 1fr; gap: 24px; align-items: start; }
.profile .monogram {
  width: 92px; height: 92px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--tile);
  box-shadow: 3px 3px 0 var(--washi);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--midori-deep);
}
.profile h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.profile .kana { font-size: 0.82rem; color: var(--graphite); letter-spacing: 0.2em; }
.profile .headline { margin-top: 10px; color: var(--ink-soft); }
.profile .badges { margin-top: 12px; }

.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  padding: 26px 0 60px;
}
.detail-main .bio { color: var(--ink-soft); }
.detail-block { margin-top: 30px; }
.detail-block h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.schedule-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.schedule-table th, .schedule-table td {
  text-align: left;
  padding: 10px 12px 10px 0;
  border-bottom: 1px dashed var(--line);
  vertical-align: top;
}
.schedule-table th { color: var(--graphite); font-weight: 500; white-space: nowrap; }
.empty-note { color: var(--graphite); font-size: 0.9rem; }

.detail-side .info-tile {
  background: var(--tile);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--washi);
  padding: 22px;
  position: sticky;
  top: 20px;
}
.detail-side dl { font-size: 0.9rem; }
.detail-side dt { color: var(--graphite); font-size: 0.78rem; letter-spacing: 0.14em; margin-top: 14px; }
.detail-side dt:first-child { margin-top: 0; }
.detail-side dd { margin-top: 2px; }
.detail-side .btn { display: block; text-align: center; margin-top: 22px; }
.sample-warning {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--graphite);
  border: 1px dashed var(--graphite);
  border-radius: var(--radius);
  padding: 8px 10px;
}

/* ---------- CZTアシスト ---------- */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding-bottom: 20px;
}
.promise-grid .card { cursor: default; }
.promise-grid .card:hover { transform: none; box-shadow: 3px 3px 0 var(--washi); }
.promise-grid h3 { font-size: 1.08rem; }
.sp-only { display: none; }
@media (max-width: 480px) { .sp-only { display: inline; } }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--washi);
  padding: 34px 0 44px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer .fine { color: var(--graphite); font-size: 0.78rem; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .hero { padding-top: 44px; }
  .profile { grid-template-columns: 72px 1fr; gap: 16px; }
  .profile .monogram { width: 72px; height: 72px; font-size: 1.6rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side .info-tile { position: static; }
  .result-count { margin-left: 0; width: 100%; }
}
