/* ============================================================
   あべのそろばんLabo — site styles
   Warm & Friendly direction (mobile-first, ~900px desktop)
   ============================================================ */

:root {
  --ink: #1a1a1a;
  --ink-2: #444;
  --ink-3: #8a8a8a;
  --paper: #fbf8f2;
  --paper-2: #f3eee2;
  --line: #2a2a2a;
  --accent: #d94a2b;       /* そろばん玉の朱 */
  --accent-soft: #f5d7cd;
  --wash: #efeadd;
  --line-green: #06c755;   /* LINE official green */

  --serif: "Kaisei Decol", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: "Klee One", "Hiragino Sans", "Helvetica Neue", system-ui, sans-serif;
  --hand: "Zen Kurenaido", "Klee One", "Hiragino Sans", sans-serif;
  --en-hand: "Caveat", cursive;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --max-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.75;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.05) 1px, transparent 0);
  background-size: 22px 22px;
}

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

/* ============================================================
   Top nav (sticky)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--line);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--serif); font-weight: 700;
  text-decoration: none; color: var(--ink);
  font-size: 16px;
}
.brand .bead {
  width: 28px; height: 22px;
  background: url(../images/abeno_logo.png) center / contain no-repeat;
}
.nav-links {
  display: none; /* hidden on mobile, shown on desktop */
  gap: 22px;
  margin-left: auto;
  font-family: var(--hand);
  font-size: 14px;
}
.nav-links a { text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  margin-left: auto;
}
.nav-cta .btn.line {
  font-size: 12px;
  padding: 8px 14px;
}

@media (min-width: 900px) {
  .nav-inner { padding: 16px 28px; }
  .brand { font-size: 18px; }
  .brand .bead { width: 32px; height: 25px; }
  .nav-links { display: flex; }
  .nav-cta { margin-left: 14px; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--hand);
  font-size: 15px;
  font-weight: 600;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--line);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover, .btn:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--line);
  outline: none;
}
.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--line);
}
.btn.line {
  background: var(--line-green);
  color: #fff;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.block { display: flex; width: 100%; }
.btn.lg { padding: 16px 26px; font-size: 16px; }
.btn.sm { padding: 9px 16px; font-size: 13px; }
.btn .icon { font-size: 18px; line-height: 1; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 16px 14px;
}
.hero-img-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
}
.hero-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 88% center;
}
.hero-card {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  background: color-mix(in oklab, var(--paper) 94%, transparent);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 3px 3px 0 var(--line);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-card .tag {
  font-family: var(--hand);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 4px;
}
.hero-card h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.35;
  margin: 0;
  letter-spacing: 0;
}
.hero-card h1 em { font-style: normal; color: var(--accent); }
.hero-card .hero-sub {
  margin-top: 6px;
  font-family: var(--hand);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}

