/* ぷろてきゃっと 公式サイト 共通CSS（Phase 28 v3）
   ブランドカラーE：アイボリー #F7F2E9／ミルクティー #C7AC90／ブラウン #695344／テラコッタ #C48760／セージグリーン #89947E
   ナビゲーションアイコンはインラインSVG線画（Lucide風）に統一し、絵文字は使わない。 */
:root{
  --ivory:#F7F2E9; --milk:#C7AC90; --brown:#695344; --brown-d:#4a3a30;
  --terra:#C48760; --terra-d:#8a5a3b; --sage:#89947E; --sage-d:#5f6d57;
  --terra-a11y:#99694B; --sage-a11y:#707967;
  --card:#fffdf8; --line:#e2d5c0; --muted:#746355; --ink:#3d322a;
  --beige:#EFE4D2;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--ivory); color:var(--ink);
  font-family:"Hiragino Maru Gothic ProN","Hiragino Sans","Noto Sans JP",sans-serif;
  font-size:16px; line-height:1.85; -webkit-text-size-adjust:100%;
  padding-bottom:0;
}
img{max-width:100%; height:auto; display:block;}
a{color:var(--terra-d); text-decoration-thickness:1px; text-underline-offset:3px;}
a:hover{color:var(--terra);}
.wrap{max-width:1080px; margin:0 auto; padding:0 20px;}

/* ---------- SVGアイコン共通 ---------- */
.icsvg{display:block; flex:none;}
.ic{display:inline-flex; align-items:center; justify-content:center; color:var(--brown);}
.ic .icsvg{width:20px; height:20px;}

/* ---------- ヘッダー（PC：上部ナビ） ---------- */
header.site{
  position:sticky; top:0; z-index:50;
  background:rgba(247,242,233,.96); border-bottom:2px solid var(--milk);
  backdrop-filter:blur(4px);
}
.header-in{max-width:1080px; margin:0 auto; padding:10px 20px; display:flex; align-items:center; gap:16px;}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--brown-d);}
.brand img{width:44px; height:44px; border-radius:50%;}
.brand .b-name{font-weight:800; font-size:19px; line-height:1.2;}
.brand .b-sub{font-size:11px; color:var(--muted); letter-spacing:.08em;}
nav.topnav{margin-left:auto; display:flex; gap:2px; flex-wrap:wrap;}
nav.topnav a{
  text-decoration:none; color:var(--brown-d); font-size:14px; font-weight:700;
  padding:10px 11px; border-radius:10px; min-height:44px;
  display:inline-flex; align-items:center; gap:6px;
}
nav.topnav a .ic .icsvg{width:17px; height:17px;}
nav.topnav a:hover{background:var(--beige);}
nav.topnav a.active{background:var(--beige); color:var(--terra-d);}
nav.topnav a.active .ic{color:var(--terra-d);}

/* ---------- 見出し・階層 ---------- */
main{padding:8px 0 56px;}
section{padding:34px 0 6px;}
section.first{padding-top:26px;}
h1{font-size:30px; line-height:1.4; color:var(--brown-d); letter-spacing:.01em;}
h2{
  font-size:23px; line-height:1.45; color:var(--brown-d);
  border-left:6px solid var(--terra); padding-left:12px; margin-bottom:16px;
}
h2.sage{border-left-color:var(--sage);}
h3{font-size:18px; line-height:1.5; color:var(--brown-d); margin-bottom:6px;}
.lead{font-size:17px;}
.muted{color:var(--muted); font-size:14px;}
.small{font-size:13px; color:var(--muted);}

