/* 設計：海の上の丘に建つ日和山小学校を、光のさす明るい絵で表紙に。空の青・海の青・砂・松の緑・日ざしの黄。明るい1色調で統一（暗い配色は使わない）。 */
:root{
  --paper:#f6fbff;
  --surface:#ffffff;
  --ink:#1d3350;
  --muted:#5d6f86;
  --line:#dbe7f2;
  --sea:#1479c4;
  --on-sea:#ffffff;
  --sun:#ffc63a;
  --on-sun:#3a2a00;
  --sun-ink:#9a6200;
  --shadow:0 10px 28px rgba(20,121,196,.13);
  --shadow-up:0 16px 36px rgba(20,121,196,.22);
  --font-display:"Zen Maru Gothic","Hiragino Maru Gothic ProN","Hiragino Sans","Yu Gothic",sans-serif;
  --font-body:"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","Noto Sans JP",sans-serif;
  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:18px;
  line-height:1.9;
  font-weight:400;
  line-break:strict;
  overflow-wrap:anywhere;
}
a{color:inherit}
a:focus-visible,button:focus-visible{outline:3px solid var(--sun);outline-offset:3px;border-radius:8px}
h1,h2,h3,p,ol,ul,figure,dl,dd{margin:0}
ol,ul{padding:0;list-style:none}
h1,h2,h3,.title{font-family:var(--font-display);font-weight:500;text-wrap:balance;word-break:auto-phrase}
svg{display:block}
.ph{display:inline-block}
[hidden]{display:none !important}

/* 細い固定の見出し */
.bar{position:sticky;top:0;z-index:10;background:var(--surface);border-bottom:1px solid var(--line)}
.bar-in{
  max-width:760px;margin:0 auto;padding:0 20px;
  height:40px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  font-family:var(--font-display);font-size:15px;
}
.bar a{text-decoration:none}
.bar .brand{display:flex;align-items:center;gap:8px}
.bar .brand::before{content:"";width:12px;height:12px;border-radius:50%;background:var(--sun)}
.bar .home-link{color:var(--sea)}

.wrap{max-width:760px;margin:0 auto;padding:22px 20px 0;display:flex;flex-direction:column;gap:44px}
.wrap.post-wrap{max-width:680px;padding-bottom:56px}