/* CTA row */
.hero-cta {
  padding: 14px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-cta .sub-row {
  display: flex; gap: 8px;
}
.hero-cta .sub-row .btn {
  flex: 1;
}

@media (min-width: 900px) {
  .hero {
    padding: 56px 28px 24px;
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 50px;
    align-items: center;
  }
  .hero-img-wrap {
    box-shadow: 6px 6px 0 var(--line);
  }
  .hero-img-wrap img { aspect-ratio: 4 / 5; }
  .hero-card {
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    order: -1;
  }
  .hero-card .tag { font-size: 17px; }
  .hero-card h1 { font-size: 62px; line-height: 1.16; margin-top: 12px; }
  .hero-card .hero-sub { font-size: 18px; margin-top: 24px; max-width: 480px; line-height: 2; }
  .hero-cta {
    max-width: var(--max-w);
    margin: 28px auto 0;
    padding: 0 28px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .hero-cta .btn.line {
    padding: 16px 28px;
    font-size: 16px;
  }
  .hero-cta .btn.block { width: auto; }
  .hero-cta .sub-row {
    flex: 0 0 auto;
  }
  .hero-cta .sub-row .btn { flex: 0 0 auto; }
}

/* ============================================================
   Stats strip (desktop only)
   ============================================================ */
.stats {
  display: none;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  background: var(--paper-2);
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats .item {
  padding: 22px 24px;
  border-right: 1.2px dashed var(--ink-3);
}
.stats .item:last-child { border-right: 0; }
.stats .n {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}
.stats .l {
  font-family: var(--hand);
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 6px;
}
@media (min-width: 900px) {
  .stats { display: block; }
}

/* ============================================================
   Sections
   ============================================================ */
section.s {
  padding: 28px 14px;
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (min-width: 900px) {
  section.s { padding: 56px 28px; }
}

.section-label {
  display: inline-block;
  font-family: var(--hand);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent-soft);
  padding-bottom: 3px;
  margin-bottom: 10px;
  letter-spacing: .04em;
}
@media (min-width: 900px) {
  .section-label { font-size: 15px; }
}

h2.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 16px;
}
@media (min-width: 900px) {
  h2.section-title { font-size: 30px; margin-bottom: 22px; }
}

/* ABOUT */
.about-lead {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.95;
  margin: 0 0 18px;
}
.values {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.value-card {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  background: var(--paper-2);
  box-shadow: 2px 2px 0 var(--line);
}
.value-card .beads {
  display: flex; gap: 4px; justify-content: center; align-items: center;
  margin-bottom: 6px;
  min-height: 12px;
}
.value-card .beads span {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.2px solid var(--line);
  background: var(--paper);
}
.value-card .beads span.on { background: var(--accent); }
.value-card h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 13px; margin: 6px 0 0;
}

@media (min-width: 900px) {
  .about-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 50px;
    align-items: center;
  }
  .about-grid .right img {
    width: 100%; height: auto;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    box-shadow: 5px 5px 0 var(--line);
  }
  .about-lead { font-size: 17px; line-height: 2; }
  .values { gap: 14px; }
  .value-card { padding: 18px 12px; box-shadow: 3px 3px 0 var(--line); }
  .value-card .beads span { width: 10px; height: 10px; }
  .value-card h3 { font-size: 16px; }
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
}
@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .gallery img {
    aspect-ratio: 4 / 3;
    box-shadow: 3px 3px 0 var(--line);
  }
}

/* COURSES (通い方) */
.courses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.course-card {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--line);
}
.course-card .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.course-card .head h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 18px; margin: 0;
}
.course-card .head h3 .en {
  font-family: var(--en-hand);
  font-size: 15px;
  color: var(--accent);
  margin-left: 6px;
}
.course-card .price {
  font-family: var(--en-hand);
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
}
.course-card .desc {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.85;
}
.tag-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 12px;
}
.tag-row span {
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--ink-3);
  background: var(--paper-2);
  padding: 3px 9px;
  border-radius: 4px;
  color: var(--ink-2);
}
.count-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
}
.count-card {
  border: 1.2px solid var(--line);
  border-radius: 8px;
  padding: 12px 4px;
  text-align: center;
  background: var(--paper-2);
}
.count-card .n {
  font-family: var(--en-hand);
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}
.count-card .l {
  font-family: var(--hand);
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 2px;
}
.count-card .p {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
  margin-top: 5px;
}
@media (min-width: 900px) {
  .courses {
    grid-template-columns: 1.15fr 1fr;
    gap: 22px;
  }
  .course-card { padding: 26px 28px; box-shadow: 5px 5px 0 var(--line); }
  .course-card .head h3 { font-size: 24px; }
  .course-card .head h3 .en { font-size: 20px; }
  .course-card .price { font-size: 34px; }
  .course-card .desc { font-size: 15px; }
  .count-row { gap: 10px; }
  .count-card { padding: 16px 6px; }
  .count-card .n { font-size: 30px; }
  .count-card .p { font-size: 12px; }
}

/* SCHEDULE / CALENDAR */
.schedule {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.schedule-intro h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 20px; line-height: 1.45;
  margin: 4px 0 12px;
}
.schedule-intro h3 em { font-style: normal; color: var(--accent); }
.schedule-intro p {
  font-size: 14px; color: var(--ink-2);
  line-height: 1.9; margin: 0;
}
.schedule-legend {
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--hand); font-size: 13px;
}
.schedule-legend .row {
  display: flex; align-items: center; gap: 8px;
}
.schedule-legend .dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--ink-3);
  background: transparent;
  flex-shrink: 0;
}
.schedule-legend .dot.on {
  background: var(--accent);
  border-color: var(--accent);
}

