/* ==========================================================================
   期限番 — 共通 CSS（2026-09-08 C 案: クリーム地 + オレンジ + 丸ゴシック見出し）
   ページ固有のスタイルもすべてこのファイルにまとめる（分割しない）
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@700;900&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
    --sw-bg: #fbf7f0;          /* paper */
    --sw-bg2: #f3ebdd;         /* paper2 */
    --sw-surface: #fffdf9;     /* card */
    --sw-text: #33291f;        /* ink */
    --sw-muted: #6b5d52;       /* sub */
    --sw-faint: #a3948a;       /* mute */
    --sw-line: #e8dfd0;
    --sw-accent: #d9773b;      /* brand */
    --sw-accent-d: #b85d24;
    --sw-accent-soft: #fbe9dc;
    --sw-emph: #f2c94c;        /* yellow marker */
    --sw-warn: #c9513f;
    --sw-ok: #4c7a3f;
    --sw-amber: #8a6a10;
    --sw-result: #f3ebdd;
    --sw-result-line: #e6d9bf;
    --sw-radius: 20px;
    --sw-radius-sm: 14px;
    --sw-shadow: 0 0 0 1px var(--sw-line);
    --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
    --font-head: "Zen Maru Gothic", "Zen Kaku Gothic New", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
    margin: 0;
    background: var(--sw-bg);
    color: var(--sw-text);
    font-family: var(--font-body);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--sw-accent-d); }

h1, h2, h3, .site-logo, .days b, .saved b, .dl, .lp-step .no { font-family: var(--font-head); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.u { background: linear-gradient(transparent 60%, var(--sw-emph) 60%, var(--sw-emph) 88%, transparent 88%); }

/* --- ヘッダー / フッター ------------------------------------------------ */
.site-header {
    background: rgba(251, 247, 240, .92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--sw-line);
    position: sticky;
    top: 0;
    z-index: 5;
}

.site-header .inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 900;
    font-size: 22px;
    color: var(--sw-text);
    text-decoration: none;
    letter-spacing: .01em;
}

.site-logo::before {
    content: "";
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--sw-accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>") center/18px no-repeat;
    flex: 0 0 auto;
}

.site-logo span { font-family: var(--font-body); font-size: 12px; color: var(--sw-faint); font-weight: 500; margin-left: 2px; }

.site-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.site-nav a { color: var(--sw-muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--sw-accent-d); }
.site-nav #me { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
@media (max-width: 640px) { .site-nav #me { display: none; } }
.site-nav a.cta {
    background: var(--sw-accent); color: #fff; padding: 7px 16px; border-radius: 999px; font-weight: 700;
}

.site-footer {
    margin-top: 56px;
    padding: 24px 16px 44px;
    border-top: 1px solid var(--sw-line);
    color: var(--sw-faint);
    font-size: 13px;
    text-align: center;
}

.site-footer a { color: var(--sw-muted); margin: 0 9px; text-decoration: none; }

/* --- カード / セクション ------------------------------------------------ */
.card {
    background: var(--sw-surface);
    border-radius: var(--sw-radius);
    box-shadow: var(--sw-shadow);
    padding: 24px 26px;
    margin: 20px 0;
}

@media (max-width: 640px) { .card { padding: 18px 16px; } }

.hero { text-align: center; padding-top: 28px; }
.hero h1 { font-size: 27px; font-weight: 900; margin: 8px 0 10px; line-height: 1.5; }
.hero p.lead { color: var(--sw-muted); font-size: 15px; margin: 0 0 4px; }

.tagline, .eyebrow {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--sw-accent-soft);
    color: var(--sw-accent-d);
    font-size: 13px;
    font-weight: 700;
}

h2 { font-size: 21px; font-weight: 900; margin: 0 0 12px; letter-spacing: .01em; }
h3 { font-size: 16.5px; font-weight: 700; margin: 18px 0 6px; }

.muted { color: var(--sw-muted); font-size: 13.5px; }
.center { text-align: center; }

/* --- フォーム ----------------------------------------------------------- */
label { font-size: 14px; font-weight: 700; display: block; margin: 12px 0 4px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0 14px 6px 0; }

input[type=text], input[type=email], input[type=date], input[type=number], select, textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 16px;
    color: var(--sw-text);
    background: #fff;
    border: 2px solid var(--sw-line);
    border-radius: var(--sw-radius-sm);
}

input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sw-accent); }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; min-width: 0; }

