*{box-sizing:border-box}
:root{--bg:#f4f6f8;--surface:#fff;--text:#222;--muted:#68707a;--border:#d9dee4;--primary:#1f4f75;--danger:#b42318;--success:#117a46}
html{font-size:16px}
body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;line-height:1.7}
a{color:var(--primary)}
.container{width:min(1040px,calc(100% - 30px));margin:0 auto}
.site-header{background:#fff;border-bottom:1px solid var(--border)}
.header-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.site-logo{font-size:24px;font-weight:800;text-decoration:none;color:#18222c}
.site-nav{display:flex;align-items:center;gap:18px}
.site-nav a{text-decoration:none;font-weight:700}
.main-content{padding:34px 0 50px}
.site-footer{border-top:1px solid var(--border);background:#fff;padding:28px 0;text-align:center;color:var(--muted)}
.footer-nav{display:flex;justify-content:center;gap:20px;margin-bottom:10px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:26px;margin-bottom:20px;box-shadow:0 3px 12px rgba(20,30,40,.04)}
.card h1,.card h2{margin-top:0}
.page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.page-header h1{margin:0;font-size:30px}
.button{display:inline-block;border:0;border-radius:7px;background:var(--primary);color:#fff;text-decoration:none;padding:12px 20px;font-weight:700;cursor:pointer}
.button:hover{opacity:.88}
.button-small{padding:8px 14px}
.button-danger{background:var(--danger)}
.button-secondary{background:#5e6873}
.form-group{margin-bottom:22px}
label,.label{display:block;font-weight:700;margin-bottom:7px}
.required{font-size:12px;color:var(--danger);margin-left:5px}
.private{font-size:12px;color:var(--muted);margin-left:5px}
input[type=text],input[type=email],input[type=number],input[type=password],select,textarea{width:100%;border:1px solid #b9c1ca;border-radius:7px;padding:11px 12px;background:#fff;font:inherit}
textarea{min-height:190px;resize:vertical}
.inline-options{display:flex;flex-wrap:wrap;gap:12px 22px}
.inline-options label{display:inline-flex;align-items:center;gap:7px;font-weight:400;margin:0}
.unit-field{display:flex;align-items:center;gap:10px}
.unit-field input{flex:1}
.help{font-size:13px;color:var(--muted);margin:7px 0 0}
.alert{padding:14px 17px;border-radius:8px;margin-bottom:20px}
.alert-error{background:#fff0ef;border:1px solid #f0aaa4;color:#8f1811}
.alert-success{background:#edf9f2;border:1px solid #a8d8bc;color:#0d6037}
.alert ul{margin:0;padding-left:22px}
.post-list{display:grid;gap:16px}
.post-item{background:#fff;border:1px solid var(--border);border-radius:10px;padding:21px}
.post-item h2{font-size:20px;margin:0 0 8px}
.post-item h2 a{text-decoration:none}
.meta{display:flex;flex-wrap:wrap;gap:8px 16px;color:var(--muted);font-size:14px}
.post-body{white-space:pre-wrap;word-break:break-word}
.data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-top:1px solid var(--border);border-left:1px solid var(--border);margin:20px 0}
.data-row{display:grid;grid-template-columns:130px 1fr;border-right:1px solid var(--border);border-bottom:1px solid var(--border)}
.data-label{background:#f5f7f9;padding:10px;font-weight:700}
.data-value{padding:10px;word-break:break-word}
.empty{text-align:center;padding:50px 20px;color:var(--muted)}
.status{display:inline-block;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700;background:#edf1f5;color:#4c5966}
.delete-box{margin-top:28px;border-top:1px solid var(--border);padding-top:24px}
@media(max-width:700px){
.header-inner,.page-header{align-items:flex-start;flex-direction:column}
.site-nav{width:100%;justify-content:space-between}
.card{padding:19px}
.page-header h1{font-size:25px}
.data-grid{grid-template-columns:1fr}
}


/* 固定ページ */
.legal-page{max-width:880px;margin:0 auto}
.legal-page h1{font-size:32px;margin-bottom:8px}
.legal-page h2{font-size:22px;margin:34px 0 12px;padding-bottom:8px;border-bottom:1px solid var(--border)}
.legal-page h3{font-size:18px;margin:26px 0 8px}
.legal-page p,.legal-page li{line-height:1.9}
.legal-page ul,.legal-page ol{padding-left:24px}
.legal-page .updated-at{color:var(--muted);font-size:14px;margin-bottom:26px}
.legal-page .legal-notice{background:#fff8e7;border:1px solid #e5cf95;border-radius:9px;padding:16px 18px;margin:20px 0}
.footer-nav{flex-wrap:wrap}
.nav-toggle{display:none;border:1px solid var(--border);background:#fff;border-radius:7px;padding:8px 12px;font:inherit;font-weight:700;color:var(--text);cursor:pointer}

@media(max-width:700px){
    .nav-toggle{display:block;align-self:flex-end}
    .site-nav{display:none;flex-direction:column;align-items:stretch;width:100%;gap:0;border-top:1px solid var(--border);padding-top:8px}
    .site-nav.is-open{display:flex}
    .site-nav a{padding:11px 4px}
    .site-nav .button{text-align:center;margin-top:5px}
    .footer-nav{gap:10px 16px}
    .legal-page h1{font-size:27px}
}

/* SEO強化トップページ */
.home-hero{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);gap:28px;align-items:stretch;margin-bottom:28px}
.home-hero-content{padding:44px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(135deg,#fff 0%,#f3f8ff 100%);box-shadow:0 16px 42px rgba(23,58,99,.08)}
.eyebrow{margin:0 0 8px;color:#346aa0;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.home-hero h1{max-width:820px;margin:0;font-size:clamp(32px,4.7vw,54px);line-height:1.22;letter-spacing:-.025em}
.home-hero-lead{max-width:780px;margin:22px 0 0;font-size:18px;line-height:1.9;color:#435367}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.button-large{padding:13px 22px;font-size:16px}
.hero-points{display:flex;flex-wrap:wrap;gap:10px 24px;margin:24px 0 0;padding:0;list-style:none;color:#435367;font-size:14px}
.hero-points li::before{content:'✓';margin-right:7px;color:#237a57;font-weight:900}
.hero-safety-card{padding:28px;border-radius:18px;background:#172c45;color:#fff;box-shadow:0 16px 42px rgba(23,44,69,.18)}
.hero-safety-card h2{margin-top:0;font-size:22px}
.hero-safety-card ul{padding-left:21px;line-height:1.85}
.hero-safety-card a{color:#fff;font-weight:800;text-underline-offset:4px}
.fake-site-alert{display:grid;grid-template-columns:48px 1fr;gap:18px;margin:0 0 34px;padding:24px;border:1px solid #e0a8a8;border-radius:14px;background:#fff4f4}
.alert-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#b83030;color:#fff;font-size:24px;font-weight:900}
.fake-site-alert h2{margin:0 0 10px;color:#9d2525;font-size:22px}
.fake-site-alert p{margin:8px 0;line-height:1.8}
.official-url{font-size:17px;font-weight:800;overflow-wrap:anywhere}
.home-section{margin:52px 0;padding:38px;border:1px solid var(--border);border-radius:16px;background:#fff}
.section-heading{margin-bottom:25px}
.section-heading h2,.page-header h2{margin:0;font-size:clamp(26px,3vw,36px);line-height:1.35}
.section-heading>p:last-child{color:var(--muted)}
.centered{text-align:center}
.content-columns{display:grid;grid-template-columns:1fr 1fr;gap:34px}
.content-columns p{margin:0 0 16px;line-height:1.95}
.steps-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0;padding:0;list-style:none;counter-reset:steps}
.steps-grid li{position:relative;padding:24px 20px;border:1px solid var(--border);border-radius:13px;background:#fafcff}
.step-number{display:grid;place-items:center;width:36px;height:36px;margin-bottom:16px;border-radius:50%;background:#214f7d;color:#fff;font-weight:900}
.steps-grid h3{margin:0 0 8px;font-size:18px}
.steps-grid p{margin:0;color:var(--muted);line-height:1.75}
.safety-section{background:#f8fbff}
.safety-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.safety-grid article{padding:24px;border:1px solid #d7e1ec;border-radius:13px;background:#fff}
.safety-grid h3{margin:0 0 10px;font-size:19px}
.safety-grid p{margin:0;line-height:1.8;color:#4b5d70}
.center-action{text-align:center;margin:26px 0 0}
.latest-posts-section{scroll-margin-top:20px}
.latest-posts-section .post-item h3{margin-top:0;font-size:20px}
.text-link{font-weight:800}
.prefecture-list{display:flex;flex-wrap:wrap;gap:9px;justify-content:center}
.prefecture-list span{padding:7px 11px;border:1px solid var(--border);border-radius:999px;background:#f7f9fc;font-size:13px}
.faq-list{max-width:900px;margin:0 auto}
.faq-list details{border-top:1px solid var(--border)}
.faq-list details:last-child{border-bottom:1px solid var(--border)}
.faq-list summary{padding:20px 4px;cursor:pointer;font-weight:800;list-style:none}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:'＋';float:right;color:#346aa0}
.faq-list details[open] summary::after{content:'－'}
.faq-list p{margin:0;padding:0 4px 20px;line-height:1.85;color:#4b5d70}
.home-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:52px 0 18px;padding:34px 38px;border-radius:16px;background:#172c45;color:#fff}
.home-cta h2{margin:0 0 8px;font-size:28px}
.home-cta p{margin:0;color:#dce6ef}
.home-cta .button{flex:none;background:#fff;color:#172c45}

@media(max-width:900px){
    .home-hero{grid-template-columns:1fr}
    .steps-grid{grid-template-columns:repeat(2,1fr)}
    .safety-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
    .home-hero-content,.home-section{padding:25px 20px}
    .home-hero h1{font-size:34px}
    .home-hero-lead{font-size:16px}
    .fake-site-alert{grid-template-columns:1fr;padding:20px}
    .content-columns,.steps-grid{grid-template-columns:1fr}
    .home-cta{display:block;padding:27px 22px}
    .home-cta .button{display:block;margin-top:20px;text-align:center}
    .page-header{align-items:flex-start}
}


/* 投稿一覧・使い方 */
.list-page-intro{margin-bottom:26px;padding:30px 32px;border:1px solid var(--border);border-radius:14px;background:#fff}
.list-page-intro h1{margin:4px 0 10px;font-size:34px}
.list-page-intro p{max-width:720px;line-height:1.8}
.list-page-intro .button{margin-top:8px}
.pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:30px 0 12px}
.pagination a,.pagination .current{display:inline-flex;min-width:42px;height:42px;align-items:center;justify-content:center;padding:0 12px;border:1px solid var(--border);border-radius:8px;background:#fff;font-weight:800;text-decoration:none}
.pagination .current{border-color:#172c45;background:#172c45;color:#fff}
.pagination-ellipsis{padding:0 3px}
.pagination-summary{text-align:center;color:var(--muted);font-size:14px}
.lead-text{font-size:17px;line-height:1.9}
.howto-steps{list-style:none;counter-reset:howto;padding:0;margin:22px 0}
.howto-steps li{counter-increment:howto;position:relative;margin-bottom:14px;padding:18px 18px 18px 66px;border:1px solid var(--border);border-radius:11px;background:#fff}
.howto-steps li::before{content:counter(howto);position:absolute;left:18px;top:18px;display:flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:50%;background:#172c45;color:#fff;font-weight:800}
.howto-steps strong,.howto-steps span{display:block}
.howto-steps span{margin-top:5px;line-height:1.75;color:var(--muted)}
@media(max-width:700px){.list-page-intro{padding:24px 20px}.list-page-intro h1{font-size:29px}.pagination a,.pagination .current{min-width:38px;height:38px;padding:0 10px}}

/* メンテナンス画面 */
.maintenance-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f3f5f7}
.maintenance-box{width:min(620px,100%);padding:42px 30px;background:#fff;border:1px solid #d9dee3;border-radius:14px;text-align:center;box-shadow:0 12px 35px rgba(0,0,0,.08)}
.maintenance-box h1{margin-top:0}

/* LINE contact fields */
.optional{display:inline-block;margin-left:.45rem;padding:.12rem .45rem;border-radius:999px;background:#eef2f7;color:#52606d;font-size:.75rem;font-weight:700}
.line-contact-box{margin:1.5rem 0;padding:1.25rem;border:1px solid #d9e8dd;border-radius:14px;background:#f7fcf8}
.line-contact-box h2{margin-top:0}
.line-id-row{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin:.75rem 0 1rem}
.line-contact-label{display:block;font-size:.9rem;font-weight:700;color:#52606d}
.line-id-row strong{font-size:1.15rem;overflow-wrap:anywhere}
.line-qr-wrap{margin-top:1rem}
.line-qr-image{display:block;width:min(260px,100%);height:auto;margin-top:.5rem;border:1px solid #d8dee6;border-radius:10px;background:#fff;padding:8px}