/* 表紙 */
.hero{position:relative;overflow:hidden;border-radius:24px;box-shadow:var(--shadow);background:#bfe6ff}
.hero svg{width:100%;height:auto}
.plate{
  position:absolute;left:5%;top:6%;
  display:flex;align-items:center;gap:16px;
  background:rgba(255,255,255,.94);color:var(--ink);
  border-radius:12px;padding:12px 22px;
  box-shadow:0 6px 18px rgba(20,121,196,.22);
}
.plate h1{font-size:34px;line-height:1.3;letter-spacing:.12em}
.plate i{width:9px;height:9px;border-radius:50%;background:var(--sun);flex:none}

.sec{display:flex;flex-direction:column;gap:16px}
.sec-h{display:flex;align-items:center;gap:12px;font-size:22px;line-height:1.4}
.sec-h::before{content:"";width:14px;height:14px;border-radius:50%;background:var(--sun);flex:none}
.sec-h .count{font-size:15px;color:var(--muted);font-family:var(--font-body);font-variant-numeric:tabular-nums}

/* 押せるカード共通 */
.lift{transition:transform .18s ease, box-shadow .18s ease}
@media (hover:hover){.lift:hover{transform:translateY(-4px);box-shadow:var(--shadow-up)}}
.lift:active{transform:scale(.985)}
@media (prefers-reduced-motion:reduce){.lift{transition:none}.lift:hover,.lift:active{transform:none}}

/* 新着 */
.feature{
  display:flex;flex-direction:column;overflow:hidden;
  background:var(--surface);border-radius:20px;box-shadow:var(--shadow);
  text-decoration:none;
}
.feature .art svg{width:100%;height:auto}
.feature .body{padding:20px 22px 24px;display:flex;flex-direction:column;gap:10px}
.feature .no{font-family:var(--font-display);font-size:16px;color:var(--muted);font-variant-numeric:tabular-nums}
.feature .kanmuri{font-family:var(--font-display);font-size:17px;line-height:1.4;color:var(--sea)}
.feature .title{font-size:25px;line-height:1.55}
.chip{
  display:inline-block;font-family:var(--font-display);font-size:14px;line-height:1;
  padding:6px 12px;border-radius:999px;letter-spacing:.06em;
  background:var(--sun);color:var(--on-sun);
}
.btn{
  align-self:flex-start;display:inline-flex;align-items:center;gap:10px;text-decoration:none;
  background:var(--sea);color:var(--on-sea);
  font-family:var(--font-display);font-size:18px;line-height:1.3;
  padding:12px 26px;border-radius:999px;
  box-shadow:0 6px 14px rgba(20,121,196,.25);
}
.btn::after{content:"›";font-size:22px;line-height:1}
.btn.sun{background:var(--sun);color:var(--on-sun);box-shadow:0 6px 14px rgba(255,198,58,.4);margin-top:6px}
.btn.wide{align-self:stretch;justify-content:center}

/* あゆみ */
.steps{
  background:var(--surface);border-radius:20px;box-shadow:var(--shadow);
  padding:24px 10px 22px;
  display:grid;grid-template-columns:repeat(5,1fr);position:relative;
}
.steps::before{content:"";position:absolute;left:10%;right:10%;top:45px;height:3px;background:var(--line)}
.step{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.step .dot{
  width:44px;height:44px;border-radius:50%;display:grid;place-items:center;
  background:var(--sea);color:var(--on-sea);
  font-family:var(--font-display);font-size:19px;line-height:1;font-variant-numeric:tabular-nums;
  border:4px solid var(--surface);
}
.step.upcoming .dot{background:var(--sun);color:var(--on-sun)}
.step .d{font-size:14px;line-height:1.4;color:var(--ink);font-variant-numeric:tabular-nums}
.step .k{font-size:13px;line-height:1.3;color:var(--muted);font-family:var(--font-display)}
.step.upcoming .k{color:var(--sun-ink)}

/* 次回 */
.next{
  background:var(--surface);border-radius:20px;box-shadow:var(--shadow);
  padding:22px;display:flex;flex-direction:column;gap:18px;
}
.next-top{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center}
.cal{
  width:96px;border-radius:14px;overflow:hidden;text-align:center;
  background:var(--paper);border:1px solid var(--line);
  font-family:var(--font-display);
}
.cal .m{background:var(--sea);color:var(--on-sea);font-size:15px;line-height:1;padding:8px 0;letter-spacing:.1em}
.cal .n{font-size:46px;line-height:1.15;font-variant-numeric:tabular-nums;padding-top:4px}
.cal .w{font-size:15px;line-height:1;color:var(--muted);padding-bottom:10px}
.next .info{display:flex;flex-direction:column;gap:6px}
.next .info .chip{align-self:flex-start}
.next .title{font-size:22px;line-height:1.45}
.next .time{font-size:19px;line-height:1.5;font-variant-numeric:tabular-nums}
.next .place{font-size:17px;line-height:1.5;color:var(--muted)}
.facts{display:grid;grid-template-columns:auto 1fr;gap:4px 16px;font-size:18px}
.facts dt{color:var(--muted)}

/* だよりのカード */
.list{display:grid;grid-template-columns:1fr;gap:20px}
@media (min-width:640px){.list{grid-template-columns:1fr 1fr}}
.card{
  display:flex;flex-direction:column;overflow:hidden;
  background:var(--surface);border-radius:20px;box-shadow:var(--shadow);
  text-decoration:none;
}
.cover{position:relative;aspect-ratio:16/8;background:var(--bg)}
.cover svg{position:absolute;inset:0;width:100%;height:100%}
.cover .num{
  position:absolute;left:18px;bottom:8px;
  font-family:var(--font-display);font-size:46px;line-height:1;letter-spacing:.04em;
  font-variant-numeric:tabular-nums;color:var(--fg);
}
.cover .kind{
  position:absolute;left:16px;top:14px;
  font-family:var(--font-display);font-size:14px;line-height:1;letter-spacing:.06em;
  padding:6px 12px;border-radius:999px;background:#ffffff;color:var(--fg);
}
.k-sky{--bg:#d4ecff;--fg:#17538a;--fg2:#2f9be0}
.k-foam{--bg:#d0f1e9;--fg:#0f6b63;--fg2:#1fb5a3}
.k-peach{--bg:#ffe1d3;--fg:#b4472a;--fg2:#ffffff}
.k-sand{--bg:#ffecc4;--fg:#8a4b00;--fg2:#ffab4a}
.k-leaf{--bg:#e0f4d0;--fg:#2f6b2a;--fg2:#58b24a}
.card .body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:12px;flex:1}
.card .title{font-size:20px;line-height:1.6}
.by{display:flex;align-items:center;gap:10px;margin-top:auto;font-size:15px;line-height:1.4;color:var(--muted)}
.by .face{
  width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex:none;
  background:#d4ecff;color:#17538a;
  font-family:var(--font-display);font-size:15px;line-height:1;
}
.by .face.p{background:var(--sun);color:var(--on-sun)}
.by .go{margin-left:auto;font-size:22px;line-height:1;color:var(--sea)}

/* LINE窓口 */
.line{
  background:var(--surface);border-radius:20px;box-shadow:var(--shadow);
  padding:22px;display:grid;grid-template-columns:auto 1fr;gap:16px 18px;align-items:center;
}
.line .mark{width:64px;height:64px;border-radius:18px;background:#06c755;display:grid;place-items:center}
.line .mark svg{width:40px;height:40px}
.line .title{font-size:21px;line-height:1.5}
.line .btn{grid-column:1 / -1;background:#06c755;color:#ffffff;box-shadow:0 6px 14px rgba(6,199,85,.28)}

/* いちばん下 */
.foot{margin-top:40px}
.foot svg{width:100%;height:auto;margin-bottom:-1px}
.foot-bg{background:#bfe6ff}
.foot-in{max-width:760px;margin:0 auto;padding:10px 20px 44px;display:flex;flex-direction:column;gap:14px}
.foot .mini{align-self:flex-start;font-family:var(--font-display);font-size:18px;letter-spacing:.12em;background:#ffffff;color:var(--ink);border-radius:8px;padding:6px 16px}
.foot p{font-size:16px;line-height:1.9;color:var(--ink);max-width:32em}

/* 記事 */
.post{display:flex;flex-direction:column;gap:22px}
.post-head{display:flex;flex-direction:column;gap:10px}
.post-head .no{font-family:var(--font-display);font-size:16px;color:var(--sun-ink);letter-spacing:.08em}
.post-head h1{font-size:27px;line-height:1.55}
.post-head h1 .kanmuri{display:block;font-size:.72em;color:var(--sea);margin-bottom:2px}
.post-head .meta{font-size:16px;color:var(--muted)}
.eyecatch{margin:6px 0 4px;border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
.eyecatch svg{width:100%;height:auto}
.post p{max-width:34em}
.post h2{font-size:22px;line-height:1.5;margin-top:14px;display:flex;align-items:center;gap:12px}
.post h2::before{content:"";width:14px;height:14px;border-radius:50%;background:var(--sun);flex:none}
.videos{display:flex;flex-direction:column;gap:10px}
.videos a{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;
  background:var(--surface);border-radius:14px;box-shadow:var(--shadow);
  padding:13px 16px;text-decoration:none;
}
.videos .n{
  width:36px;height:36px;border-radius:50%;display:grid;place-items:center;
  background:var(--sun);color:var(--on-sun);
  font-family:var(--font-display);font-size:18px;line-height:1;font-variant-numeric:tabular-nums;
}
.videos .t{font-family:var(--font-display);font-weight:500;font-size:19px;line-height:1.55;word-break:auto-phrase}
.videos .pl{width:0;height:0;border-left:11px solid var(--sea);border-top:7px solid transparent;border-bottom:7px solid transparent}

@media (max-width:400px){
  body{font-size:17px}
  .plate{padding:10px 18px;gap:12px}
  .plate h1{font-size:27px}
  .feature .title{font-size:22px}
  .post-head h1{font-size:24px}
  .cal{width:84px}
  .cal .n{font-size:40px}
  .next-top{gap:14px}
  .step .dot{width:40px;height:40px;font-size:17px}
  .steps::before{top:43px}
  .step .d{font-size:13px}
}