/* ---------- ヒーロー ---------- */
.hero{
  background:linear-gradient(180deg,#fdf8ef 0%,var(--ivory) 100%);
  border-bottom:1px solid var(--line); padding:36px 0 30px; text-align:center;
}
.hero .logo-big{width:110px; height:110px; border-radius:50%; margin:0 auto 12px; border:3px solid var(--milk); background:#fff;}
.hero h1{font-size:34px;}
.hero .tagline{font-size:20px; font-weight:800; color:var(--terra-d); margin-top:6px;}
.hero .philosophy{font-size:16px; margin-top:10px;}
.badges{margin-top:16px; display:flex; gap:8px; justify-content:center; flex-wrap:wrap;}
.lv-badge{
  display:inline-block; background:var(--brown); color:#fff; font-weight:800;
  padding:7px 16px; border-radius:999px; font-size:15px;
}
.lv-badge.day{background:var(--sage-d);}
.hero-brand{
  width:100%; max-width:900px; margin:22px auto 0;
  border-radius:20px; border:2px solid var(--line);
  box-shadow:0 4px 16px rgba(105,83,68,.12);
}

/* ---------- カード ---------- */
.grid{display:grid; gap:16px; align-items:stretch;}
.grid > *{min-width:0;}
h3{overflow-wrap:anywhere;}
.grid.c2{grid-template-columns:repeat(2,1fr);}
.grid.c3{grid-template-columns:repeat(3,1fr);}
.grid.c4{grid-template-columns:repeat(4,1fr);}
.grid.sns-grid{grid-template-columns:repeat(4,1fr);}
.card{
  background:var(--card); border:1px solid var(--line); border-radius:16px;
  padding:20px; box-shadow:0 2px 8px rgba(105,83,68,.07);
  display:flex; flex-direction:column;
}
a.card{display:flex; text-decoration:none; color:var(--ink);}
a.card:hover{border-color:var(--terra); box-shadow:0 4px 14px rgba(105,83,68,.13);}
.card .go{color:var(--terra-d); font-weight:800; font-size:14px; margin-top:auto; padding-top:10px;}
.card img.thumb{border-radius:10px; margin-bottom:12px; border:1px solid var(--line);}
.card .date{font-size:13px; color:var(--muted); font-weight:700;}
.card p{overflow-wrap:anywhere;}
/* ページ案内カードのアイコンチップ */
.card.guide h3{display:flex; align-items:center; gap:10px;}
.g-ic{
  width:46px; height:46px; border-radius:50%; background:var(--beige);
  display:inline-flex; align-items:center; justify-content:center; flex:none; color:var(--brown);
}
.g-ic .icsvg{width:24px; height:24px;}
/* SNSカード */
.sns-card .sns-ic{color:var(--brown); margin-bottom:10px;}
.sns-card .sns-ic .icsvg{width:26px; height:26px;}
.sns-card p{font-size:14px;}
/* 漫画サムネイル：全話とも 780x420 の横長クロップで比率を統一 */
.card img.mthumb{
  width:100%; aspect-ratio:13/7; object-fit:cover;
  border-radius:10px; margin-bottom:12px; border:1px solid var(--line);
}
.card .synopsis{
  font-size:14px; color:var(--ink);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

/* 漫画各話ページ */
img.epimg{width:100%; border-radius:12px; border:1px solid var(--line); box-shadow:0 2px 10px rgba(105,83,68,.08);}
nav.epnav{display:flex; justify-content:space-between; gap:12px; margin-top:20px; flex-wrap:wrap;}

/* 実績タイル */
.tiles{display:grid; grid-template-columns:repeat(4,1fr); gap:12px;}
.tile{
  background:var(--card); border:1px solid var(--line); border-radius:14px;
  padding:16px 10px; text-align:center;
}
.tile .num{font-size:26px; font-weight:800; color:var(--brown-d); line-height:1.3;}
.tile .lbl{font-size:13px; color:var(--muted); font-weight:700;}

/* お知らせ */
ul.news{list-style:none;}
ul.news li{
  background:var(--card); border:1px solid var(--line); border-radius:14px;
  padding:16px 18px; margin-bottom:12px;
}
ul.news .n-head{display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; margin-bottom:4px;}
ul.news .h-date{font-size:13px; color:#fff; background:var(--terra-a11y); border-radius:6px; padding:1px 8px; font-weight:700;}
ul.news p{font-size:15px; overflow-wrap:anywhere;}

/* 社員カード・設定シート */
.staff-card img.topcard{width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:12px; margin-bottom:12px; border:1px solid var(--line);}
.staff-card .role{font-weight:800; color:var(--terra-d);}
.staff-card .one{font-weight:800; color:var(--brown-d); background:#f6ecdb; border-radius:10px; padding:8px 10px; margin-top:10px; font-size:15px;}
.staff-card dl{text-align:left; margin-top:12px; font-size:14px;}
.staff-card dt{font-weight:800; color:var(--brown-d);}
.staff-card dd{margin:0 0 8px;}
.sheets{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
.sheets figure{background:var(--card); border:1px solid var(--line); border-radius:16px; padding:14px;}
.sheets img{width:100%; border-radius:10px; border:1px solid var(--line);}
.sheets figcaption{font-size:14px; font-weight:800; color:var(--brown-d); margin-top:8px; text-align:center;}

/* 成長記録 */
table.levels{width:100%; border-collapse:collapse; background:var(--card); border-radius:14px; overflow:hidden; font-size:15px;}
table.levels th, table.levels td{border:1px solid var(--line); padding:10px 12px; text-align:left; vertical-align:top;}
table.levels th{background:#f1e7d3; color:var(--brown-d);}
table.levels tr.now td{background:#fdf3e3; font-weight:700;}
ol.timeline{list-style:none;}
ol.timeline li{border-left:3px solid var(--milk); padding:0 0 18px 16px; position:relative;}
ol.timeline li::before{content:""; position:absolute; left:-7px; top:8px; width:11px; height:11px; border-radius:50%; background:var(--terra);}
ol.timeline .t-date{font-weight:800; color:var(--terra-d); font-size:14px;}
.pill{display:inline-block; font-size:12px; font-weight:800; border-radius:999px; padding:2px 10px; margin-left:6px;}
.pill.done{background:var(--sage-a11y); color:#fff;}
.pill.doing{background:var(--terra-a11y); color:#fff;}
.pill.todo{background:#e7dcc8; color:var(--brown-d);}

/* ボタン */
.btn{
  display:inline-flex; align-items:center; justify-content:center; min-height:48px;
  background:var(--terra-a11y); color:#fff; font-weight:800; border-radius:12px;
  padding:10px 22px; text-decoration:none; font-size:16px;
}
.btn:hover{background:var(--terra-d); color:#fff;}
.btn.ghost{background:var(--card); color:var(--brown-d); border:2px solid var(--milk);}

/* フッター */
footer.site{border-top:2px solid var(--milk); background:#f3ead9; padding:28px 0 90px; margin-top:40px;}
footer.site nav{display:flex; flex-wrap:wrap; gap:6px 14px; margin-bottom:14px;}
footer.site nav a{font-size:14px; font-weight:700;}
footer.site p{font-size:13px; color:var(--muted); margin-bottom:6px;}

/* ---------- スマホ：固定下部ナビ ---------- */
nav.bottomnav{display:none;}
@media (max-width:820px){
  body{padding-bottom:64px;}
  nav.topnav{display:none;}
  .header-in{padding:8px 14px;}
  .brand img{width:38px; height:38px;}
  .brand .b-name{font-size:17px;}
  h1{font-size:25px;}
  .hero h1{font-size:27px;}
  .hero .tagline{font-size:18px;}
  h2{font-size:20px;}
  section{padding:26px 0 4px;}
  .grid.c2,.grid.c3,.grid.c4{grid-template-columns:1fr;}
  .grid.sns-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .sheets{grid-template-columns:1fr;}
  .tiles{grid-template-columns:repeat(2,1fr);}
  nav.bottomnav{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:60;
    background:rgba(255,253,248,.98); border-top:2px solid var(--milk);
    box-shadow:0 -2px 10px rgba(105,83,68,.10);
    padding-bottom:env(safe-area-inset-bottom);
  }
  nav.bottomnav a{
    flex:1; text-align:center; text-decoration:none; color:var(--brown-d);
    font-size:11px; font-weight:800; padding:8px 2px 7px; min-height:56px;
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  }
  nav.bottomnav a .ic .icsvg{width:22px; height:22px;}
  nav.bottomnav a.active{background:var(--beige); color:var(--terra-d);}
  nav.bottomnav a.active .ic{color:var(--terra-d);}
  footer.site{padding-bottom:30px;}
}

/* ---------- Q-049候補4：操作フィードバック（試作・共通様式） ----------
   チェックが描かれる完了トースト。E2側と視覚様式を揃える。
   様式の実体は common.js が注入する（care.html / bosai.html は style.css を
   読まない単独ページのため、部品を自己完結にした。試作QAで検出・修正）。 */