.btn {
    display: inline-block;
    padding: 11px 22px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--sw-accent);
    border: 0;
    border-radius: var(--sw-radius-sm);
    box-shadow: 0 3px 0 var(--sw-accent-d);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    line-height: 1.5;
}

.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sw-accent-d); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.sec { background: var(--sw-surface); color: var(--sw-text); border: 2px solid var(--sw-line); box-shadow: none; padding: 9px 20px; }
.btn.sec:active { transform: none; }
.btn.sm { padding: 5px 12px; font-size: 13px; font-weight: 500; border-radius: 999px; box-shadow: none; }
.btn.sm:not(.sec) { background: var(--sw-accent); }
.btn.wide { display: block; width: 100%; }
.btn.danger { background: var(--sw-warn); box-shadow: 0 3px 0 #9d3a2b; }

.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.quick button { padding: 4px 12px; font-size: 13px; border-radius: 999px; }

.note {
    border-left: 4px solid var(--sw-emph);
    background: var(--sw-result);
    padding: 10px 16px;
    margin: 14px 0;
    font-size: 14px;
    border-radius: 0 var(--sw-radius-sm) var(--sw-radius-sm) 0;
}

.msg { margin: 10px 0 0; font-size: 14px; }
.msg.ok { color: var(--sw-ok); font-weight: 700; }
.msg.ng { color: var(--sw-warn); font-weight: 700; }

/* --- 旧 3 点カード / 使い方（記事・about で使う可能性があるので残す） ------ */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.point { background: var(--sw-surface); box-shadow: var(--sw-shadow); border-radius: var(--sw-radius); padding: 16px; }
.point b { display: block; font-size: 15px; margin-bottom: 4px; }
.point p { margin: 0; font-size: 13px; color: var(--sw-muted); line-height: 1.7; }

.steps { counter-reset: st; list-style: none; padding: 0; margin: 12px 0 0; }
.steps li { counter-increment: st; position: relative; padding: 6px 0 6px 36px; font-size: 15px; }
.steps li::before {
    content: counter(st);
    position: absolute; left: 0; top: 8px;
    width: 26px; height: 26px; line-height: 26px; text-align: center;
    background: var(--sw-accent); color: #fff; border-radius: 50%;
    font-size: 13px; font-weight: 700; font-family: var(--font-head);
}

@media (max-width: 640px) { .points { grid-template-columns: 1fr; } }

details { border: 2px solid var(--sw-line); border-radius: var(--sw-radius-sm); padding: 10px 16px; margin: 8px 0; background: var(--sw-surface); }
details summary { cursor: pointer; font-weight: 700; font-size: 15px; }
details p { margin: 8px 0 0; font-size: 14px; color: var(--sw-muted); }

/* --- トップ（LP） ------------------------------------------------------- */
.lp-hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 48px;
}

.lp-hero h1 { font-size: 44px; line-height: 1.32; margin: 14px 0 16px; font-weight: 900; }
.lp-hero .lead { font-size: 17px; color: var(--sw-muted); margin: 0 0 24px; }
.lp-hero .tiny { font-size: 12.5px; color: var(--sw-faint); margin: 10px 0 0; }
.lp-hero .tiny b { color: var(--sw-muted); font-weight: 500; }

.lp-form { display: flex; gap: 10px; max-width: 460px; }
.lp-form input { flex: 1 1 auto; height: 54px; }
.lp-form .btn { height: 54px; padding: 0 24px; white-space: nowrap; flex: 0 0 auto; display: inline-flex; align-items: center; }