.cal {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--paper-2);
  box-shadow: 3px 3px 0 var(--line);
}
.cal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.cal-head .month {
  font-family: var(--serif); font-weight: 700; font-size: 18px;
}
.cal-arrows { display: flex; gap: 8px; flex-shrink: 0; }
.nav-btn {
  background: transparent;
  border: 1.3px solid var(--line);
  border-radius: 8px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
  color: var(--ink-2);
  cursor: pointer; padding: 0;
  transition: 0.15s ease;
}
.nav-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--ink-3); }
.nav-btn:active { transform: translateY(1px); }
.cal-head .month .en {
  font-family: var(--en-hand);
  color: var(--accent);
  margin-left: 6px;
  font-size: 18px;
}
.cal-head .nav-arrows {
  font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: .2em;
}
.cal-dow {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-family: var(--mono); font-size: 13px;
  text-align: center; color: var(--ink-2);
  margin-bottom: 6px;
}
.cal-dow span.sun { color: #b04; }
.cal-dow span.sat { color: #247; }
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  grid-auto-rows: 1fr; /* 全ての週を同じ高さに揃える（ラベルは短めにして縦長を防ぐ） */
}
.cal-day {
  min-height: 54px;
  height: 100%;
  width: 100%;
  border: 1.2px solid var(--ink-3);
  border-radius: 6px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: 4px;
  background: var(--paper);
  color: var(--ink-3);
  font-family: var(--mono); font-size: 13px;
}
.cal-day .date-num {
  width: 100%;
  text-align: left;
  font-size: 13px;
  line-height: 1;
}
.cal-day .mark {
  flex-grow: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  line-height: 1;
}
.cal-day .mark.small {
  font-size: 15px;
}
/* 前月からの特例授業（例：7/31を8月の1回目として表示） */
.cal-day.pre .date-num {
  color: var(--accent);
  font-weight: 700;
}
.cal-day.empty {
  border: 0;
  background: transparent;
}
.cal-day.on {
  background: #fff0f5; /* Light pink background for class days */
  color: var(--ink);
  border-color: #ffc2d1;
}
.cal-day.on .mark {
  color: var(--accent);
}
.cal-day.off {
  background: #f4f4f4; /* Gray background for closed days */
  color: var(--ink-3);
  border-color: #e0e0e0;
}
.cal-day.off .mark {
  color: #aaa;
}
.cal-day .time {
  width: 100%;
  text-align: center;
  font-family: var(--hand);
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.25;
}
.cal-note {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
}
.cal-slider {
  display: flex;
  align-items: flex-start; /* Each card keeps its natural height */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 4px 4px 20px 4px;
  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.cal-slider::-webkit-scrollbar {
  display: none;
}
.cal-slider .cal {
  flex: 0 0 88%; /* Peek next month */
  scroll-snap-align: center;
  max-width: 340px;
}
@media (min-width: 900px) {
  .cal { padding: 26px; box-shadow: 5px 5px 0 var(--line); }
  /* 1ヶ月を大きく表示。隣月は右端/左端がちらっと見えるカルーセル */
  .cal-slider { max-width: 860px; margin: 0 auto; }
  .cal-slider .cal { flex: 0 0 calc(100% - 56px); max-width: none; scroll-snap-align: center; }
  .cal-head .month { font-size: 24px; }
  .cal-dow { font-size: 15px; }
  .cal-day { min-height: 84px; padding: 8px; }
  .cal-day .date-num { font-size: 16px; }
  .cal-day .mark { font-size: 34px; }
  .cal-day .mark.small { font-size: 22px; }
  .cal-day .time { font-size: 14px; }
  .cal-note { font-size: 16px; }
}

/* Mid CTA banner */
.mid-cta {
  margin: 28px 14px 0;
  padding: 22px 20px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  box-shadow: 4px 4px 0 var(--line);
  text-align: center;
}
.mid-cta h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 18px; line-height: 1.4; margin: 0;
}
.mid-cta p {
  font-family: var(--hand);
  font-size: 13px;
  margin: 8px 0 0;
  opacity: 0.95;
}
.mid-cta .ctas {
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.mid-cta .btn.line { box-shadow: 2px 2px 0 var(--line); }
.mid-cta .btn.tel {
  background: var(--paper); color: var(--ink);
  font-size: 13px; padding: 10px 16px;
}
@media (min-width: 900px) {
  .mid-cta {
    margin: 36px 28px 0;
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 30px;
    align-items: center;
    text-align: left;
    box-shadow: 6px 6px 0 var(--line);
  }
  .mid-cta h3 { font-size: 26px; }
  .mid-cta p { font-size: 14px; margin-top: 8px; }
  .mid-cta .ctas { margin-top: 0; align-items: flex-end; }
  .mid-cta .btn.line { padding: 16px 26px; font-size: 16px; }
}

/* FAQ */
.faq { border-top: 1.2px solid var(--ink-3); }
.faq details {
  border-bottom: 1.2px solid var(--ink-3);
  padding: 14px 2px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  font-family: var(--body);
  font-size: 14px; font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q {
  flex: 1;
}
.faq summary .q::before {
  content: "Q. ";
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  margin-right: 4px;
}
.faq summary::after {
  content: "＋";
  font-family: var(--hand);
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 10px 0 0;
  padding-left: 22px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.9;
}
@media (min-width: 900px) {
  .faq summary { font-size: 16px; }
  .faq details p { font-size: 14.5px; }
}

/* FAQ + Access side-by-side at desktop */
.faq-access {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .faq-access { grid-template-columns: 1fr 1fr; gap: 50px; }
}

/* ACCESS */
.access-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
}
.access-info {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
}
.access-info b {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}

/* FINAL CTA */
.final-cta {
  padding: 28px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.final-cta .sub-row {
  display: flex; gap: 8px;
}
.final-cta .sub-row .btn { flex: 1; }
@media (min-width: 900px) {
  .final-cta {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 50px 28px;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
  }
  .final-cta .lead {
    flex: 1; min-width: 320px;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.4;
  }
  .final-cta .lead em { font-style: normal; color: var(--accent); }
  .final-cta .btn { flex: 0 0 auto; }
  .final-cta .sub-row { flex: 0 0 auto; }
}

/* ============================================================
   Footer
   ============================================================ */
footer.site {
  background: var(--ink);
  color: var(--paper);
  margin-top: 12px;
  padding: 26px 18px 80px;
}
footer.site .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 18px;
}
footer.site .brand-block {
  font-family: var(--serif); font-weight: 700;
  font-size: 18px;
  display: flex; align-items: center; gap: 9px;
}
footer.site .brand-block .bead {
  width: 28px; height: 22px;
  background: url(../images/abeno_logo.png) center / contain no-repeat;
}
footer.site .info {
  font-family: var(--hand);
  font-size: 13px;
  opacity: .85;
  line-height: 1.85;
}
footer.site .info a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--ink-3); }
footer.site .copy {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  opacity: .55;
  letter-spacing: .05em;
}
@media (min-width: 900px) {
  footer.site { padding: 40px 28px; }
  footer.site .inner {
    flex-direction: row; justify-content: space-between; gap: 40px;
  }
}

