/*
Theme Name: HaloAme Diary
Theme URI: https://blog.nekomado.jp/
Author: nekomado
Description: ハロアメ日記専用の軽量オリジナルテーマ。
Version: 0.1.0
Text Domain: haloame-diary
*/

:root{
  --bg:#fff;
  --text:#2c211b;
  --muted:#72665f;
  --line:#eadfd6;
  --soft:#fff7ef;
  --accent:#e95d4f;
  --green:#4c9a73;
  --orange:#f28b2c;
  --purple:#815fc2;
  --pink:#e77d98;
  --max:1180px;
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
  line-height:1.75;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.site-wrap{width:min(calc(100% - 32px),var(--max));margin-inline:auto}

.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(8px);
}
.header-inner{
  min-height:76px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:clamp(22px,2.3vw,34px)}
.brand-mark{font-size:30px}
.site-nav ul{
  display:flex;gap:22px;list-style:none;margin:0;padding:0;align-items:center;flex-wrap:wrap
}
.site-nav a{font-weight:700;font-size:15px}
.site-nav a:hover{color:var(--accent)}

.hero{
  min-height:320px;
  display:grid;
  align-items:center;
  background:
    linear-gradient(90deg,rgba(255,255,255,.95) 0%,rgba(255,255,255,.76) 44%,rgba(255,255,255,.18) 100%),
    linear-gradient(135deg,#eaf6ff,#fff1df);
  background-size:cover;
  background-position:center;
  border-bottom:1px solid var(--line);
}
.hero-inner{padding:48px 0;max-width:680px}
.hero h1{font-size:clamp(42px,7vw,72px);line-height:1.05;margin:0 0 22px;font-weight:900;letter-spacing:.02em}
.hero p{font-size:clamp(17px,2vw,22px);font-weight:700;margin:0;max-width:620px}

.section{padding:38px 0}
.section-title{
  display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px
}
.section-title h2{font-size:30px;margin:0}
.section-title a{font-size:14px;color:var(--muted)}

.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.card{
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;
  box-shadow:0 6px 24px rgba(61,45,35,.04);
}
.card-media{aspect-ratio:16/9;background:#f3eee9;overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover}
.card-body{padding:18px}
.card-meta{font-size:12px;color:var(--muted);margin-bottom:8px}
.card h3{font-size:22px;line-height:1.45;margin:0 0 8px}
.card p{margin:0;color:#4f4640;font-size:14px}
.badge{
  display:inline-flex;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:800;
  background:#eaf5ff;color:#2d6ca2;margin-right:6px
}

.feature{
  background:var(--soft);
  border:1px solid #f0e0d2;
  border-radius:24px;
  padding:28px;
}
.feature-grid{display:grid;grid-template-columns:280px 1fr;gap:26px;align-items:center}
.feature-illust{
  min-height:220px;border-radius:18px;
  background:linear-gradient(135deg,#f5d9bb,#fff6ec);
  display:grid;place-items:center;font-size:66px
}
.feature-list{display:grid;gap:12px}
.feature-item{
  background:#fff;border:1px solid #eee1d7;border-radius:14px;padding:16px 18px
}
.feature-item strong{display:block;font-size:18px;margin-bottom:4px}
.feature-item span{font-size:14px;color:var(--muted)}

.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.category-card{
  border:1px solid var(--line);border-radius:16px;padding:18px;background:#fff
}
.category-card h3{margin:0 0 10px;font-size:20px}
.category-card p{margin:0;color:var(--muted);font-size:14px}
.category-card .more{display:inline-block;margin-top:12px;font-weight:800;font-size:13px}
.category-card:nth-child(1) .more{color:var(--green)}
.category-card:nth-child(2) .more{color:var(--orange)}
.category-card:nth-child(3) .more{color:#d59b00}
.category-card:nth-child(4) .more{color:var(--purple)}
.category-card:nth-child(5) .more{color:var(--pink)}

.profile{
  display:grid;grid-template-columns:1fr 1fr;gap:18px;
  background:#fff2f0;border:1px solid #f3d8d4;border-radius:22px;padding:26px
}
.profile-item{display:flex;gap:16px;align-items:center}
.profile-icon{width:74px;height:74px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:38px}
.profile h3{margin:0 0 4px;font-size:20px}
.profile p{margin:0;color:var(--muted);font-size:14px}

.site-footer{border-top:1px solid var(--line);padding:28px 0 40px;margin-top:36px;color:var(--muted);font-size:13px}
.footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}

.content-wrap{width:min(calc(100% - 32px),860px);margin:52px auto}
.entry-title{font-size:clamp(34px,5vw,54px);line-height:1.2;margin-bottom:18px}
.entry-content{font-size:17px}
.entry-content h2{margin-top:2.2em;font-size:30px}
.entry-content h3{margin-top:1.8em;font-size:24px}
.entry-content img{border-radius:14px}
.archive-grid{display:grid;gap:22px}

@media (max-width:900px){
  .header-inner{align-items:flex-start;padding:14px 0;flex-direction:column}
  .site-nav ul{gap:14px}
  .hero{min-height:260px}
  .post-grid{grid-template-columns:1fr 1fr}
  .feature-grid{grid-template-columns:1fr}
  .category-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:620px){
  .site-wrap{width:min(calc(100% - 22px),var(--max))}
  .site-header{position:static}
  .post-grid,.category-grid,.profile{grid-template-columns:1fr}
  .hero-inner{padding:36px 0}
  .section{padding:28px 0}
}
