/* ならピタ 公式サイト 共通スタイル */
:root{
  --green:#4FA82E; --green-d:#3A8A1F; --green-l:#E8F5DE;
  --brown:#C8783A; --brown-d:#9E5A26;
  --yellow:#FFD23F; --orange:#F2A93B; --sky:#8FD3FF; --purple:#8B6CF0; --blue:#4DA3F0;
  --ink:#4A3B32; --sub:#7A6A60; --bg:#FFF8EC; --card:#FFFFFF; --line:#F0E2CC;
  --radius:20px; --shadow:0 6px 0 rgba(74,59,50,.08);
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);
  font-family:"Hiragino Kaku Gothic ProN","ヒラギノ角ゴ ProN W3","Hiragino Sans","Noto Sans JP","Yu Gothic UI","Yu Gothic",sans-serif;
  line-height:1.85;font-size:16px;-webkit-text-size-adjust:100%;
  background-image:radial-gradient(rgba(79,168,46,.10) 2px,transparent 2.5px);background-size:28px 28px}
b,strong,h1,h2,h3,.btn,.brand{font-weight:700}
img{max-width:100%;height:auto;display:block}
a{color:#2F7FD6}
.wrap{max-width:1040px;margin:0 auto;padding:0 16px}
.small{font-size:13px;color:var(--sub)}
.center{text-align:center}

/* ── ヘッダー ── */
.site-header{position:sticky;top:0;z-index:10;background:rgba(255,248,236,.94);backdrop-filter:blur(6px);border-bottom:3px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;gap:12px;min-height:60px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:8px;color:var(--ink);text-decoration:none;font-size:18px;white-space:nowrap}
.brand img{width:36px;height:36px;border-radius:9px;box-shadow:0 2px 0 rgba(0,0,0,.12)}
.gnav{margin-left:auto;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.gnav::-webkit-scrollbar{display:none}
.gnav a{white-space:nowrap;text-decoration:none;color:var(--ink);font-size:14px;font-weight:700;padding:6px 12px;border-radius:999px}
.gnav a:hover{background:var(--green-l)}
.gnav a[aria-current=page]{background:var(--green);color:#fff}
@media (max-width:640px){
  .site-header .wrap{padding-top:8px;padding-bottom:6px;gap:4px}
  .gnav{margin-left:0;width:100%}
}

/* ── ボタン ── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;border-radius:999px;padding:12px 24px;font-size:16px;color:#fff;background:var(--green);box-shadow:0 4px 0 var(--green-d);transition:transform .1s,box-shadow .1s}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 var(--green-d)}
.btn.brown{background:var(--brown);box-shadow:0 4px 0 var(--brown-d)}
.btn.white{background:#fff;color:var(--ink);box-shadow:0 4px 0 var(--line);border:2px solid var(--line)}
.btn.store{background:#222;box-shadow:0 4px 0 #000;padding:12px 26px}
.btn.store small{display:block;font-size:11px;font-weight:400;opacity:.85;line-height:1.2}
.btn.store span{display:block;line-height:1.25;text-align:left}

/* ── ヒーロー ── */
.hero{padding:40px 0 24px;overflow:hidden}
.hero .wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:center}
.logo-tiles{display:flex;flex-direction:column;gap:6px;margin:0 0 16px}
.logo-tiles .row{display:flex;gap:6px}
.tile{width:56px;height:56px;border-radius:12px;background:var(--green);color:#fff;display:grid;place-items:center;font-size:32px;font-weight:700;box-shadow:0 5px 0 var(--green-d);transform:rotate(var(--r,0deg))}
.tile.s{width:44px;height:44px;font-size:24px;background:#7CCB55;box-shadow:0 4px 0 var(--green-d)}
.tile.y{background:var(--yellow);color:var(--ink);box-shadow:0 5px 0 #D4A800}
.hero h1{font-size:15px;margin:0 0 4px;color:var(--sub);font-weight:700}
.catch{font-size:34px;line-height:1.35;margin:4px 0 12px}
.catch em{font-style:normal;color:var(--green);-webkit-text-stroke:0}
.lead{font-size:17px;margin:0 0 20px}
.hero .cta{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.status-pill{display:inline-block;background:var(--yellow);border-radius:999px;padding:3px 14px;font-size:13px;font-weight:700;margin-bottom:12px;box-shadow:0 3px 0 #D4A800}
.hero-phones{position:relative;height:520px}
.hero-phones img{position:absolute;width:230px;border-radius:26px;box-shadow:0 12px 30px rgba(74,59,50,.22);border:5px solid #fff}
.hero-phones img:nth-child(1){left:6%;top:30px;transform:rotate(-6deg)}
.hero-phones img:nth-child(2){right:4%;top:0;transform:rotate(5deg)}
@media (max-width:820px){
  .hero .wrap{grid-template-columns:1fr}
  .hero-phones{height:400px;max-width:420px;margin:0 auto;width:100%}
  .hero-phones img{width:180px}
  .catch{font-size:28px}
  .tile{width:48px;height:48px;font-size:27px}
  .tile.s{width:38px;height:38px;font-size:20px}
}

/* ── セクション ── */
.section{padding:40px 0}
.sec-title{text-align:center;margin:0 0 24px}
.sec-title .en{display:inline-block;font-size:12px;letter-spacing:.2em;color:#fff;background:var(--brown);border-radius:999px;padding:1px 14px}
.sec-title h2{font-size:26px;margin:6px 0 0}
.card{background:var(--card);border:3px solid var(--line);border-radius:var(--radius);padding:20px 22px;box-shadow:var(--shadow)}
.grid{display:grid;gap:16px}
.grid.c3{grid-template-columns:repeat(3,1fr)}
.grid.c2{grid-template-columns:repeat(2,1fr)}
@media (max-width:820px){.grid.c3,.grid.c2{grid-template-columns:1fr}}

/* 遊び方 */
.howto .step{position:relative;padding-top:28px}
.howto .num{position:absolute;top:-18px;left:18px;width:40px;height:40px;border-radius:50%;background:var(--orange);color:#fff;display:grid;place-items:center;font-weight:700;font-size:20px;box-shadow:0 3px 0 #C98318}
.howto h3{margin:0 0 4px;font-size:18px}
.howto p{margin:0}
.mb-wrap{display:flex;justify-content:center;margin:12px 0 4px}
.mb-board-box{position:relative;padding-top:42px}
.mb-wrap>.mini-board{margin-top:42px}
.mini-board{display:grid;grid-template-columns:repeat(3,42px);gap:6px}
.mini-board span{height:42px;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:700;font-size:17px;line-height:1.1}
.mini-board small{font-size:10px;font-weight:700;opacity:.85}
.mb-h{background:#F4C987;color:var(--brown-d)}.mb-l{background:#B9DDF7;color:#2F6FA8}.mb-ok{background:#7CD95A;color:#226B0E}
.mb-from,.mb-to{outline:3px solid #E03A2F;outline-offset:1px}
.mb-arrow{position:absolute;left:0;top:0;width:138px;height:44px;overflow:visible}
/* スクリーンショット */
.shots{display:flex;gap:16px;overflow-x:auto;padding:6px 4px 18px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.shots figure{margin:0;flex:0 0 220px;scroll-snap-align:center}
.shots img{border-radius:20px;border:4px solid #fff;box-shadow:0 8px 20px rgba(74,59,50,.15)}
.shots figcaption{font-size:13px;text-align:center;margin-top:8px;color:var(--sub);font-weight:700}

/* 特長 */
.feature{display:flex;gap:14px;align-items:flex-start}
.feature .ico{flex:0 0 52px;height:52px;border-radius:14px;display:grid;place-items:center;font-size:28px;background:var(--green-l)}
.feature h3{margin:0 0 2px;font-size:17px}
.feature p{margin:0;font-size:15px}
.levels{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:18px}
.levels span{border-radius:999px;padding:4px 14px;font-weight:700;font-size:14px;color:#fff}

/* 隠し要素 */
.secret{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center}
@media (max-width:820px){.secret{grid-template-columns:1fr}}

/* 作者 */
.author{display:flex;gap:18px;align-items:flex-start}
.author .avatar{flex:0 0 96px;width:96px;height:96px;border-radius:50%;border:4px solid #fff;box-shadow:0 4px 0 #D4A800,0 0 0 3px var(--yellow);object-fit:cover}
@media (max-width:560px){.author{flex-direction:column}}

/* お知らせ・ブログ一覧 */
.list{list-style:none;margin:0;padding:0}
.list li{border-bottom:2px dashed var(--line);padding:12px 2px}
.list li:last-child{border-bottom:0}
.list time{display:inline-block;font-size:13px;color:var(--sub);margin-right:10px;font-weight:700}
.tag{display:inline-block;font-size:11px;font-weight:700;color:#fff;border-radius:6px;padding:1px 8px;margin-right:8px;vertical-align:2px}
.tag.news{background:var(--blue)}.tag.update{background:var(--green)}.tag.blog{background:var(--purple)}.tag.important{background:#E0564A}
.list a{color:var(--ink);font-weight:700;text-decoration:none}
.list a:hover{color:var(--green-d);text-decoration:underline}

/* 下層ページ */
.page-head{padding:34px 0 10px;text-align:center}
.page-head h1{font-size:28px;margin:6px 0 4px}
.page-head p{margin:0;color:var(--sub)}
.page-body{max-width:780px;margin:0 auto;padding:16px 16px 48px}
.page-body section{margin:0 0 18px}
.page-body h2{font-size:20px;margin:0 0 10px;color:var(--brown)}
.page-body h3{font-size:16px;margin:16px 0 4px}
.mail{display:inline-block;background:var(--green);color:#fff;text-decoration:none;font-weight:700;padding:10px 20px;border-radius:999px;margin-top:6px;box-shadow:0 4px 0 var(--green-d);word-break:break-all}

/* FAQ */
details.faq{border:3px solid var(--line);border-radius:16px;background:#fff;margin:0 0 10px;padding:0 18px}
details.faq summary{cursor:pointer;font-weight:700;padding:14px 0;list-style:none;position:relative;padding-right:28px}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary::before{content:"Q.";color:var(--green);margin-right:6px}
details.faq summary::after{content:"＋";position:absolute;right:0;top:14px;color:var(--brown)}
details.faq[open] summary::after{content:"－"}
details.faq p{margin:0 0 14px}

/* 更新履歴 */
.release{position:relative;padding-left:26px;border-left:4px solid var(--line);margin-left:10px}
.release:before{content:"";position:absolute;left:-13px;top:22px;width:22px;height:22px;border-radius:50%;background:var(--green);border:4px solid var(--bg)}
.release .card{margin-bottom:18px}
.release h3{margin:0;font-size:19px}
.release .meta{font-size:13px;color:var(--sub);margin:0 0 8px}
.release ul{margin:6px 0 0;padding-left:1.3em}

/* ブログ記事 */
.post-card{display:block;text-decoration:none;color:var(--ink);transition:transform .15s}
.post-card:hover{transform:translateY(-3px)}
.post-card h2,.post-card h3{margin:6px 0;font-size:18px;color:var(--ink)}
.post-card p{margin:0;font-size:14px;color:var(--sub)}
.post-card .eyecatch{font-size:42px;height:90px;border-radius:14px;display:grid;place-items:center;margin-bottom:8px}
article.post h1{font-size:26px;line-height:1.45;margin:8px 0}
article.post .meta{color:var(--sub);font-size:14px;margin-bottom:18px}
article.post h2{font-size:20px;color:var(--brown);border-left:6px solid var(--green);padding-left:10px;margin:28px 0 10px}
article.post p{margin:0 0 14px}
article.post blockquote{margin:0 0 14px;padding:10px 16px;background:var(--green-l);border-radius:12px}
.post-nav{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:28px}

/* フッター */
.site-footer{background:var(--ink);color:#F6EBDD;margin-top:30px;padding:30px 0 34px;font-size:14px}
.site-footer a{color:#FFE28A;text-decoration:none}
.site-footer .wrap{display:grid;gap:14px}
.fnav{display:flex;flex-wrap:wrap;gap:6px 18px}
.credit{font-size:12.5px;opacity:.85;line-height:1.8}
.hazard{height:12px;background:repeating-linear-gradient(-45deg,var(--yellow) 0 14px,#3A2E26 14px 28px)}
@media (max-width:560px){
  .hero h1{font-size:12.5px}
  .sec-title h2{font-size:21px}
  .page-head h1{font-size:23px}
}