/* ============================================================
   Sticky bottom mobile CTA bar (visible only on small screens)
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: color-mix(in oklab, var(--paper) 96%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1.5px solid var(--line);
  z-index: 50;
  display: flex; gap: 8px;
  box-shadow: 0 -3px 12px rgba(0,0,0,.06);
}
.sticky-cta .btn.line { flex: 1; }
.sticky-cta .btn.tel {
  padding: 13px 14px;
  font-size: 18px;
  background: var(--paper);
  flex: 0 0 auto;
}
@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* Body padding so content not hidden behind sticky CTA */
body { padding-bottom: 76px; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

/* ============================================================
   Utility / a11y
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Value-card descriptions (3つの力)
   ============================================================ */
.value-card .v-desc {
  display: none;
}
@media (min-width: 900px) {
  .value-card { text-align: left; padding: 20px 18px; }
  .value-card .beads { justify-content: flex-start; }
  .value-card h3 { font-size: 17px; margin: 8px 0 6px; }
  .value-card .v-desc {
    display: block;
    font-family: var(--body);
    font-size: 13px;
    line-height: 1.8;
    color: var(--ink-2);
    margin: 0;
  }
}

/* ============================================================
   Price note (月4回=80分 など)
   ============================================================ */
.price-note {
  margin-top: 12px;
  font-family: var(--hand);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.7;
}
.price-note b { color: var(--accent); }
@media (min-width: 900px) {
  .price-note { font-size: 13px; margin-top: 16px; }
}

/* count-card minutes label */
.count-card .min {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-3);
  margin-top: 3px;
}
@media (min-width: 900px) {
  .count-card .min { font-size: 10.5px; }
}

