:root{
  --paper:#FAF8F3;
  --white:#FFFFFF;
  --ink:#2E2A27;
  --ink-2:#55504B;
  --ink-3:#86807A;
  --line:#E4DFD4;
  --grid:#E9EEEF;       /* ノートの方眼 */
  --sky:#0F6E83;        /* ロゴの水色を、白い文字が読める濃さにしたもの */
  --sky-logo:#2AB0C9;   /* ロゴの水色 */
  --sky-soft:#E3F4F7;
  --gray-logo:#A7A9AC;  /* ロゴのグレー */
  --brown:#7E6F61;      /* 既存バナーの茶色 */
  --brown-dark:#5F5348;
  --accent:#C4462B;
  --marker:#FFE7A0;     /* 蛍光ペン */
  /* 教科の色 */
  --s-kokugo:#D9573B; --s-sansu:#2F7FC1; --s-rika:#3E9B5A; --s-shakai:#D98E2B; --s-eigo:#8A5CB8;
  --wrap:1120px;
  --radius:14px;
  --round:"Zen Maru Gothic","Zen Kaku Gothic New",system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:96px}
body{
  font-family:"Zen Kaku Gothic New",system-ui,sans-serif;
  background:var(--paper);color:var(--ink);
  line-height:1.9;font-size:16px;letter-spacing:.03em;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
img{max-width:100%;display:block}
h1,h2,h3,h4{font-family:var(--round)}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.tel-num{font-feature-settings:"tnum";letter-spacing:.04em}
/* ノートの方眼（ヒーローとページ見出しの背景） */
.graph{
  background-color:var(--paper);
  background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size:24px 24px;
}

/* ---------- header ---------- */
.header{
  position:sticky;top:0;z-index:50;background:var(--white);
  border-top:4px solid var(--sky-logo);
  box-shadow:0 1px 0 var(--line);
}
.header .wrap{display:flex;align-items:center;justify-content:space-between;min-height:76px;gap:24px;flex-wrap:wrap}
.logo{display:block;flex:none}
.logo img{height:42px;width:auto}
.nav{display:flex;gap:6px;font-size:14px;font-weight:700}
.nav a{text-decoration:none;color:var(--ink-2);padding:6px 14px;border-radius:999px}
.nav a:hover{background:var(--sky-soft);color:var(--sky)}
.nav a[aria-current="page"]{background:var(--sky);color:#fff}
.header-tel{display:flex;flex-direction:column;align-items:flex-end;text-decoration:none;line-height:1.3}
.header-tel strong{font-family:var(--round);font-size:23px;font-weight:700;color:var(--ink);display:flex;align-items:center;gap:6px}
.header-tel strong::before{content:"";width:22px;height:22px;border-radius:50%;background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 006.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 013 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center/12px no-repeat}
.header-tel small{font-size:11px;color:var(--ink-3)}
@media (max-width:1100px){
  .nav{order:3;width:calc(100% + 8px);margin:-6px -4px 0;overflow-x:auto;white-space:nowrap;gap:4px;padding:0 0 10px;scrollbar-width:none}
  .nav::-webkit-scrollbar{display:none}
}
@media (max-width:560px){
  .header .wrap{min-height:60px;gap:12px}
  .logo img{height:28px}
  .header-tel strong{font-size:17px}
  .header-tel strong::before{width:18px;height:18px;background-size:10px}
}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;padding:72px 0 88px;border-bottom:1px solid var(--line)}
.hero .wrap{position:relative;display:grid;grid-template-columns:1.2fr .9fr;gap:56px;align-items:center}
/* ロゴ・バナーと同じ角丸の四角を散らした飾り */
.deco{position:absolute;inset:0;pointer-events:none}
.deco i{position:absolute;display:block;border-radius:22%;background:var(--gray-logo);opacity:.28}
.deco i:nth-child(1){width:84px;height:84px;left:-28px;top:56px;transform:rotate(-12deg)}
.deco i:nth-child(2){width:46px;height:46px;left:4%;bottom:56px;transform:rotate(14deg)}
.deco i:nth-child(3){width:28px;height:28px;left:46%;top:36px;transform:rotate(-8deg);background:var(--sky-logo);opacity:.5}
.deco i:nth-child(4){width:120px;height:120px;right:-44px;bottom:-30px;transform:rotate(18deg)}
.deco i:nth-child(5){width:20px;height:20px;right:30%;bottom:40px;background:var(--sky-logo);opacity:.5}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#fff;background:var(--sky);padding:5px 14px;border-radius:999px;letter-spacing:.08em}
.hero h1{font-size:clamp(28px,4.2vw,46px);line-height:1.6;font-weight:900;margin:22px 0 24px;letter-spacing:.04em}
.hero h1 em{font-style:normal;color:var(--sky);background:linear-gradient(transparent 62%,var(--marker) 62%)}
.hero p.lead{color:var(--ink-2);max-width:32em}
.hero-points{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.hero-points li{list-style:none;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;padding:8px 16px 8px 10px;background:var(--white);border:2px solid var(--ink);border-radius:999px}
.hero-points li::before{content:"";width:20px;height:20px;border-radius:50%;background:var(--sky-logo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat}

.entry-card{position:relative;background:var(--white);border:2px solid var(--ink);border-radius:var(--radius);box-shadow:6px 6px 0 var(--sky-logo)}
.entry-card .card-top{display:flex;align-items:center;gap:16px;padding:20px 24px 4px}
.entry-card .card-top img{width:92px;height:auto;flex:none;margin:-48px 0 0 -8px}
.entry-card .badge{font-family:var(--round);font-weight:900;font-size:19px;line-height:1.5}
.entry-card .badge .tag{display:inline-block;margin-top:4px;font-size:12px;color:#fff;background:var(--accent);padding:2px 12px;border-radius:999px;font-family:"Zen Kaku Gothic New"}
.entry-card dl{padding:4px 24px 8px}
.entry-card dl div{display:grid;grid-template-columns:5.5em 1fr;gap:8px;padding:14px 0;border-bottom:2px dotted var(--line);font-size:15px}
.entry-card dl div:last-child{border:0}
.entry-card dt{align-self:start;font-size:12px;font-weight:700;text-align:center;color:var(--sky);background:var(--sky-soft);border-radius:999px;padding:2px 0;margin-top:3px}
.entry-card dd{font-weight:700}
.entry-card dd small{display:block;font-weight:400;color:var(--ink-2);font-size:13px}
.entry-card .cta{padding:0 24px 24px}

.btn{display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;font-weight:700;font-family:var(--round);border-radius:999px;padding:15px 22px;transition:transform .12s,box-shadow .12s}
.btn-tel{background:var(--accent);color:#fff;font-size:21px;box-shadow:0 4px 0 #8E3220}
.btn-tel:hover{transform:translateY(2px);box-shadow:0 2px 0 #8E3220}
.btn-tel svg{width:20px;height:20px}
.btn-note{text-align:center;font-size:12px;color:var(--ink-3);margin-top:12px}

@media (max-width:860px){
  .hero{padding:48px 0 64px}
  .hero .wrap{grid-template-columns:1fr;gap:64px}
  .deco i:nth-child(3),.deco i:nth-child(5){display:none}
}

/* ---------- section common ---------- */
section{padding:96px 0}
.sec-head{margin-bottom:48px}
.sec-head .num{display:inline-block;font-family:var(--round);font-size:12px;font-weight:700;color:#fff;background:var(--sky);letter-spacing:.14em;padding:3px 14px;border-radius:8px}
.sec-head h2{font-size:clamp(26px,3.4vw,36px);font-weight:900;line-height:1.5;margin-top:14px}
.sec-head h2::after{content:"";display:block;width:56px;height:6px;margin-top:14px;border-radius:999px;background:var(--sky-logo)}
.sec-head p{color:var(--ink-2);margin-top:18px;max-width:40em}
.sec-head.with-illust{display:flex;justify-content:space-between;align-items:flex-end;gap:32px}
.sec-head.with-illust > img{width:170px;height:auto;flex:none}
@media (max-width:560px){.sec-head.with-illust > img{width:110px}}
.bg-white{background:var(--white);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
@media (max-width:560px){section{padding:64px 0}.sec-head{margin-bottom:36px}}

/* ---------- features ---------- */
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.feature{position:relative;background:var(--white);border:2px solid var(--ink);border-radius:var(--radius);padding:44px 28px 28px;margin-top:22px}
.feature .n{position:absolute;top:-24px;left:24px;width:48px;height:48px;display:grid;place-items:center;font-family:var(--round);font-size:24px;font-weight:900;line-height:1;color:#fff;background:var(--sky);border-radius:12px;box-shadow:3px 3px 0 var(--ink)}
.feature h3{font-size:20px;margin:0 0 12px;line-height:1.6;color:var(--sky)}
.feature p{font-size:15px;color:var(--ink-2)}
.bg-white .feature{background:var(--paper)}
@media (max-width:860px){.features{grid-template-columns:1fr;gap:36px}}

/* ---------- courses ---------- */
.courses{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.course{background:var(--white);border:2px solid var(--ink);border-radius:var(--radius);overflow:hidden;box-shadow:6px 6px 0 var(--sky-logo)}
.course.high{box-shadow:6px 6px 0 var(--brown)}
.course > .tag,.course > h3,.course > .grade{display:block;padding-left:32px;padding-right:32px}
.course > .tag{width:fit-content;margin:28px 32px 0;padding:3px 14px;font-size:12px;font-weight:700;border-radius:999px;background:var(--sky);color:#fff}
.course.high > .tag{background:var(--brown)}
.course h3{font-size:28px;margin:10px 0 0;color:var(--sky)}
.course.high h3{color:var(--brown-dark)}
.course .grade{font-size:15px;font-weight:700;color:var(--ink-2)}
.course ul{list-style:none;margin:20px 32px 32px;border-top:2px dotted var(--line)}
.course li{display:grid;grid-template-columns:6em 1fr;padding:14px 0;border-bottom:2px dotted var(--line);font-size:15px}
.course li span{color:var(--ink-3);font-size:13px;padding-top:2px}
.subjects{display:flex;gap:8px;flex-wrap:wrap}
.subjects i{font-style:normal;width:36px;height:36px;display:grid;place-items:center;border-radius:10px;font-family:var(--round);font-size:15px;font-weight:900;color:#fff;background:var(--ink-2)}
.subjects i:nth-child(1){background:var(--s-kokugo)}
.subjects i:nth-child(2){background:var(--s-sansu)}
.subjects i:nth-child(3){background:var(--s-rika)}
.subjects i:nth-child(4){background:var(--s-shakai)}
/* 高校受験は 英・数・国・理・社 の順 */
.course.high .subjects i:nth-child(1){background:var(--s-eigo)}
.course.high .subjects i:nth-child(2){background:var(--s-sansu)}
.course.high .subjects i:nth-child(3){background:var(--s-kokugo)}
.course.high .subjects i:nth-child(4){background:var(--s-rika)}
.course.high .subjects i:nth-child(5){background:var(--s-shakai)}
.special{margin-top:32px;display:grid;grid-template-columns:auto 1fr;gap:28px;align-items:center;background:var(--marker);border-radius:var(--radius);padding:24px 32px}
.special .label{font-family:var(--round);font-weight:900;font-size:14px;color:#fff;background:var(--accent);padding:6px 16px;border-radius:999px}
.special h4{font-size:20px}
.special p{font-size:14px;color:var(--ink-2)}
.fee-note{margin-top:20px;font-size:14px;color:var(--ink-3)}
@media (max-width:860px){
  .courses{grid-template-columns:1fr}
  .course > .tag{margin:24px 24px 0}
  .course > h3,.course > .grade{padding-left:24px;padding-right:24px}
  .course ul{margin:16px 24px 24px}
  .special{grid-template-columns:1fr;gap:10px;padding:22px 24px;justify-items:start}
}

/* ---------- worries（吹き出し） ---------- */
.worries{display:grid;grid-template-columns:repeat(2,1fr);gap:18px 28px;list-style:none}
.worries li{position:relative;display:flex;gap:14px;align-items:flex-start;padding:18px 22px;background:var(--white);border:2px solid var(--ink);border-radius:18px;font-weight:500}
.worries li::after{content:"";position:absolute;left:34px;bottom:-11px;width:18px;height:18px;background:var(--white);border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(45deg) skew(8deg,8deg)}
.worries li::before{content:"";flex:none;width:22px;height:22px;margin-top:4px;border-radius:7px;background:var(--sky-logo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat}
.worries-face{width:96px;height:auto;margin:56px auto 0;padding:10px;background:var(--white);border:2px solid var(--ink);border-radius:50%}
.worries-face + .worries-answer{margin-top:20px}
.worries-answer{margin:40px auto 0;max-width:760px;font-family:var(--round);font-size:clamp(19px,2.3vw,25px);font-weight:900;text-align:center;line-height:1.8}
.worries-answer span{background:linear-gradient(transparent 60%,var(--marker) 60%)}
@media (max-width:700px){.worries{grid-template-columns:1fr}}

/* ---------- transfer ---------- */
.transfer{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start}
.transfer .body p{color:var(--ink-2)}
.transfer .body p+p{margin-top:1.2em}
.proof{position:relative;background:var(--brown);color:#fff;border-radius:var(--radius);padding:40px;box-shadow:6px 6px 0 var(--ink)}
.proof .q{font-size:14px;color:#EFE8E1}
.proof .q s{text-decoration:none;font-weight:700;color:#fff;background:var(--accent);padding:0 6px;border-radius:4px}
.proof h3{font-size:22px;margin:12px 0 24px;line-height:1.6}
.proof ul{list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.proof li{background:#fff;color:var(--brown-dark);font-weight:700;border-radius:999px;padding:6px 16px;font-size:14px}
.pillars{margin-top:32px;display:grid;gap:12px}
.pillars div{display:flex;gap:14px;align-items:center;font-weight:700;padding:12px 16px;background:var(--sky-soft);border-radius:12px}
.pillars div span{flex:none;font-size:12px;color:#fff;background:var(--sky);font-weight:700;min-width:5.5em;text-align:center;padding:2px 10px;border-radius:999px}
@media (max-width:860px){.transfer{grid-template-columns:1fr;gap:40px}.proof{padding:28px}}

/* ---------- results ---------- */
.results-top{display:grid;grid-template-columns:.8fr 1.2fr;gap:48px;align-items:start}
.results-summary{position:relative}
.results-summary .year{display:inline-block;font-size:13px;font-weight:700;color:var(--sky);background:var(--sky-soft);padding:2px 12px;border-radius:999px}
.results-summary .big{font-family:var(--round);font-size:104px;font-weight:900;line-height:1;margin:14px 0 8px;color:var(--sky)}
.results-summary .big small{display:block;font-size:22px;font-weight:900;color:var(--ink);margin-top:8px}
/* 合格の判子 */
.results-summary::after{content:"合格";position:absolute;top:30px;right:4px;width:84px;height:84px;display:grid;place-items:center;font-family:var(--round);font-size:22px;font-weight:900;color:var(--accent);border:3px solid var(--accent);border-radius:50%;transform:rotate(-14deg);opacity:.85}
.results-summary p{font-size:14px;color:var(--ink-2)}
table.res{width:100%;border-collapse:separate;border-spacing:0;font-size:15px;background:var(--white);border:2px solid var(--ink);border-radius:var(--radius);overflow:hidden}
table.res th,table.res td{padding:13px 16px;border-bottom:1px solid var(--line);text-align:left;font-weight:500}
table.res tbody tr:last-child th,table.res tbody tr:last-child td{border-bottom:0}
table.res tbody tr:nth-child(even){background:var(--paper)}
table.res thead th{white-space:nowrap;font-size:12px;color:#fff;background:var(--ink);font-weight:700;border-bottom:0}
table.res td.c{color:var(--ink-2);font-size:14px}
table.res td.n{text-align:right;font-weight:900;font-family:var(--round);color:var(--accent);white-space:nowrap}
table.res .kind{display:inline-block;font-size:11px;padding:1px 8px;border-radius:999px;margin-right:8px;vertical-align:2px;background:var(--sky-soft);color:var(--sky);font-weight:700}
.archive{margin-top:56px;display:grid;gap:10px}
.archive details{background:var(--white);border:2px solid var(--line);border-radius:12px;overflow:hidden}
.archive details[open]{border-color:var(--ink)}
.archive summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;padding:16px 20px;font-family:var(--round);font-weight:700}
.archive summary::-webkit-details-marker{display:none}
.archive summary::after{content:"";flex:none;width:28px;height:28px;border-radius:8px;background:var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='white' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat}
.archive details[open] summary::after{background:var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10' stroke='white' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat}
.archive .list{columns:2;column-gap:40px;padding:4px 20px 20px;font-size:14px;color:var(--ink-2)}
.archive .list p{break-inside:avoid;display:flex;justify-content:space-between;border-bottom:1px dotted var(--line);padding:6px 0}
.archive .list p span:last-child{font-weight:700;color:var(--ink)}
.archive .list h5{break-inside:avoid;width:fit-content;font-size:12px;color:var(--sky);background:var(--sky-soft);padding:1px 10px;border-radius:999px;margin:14px 0 4px}
.archive .list h5:first-child{margin-top:0}
@media (max-width:860px){
  .results-top{grid-template-columns:1fr;gap:32px}
  .results-summary .big{font-size:76px}
  .results-summary::after{top:16px;width:72px;height:72px;font-size:19px}
  .archive .list{columns:1}
  table.res th,table.res td{padding:12px 10px}
}

/* ---------- flow ---------- */
.flow{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;list-style:none;counter-reset:f}
.flow li{position:relative;padding:44px 22px 24px;background:var(--white);border:2px solid var(--ink);border-radius:var(--radius);text-align:center;margin-top:28px}
.flow li::before{counter-increment:f;content:counter(f);position:absolute;top:-28px;left:50%;transform:translateX(-50%);width:56px;height:56px;display:grid;place-items:center;font-family:var(--round);font-size:26px;font-weight:900;color:#fff;background:var(--sky);border:2px solid var(--ink);border-radius:50%}
.flow li + li::after{content:"";position:absolute;left:-24px;top:50%;width:0;height:0;border:10px solid transparent;border-left:12px solid var(--sky-logo);transform:translateY(-50%)}
.flow h3{font-size:17px;line-height:1.6}
.flow p{margin-top:10px;font-size:13px;font-weight:700;color:var(--accent);background:#FBE6E0;display:inline-block;padding:2px 12px;border-radius:999px}
@media (max-width:860px){
  .flow{grid-template-columns:1fr;gap:36px}
  .flow li + li::after{left:50%;top:-34px;border:10px solid transparent;border-top:12px solid var(--sky-logo);transform:translateX(-50%);display:none}
}

/* ---------- news ---------- */
.news{list-style:none;background:var(--white);border:2px solid var(--ink);border-radius:var(--radius);overflow:hidden}
.news li{display:grid;grid-template-columns:6.5em 5.5em 1fr;gap:16px;padding:18px 24px;border-bottom:1px solid var(--line);align-items:baseline}
.news li:last-child{border-bottom:0}
.news time{font-size:14px;color:var(--ink-3);font-feature-settings:"tnum"}
.news .cat,.news-meta .cat{font-size:12px;font-weight:700;text-align:center;color:#fff;background:var(--ink-2);border-radius:999px;padding:2px 0}
.news .cat.hot,.news-meta .cat.hot{background:var(--accent)}
.news .cat.c-course,.news-meta .cat.c-course{background:var(--sky)}
.news .cat.c-result,.news-meta .cat.c-result{background:var(--brown)}
.news li > a{text-decoration:none;font-weight:500}
.news li > a:hover{color:var(--sky);text-decoration:underline}
.news li.empty{display:block;color:var(--ink-3)}
/* news list (news.html): whole row is a link with a one-line preview */
.news li.card{display:block;padding:0}
.news li.card > a{display:grid;grid-template-columns:6.5em 5.5em 1fr auto;gap:16px;align-items:baseline;padding:22px 24px;text-decoration:none}
.news li.card > a::after{content:"→";align-self:center;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:var(--sky-soft);color:var(--sky);font-weight:700}
.news li.card > a:hover{background:var(--paper);color:inherit;text-decoration:none}
.news li.card > a:hover b{color:var(--sky)}
.news li.card > a:hover::after{background:var(--sky);color:#fff}
.news .ttl{min-width:0}
.news .ttl b{display:block;font-weight:700}
.news .preview{display:block;margin-top:4px;font-size:14px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* news detail (news-detail.html) */
.news-meta{display:flex;gap:12px;align-items:center;margin-top:14px}
.news-meta time{font-size:14px;color:var(--ink-3)}
.news-meta time:empty{display:none}
.news-meta .cat{padding:2px 14px}
#news-detail{background:var(--white);border:2px solid var(--ink);border-radius:var(--radius);padding:40px}
#news-detail .news-body{color:var(--ink-2)}
#news-detail .news-body > * + *{margin-top:1em}
#news-detail .news-body img{max-width:100%;height:auto;border-radius:10px}
#news-detail .news-body h2,#news-detail .news-body h3{color:var(--ink);line-height:1.6;margin-top:1.6em}
#news-detail .news-body a{color:var(--sky)}
#news-detail .news-body ul,#news-detail .news-body ol{padding-left:1.4em}
.news-link{margin-top:24px;font-weight:700}
.news-link a{color:var(--sky)}
.news-link a::after{content:" →"}
.news-missing{color:var(--ink-3)}
.back{margin-top:40px}
.back a{display:inline-flex;font-weight:700;text-decoration:none;color:var(--ink);padding:10px 22px;border:2px solid var(--ink);border-radius:999px;background:var(--white)}
.back a::before{content:"← "}
.back a:hover{background:var(--ink);color:#fff}
@media (max-width:600px){
  .news li{grid-template-columns:auto 5.5em;row-gap:6px;justify-content:start;padding:16px 18px}
  .news li > a,.news li > div{grid-column:1/-1}
  .news li > time:empty{display:none}
  .news li.card > a{grid-template-columns:auto 5.5em 1fr;row-gap:6px;padding:18px}
  .news li.card > a::after{display:none}
  .news li.card .ttl{grid-column:1/-1}
  .news li.card time:empty{display:none}
  #news-detail{padding:24px}
}

/* ---------- contact ---------- */
.contact{background:var(--brown);color:#fff}
.contact .sec-head .num{background:#fff;color:var(--brown-dark)}
.contact .sec-head h2::after{background:#fff}
.contact .sec-head p{color:#EFE8E1}
.contact-robot{width:240px;height:auto;margin-bottom:-56px}
@media (max-width:700px){.contact-robot{display:none}}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:stretch}
.contact-tel{background:var(--white);color:var(--ink);border-radius:var(--radius);padding:36px;box-shadow:6px 6px 0 var(--brown-dark)}
.contact-tel .lbl{font-size:13px;font-weight:700;color:var(--sky)}
.contact-tel a.num{display:block;font-family:var(--round);font-size:clamp(34px,4.6vw,48px);font-weight:900;text-decoration:none;margin:4px 0 16px;line-height:1.3}
.contact-tel dl div{display:grid;grid-template-columns:6em 1fr;padding:12px 0;border-top:2px dotted var(--line);font-size:15px}
.contact-tel dt{font-size:13px;font-weight:700;color:var(--ink-3);padding-top:2px}
.contact-tel .btn{margin-top:20px}
.map{border-radius:var(--radius);overflow:hidden;min-height:340px;background:var(--brown-dark);border:4px solid #fff}
.map iframe{width:100%;height:100%;min-height:340px;border:0;display:block}
@media (max-width:860px){.contact-grid{grid-template-columns:1fr}.contact-tel{padding:26px}}

/* ---------- footer ---------- */
footer{background:var(--brown-dark);color:#E2D8CE;font-size:12px;padding:8px 0 32px}
footer .wrap{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;padding-top:28px}
footer img{width:189px;height:auto;border-radius:8px}

/* ---------- mobile call bar ---------- */
.callbar{display:none}
@media (max-width:700px){
  .callbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:2px solid var(--ink)}
  .callbar .btn{flex:1;padding:12px;font-size:17px}
  footer{padding-bottom:110px}
}
@media (max-width:420px){.wrap{padding:0 16px}}

/* ---------- sub page head ---------- */
.page-head{padding:52px 0 44px;border-bottom:1px solid var(--line)}
.page-head .crumb{font-size:12px;color:var(--ink-3)}
.page-head .crumb a{text-decoration:none}
.page-head .crumb a:hover{color:var(--sky)}
.page-head h1{display:flex;align-items:center;gap:14px;font-size:clamp(28px,4vw,40px);font-weight:900;line-height:1.4;margin-top:10px}
.page-head h1::before{content:"";flex:none;width:18px;height:18px;border-radius:5px;background:var(--sky-logo);box-shadow:5px 5px 0 var(--gray-logo)}
@media (max-width:560px){.page-head{padding:36px 0 30px}}

/* ---------- more link ---------- */
.more{margin-top:40px;text-align:right}
.more a{display:inline-flex;align-items:center;gap:10px;font-weight:700;font-family:var(--round);text-decoration:none;color:#fff;background:var(--sky);padding:10px 22px;border-radius:999px;box-shadow:0 3px 0 #094E5D}
.more a::after{content:"→"}
.more a:hover{transform:translateY(1px);box-shadow:0 2px 0 #094E5D}

/* ---------- results page ---------- */
.jump{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
.jump a{font-size:14px;font-weight:700;text-decoration:none;padding:6px 18px;background:var(--white);border:2px solid var(--ink);border-radius:999px}
.jump a:hover{background:var(--ink);color:#fff}
.archive summary small{flex:1;margin-left:16px;font-family:"Zen Kaku Gothic New";font-size:12px;font-weight:500;color:var(--ink-3)}
.archive .list p.sub{padding-left:1.5em;font-size:13px}
.archive .list-note{font-size:13px;color:var(--ink-3);padding:0 20px 18px;margin-top:-8px}
@media (max-width:600px){.archive summary{flex-wrap:wrap}.archive summary small{order:3;flex-basis:100%;margin:2px 0 0}}

/* ---------- footer links ---------- */
.foot-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.foot-link{color:#fff;font-size:13px;font-weight:700;text-decoration:none}
.foot-link:hover{text-decoration:underline}
@media (max-width:560px){.foot-side{align-items:flex-start}}

/* ---------- privacy policy ---------- */
.policy{max-width:46em;background:var(--white);border:2px solid var(--ink);border-radius:var(--radius);padding:44px}
.policy h2{font-size:22px;line-height:1.5}
.policy h2 + p{margin-top:14px;color:var(--ink-2)}
.policy h3{display:flex;align-items:center;gap:12px;font-size:18px;margin-top:36px;line-height:1.5}
.policy h3 span{flex:none;width:32px;height:32px;display:grid;place-items:center;font-size:16px;font-weight:900;color:#fff;background:var(--sky);border-radius:9px}
.policy h3 + p{margin-top:10px;color:var(--ink-2);padding-left:44px}
.policy-contact{margin:16px 0 0 44px;padding:18px 22px;background:var(--sky-soft);border-radius:12px;font-size:15px}
.policy-contact dt{font-weight:700}
.policy-contact a{color:var(--sky)}
@media (max-width:600px){
  .policy{padding:26px 22px}
  .policy h3 + p{padding-left:0}
  .policy-contact{margin-left:0}
}

/* ---------- mobile menu (≡ button) ---------- */
.nav-toggle{display:none}
@media (max-width:760px){
  .header .wrap{position:relative;flex-wrap:nowrap}
  .header-tel{margin-left:auto}
  .nav-toggle{display:grid;place-items:center;flex:none;width:44px;height:44px;border:2px solid var(--ink);border-radius:12px;background:var(--white);cursor:pointer}
  .nav-toggle span,.nav-toggle span::before,.nav-toggle span::after{display:block;width:18px;height:2px;border-radius:2px;background:var(--ink);transition:transform .15s,opacity .15s}
  .nav-toggle span{position:relative}
  .nav-toggle span::before,.nav-toggle span::after{content:"";position:absolute;left:0}
  .nav-toggle span::before{top:-6px}
  .nav-toggle span::after{top:6px}
  .nav-toggle[aria-expanded="true"]{background:var(--ink)}
  .nav-toggle[aria-expanded="true"] span{background:transparent}
  .nav-toggle[aria-expanded="true"] span::before{top:0;transform:rotate(45deg);background:#fff}
  .nav-toggle[aria-expanded="true"] span::after{top:0;transform:rotate(-45deg);background:#fff}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;width:auto;margin:0;padding:12px 16px 16px;flex-direction:column;gap:4px;background:var(--white);border-bottom:2px solid var(--ink);box-shadow:0 8px 16px rgba(46,42,39,.12);overflow:visible;white-space:normal}
  .nav.open{display:flex}
  .nav a{padding:12px 16px;border-radius:10px;font-size:16px}
}

/* ---------- 404 ---------- */
.notfound{text-align:center}
.notfound img{width:110px;height:auto;margin:0 auto}
.notfound p{margin-top:20px;font-size:17px;font-weight:700}
.notfound-links{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:32px}
.notfound-links a{display:inline-block;padding:10px 20px;font-weight:700;text-decoration:none;background:var(--white);border:2px solid var(--ink);border-radius:999px}
.notfound-links li:first-child a{background:var(--sky);border-color:var(--sky);color:#fff}
.notfound-links a:hover{background:var(--ink);border-color:var(--ink);color:#fff}
@media (max-width:760px){.header-tel small{white-space:nowrap;font-size:10px}}
@media (max-width:400px){.header-tel small{display:none}.header-tel strong{font-size:16px}}

/* news detail: narrower centred column so the article isn't stuck to the left on PC */
.wrap.narrow{max-width:880px}
#news-detail{padding:48px 56px}
@media (max-width:600px){#news-detail{padding:24px}}

/* ---------- flow page ---------- */
.flow-intro{display:flex;align-items:center;gap:32px;margin-bottom:64px;padding:28px 32px;background:var(--white);border:2px solid var(--ink);border-radius:var(--radius);box-shadow:6px 6px 0 var(--sky-logo)}
.flow-intro img{width:120px;height:auto;flex:none}
.flow-intro p{color:var(--ink-2);margin-top:12px}
.flow-tags{list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.flow-tags li{font-size:13px;font-weight:700;color:var(--sky);background:var(--sky-soft);padding:4px 14px;border-radius:999px}
.flow-tags li:nth-child(2){color:var(--accent);background:#FBE6E0}
.flow li{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:230px}
.flow .step-icon{display:grid;place-items:center;width:64px;height:64px;margin:4px 0 14px;border-radius:18px;background:var(--sky-soft);color:var(--sky)}
.flow .step-icon svg{width:32px;height:32px}
.flow li:last-child .step-icon{background:#FBE6E0;color:var(--accent)}
.flow li{padding-left:14px;padding-right:14px}
.flow h3{font-size:16px}
.flow-next{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch}
.flow-card{background:var(--paper);border:2px solid var(--ink);border-radius:var(--radius);padding:32px}
.flow-card .num-tag{display:inline-block;font-family:var(--round);font-size:13px;font-weight:700;color:#fff;background:var(--sky);padding:3px 14px;border-radius:8px}
.flow-card > p{margin-top:16px;color:var(--ink-2);font-size:15px}
.flow-courses{list-style:none;margin-top:18px;display:grid;gap:10px}
.flow-courses li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;background:var(--white);border-radius:12px;font-size:15px}
.flow-courses li b{font-family:var(--round);font-size:17px;color:var(--sky)}
.flow-courses li:nth-child(2) b{color:var(--brown-dark)}
.flow-tel{text-align:center;background:var(--white);box-shadow:6px 6px 0 var(--accent)}
.flow-tel img{width:80px;height:auto;margin:0 auto}
.flow-tel h2{font-size:22px;line-height:1.6;margin:12px 0 20px}
.flow-tel .btn{max-width:340px;margin:0 auto}
@media (max-width:860px){
  .flow-intro{flex-direction:column;text-align:center;padding:24px}
  .flow-tags{justify-content:center}
  .flow li{min-height:0}
  .flow-next{grid-template-columns:1fr}
  .flow-card{padding:24px}
  .flow-courses li{flex-direction:column;align-items:flex-start;gap:2px}
}
@media (max-width:860px){.flow-intro p{text-align:left;font-size:15px}}