/* スマホの実物イメージ */
.phone { width: 320px; margin: 0 auto; background: #3a2f27; border-radius: 42px; padding: 14px; box-shadow: 0 30px 60px -20px rgba(58, 47, 39, .5); position: relative; }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #3a2f27; border-radius: 0 0 18px 18px; z-index: 2; }
.screen { background: var(--sw-bg); border-radius: 30px; overflow: hidden; height: 600px; font-size: 13px; }
.screen .sh { background: var(--sw-surface); padding: 44px 18px 12px; border-bottom: 1px solid var(--sw-line); }
.screen .sh b { font-size: 16px; font-weight: 900; font-family: var(--font-head); }
.screen .sh span { float: right; font-size: 11px; color: var(--sw-faint); margin-top: 4px; }
.screen .sum { display: flex; gap: 8px; padding: 12px 14px; }
.screen .sum div { flex: 1; background: var(--sw-surface); border: 1px solid var(--sw-line); border-radius: 14px; padding: 8px 10px; }
.screen .sum small { display: block; color: var(--sw-faint); font-size: 10.5px; }
.screen .sum strong { font-size: 17px; font-weight: 900; font-family: var(--font-head); }
.screen .sum .r strong { color: var(--sw-warn); }
.screen .list { padding: 0 14px; }
.screen .it { background: var(--sw-surface); border: 1px solid var(--sw-line); border-radius: 16px; padding: 11px 12px; margin-bottom: 9px; display: flex; justify-content: space-between; align-items: center; }
.screen .it .n { font-weight: 700; font-size: 13.5px; }
.screen .it .k { display: block; color: var(--sw-faint); font-size: 10.5px; font-weight: 400; }
.dl { font-weight: 900; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: #eaf2e5; color: var(--sw-ok); white-space: nowrap; }
.dl.w { background: #fdf1cf; color: var(--sw-amber); }
.dl.d { background: #fbe1dc; color: var(--sw-warn); }
.screen .fab { position: absolute; right: 26px; bottom: 34px; width: 52px; height: 52px; border-radius: 50%; background: var(--sw-accent); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 300; box-shadow: 0 8px 20px rgba(217, 119, 59, .45); }

.lp-strip { background: var(--sw-surface); border-top: 1px solid var(--sw-line); border-bottom: 1px solid var(--sw-line); }
.lp-strip .wrap-wide { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 12px 24px; padding: 18px 20px; }
.lp-strip div { font-size: 14px; font-weight: 700; color: var(--sw-muted); display: flex; align-items: center; gap: 8px; }
.lp-strip i { width: 20px; height: 20px; border-radius: 50%; background: var(--sw-accent); color: #fff; display: inline-grid; place-items: center; font-size: 11px; font-style: normal; font-weight: 900; }

.lp-section { padding: 64px 0; }
.lp-section.alt { background: var(--sw-bg2); }
.lp-section h2 { font-size: 30px; text-align: center; margin: 0 0 10px; }
.lp-section .sub { color: var(--sw-muted); text-align: center; margin: 0 0 40px; }

.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-step { padding: 28px 24px 24px; border-radius: 24px; background: var(--sw-surface); box-shadow: var(--sw-shadow); }
.lp-step .no { width: 44px; height: 44px; border-radius: 50%; background: var(--sw-accent); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 18px; margin-bottom: 14px; }
.lp-step b { display: block; font-size: 17px; margin-bottom: 6px; }
.lp-step p { margin: 0; color: var(--sw-muted); font-size: 14.5px; }

.lp-mail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mail { background: #fff; border-radius: 20px; box-shadow: 0 20px 50px -20px rgba(58, 47, 39, .35), 0 0 0 1px var(--sw-line); overflow: hidden; font-size: 14px; }
.mail .top { background: var(--sw-surface); border-bottom: 1px solid var(--sw-line); padding: 12px 18px; font-size: 12.5px; color: var(--sw-muted); }
.mail .top b { display: block; color: var(--sw-text); font-size: 14px; }
.mail .body { padding: 18px; }
.mail .mrow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1.5px dashed var(--sw-line); }
.mail .mrow:last-of-type { border: 0; }
.mail .btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.mail .btns span { font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--sw-line); color: var(--sw-muted); }
.mail .btns span:first-child { background: var(--sw-accent); border-color: var(--sw-accent); color: #fff; font-weight: 700; }
.lp-mail h2 { text-align: left; }
.lp-mail .txt p { color: var(--sw-muted); margin: 0 0 14px; }
.lp-mail .txt ul { margin: 0; padding-left: 0; list-style: none; }
.lp-mail .txt li { padding-left: 28px; position: relative; margin-bottom: 8px; font-weight: 500; }
.lp-mail .txt li::before { content: "✓"; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--sw-accent); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 900; }

.lp-cta { background: var(--sw-text); color: var(--sw-bg); border-radius: 32px; padding: 52px 28px; text-align: center; position: relative; overflow: hidden; }
.lp-cta::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 240px; height: 240px; border-radius: 50%; background: var(--sw-accent); opacity: .3; }
.lp-cta h2 { color: var(--sw-bg); }
.lp-cta p { color: #cbbfb2; margin: 0; position: relative; z-index: 1; }
.lp-cta .btn { position: relative; z-index: 1; margin-top: 22px; background: var(--sw-emph); color: var(--sw-text); box-shadow: 0 3px 0 #c9a531; padding: 13px 30px; font-size: 16px; }

.lp-narrow { max-width: 760px; margin: 0 auto; }
.lp-narrow h2 { text-align: left; font-size: 22px; }

@media (max-width: 860px) {
    .lp-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 28px; padding-bottom: 24px; }
    .lp-hero h1 { font-size: 31px; }
    .lp-form { flex-direction: column; }
    .lp-steps, .lp-mail { grid-template-columns: 1fr; }
    .lp-section { padding: 44px 0; }
    .lp-section h2 { font-size: 24px; }
    .phone { width: 290px; }
    .screen { height: 540px; }
    .site-nav:has(a.cta) a:not(.cta) { display: none; }
}

/* --- 一覧（/app） ------------------------------------------------------- */
.tabs { display: flex; gap: 6px; margin: 0 0 14px; background: var(--sw-bg2); padding: 4px; border-radius: 999px; }
.tabs button {
    flex: 1 1 auto;
    padding: 8px 14px; font-family: inherit; font-size: 14px; font-weight: 700;
    background: none; border: 0; border-radius: 999px;
    color: var(--sw-muted); cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--sw-text); background: var(--sw-surface); box-shadow: 0 1px 2px rgba(58, 47, 39, .12); }

.item {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--sw-surface);
    border-radius: 18px;
    box-shadow: var(--sw-shadow);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.item.done { opacity: .6; }

.item-main { flex: 1 1 auto; min-width: 0; }
.item-name { font-size: 16px; font-weight: 700; margin: 0 0 2px; overflow-wrap: anywhere; }
.item-meta { font-size: 12px; color: var(--sw-faint); display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; }
.item-memo { font-size: 13px; color: var(--sw-muted); margin: 4px 0 0; overflow-wrap: anywhere; }

.days { flex: 0 0 auto; text-align: center; min-width: 68px; padding: 6px 8px; border-radius: 14px; background: #eaf2e5; color: var(--sw-ok); }
.days b { display: block; font-size: 21px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.days small { font-size: 11px; opacity: .8; }
.days.soon { background: #fbe1dc; color: var(--sw-warn); }
.days.near { background: #fdf1cf; color: var(--sw-amber); }

.item-act { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }

.kind-tag {
    display: inline-block; padding: 0 9px; border-radius: 999px;
    background: var(--sw-accent-soft); color: var(--sw-accent-d); font-size: 11px; font-weight: 700; line-height: 1.8;
}

.saved {
    background: var(--sw-result);
    border-radius: var(--sw-radius-sm);
    padding: 12px 18px;
    font-size: 14px;
    margin: 0 0 14px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}

.saved b { font-size: 21px; color: var(--sw-accent-d); font-variant-numeric: tabular-nums; }

.empty { color: var(--sw-faint); font-size: 14px; text-align: center; padding: 28px 0; }

@media (max-width: 640px) {
    .item { flex-wrap: wrap; }
    .item-act { flex-direction: row; width: 100%; }
    .item-act .btn { flex: 1 1 auto; }
}

/* --- 記事 --------------------------------------------------------------- */
.post { background: var(--sw-surface); border-radius: var(--sw-radius); box-shadow: var(--sw-shadow); padding: 28px 32px 32px; margin: 20px 0; }
.post h1 { font-size: 26px; line-height: 1.45; margin: 0 0 6px; }
.post h2 { font-size: 20px; margin: 32px 0 10px; padding: 0 0 8px; border-bottom: 3px solid var(--sw-emph); display: inline-block; }
.post h3 { font-size: 17px; margin: 22px 0 6px; }
.post table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 12px 0; }
.post th, .post td { border: 1px solid var(--sw-line); padding: 8px 10px; text-align: left; }
.post th { background: var(--sw-bg2); font-weight: 700; white-space: nowrap; }
.post ul, .post ol { padding-left: 1.4em; }
.post .table-wrap { overflow-x: auto; }
.post-list a { display: block; padding: 14px 0; border-bottom: 1.5px dashed var(--sw-line); text-decoration: none; color: var(--sw-text); }
.post-list a:last-child { border-bottom: 0; }
.post-list a:hover b { color: var(--sw-accent-d); }
.post-list b { display: block; font-size: 16px; }
.post-list span { font-size: 13px; color: var(--sw-muted); }

@media (max-width: 640px) { .post { padding: 18px 16px 22px; } .post h1 { font-size: 21px; } }

/* --- 完了画面（メールのボタンから来る 1 枚もの） ------------------------ */
.done-box { max-width: 520px; margin: 60px auto; text-align: center; }
.done-box .card { padding: 36px 24px; }
.done-box h1 { font-size: 22px; margin: 0 0 10px; }