/* ============================================================
   Sub-page header (お知らせ / 利用規約)
   ============================================================ */
.page-head {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 18px 4px;
}
.page-head .section-label { margin-bottom: 8px; }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.page-head p.lead {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.9;
  margin: 0;
  max-width: 640px;
}
@media (min-width: 900px) {
  .page-head { padding: 48px 28px 8px; }
  .page-head h1 { font-size: 38px; }
  .page-head p.lead { font-size: 15px; }
}

/* ============================================================
   News list (お知らせ)
   ============================================================ */
.news-list {
  border-top: 1.2px solid var(--ink-3);
}
.news-item {
  border-bottom: 1.2px solid var(--ink-3);
  padding: 18px 2px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.news-item .meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.news-item time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.news-item .cat {
  font-family: var(--hand);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--paper-2);
  padding: 1px 8px;
  border-radius: 999px;
}
.news-item h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 16px; margin: 2px 0 0; line-height: 1.5;
}
.news-item p {
  font-size: 13.5px; color: var(--ink-2);
  line-height: 1.85; margin: 4px 0 0;
}
@media (min-width: 900px) {
  .news-item { grid-template-columns: 180px 1fr; gap: 0 24px; padding: 22px 2px; }
  .news-item .meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .news-item h3 { font-size: 18px; }
  .news-item p { font-size: 14.5px; }
}

/* ============================================================
   Legal / terms (利用規約)
   ============================================================ */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 18px 10px;
}
.legal .art { margin: 0 0 28px; }
.legal h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: 17px;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin: 0 0 10px;
  line-height: 1.4;
}
.legal p, .legal li {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.95;
}
.legal p { margin: 0 0 8px; }
.legal ul, .legal ol { margin: 0 0 8px; padding-left: 1.3em; }
.legal li { margin-bottom: 4px; }
.legal .table {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 6px 0 8px;
}
.legal .table .row {
  display: grid; grid-template-columns: 100px 1fr;
}
.legal .table .row:not(:last-child) { border-bottom: 1px solid var(--ink-3); }
.legal .table .k {
  font-family: var(--hand); font-size: 13px;
  background: var(--paper-2); padding: 10px 14px;
  border-right: 1px solid var(--ink-3); color: var(--ink-2);
}
.legal .table .v { padding: 10px 14px; font-size: 13.5px; }
.legal .updated {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-3); margin-top: 24px;
}
@media (min-width: 900px) {
  .legal { padding: 16px 28px 20px; }
  .legal h2 { font-size: 20px; }
  .legal p, .legal li { font-size: 15px; }
  .legal .table .row { grid-template-columns: 140px 1fr; }
}

/* ============================================================
   Hero entrance animation
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-card .tag,
.hero-card h1,
.hero-card .hero-sub,
.hero-cta {
  opacity: 0;
  animation: fadeUp .7s ease-out forwards;
}
.hero-card .tag      { animation-delay: .05s; }
.hero-card h1        { animation-delay: .18s; }
.hero-card .hero-sub { animation-delay: .34s; }
.hero-cta            { animation-delay: .48s; }
.hero-img-wrap {
  opacity: 0;
  animation: fadeUp .8s ease-out .12s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero-card .tag, .hero-card h1, .hero-card .hero-sub,
  .hero-cta, .hero-img-wrap {
    opacity: 1; animation: none;
  }
}

/* ABOUT becomes single column (no instructor photo) */
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 0; }
  .about-lead { max-width: 820px; }
}

