:root {
  color-scheme: dark;
  --ink: #0f0e0d;
  --surface: #191613;
  --cream: #f5ebdc;
  --muted: #c7b6a4;
  --gold: #dfbb74;
  --red: #a52619;
  --red-hover: #bd3021;
  --line: #45362b;
  --display: 'Shippori Mincho B1', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  --body: 'Zen Kaku Gothic New', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  --gutter: clamp(18px, 5vw, 72px);
  --section-gap: clamp(46px, 6vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 24%, #221914 0, transparent 58%), var(--ink);
  color: var(--cream);
  font: 500 1rem/1.75 var(--body);
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-bottom: var(--section-gap); }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.min { font-family: var(--display); font-weight: 800; }
.shell { width: min(calc(100% - 2 * var(--gutter)), 1220px); margin-inline: auto; }
.content { margin-top: var(--section-gap); }
.stack { display: grid; gap: clamp(30px, 5vw, 64px); }
.note { color: var(--muted); font-size: .92rem; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.skip { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 8px 16px; background: var(--cream); color: var(--ink); transform: translateY(calc(-100% - 12px)); }
.skip:focus { transform: none; }

/* Header and common actions */
.site-head { background: #12100f; border-bottom: 1px solid var(--line); }
.head-inner, .foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; }
.head-inner { min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand img { flex: none; border-radius: 50%; }
.brand .min { font-size: clamp(1.05rem, 2vw, 1.35rem); letter-spacing: .045em; }
.pills { display: flex; align-items: center; flex-wrap: wrap; gap: 0 clamp(10px, 2vw, 30px); }
.pills a { display: flex; align-items: center; min-height: 44px; color: var(--muted); padding: 0 2px; border-bottom: 2px solid transparent; font-size: .93rem; font-weight: 700; text-decoration: none; }
.pills a:hover, .pills a[aria-current='page'] { color: var(--cream); border-color: #df523c; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .8em;
  min-height: 48px;
  padding: 10px clamp(15px, 2vw, 24px);
  border: 1px solid;
  border-radius: 3px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, border-color .18s;
}
.btn.r { color: #fff7ee; background: var(--red); border-color: #c74a32; }
.btn.r:hover { background: var(--red-hover); }
.btn.k { color: var(--cream); background: #1a1411; border-color: #816344; }
.btn.k:hover { background: #322217; border-color: var(--gold); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .63; cursor: not-allowed; }

/* Home */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #100d0b; }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 24%; }
.hero-art img, .page-art img { width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.hero-art::after, .page-art::after { content: ''; position: absolute; inset: 0; }
.hero-art::after { background: linear-gradient(90deg, #100d0b, #100d0bd9 12%, #100d0b33 45%, transparent 68%), linear-gradient(0deg, #100d0b90, transparent 26%); }
.hero-shell { min-height: clamp(530px, 44vw, 635px); display: flex; align-items: center; padding-block: 54px; }
.hero-copy { width: min(100%, 510px); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 900; color: var(--gold); letter-spacing: .11em; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: #db4d35; }
.hero h1 { margin-block: .18em .25em; font-size: clamp(4rem, 7.75vw, 7.35rem); line-height: 1.07; letter-spacing: .01em; text-shadow: 0 3px 30px #0c0806; }
.hero h1 span { display: block; }
.hero-description { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #ebdece; margin-bottom: 23px; }
.notice { border-block: 1px solid #55402a; background: #201712; color: #edc987; font-weight: 700; }
.notice .shell { display: flex; align-items: center; gap: 13px; padding-block: 11px; }
.notice-mark { width: 7px; height: 7px; margin-inline: 3px; background: #dea458; transform: rotate(45deg); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.35; letter-spacing: .025em; margin-bottom: 18px; }
.section-title::before { content: ''; display: block; width: 39px; height: 3px; margin-bottom: 11px; background: linear-gradient(90deg, #de4e39, #a32919); transform: skewX(-24deg); }
.section-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 14px; }
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 20px); }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .18s; }
.tile-art { aspect-ratio: 3 / 2; overflow: hidden; }
.tile-art img, .staff-feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-art img { transition: transform .24s; }
.tile:hover { border-color: var(--gold); }
.tile:hover img { transform: scale(1.045); }
.tile-copy { position: relative; flex: 1; padding: 14px 42px 16px 14px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.tile-copy h3 { font-size: clamp(1rem, 2vw, 1.38rem); line-height: 1.4; }
.tile-copy p { margin-top: 3px; color: var(--muted); font-size: .86rem; }
.tile-arrow { position: absolute; top: 16px; right: 14px; color: var(--gold); }
.staff-feature { display: grid; grid-template-columns: 45% 1fr; background: #1c1510; border: 1px solid var(--line); }
.staff-feature-photo { position: relative; min-height: 330px; }
.staff-feature-photo img { position: absolute; inset: 0; object-position: center 56%; }
.staff-feature-copy { align-self: center; padding: clamp(23px, 5vw, 70px); }
.staff-feature h2, .profile h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.2; margin-block: 8px 12px; }
.staff-quote { font-family: var(--display); color: var(--gold); font-size: clamp(1.15rem, 2.4vw, 1.7rem); margin-bottom: 18px; }

/* Interior layouts and content cards */
.page-intro { position: relative; isolation: isolate; background: #19130f; border-bottom: 1px solid var(--line); }
.intro-copy { padding-block: clamp(48px, 7vw, 95px); }
.with-art .intro-copy { min-height: 314px; display: flex; flex-direction: column; justify-content: center; }
.page-intro h1 { font-size: clamp(2.1rem, 5.6vw, 4.8rem); line-height: 1.24; }
.page-intro p { margin-top: 10px; color: var(--cream); }
.page-intro .btns { margin-top: 20px; }
.page-art { position: absolute; z-index: -1; inset: 0 0 0 42%; }
.page-art img { object-position: 50% 50%; }
.page-art::after { background: linear-gradient(90deg, #19130f, #19130f33 44%, #19130f0a), linear-gradient(0deg, #19130f50, transparent 48%); }
.packgrid, .posts, .videos, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel, .frame.pack, .post, .step, .vcard { background: var(--surface); border: 1px solid var(--line); }
.panel { padding: clamp(16px, 3vw, 32px); }
.panel .section-title { font-size: 1.42rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { min-height: 44px; padding: 6px 16px; border: 1px solid var(--line); background: #221914; color: var(--cream); cursor: pointer; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed='true'] { border-color: #cd513a; background: var(--red); }
.pack .inner { padding: clamp(12px, 2.25vw, 23px); display: grid; gap: 9px; }
.pack h3 { font-size: 1.25rem; line-height: 1.45; }
.pack .price, .pnew { color: var(--gold); font-weight: 900; }
.pack-art { position: relative; }
.sold { color: #ff9e83; font-weight: 900; }
.soldband { position: absolute; top: 8px; right: 8px; padding: 1px 8px; background: #7b2118; color: #fff; font-size: .8rem; font-weight: 900; }
.is-sold .ph img { filter: saturate(.45); }
.steps { counter-reset: step; }
.step { padding: 14px 20px 18px; overflow-wrap: anywhere; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; color: var(--gold); font: 800 1.5rem/1.5 var(--display); }
.ph { display: grid; place-items: center; overflow: hidden; position: relative; color: var(--muted); background: #211915; text-align: center; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r43 { aspect-ratio: 4 / 3; }
.r169 { aspect-ratio: 16 / 9; }
.rcard { aspect-ratio: 63 / 88; }
.r916 { aspect-ratio: 9 / 16; }
.art-caption { position: absolute; bottom: 6px; left: 6px; background: #12100be6; color: #f5ebdc; font-size: .72rem; padding: 1px 6px; }
.mrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); gap: 16px; }
.post, .vcard { color: inherit; padding: 10px; text-align: left; text-decoration: none; overflow-wrap: anywhere; }
.post { cursor: pointer; }
.post:hover, .vcard:hover { border-color: var(--gold); }
.ptitle { font-size: 1.16rem; margin: 6px 0 0; }
.pdate { color: var(--muted); font-size: .84rem; }
.vcard .ph { margin-bottom: 8px; }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); align-items: center; gap: clamp(26px, 7vw, 100px); }
.spec { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0 0 24px; }
.spec dt, .spec dd { margin: 0; border-top: 1px solid var(--line); padding-block: 8px; }
.spec dt { color: var(--muted); padding-right: clamp(12px, 3vw, 32px); }
.spec dd { overflow-wrap: anywhere; }
.staffph { aspect-ratio: 4 / 5; border: 1px solid #7e5e38; }
.staffph img { object-position: center 55%; }
.video-section .videos { max-width: 850px; }
.play { grid-area: 1 / 1; display: grid; place-items: center; width: min(27%, 54px); aspect-ratio: 1; border-radius: 50%; background: var(--red); position: relative; }
.play::after { content: ''; width: 36%; aspect-ratio: 1; margin-left: 8%; background: #fff; clip-path: polygon(10% 0, 100% 50%, 10% 100%); }
.tbl { border-collapse: collapse; width: 100%; overflow-wrap: anywhere; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--gold); }
.legal-content .tbl th { width: 38%; }

/* Footer and modal */
.site-foot { background: #15110e; border-top: 1px solid var(--line); }
.foot-inner { padding-block: 26px 32px; }
.foot-inner p { color: var(--muted); font-size: .86rem; margin-top: 5px; }
.foot-inner > a { color: var(--gold); text-underline-offset: .3em; }
dialog { margin: auto; padding: 0; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 1px solid #8f6a38; background: var(--surface); color: var(--cream); }
dialog::backdrop { background: #080605d9; }
.dlg { position: relative; padding: clamp(16px, 4vw, 36px); }
.x { position: absolute; z-index: 1; top: 8px; right: 8px; width: 44px; height: 44px; border: 1px solid #8f6a38; background: #17110f; color: var(--cream); font-size: 1.4rem; cursor: pointer; }
.dlg h2 { margin: 4px 50px 10px 0; line-height: 1.45; overflow-wrap: anywhere; }
.dlg .ph { max-width: 310px; margin-bottom: 14px; }

@media (max-width: 820px) {
  .head-inner { flex-wrap: wrap; padding-block: 10px; gap: 2px 16px; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packgrid, .posts, .steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); }
}

@media (max-width: 600px) {
  .head-inner { gap: 0; }
  .brand img { width: 40px; height: 40px; }
  .pills { width: 100%; gap: 0 11px; }
  .pills a { font-size: .81rem; }
  .hero-art { inset: 0 0 auto; height: clamp(240px, 67vw, 355px); }
  .hero-art img { object-position: 63% 43%; }
  .hero-art::after { background: linear-gradient(0deg, #100d0b 0, #100d0b30 23%, transparent 50%); }
  .hero-shell { min-height: auto; padding-block: clamp(207px, 59vw, 322px) 32px; }
  .hero h1 { font-size: clamp(2.35rem, 10.5vw, 3.85rem); overflow-wrap: anywhere; }
  .hero h1 span { display: inline; }
  .btns { gap: 8px; }
  .notice .shell { font-size: .88rem; }
  .tile-copy { padding: 10px 26px 12px 10px; }
  .tile-arrow { top: 9px; right: 7px; }
  .staff-feature, .profile, .two { grid-template-columns: 1fr; }
  .staff-feature-photo { min-height: 255px; }
  .staffph { grid-row: 1; max-height: 68vh; }
  .with-art .intro-copy { min-height: 272px; }
  .page-art { inset-inline-start: 0; }
  .page-art::after { background: linear-gradient(90deg, #17110ff0, #17110f96 62%, #17110f54); }
  .videos { gap: 8px; }
  .vcard { padding: 6px; font-size: .83rem; }
  .foot-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .tile-art img, .btn { transition: none; }
  .tile:hover img { transform: none; }
}

/* 物販・メルカリ・動画（追加分） */
.tag { display: inline-block; padding: 0 9px; background: #12100fe6; border: 1px solid var(--gold); color: var(--gold); font-size: .75rem; font-weight: 900; }
.tag.oripa { background: var(--red); border-color: var(--red); color: #fff; }
.pack-art .tag { position: absolute; top: 8px; left: 8px; }
.mname { display: block; font-size: .9rem; line-height: 1.5; }
.mprice { display: block; color: var(--gold); font-weight: 900; margin-top: 2px; }
.btns.center { justify-content: center; margin-top: 24px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ytnote { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: .75rem; color: var(--cream); text-shadow: 0 1px 3px #000; }
.vtitle { display: block; color: inherit; text-decoration: none; font-weight: 700; }
.vtitle:hover { color: var(--gold); }
.pre a { color: var(--gold); }
.ph img[src*="post01"] { object-position: center 25%; }
a.yt { text-decoration: none; }
.yt .play { position: absolute; inset: 0; margin: auto; z-index: 1; }
.staffph img, .staff-feature-photo img { object-position: center 20%; }
.tile-grid:has(.tile[hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .tile-grid:has(.tile[hidden]) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); } }
#shop-soon p { color: var(--cream); }
.tile-grid:has(.tile[hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .tile-grid:has(.tile[hidden]) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); } }
#shop-soon p { color: var(--cream); }
/* 働キマンの写真（顔が切れないように位置を合わせる） */
img[src*="media.jpg"], img[src*="blog.jpg"], img.face { object-position: center 38% !important; }
.page-art img[src*="blog.jpg"], .page-art img[src*="media.jpg"] { object-position: center 40% !important; }
img[src*="blog.jpg"] { object-position: center 62% !important; }
.page-art img[src*="blog.jpg"], .page-art img.face { object-position: center 70% !important; }
/* ページ上の大きな画像（文字入りの画像を切らずに見せる） */
.banner { background: #0b0a09; border-bottom: 1px solid var(--line); }
.banner img { width: 100%; height: auto; max-height: min(560px, 70vh); object-fit: contain; margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* ホームのメイン画像：人物が文字に隠れないよう、画像は右側に寄せる */
.hero-art img { object-position: center !important; }
@media (min-width: 601px) {
  .hero-art { inset: 0 0 0 38%; }
  .hero-art::after { background: linear-gradient(90deg, #100d0b, #100d0b00 14%), linear-gradient(0deg, #100d0b70, transparent 16%); }
  .hero-copy { width: min(100%, 34vw); min-width: 300px; }
}
@media (min-width: 601px) and (max-width: 900px) { .hero-art { inset: 0 0 0 44%; } .hero h1 { font-size: clamp(2.6rem, 6.4vw, 4rem); } }
@media (max-width: 600px) { .hero-art::after { background: linear-gradient(0deg, #100d0b 0, transparent 14%); } }
@media (max-width: 900px) {
  .hero-art { inset: 0 0 auto !important; height: 66.7vw; }
  .hero-art::after { background: linear-gradient(0deg, #100d0b 0, transparent 12%) !important; }
  .hero-shell { min-height: auto; padding-block: calc(66.7vw + 18px) 32px; }
  .hero-copy { width: 100%; }
  .hero h1 span { display: inline; }
}
/* 働キマンの紹介（写真は小さく、紹介の項目を広く） */
.profile2 { display: grid; gap: 22px; }
.profile-head { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.staffph-s { flex: none; width: clamp(104px, 18vw, 190px); aspect-ratio: 1; border-radius: 50%; border: 2px solid #7e5e38; }
.staffph-s img { object-position: center 18% !important; }
.profile2 h1 { font-size: clamp(2.1rem, 5.4vw, 4.2rem); line-height: 1.2; margin-block: 4px 6px; }
.profile2 .staff-quote { margin-bottom: 0; }
.staff-intro { color: var(--cream); max-width: 46em; }
.spec2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 4vw, 56px); margin: 0; }
.spec2 > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); border-top: 1px solid var(--line); }
.spec2 dt, .spec2 dd { border-top: 0; }
@media (max-width: 700px) { .spec2 { grid-template-columns: 1fr; } .spec2 > div { grid-template-columns: 7.5em minmax(0, 1fr); } }
/* ホームの塾長紹介の画像（白い背景の絵を切らずに見せる） */
.staff-feature-photo { background: #fff; aspect-ratio: 3 / 2; min-height: 0 !important; }
.staff-feature-photo img { object-fit: contain !important; object-position: center !important; }
.staff-feature { align-items: stretch; }
@media (min-width: 601px) { .staff-feature { grid-template-columns: minmax(0, 48%) 1fr; } }
/* 塾長紹介の画像：どのスマホでも必ず出るよう、画像そのものの大きさで場所を取る */
.staff-feature-photo { aspect-ratio: auto; display: flex; align-items: center; }
.staff-feature-photo img { position: static !important; display: block; width: 100% !important; height: auto !important; }
.staff-feature-photo { background: #0f0e0d !important; }
