/* ==========================================================
   ゆいまーるスクール テーマ（A案：まちの、あったかいパソコン教室）
   色はロゴの4色。:root の変数で一括変更できます。
   ========================================================== */
:root {
  --teal: #2ba8a0;
  --teal-dark: #1d7f79;
  --teal-soft: #e3f4f2;
  --pink: #f27a8a;
  --pink-dark: #d9566a;
  --yellow: #f6c343;
  --yellow-soft: #fff1c7;
  --sky: #5bb5e8;
  --line-green: #06c755;
  --ink: #3b3a36;
  --muted: #6b6860;
  --paper: #fffdf9;
  --tint: #fbf7ee;
  --border: #ece5d6;
  --white: #ffffff;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-pill: 6px;
  --wrap: 1120px;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--teal-dark); }
a:hover { color: var(--pink-dark); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.45; text-wrap: balance; margin: 0; font-weight: 900; }
p { margin: 0; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-pill); border: 2px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none;
  transition: transform .15s, background-color .15s, box-shadow .15s;
}
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--pink { background: var(--pink); color: #fff; box-shadow: 0 4px 0 var(--pink-dark); }
.btn--pink:hover { color: #fff; background: var(--pink-dark); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 4px 0 var(--teal-dark); }
.btn--teal:hover { color: #fff; background: var(--teal-dark); }
.btn--line { background: var(--line-green); color: #fff; box-shadow: 0 4px 0 #04a045; }
.btn--line:hover { color: #fff; background: #04a045; }
.btn--ghost { background: var(--white); color: var(--teal-dark); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--teal-dark); }
.link-more:hover .ico { transform: translateX(3px); }
.link-more .ico { transition: transform .15s; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 249, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header__inner { max-width: var(--wrap); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.logo { margin: 0; font-size: inherit; }
.logo a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__img { max-height: 52px; width: auto; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-block;
  background: conic-gradient(var(--teal) 0 25%, var(--yellow) 0 50%, var(--pink) 0 75%, var(--sky) 0);
}
.logo__text { display: grid; white-space: nowrap; font-size: 20px; font-weight: 900; line-height: 1.2; }
.logo__text small { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.gnav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.gnav__cta { white-space: nowrap; }
.gnav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.gnav__list a { display: block; padding: 8px 10px; border-radius: var(--radius-pill); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.gnav__list a:hover, .gnav__list .current-menu-item > a { background: var(--teal-soft); color: var(--teal-dark); }
.menu-btn { display: none; }

@media (max-width: 1000px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    background: var(--teal-soft); color: var(--teal-dark); border: 0; border-radius: var(--radius-pill);
    padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
    white-space: nowrap; flex: none;
  }
  .menu-btn__bar, .menu-btn__bar::before, .menu-btn__bar::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; transition: transform .2s; }
  .menu-btn__bar::before { position: absolute; top: -5px; }
  .menu-btn__bar::after { position: absolute; top: 5px; }
  .menu-btn[aria-expanded="true"] .menu-btn__bar { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn__bar::before { transform: translateY(5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bar::after { transform: translateY(-5px) rotate(-45deg); }
  .gnav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 20px 20px;
    box-shadow: 0 16px 24px -16px rgba(0, 0, 0, .2);
  }
  .gnav.is-open { display: flex; }
  .gnav__list { flex-direction: column; }
  .gnav__list a { padding: 12px 14px; font-size: 16px; border-bottom: 1px dashed var(--border); border-radius: 0; }
  .logo__text { font-size: 18px; }
  .logo { min-width: 0; }
  .logo__img { max-height: 40px; }
}

@media (max-width: 380px) {
  .menu-btn { padding: 10px 12px; }
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .logo__text { font-size: 16px; }
}

/* ---------- hero ---------- */
.hero { overflow: hidden; background:
  radial-gradient(circle at 92% 8%, var(--yellow-soft) 0 110px, transparent 111px),
  radial-gradient(circle at 4% 96%, var(--teal-soft) 0 140px, transparent 141px); }
.hero__inner { max-width: var(--wrap); margin: 0 auto; padding: 56px 20px 64px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; }
.hero__eyebrow { display: inline-block; background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-pill); padding: 4px 16px; font-size: 13px; font-weight: 700; color: var(--teal-dark); }
.hero__title { margin-top: 18px; font-size: clamp(32px, 5.2vw, 54px); font-weight: 900; line-height: 1.35; letter-spacing: .01em; }
.hero__title em { font-style: normal; color: var(--teal); background: linear-gradient(transparent 64%, #fde7a8 64%); }
.hero__lead { margin-top: 18px; color: var(--muted); max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__art { display: grid; place-items: center; }
.hero__svg { width: 100%; max-width: 440px; height: auto; }
.hero__photo { border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; width: 100%; }
@media (max-width: 760px) {
  .hero__inner { grid-template-columns: 1fr; padding: 32px 20px 40px; gap: 12px; }
  .hero__art { order: -1; }
  .hero__svg { max-width: 260px; }
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* ---------- trust strip ---------- */
.trust { padding: 0 20px; }
.trust__list { list-style: none; margin: -28px auto 0; padding: 0; max-width: var(--wrap); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative; }
.trust__list li { padding: 18px 20px; display: grid; gap: 2px; text-align: center; }
.trust__list li + li { border-left: 2px dashed var(--border); }
.trust__list strong { color: var(--teal-dark); font-size: 17px; font-weight: 900; }
.trust__list span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
  .trust__list li:nth-child(3) { border-left: 0; }
  .trust__list li:nth-child(n+3) { border-top: 2px dashed var(--border); }
  .trust__list strong { font-size: 15px; }
}

/* ---------- sections ---------- */
.sec { padding: 80px 20px; }
.sec--tint { background: var(--tint); }
.sec__inner { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 36px; }
.sec__inner--split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 48px; }
.sec__head { display: grid; gap: 10px; align-content: start; }
.sec__head--row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.sec__head p:not(.eyebrow) { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 900; letter-spacing: .18em; color: var(--pink); }
.sec__title { font-size: clamp(26px, 3.4vw, 36px); }
@media (max-width: 860px) {
  .sec { padding: 56px 20px; }
  .sec__inner--split { grid-template-columns: 1fr; gap: 28px; }
}

/* courses */
.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.course { --c: var(--teal); --c-soft: var(--teal-soft); display: grid; gap: 8px; align-content: start; padding: 28px; background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .2s, border-color .2s; }
.course--pink { --c: var(--pink); --c-soft: #fde6e9; }
.course--yellow { --c: #d9a21a; --c-soft: var(--yellow-soft); }
.course:hover { color: var(--ink); border-color: var(--c); transform: translateY(-4px); }
div.course:hover { border-color: var(--border); transform: none; }
.course__icon { width: 56px; height: 56px; border-radius: var(--radius); display: grid; place-items: center; background: var(--c-soft); color: var(--c); }
.course__icon .ico { width: 28px; height: 28px; }
.course__who { font-size: 13px; font-weight: 700; color: var(--c); margin-top: 6px; }
.course__title { font-size: 22px; }
.course__text { color: var(--muted); font-size: 15px; }
.course__more { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c); }
@media (max-width: 860px) { .courses { grid-template-columns: 1fr; } }

/* reasons */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.reason { background: var(--white); border-radius: var(--radius); padding: 26px 28px; display: grid; gap: 8px; }
.reason h3 { font-size: 19px; display: flex; gap: 10px; align-items: flex-start; }
.reason h3 .ico { color: var(--white); background: var(--teal); border-radius: 50%; padding: 4px; width: 28px; height: 28px; margin-top: 2px; }
.reason p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }

/* flow (順番に意味があるので番号付き) */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: flow; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.flow li { counter-increment: flow; position: relative; padding: 30px 22px 24px; background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); display: grid; gap: 6px; align-content: start; }
.flow li::before { content: counter(flow); position: absolute; top: -18px; left: 22px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-weight: 900; }
.flow h3 { font-size: 18px; }
.flow p { font-size: 14px; color: var(--muted); }
.flow--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
@media (max-width: 860px) { .flow, .flow--compact { grid-template-columns: 1fr; row-gap: 28px; } }

/* price mini */
.price-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.price-mini__col { background: var(--white); border-radius: var(--radius); padding: 24px; }
.price-mini__col h3 { font-size: 17px; padding-bottom: 10px; border-bottom: 2px dashed var(--border); }
.price-mini dl { margin: 0; display: grid; }
.price-mini dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.price-mini dt { color: var(--muted); font-size: 14px; }
.price-mini dd { margin: 0; font-size: 22px; font-weight: 900; color: var(--teal-dark); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .price-mini { grid-template-columns: 1fr; } }

/* news */
.news { list-style: none; margin: 0; padding: 0; border-top: 2px dashed var(--border); }
.news li { border-bottom: 2px dashed var(--border); }
.news a { display: flex; gap: 24px; padding: 18px 4px; text-decoration: none; color: var(--ink); align-items: baseline; flex-wrap: wrap; }
.news a:hover span { color: var(--teal-dark); }
.news time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* info + map */
.maps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.maps__item { margin: 0; display: grid; gap: 12px; }
.maps__label { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 900; padding-bottom: 10px; border-bottom: 2px dashed var(--border); }
.maps__label .ico { color: var(--pink); }
.maps__note { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .maps { grid-template-columns: 1fr; } .maps__label { font-size: 16px; } }
.map { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border); background: var(--white); aspect-ratio: 4 / 3; max-width: 100%; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- CTA ---------- */
.cta { padding: 64px 20px; background: var(--teal); color: #fff; }
.cta__inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cta__title { font-size: clamp(22px, 3vw, 30px); }
.cta__title em { font-style: normal; color: var(--yellow); }
.cta__text { display: grid; gap: 10px; }
.cta__text p { opacity: .92; }
/* 右側：お問い合わせパネル（メールフォーム推奨＋電話） */
.cta__panel { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; box-shadow: 0 12px 28px -18px rgba(0, 0, 0, .45); }
.cta__panel .btn { width: 100%; }
.cta .cta__mail { box-shadow: 0 4px 0 var(--pink-dark); }
.cta__note { text-wrap: balance; font-size: 13px; color: var(--muted); line-height: 1.7; text-align: center; }
.cta__telbox { display: grid; justify-items: center; gap: 2px; margin-top: 4px; padding-top: 14px; border-top: 2px dashed var(--border); text-align: center; }
.cta__label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.cta__telnum { display: inline-flex; align-items: center; gap: 8px; font-size: 28px; font-weight: 900; color: var(--teal-dark); text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cta__telnum:hover { color: var(--teal); }
.cta__telnum .ico { width: 24px; height: 24px; }
.cta__hours { font-size: 13px; color: var(--ink); }
@media (max-width: 760px) {
  .cta__inner { grid-template-columns: 1fr; }
  .cta__panel { padding: 18px 16px; }
  .cta__panel .cta__mail { font-size: 15px; padding: 14px 12px; letter-spacing: 0; }
}

/* ---------- footer ---------- */
.site-footer { background: #33413f; color: #d9e3e1; padding: 48px 20px 24px; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; }
.site-footer__name { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.site-footer__name .logo__mark { width: 28px; height: 28px; }
.site-footer address { font-style: normal; }
.site-footer__company { margin-top: 8px; opacity: .8; }
.site-footer__copy { max-width: var(--wrap); margin: 32px auto 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 12px; opacity: .7; }
@media (max-width: 760px) { .site-footer { padding-bottom: 96px; } }

/* mobile fixed bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--white); border-top: 1px solid var(--border);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px;
    box-shadow: 0 -6px 16px -10px rgba(0, 0, 0, .25);
  }
  .mobile-bar__item { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 700; font-size: 14px; color: var(--teal-dark); background: var(--teal-soft); }
  .mobile-bar__item--main { background: var(--pink); color: #fff; }
  .mobile-bar__item--line { background: var(--line-green); color: #fff; }
  .mobile-bar__item:hover { color: inherit; }
}

/* ---------- sub pages ---------- */
.page-head { background:
  radial-gradient(circle at 96% 20%, var(--yellow-soft) 0 80px, transparent 81px),
  var(--teal-soft); padding: 28px 20px 40px; }
.page-head__inner { max-width: 880px; margin: 0 auto; display: grid; gap: 10px; }
.page-head__title { font-size: clamp(28px, 4vw, 40px); }
.page-head__lead { color: var(--muted); }
.crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--muted); }
.crumb li + li::before { content: "›"; margin: 0 8px; }
.crumb a { color: var(--muted); }
.page-body { padding: 48px 20px 80px; }
.entry { max-width: 880px; margin: 0 auto; }

/* 本文（Gutenberg 由来のコンテンツもこの中で整える） */
.entry > * + * { margin-top: 1.2em; }
.entry h2 { margin-top: 2.6em; font-size: clamp(22px, 3vw, 28px); padding: 4px 0 10px 18px; border-bottom: 2px dashed var(--border); position: relative; }
.entry h2::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 1.1em; border-radius: 4px; background: var(--teal); }
.entry h3 { margin-top: 2em; font-size: 20px; color: var(--teal-dark); }
.entry h4 { margin-top: 1.8em; font-size: 18px; }
.entry h5 { margin-top: 1.4em; font-size: 16px; }
.entry > h2:first-child { margin-top: 0; }
.entry ul:not([class]), .entry ol:not([class]) { padding-left: 1.4em; }
.entry li + li { margin-top: .3em; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry img { border-radius: var(--radius-sm); }
.entry .wp-block-spacer { height: 8px !important; }
.entry .wp-block-button__link { border-radius: var(--radius-pill); background: var(--teal); font-weight: 700; }
.entry .wp-block-table table, .table-wrap table { width: 100%; border-collapse: collapse; background: var(--white); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 2px solid var(--border); }
.entry th, .entry td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.entry tr:last-child th, .entry tr:last-child td { border-bottom: 0; }
.entry th { background: var(--tint); white-space: nowrap; font-weight: 700; }
.note { font-size: 14px; color: var(--muted); background: var(--tint); border-radius: var(--radius-sm); padding: 12px 16px; }
.entry__date { color: var(--muted); font-size: 14px; }


/* exams */
.badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { background: var(--yellow-soft); border-radius: var(--radius-pill); padding: 6px 16px; font-weight: 700; font-size: 14px; }
.exams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.exam { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.exam h3 { margin: 0; font-size: 17px; color: var(--ink); }
.exam__org { font-size: 12px; color: var(--muted); }
.exam p:not(.exam__org) { font-size: 14px; }
@media (max-width: 640px) { .exams { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-sm); }
.faq__item[open] { border-color: var(--teal); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 24px; color: var(--teal); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__q, .faq__mark { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #fff; background: var(--teal); line-height: 1; }
.faq__mark { background: var(--pink); }
.faq__a { display: flex; gap: 12px; padding: 0 18px 18px; color: var(--muted); }

/* trial */
.checks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-weight: 700; }
.checks li { display: flex; align-items: center; gap: 6px; }
.checks .ico { color: var(--teal); }
.trial-tel { text-align: center; background: var(--tint); border-radius: var(--radius); padding: 24px; display: grid; gap: 4px; }
.trial-tel__num { font-size: 28px; font-weight: 900; display: flex; justify-content: center; align-items: center; gap: 8px; }
.trial-tel__num a { text-decoration: none; font-variant-numeric: tabular-nums; }

/* Contact Form 7 */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="date"], .wpcf7 select, .wpcf7 textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--white); font: inherit;
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { border-color: var(--teal); outline: none; }
.wpcf7 input[type="submit"] { background: var(--pink); color: #fff; border: 0; border-radius: var(--radius-pill); padding: 14px 40px; font: inherit; font-weight: 700; cursor: pointer; }

/* post list */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.post-list a { display: grid; gap: 4px; padding: 20px 24px; background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.post-list a:hover { border-color: var(--teal); color: var(--ink); }
.post-list h2 { margin: 0; padding: 0; border: 0; font-size: 18px; }
.post-list h2::before { display: none; }
.post-list time { font-size: 13px; color: var(--muted); }
.post-list p { font-size: 14px; color: var(--muted); }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.nav-links .page-numbers { padding: 6px 14px; border-radius: var(--radius-pill); background: var(--white); border: 2px solid var(--border); text-decoration: none; }
.nav-links .current { background: var(--teal); color: #fff; border-color: var(--teal); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 2px dashed var(--border); font-size: 14px; }

/* schedule：曜日ごとに開講時間を並べる */
.entry .schedule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.schedule__day { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); padding: 20px 20px 22px; display: grid; gap: 14px; align-content: start; }
.entry .schedule__name { margin: 0; font-size: 16px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.schedule__name span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: #fff; background: var(--teal); }
.schedule__day:last-child .schedule__name span { background: var(--pink); }
.schedule__name small { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--tint); border-radius: var(--radius-pill); padding: 2px 10px; }
.entry .schedule__slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.entry .schedule__slots li { margin: 0; display: flex; align-items: baseline; gap: 6px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--teal-soft); font-variant-numeric: tabular-nums; }
.schedule__day:last-child .schedule__slots li { background: #fde6e9; }
.schedule__slots strong { font-size: 20px; font-weight: 900; color: var(--ink); }
.schedule__slots span { font-size: 13px; color: var(--muted); }
.entry .schedule__note { font-size: 14px; color: var(--muted); margin-top: 10px; }
@media (max-width: 640px) {
  .entry .schedule { grid-template-columns: 1fr; }
  .entry .schedule__slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .entry .schedule__slots li { flex-direction: column; align-items: center; gap: 0; padding: 8px 4px; }
}

/* plans：回数別の料金カード */
.entry .plans { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entry .plans--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan { position: relative; background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); padding: 22px 20px 20px; display: grid; gap: 4px; justify-items: center; text-align: center; }
.entry .plan__label { margin: 0; font-size: 15px; color: var(--teal-dark); background: var(--teal-soft); border-radius: var(--radius-pill); padding: 2px 16px; }
.plan__price { margin-top: 8px; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.plan__price strong { font-size: 34px; font-weight: 900; letter-spacing: 0; }
.plan__price small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 2px; }
@media (max-width: 640px) { .entry .plans, .entry .plans--2 { grid-template-columns: 1fr; row-gap: 12px; } }

/* fees：入会金など */
.entry .fees { margin-top: 16px; display: grid; gap: 0; background: var(--tint); border-radius: var(--radius-sm); padding: 6px 20px; }
.fees div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.fees div:last-child { border-bottom: 0; }
.fees dt { font-weight: 700; color: var(--teal-dark); }
.fees dd { margin: 0; font-weight: 700; }
.fees small { font-weight: 500; color: var(--muted); font-size: 13px; }
.entry .price-who { color: var(--muted); font-size: 14px; margin-top: .6em; }
@media (max-width: 480px) { .fees div { grid-template-columns: 1fr; gap: 0; } }

/* 管理バー表示中は固定ヘッダーをその下に */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ==========================================================
   トップページ（ブロックエディターで編集する版）
   ========================================================== */
.front .wp-block-group__inner-container { display: contents; }
.front :where(.wp-block-group, .wp-block-group__inner-container) > * { margin-block: 0; }
.front .wp-block-group.alignfull { margin: 0; max-width: none; width: auto; }

/* ボタン（ブロックのスタイル） */
.wp-block-button[class*="is-style-yui-"] .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: var(--radius-pill); border: 2px solid transparent;
  font-family: var(--font); font-weight: 700; font-size: 16px; line-height: 1.4; text-decoration: none;
  transition: background-color .15s, transform .15s;
}
.wp-block-button.is-style-yui-pink .wp-block-button__link { background: var(--pink); color: #fff; box-shadow: 0 4px 0 var(--pink-dark); }
.wp-block-button.is-style-yui-pink .wp-block-button__link:hover { background: var(--pink-dark); color: #fff; }
.wp-block-button.is-style-yui-pink .wp-block-button__link::before {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-button.is-style-yui-ghost .wp-block-button__link { background: var(--white); color: var(--teal-dark); border-color: var(--teal); }
.wp-block-button.is-style-yui-ghost .wp-block-button__link:hover { background: var(--teal-soft); }
.wp-block-button.is-style-yui-line .wp-block-button__link { background: var(--line-green); color: #fff; box-shadow: 0 4px 0 #04a045; }
.wp-block-button[class*="is-style-yui-"] .wp-block-button__link:active { transform: translateY(2px); box-shadow: none; }
.hero__ctas.wp-block-buttons { gap: 14px; }
.wp-block-group.hero__text { display: grid; gap: 18px; justify-items: start; }
.front .hero__ctas.wp-block-buttons { margin-top: 10px; width: 100%; }
@media (max-width: 760px) {
  .hero__ctas.wp-block-buttons .wp-block-button { flex: 1 1 100%; }
  .hero__ctas.wp-block-buttons .wp-block-button__link { width: 100%; }
}

/* 「詳しく見る」リンク段落 */
p.link-more a, p.course__more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: inherit; }
.front p.link-more, .sec__head p.link-more { color: var(--teal-dark); }
p.link-more a::after, p.course__more a::after { content: "→"; transition: transform .15s; }
p.link-more a:hover::after, .course:hover p.course__more a::after { transform: translateX(3px); }

/* 実績帯（リスト） */
.trust__list li { color: var(--muted); font-size: 13px; }
.trust__list li strong { display: block; color: var(--teal-dark); font-size: 17px; font-weight: 900; }
@media (max-width: 760px) { .trust__list li strong { font-size: 15px; } }

/* 講座カード：アイコンは色ごとに CSS で表示、カード全体をリンクに */
.wp-block-group.course { position: relative; }
.wp-block-group.course::before {
  content: ""; width: 56px; height: 56px; border-radius: var(--radius); background-color: var(--c-soft);
  background-position: center; background-size: 28px; background-repeat: no-repeat;
}
.wp-block-group.course--teal::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ba8a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E"); }
.wp-block-group.course--pink::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f27a8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 8l-4 4 4 4M16 8l4 4-4 4M13.5 6l-3 12'/%3E%3C/svg%3E"); }
.wp-block-group.course--yellow::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9a21a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='5'/%3E%3Cpath d='M9 13.5L8 21l4-2 4 2-1-7.5'/%3E%3C/svg%3E"); }
.course__more { margin-top: 8px; color: var(--c); }
.front .course__more a::before { content: ""; position: absolute; inset: 0; }
.wp-block-group.course:hover { transform: none; }
.wp-block-group.course:has(.course__more):hover { border-color: var(--c); transform: translateY(-4px); }

/* 選ばれる理由：見出しのチェックアイコン */
.reason h3 { align-items: center; }
.reason h3::before {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* 入会までの流れ（番号付きリスト） */
.flow li { font-size: 14px; color: var(--muted); }
.flow li strong { display: block; font-size: 18px; font-weight: 900; color: var(--ink); }
.entry .flow { margin-top: 32px; padding: 0; }
.entry .flow li + li { margin-top: 0; }

/* エディター上のパーツブロック */
.yui-part { min-height: 40px; }

/* 上部に戻るボタン */
.to-top {
  position: fixed; z-index: 55;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--teal); color: #fff; text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s, background-color .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-dark); color: #fff; }
@media (max-width: 760px) {
  .to-top { right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }
}

/* ヒーローの講座別ボタン（パソコン教室＝緑／プログラミング＝ピンク） */
.wp-block-button:is(.is-style-yui-pc, .is-style-yui-code) .wp-block-button__link {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%;
  padding: 14px 20px 14px 16px; border-radius: var(--radius-pill); border: 2px solid transparent;
  font-family: var(--font); font-weight: 700; font-size: 16px; line-height: 1.4; text-align: left; text-decoration: none;
  color: #fff; transition: background-color .15s, transform .15s;
}
.wp-block-button.is-style-yui-pc .wp-block-button__link { background: var(--teal); box-shadow: 0 4px 0 var(--teal-dark); }
.wp-block-button.is-style-yui-pc .wp-block-button__link:hover { background: var(--teal-dark); color: #fff; }
.wp-block-button.is-style-yui-code .wp-block-button__link { background: var(--pink); box-shadow: 0 4px 0 var(--pink-dark); }
.wp-block-button.is-style-yui-code .wp-block-button__link:hover { background: var(--pink-dark); color: #fff; }
.wp-block-button:is(.is-style-yui-pc, .is-style-yui-code) .wp-block-button__link:active { transform: translateY(2px); box-shadow: none; }
/* 左：講座アイコン（白い四角の中） */
.wp-block-button:is(.is-style-yui-pc, .is-style-yui-code) .wp-block-button__link::before {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: var(--radius-pill);
  background: #fff center / 22px no-repeat;
}
.wp-block-button.is-style-yui-pc .wp-block-button__link::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d7f79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E");
}
.wp-block-button.is-style-yui-code .wp-block-button__link::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9566a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 8l-4 4 4 4M16 8l4 4-4 4M13.5 6l-3 12'/%3E%3C/svg%3E");
}
/* 右：矢印 */
.wp-block-button:is(.is-style-yui-pc, .is-style-yui-code) .wp-block-button__link::after {
  content: "→"; margin-left: auto; padding-left: 8px; font-size: 18px; transition: transform .15s;
}
.wp-block-button:is(.is-style-yui-pc, .is-style-yui-code) .wp-block-button__link:hover::after { transform: translateX(3px); }
/* 2つを同じ幅で縦に並べる（文言が1行に収まる幅） */
.hero__ctas.wp-block-buttons:has(.is-style-yui-pc) { display: grid; grid-template-columns: 1fr; gap: 14px; width: 100%; max-width: 460px; }
.hero__ctas.wp-block-buttons:has(.is-style-yui-pc) .wp-block-button { width: 100%; margin: 0; }
@media (max-width: 760px) {
  .hero__ctas.wp-block-buttons:has(.is-style-yui-pc) { max-width: none; }
  .wp-block-button:is(.is-style-yui-pc, .is-style-yui-code) .wp-block-button__link { font-size: 14px; gap: 10px; padding: 12px; letter-spacing: 0; }
  .wp-block-button:is(.is-style-yui-pc, .is-style-yui-code) .wp-block-button__link::before { width: 30px; height: 30px; background-size: 18px; }
  .wp-block-button:is(.is-style-yui-pc, .is-style-yui-code) .wp-block-button__link::after { display: none; }
}

/* よくある質問：本文の「詳細」ブロックを Q&A の見た目にする */
.entry--faq h2 + .wp-block-details { margin-top: 1.4em; }
.entry .wp-block-details { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 0; }
.entry .wp-block-details + .wp-block-details { margin-top: 12px; }
.entry .wp-block-details[open] { border-color: var(--teal); }
.entry .wp-block-details summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; line-height: 1.7; }
.entry .wp-block-details summary::-webkit-details-marker { display: none; }
.entry .wp-block-details summary::before { content: "Q"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #fff; background: var(--teal); line-height: 1; }
.entry .wp-block-details summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 24px; color: var(--teal); transition: transform .2s; }
.entry .wp-block-details[open] summary::after { transform: rotate(45deg); }
.entry .wp-block-details > :not(summary) { margin: 0; padding: 0 18px 0 58px; color: var(--muted); position: relative; }
.entry .wp-block-details > :last-child:not(summary) { padding-bottom: 18px; }
.entry .wp-block-details > summary + * { min-height: 28px; }
.entry .wp-block-details > summary + *::before { content: "A"; position: absolute; left: 18px; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #fff; background: var(--pink); line-height: 1; }

/* 合格メダル（ヒーローのイラストに重ねる） */
.hero__art { position: relative; }
.medal { position: absolute; left: -4%; bottom: 0; width: 237px; height: 237px; z-index: 1; }
.medal__disc { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; background: var(--yellow); display: grid; place-content: center; text-align: center; line-height: 1.2; color: var(--ink); transform: rotate(-8deg); box-shadow: 0 0 0 9px #fff, 0 0 0 13px var(--yellow), 0 16px 30px -12px rgba(0, 0, 0, .45); }
.medal__small { display: block; font-size: 16px; font-weight: 700; }
.medal__num { display: block; font-size: 69px; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.medal__num span { font-size: 30px; }
.medal__rib { position: absolute; bottom: -27px; width: 39px; height: 63px; background: var(--pink); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.medal__rib--l { left: 60px; transform: rotate(14deg); }
.medal__rib--r { right: 60px; transform: rotate(-14deg); background: var(--teal); }
@media (max-width: 760px) {
  .medal { width: 177px; height: 177px; left: 0; bottom: 26px; }
  .medal__num { font-size: 51px; }
  .medal__num span { font-size: 24px; }
  .medal__small { font-size: 13px; }
  .medal__rib { width: 30px; height: 48px; bottom: -21px; }
  .medal__rib--l { left: 45px; }
  .medal__rib--r { right: 45px; }
}
@media (prefers-reduced-motion: no-preference) {
  .medal__disc { animation: medal-in .7s cubic-bezier(.2, 1.4, .4, 1) .2s both; }
  @keyframes medal-in { from { transform: rotate(-30deg) scale(.6); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
}

/* 合格実績の帯（緑） */
.wp-block-group.results-band { background: var(--teal); color: #fff; padding: 24px 20px 18px; }
.results-band__inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); }
.wp-block-group.rb__item { padding: 0 24px; display: grid; align-content: center; gap: 2px; }
.wp-block-group.rb__item + .rb__item { border-left: 2px dashed rgba(255, 255, 255, .45); }
.wp-block-group.rb__item--since { padding-left: 0; }
.results-band .rb__label { font-size: 12px; font-weight: 700; opacity: .92; }
.results-band .rb__num { font-size: 30px; font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; }
.results-band .rb__item--since .rb__num { font-size: 22px; color: var(--yellow); white-space: nowrap; }
.results-band .rb__sub { font-size: 11px; opacity: .88; }
.results-band .rb__note { grid-column: 1 / -1; margin-top: 14px; font-size: 11px; opacity: .8; }
@media (max-width: 860px) {
  .results-band__inner { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .wp-block-group.rb__item { padding: 0 12px 0 0; }
  .wp-block-group.rb__item + .rb__item { border-left: 0; }
  .wp-block-group.rb__item--since { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 2px dashed rgba(255, 255, 255, .45); }
  .results-band .rb__num { font-size: 26px; }
  .results-band .rb__item:nth-child(4) { grid-column: 1 / -1; }
}

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