/* ============================================================
   Course intro (自由時間制＋回数制の説明)
   ============================================================ */
.course-intro { margin-bottom: 22px; }
.course-intro .ci-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.ci-item {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}
.ci-item .ci-key {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}
.ci-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.85;
}
.course-intro .tag-row { margin-top: 16px; }
@media (min-width: 900px) {
  .course-intro { margin-bottom: 30px; }
  .course-intro .ci-row { grid-template-columns: 1fr 1fr; gap: 36px; }
  .ci-item .ci-key { font-size: 18px; }
  .ci-item p { font-size: 15px; }
}

/* ============================================================
   Price panel (月謝・主役)
   ============================================================ */
.price-panel {
  max-width: 760px;
  margin: 0 auto;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--line);
  padding: 20px 18px;
}
.price-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  margin: 2px 0 6px;
}
@media (min-width: 900px) {
  .price-panel { padding: 32px 36px; box-shadow: 6px 6px 0 var(--line); }
  .price-title { font-size: 24px; margin-bottom: 12px; }
}

/* お月謝以外の費用（教材費）説明 */
.price-extra {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1.2px dashed var(--ink-3);
}
.price-extra h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 6px;
  color: var(--ink);
}
.price-extra p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.85;
}
.price-extra b { color: var(--accent); }
.fee-list {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  border: 1.2px solid var(--ink-3);
  border-radius: 8px;
  overflow: hidden;
}
.fee-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--paper-2);
}
.fee-list li:not(:last-child) { border-bottom: 1px solid var(--ink-3); }
.fee-list .fk small { color: var(--ink-3); font-size: 11px; }
.fee-list .fv {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.fee-foot {
  font-size: 12px !important;
  color: var(--ink-3) !important;
  margin-top: 8px;
}
@media (min-width: 900px) {
  .price-extra h4 { font-size: 16px; }
  .price-extra p { font-size: 14px; }
  .fee-list li { font-size: 14px; padding: 11px 16px; }
  .fee-foot { font-size: 13px !important; }
}

/* ============================================================
   Price table (月謝)
   ============================================================ */
.price-table {
  margin-top: 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}
.price-table .prow {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  align-items: center;
}
.price-table .prow:not(:last-child) {
  border-bottom: 1.2px solid var(--ink-3);
}
.price-table .prow.head {
  background: var(--ink);
}
.price-table .prow.head span {
  font-family: var(--hand);
  font-size: 12px;
  color: var(--paper);
  padding: 9px 12px;
  text-align: center;
}
.price-table .prow .c {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  padding: 14px 12px;
  text-align: center;
  background: var(--paper-2);
}
.price-table .prow .t {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  padding: 14px 8px;
  text-align: center;
}
.price-table .prow .m {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  padding: 14px 12px;
  text-align: center;
}
.price-table .prow .m small {
  font-family: var(--hand);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 400;
}
@media (min-width: 900px) {
  .price-table .prow.head span { font-size: 14px; padding: 12px 16px; }
  .price-table .prow .c { font-size: 20px; padding: 18px 16px; }
  .price-table .prow .t { font-size: 14px; }
  .price-table .prow .m { font-size: 26px; padding: 18px 16px; }
  .price-table .prow .m small { font-size: 12px; }
}

/* ============================================================
   Access — Google Map iframe
   ============================================================ */
iframe.access-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--line);
  display: block;
}

/* ============================================================
   Calendar — closed (お休み) day
   ============================================================ */
.cal-day.off {
  background: var(--paper);
  color: var(--ink-3);
  border-style: dashed;
}
.cal-day.off .time {
  font-family: var(--hand);
  font-size: 11px;
  color: var(--ink-3);
}
.cal-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--hand);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.85;
}
@media (min-width: 900px) {
  .cal-note { font-size: 16px; }
}

/* ============================================================
   塾代助成バナー（大阪市）
   ============================================================ */
.josei {
  margin-top: 26px;
  background: linear-gradient(100deg, var(--accent), #e8721c);
  color: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 6px 6px 0 var(--line);
}
.josei h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}
.josei p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.94);
  max-width: 560px;
}
.josei-badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .josei { padding: 26px 30px; }
  .josei h4 { font-size: 21px; }
}
