@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&display=swap');

/* =========================
   ベース
========================= */

body {
    font-family: var(--rounded-font);
    background:
        linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .88)),
        #f7f3e8;
    margin: 0;
    color: #231f20;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

:root {
    --rounded-font:
        "M PLUS Rounded 1c",
        "Hiragino Maru Gothic ProN",
        "Hiragino Maru Gothic Pro",
        "Yu Gothic Rounded",
        "Yu Gothic",
        "Yu Gothic UI",
        "Kosugi Maru",
        "Noto Sans JP",
        system-ui,
        sans-serif;
    --page-width: 1080px;
    --ink: #231f20;
    --line: #4d4a45;
    --paper: #fffef8;
    --sun: #fff08a;
    --cream: #fff5d7;
    --sky: #d7edf2;
    --mint: #c9dfae;
    --peach: #f4c6bc;
}

/* =========================
   共通コンテナ
========================= */

.container {
    max-width: var(--page-width);
    width: calc(100% - 32px);
    margin: 34px auto;
    background: var(--paper);
    padding: 28px;
    border: 1px solid rgba(77, 74, 69, .55);
    border-radius: 0;
    text-align: center;
    box-shadow: 0 12px 34px rgba(35, 31, 32, .08);
    position: relative;
}

h1 {
    margin-top: 0;
    font-size: clamp(42px, 8vw, 92px);
    line-height: 1;
    letter-spacing: 0;
    font-weight: 800;
}

.subtitle {
    color: var(--ink);
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    writing-mode: horizontal-tb;
    position: static;
    letter-spacing: 0;
}

.site-masthead {
    min-height: 190px;
    padding: 34px 28px 24px;
    position: relative;
    border-bottom: 1px solid rgba(77, 74, 69, .7);
    overflow: hidden;
}

.site-masthead h1 {
    margin: 34px 0 10px;
    font-family: var(--rounded-font);
    text-align: center;
    text-shadow: 2px 2px 0 rgba(255, 240, 138, .85);
}

.cover-copy {
    margin: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.cover-copy-mobile {
    display: none;
}

/* =========================
   ホームメニュー
========================= */

.menu {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    justify-content: center;
    margin: 20px 0 28px;
    border: 1px solid rgba(77, 74, 69, .7);
    background: rgba(215, 237, 242, .58);
}

.menu a {
    display: flex;
    min-width: 0;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    border-right: 1px solid rgba(35, 31, 32, .24);
    border-radius: 0;
    font-weight: bold;
    font-size: 13px;
    line-height: 1.35;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menu a:last-child {
    border-right: 0;
}

.menu a:hover,
.menu a.active {
    transform: translateY(-1px);
    background: rgba(255, 240, 138, .72);
    box-shadow: none;
}

.content {
    text-align: left;
}

.home-cover {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr);
    gap: 24px;
}

.home-photo {
    min-height: 470px;
    padding: 54px 36px;
    color: #fff;
    background:
        linear-gradient(rgba(22, 27, 28, .14), rgba(22, 27, 28, .22)),
        linear-gradient(135deg, #c9eef3 0 18%, #f6f0d7 18% 28%, #7fc2c7 28% 45%, #f7cda7 45% 63%, #7eaa6c 63% 100%);
    border: 1px solid rgba(77, 74, 69, .72);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-photo::before,
.home-photo::after {
    content: "";
    position: absolute;
    border: 2px solid rgba(255, 255, 255, .75);
    inset: 54px 34px auto;
    height: 96px;
}

.home-photo::after {
    inset: auto 0 0;
    height: 42%;
    border: 0;
    background: rgba(255, 255, 255, .24);
}

.home-photo h2 {
    margin: 0 0 18px;
    position: relative;
    z-index: 1;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .32);
}

.home-photo p {
    max-width: 520px;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 700;
    line-height: 1.8;
}

.photo-label {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, .92);
    color: var(--line);
    font-weight: 800;
}

.home-columns {
    display: grid;
    gap: 18px;
}

.paper-note {
    min-height: 220px;
    padding: 28px 26px;
    background: var(--cream);
    border: 1px solid rgba(77, 74, 69, .72);
    box-shadow: 0 8px 22px rgba(35, 31, 32, .06);
    position: relative;
}

.paper-note::before {
    content: "";
    position: absolute;
    right: 18px;
    top: -2px;
    width: 86px;
    height: 76px;
    background: var(--sun);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

.paper-note-blue {
    background: #f8fbff;
}

.note-tag {
    display: inline-block;
    margin-bottom: 22px;
    padding: 6px 12px;
    background: var(--sun);
    font-size: 13px;
    font-weight: 800;
}

.paper-note h3 {
    margin: 0 0 14px;
    font-size: 24px;
}

.paper-note p {
    margin: 0;
    line-height: 1.8;
}

a,
button,
input,
select,
textarea {
    max-width: 100%;
}

a {
    color: #116b83;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.btn,
.btn-ghost {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 2px solid var(--line);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 3px 3px 0 rgba(35, 31, 32, .13);
}

.btn:hover,
.btn-ghost:hover {
    background: var(--sun);
}

.header .container,
.header-inner {
    margin-top: 24px;
    margin-bottom: 18px;
}

.header .logo,
.logo {
    margin: 0 0 12px;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.25;
}

.nav {
    display: flex;
    justify-content: center;
}

button,
select,
input,
textarea {
    font: inherit;
}

/* =========================
   掲示板
========================= */

.board {
    text-align: left;
}

.category-filter {
    position: relative;
    display: inline-block;
    width: min(100%, 360px);
    margin: 16px 0;
}

.category-filter-trigger {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    border: 2px solid var(--line);
    background: #f8fbff;
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}

.category-filter-trigger::-webkit-details-marker {
    display: none;
}

.category-filter-trigger::after {
    content: "▼";
    font-size: 11px;
    line-height: 1;
}

.category-filter[open] .category-filter-trigger::after {
    content: "▲";
}

.category-filter-current {
    min-width: 0;
    color: #5f7f43;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-filter-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    width: min(88vw, 360px);
    gap: 8px;
    padding: 10px;
    border: 2px solid var(--line);
    background: #fff;
    box-shadow: 6px 6px 0 rgba(31, 47, 42, 0.14);
}

.category-filter-menu a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fbff;
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
}

.category-filter-menu a:hover,
.category-filter-menu a.active {
    background: var(--sun);
}

.category-filter-menu a.active::after {
    content: "選択中";
    color: #5f7f43;
    font-size: 12px;
    font-weight: 900;
}

.new-post-actions {
    text-align: right;
    margin-bottom: 24px;
}

.new-post-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #ffecd2;
    border: 2px solid var(--line);
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
    color: #5a2a00;
}

.demo-banner {
    display: grid;
    gap: 6px;
    margin: 0 0 24px;
    padding: 16px 18px;
    border: 2px solid var(--line);
    background: var(--cream);
    box-shadow: 4px 4px 0 rgba(35, 31, 32, .12);
    line-height: 1.7;
}

.demo-banner strong {
    font-size: 16px;
}

.demo-banner span {
    color: #555;
    font-size: 14px;
}

.demo-banner-large {
    margin-bottom: 22px;
}

.board-item {
    margin-bottom: 24px;
    padding: 22px;
    border: 2px solid var(--line);
    background: #fff;
}

.board-item .category {
    display: inline-block;
    background: var(--sun);
    color: var(--ink);
    font-size: 13px;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 0;
    margin-bottom: 10px;
}

.board-item .title {
    font-size: 22px;
    font-weight: bold;
    margin: 6px 0 14px;
    line-height: 1.4;
}

.post-meta,
.reply-meta {
    margin: -6px 0 12px;
    color: #777;
    font-family: var(--rounded-font);
    font-size: 12px;
}

.reply-meta {
    margin: 8px 0 0;
}

.board-item .body {
    background: #fffdf3;
    padding: 18px 20px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    width: 100%;
}

/* =========================
   返信
========================= */

.reply {
    background: #f8fbff;
    padding: 14px 18px;
    margin: 10px 0;
    border-radius: 0;
    font-size: 15px;
    line-height: 1.6;
    width: 100%;
    border: 1px solid var(--line);
}

/* =========================
   返信入力（IME安全）
========================= */

.board-item .form-textarea {
    display: block;
    width: 100%;
    padding: 14px 16px;
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.6;
    font-family: var(--rounded-font);
    border-radius: 12px;
    border: 2px solid var(--line);
    background: #fffdf9;
    color: #111;
    resize: none;
    transform: none !important;
    letter-spacing: normal;
    -webkit-text-size-adjust: 100%;
}

.board-item .form-textarea:focus {
    outline: none;
    border-color: #6d9bc2;
    background: #ffffff;
}

.board-empty {
    background: var(--cream);
    padding: 24px;
    border: 2px solid var(--line);
    border-radius: 0;
    text-align: center;
    color: #777;
    font-size: 15px;
}

/* =========================
   スマホ
========================= */

@media (max-width: 600px) {

    .board-item .body,
    .reply,
    .board-item .form-textarea {
        max-width: 100%;
    }
}

/* =========================
   新規投稿
========================= */

.post-container {
    text-align: left;
}

.post-container .section-title {
    font-size: 22px;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line);
    color: var(--ink);
    font-weight: bold;
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: bold;
    color: var(--ink);
}

.form-select,
.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 0;
    border: 2px solid var(--line);
    font-size: 15px;
    background: #fff;
}

.title-input {
    font-size: 16px;
}

.form-textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: 0;
    border: 2px solid var(--line);
    font-size: 16px;
    line-height: 1.7;
    background: #f4f4f4;
    resize: none;
}

.form-actions {
    margin-top: 10px;
    text-align: right;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn-primary.btn-large {
    padding: 14px 22px;
    border-radius: 0;
    background: var(--sun);
    border: 2px solid var(--line);
    font-size: 15px;
    font-weight: bold;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 3px 3px 0 rgba(35, 31, 32, .15);
}

/* =========================
   投稿︙メニュー
========================= */

.post-menu {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.post-menu-trigger {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 4px 10px;
    font-size: 22px;
    cursor: pointer;
    color: #555;
}

.post-menu-content {
    display: none;
    position: absolute;
    right: 0;
    top: 36px;
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 0;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, .12);
    padding: 10px;
    z-index: 1000;
}

.post-menu-help {
    display: none;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.mobile-post-actions {
    display: none;
}

.post-menu.open .post-menu-content {
    display: block;
}

.post-menu-content form {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.post-key-form label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-key-form label span {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.post-menu-content form:last-child {
    margin-bottom: 0;
}

.post-menu-content input[type="password"] {
    width: 90px;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 8px;
}

.post-menu-content button {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 999px;
}

.post-menu-content .delete-btn {
    color: #ff4d4d;
    border-color: #ffb3b3;
}

/* PC表示 */

@media (min-width: 601px) {
    .post-menu {
        gap: 8px;
    }

    .post-menu-trigger {
        display: none !important;
    }

    .post-menu-content {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 8px;
    }

    .post-menu-help {
        display: none !important;
    }

    .mobile-post-actions {
        display: none !important;
    }

    .post-menu-content form {
        margin: 0;
    }
}

/* =========================
   マップページ
========================= */

.map-container {
    max-width: var(--page-width);
    margin: 24px auto;
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 6px 6px 0 rgba(35, 31, 32, .12);
}

#map-wrap {
    position: relative;
}

#map {
    width: 100%;
    height: 420px;
    min-height: 320px;
}

/* =========================
   マップ操作
========================= */

.map-controls {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1000;
    background: #ffffff;
    padding: 10px 14px;
    border: 2px solid var(--line);
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.16);
    font-size: 14px;
    text-align: left;
}

.map-controls label {
    display: block;
    cursor: pointer;
    margin-bottom: 6px;
}

.map-controls input {
    margin-right: 6px;
}

.map-controls select {
    max-width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    font-size: 14px;
}

/* =========================
   一覧
========================= */

.place-list {
    padding: 18px;
}

.place-list h2 {
    margin-top: 26px;
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--ink);
    border-bottom: 2px solid var(--line);
    padding-bottom: 4px;
}

.place-list ul {
    padding-left: 0;
    list-style: none;
}

.place-list li {
    margin-bottom: 12px;
    border-radius: 0;
    border: 1px solid var(--line);
    background: #fffdf3;
    cursor: pointer;
    transition: background 0.15s ease;
}

.place-list li a {
    display: block;
    padding: 12px 14px;
    color: #333;
    text-decoration: none;
    line-height: 1.55;
}

.place-list-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.place-list-address {
    font-size: 12px;
    font-weight: 500;
    color: #777;
}

.place-list li:hover {
    background: var(--sun);
}

/* =========================
   救急ページ
========================= */

.emergency-box {
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 0;
    padding: 20px 22px;
    margin-bottom: 24px;
    box-shadow: 5px 5px 0 rgba(35, 31, 32, .1);
}

.emergency-box h2 {
    margin-top: 0;
    font-size: 18px;
    color: var(--ink);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--line);
}

.emergency-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.emergency-list li {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.emergency-list strong {
    color: var(--ink);
}

.emergency-list a {
    color: #116b83;
    text-decoration: none;
    font-weight: 500;
}

.emergency-list a:hover {
    text-decoration: underline;
}

.small-text {
    font-size: 13px;
    color: #666;
    margin-top: 12px;
}

.note {
    background: #fff3f3;
    border: 2px solid var(--peach);
    border-radius: 0;
    padding: 14px 16px;
    font-size: 13px;
    color: #7a2a2a;
}

/* =========================
   固定ページ（sponsor / about）
========================= */

.page {
    text-align: left;
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 0;
    padding: 30px 28px;
    box-shadow: 6px 6px 0 rgba(35, 31, 32, .1);
}

.page .section-title {
    text-align: center;
    font-size: 25px;
    color: var(--ink);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line);
}

.page .lead {
    text-align: center;
    line-height: 1.8;
    margin: 0 0 26px;
    color: #555;
}

.muted {
    color: #666;
    line-height: 1.7;
    font-size: 14px;
}

/* =========================
   逗子支援情報（sponsor / about）
========================= */
.support-container {
    max-width: var(--page-width);
}

.support-page {
    max-width: var(--page-width);
    margin: 0 auto;
}

.support-page h1 {
    text-align: center;
}

.support-card {
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 5px 5px 0 rgba(35, 31, 32, .1);
}

.support-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 22px 0 28px;
}

.support-category-card {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    border: 2px solid var(--line);
    border-radius: 0;
    background: #fffdf3;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.support-category-card:hover,
.support-category-card.active {
    transform: translateY(-2px);
    border-color: var(--line);
    box-shadow: 4px 4px 0 rgba(35, 31, 32, .13);
}

.support-category-card.active {
    background: var(--sun);
}

.support-category-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.support-category-desc {
    font-size: 12px;
    line-height: 1.5;
    color: #666;
}

.support-current-title {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--line);
    color: var(--ink);
    font-size: 20px;
    text-align: left;
}

.support-item {
    padding: 0;
    border-radius: 0;
    background: #fffdf9;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    transition: background 0.15s ease, transform 0.15s ease;
}

.support-item:last-child {
    margin-bottom: 0;
}

.support-item:hover {
    background: #f8fbff;
    transform: translateY(-1px);
}

.support-item a {
    text-decoration: none;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
}

.support-item-title {
    margin-bottom: 4px;
    font-weight: bold;
    font-size: 16px;
}

.support-item-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.support-item-arrow {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 0;
    background: var(--sun);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.back {
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .support-category-grid {
        grid-template-columns: 1fr;
    }

    .support-item a {
        align-items: flex-start;
        flex-direction: column;
    }

    .support-item-arrow {
        align-self: flex-end;
    }
}


/* =========================
   スポンサープラン（縦並び）
   ※ 掲載イメージと同一デザイン
========================= */

.card-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
}

/* プランカード＝掲載イメージと同じ白カード */
.card {
    max-width: 520px;
    margin: 20px auto;
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 0;
    padding: 20px;
    box-shadow: 5px 5px 0 rgba(35, 31, 32, .1);
}

/* プラン名（色だけで差分） */
.card h3 {
    text-align: center;
    font-size: 17px;
    margin-top: 0;
}

/* プランごとのアクセント（色は最小限） */
.card:nth-child(1) h3 {
    color: #7a5a3a;
}

/* ライト */
.card:nth-child(2) h3 {
    color: #2b6cb0;
}

/* スタンダード */
.card:nth-child(3) h3 {
    color: #6b46c1;
}

/* メイン */

.card .price {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0 14px;
    color: var(--ink);
}

.stripe-buy-button-wrap {
    margin-top: 18px;
    text-align: center;
}

.list {
    margin: 0 auto;
    padding-left: 18px;
    max-width: 420px;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================
   掲載イメージ・問い合わせ
   ※ プランと幅・デザイン完全一致
========================= */

.note-box,
.contact-box {
    max-width: 520px;
    margin: 20px auto;
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 0;
    padding: 20px;
    box-shadow: 5px 5px 0 rgba(35, 31, 32, .1);
}

/* =========================
   コピーボックス
========================= */

.copybox {
    background: #fffdf3;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 12px;
}

.copybox pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
}

/* =========================
   戻るリンク
========================= */

.backline {
    margin-top: 22px;
}

/* =========================
   スマホ：スポンサー見出し調整
========================= */

@media (max-width: 720px) {

    .page .section-title {
        font-size: 18px;
        /* ← PC:22px → スマホ:18px */
        line-height: 1.4;
        margin-bottom: 14px;
    }

    .page .lead {
        font-size: 14px;
        /* ← 少し小さく */
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .sponsor-page .lead {
        text-align: left;
    }

}

@media (max-width: 900px) {
    .menu {
        grid-template-columns: repeat(3, 1fr);
    }

    .menu a:nth-child(3n) {
        border-right: 0;
    }

    .menu a:nth-child(4),
    .menu a:nth-child(5),
    .menu a:nth-child(6) {
        border-top: 1px solid rgba(35, 31, 32, .42);
    }

    .home-cover {
        grid-template-columns: 1fr;
    }

    .home-photo {
        min-height: 420px;
    }
}

/* =========================
   スマホ全体調整
========================= */

@media (max-width: 640px) {
    body {
        background: #fffef8;
        -webkit-text-size-adjust: 100%;
    }

    .container {
        width: 100%;
        margin: 0 auto;
        padding: 20px 16px 28px;
        border-width: 0 0 2px;
        border-radius: 0;
        box-shadow: none;
    }

    h1 {
        font-size: 42px;
        line-height: 1.35;
    }

    .site-masthead {
        min-height: 180px;
        padding: 24px 14px 18px;
    }

    .site-masthead h1 {
        margin-top: 42px;
        font-size: clamp(44px, 17vw, 70px);
    }

    .subtitle {
        margin-bottom: 22px;
        font-size: 12px;
    }

    .cover-copy-desktop {
        display: none;
    }

    .cover-copy-mobile {
        display: inline;
        line-height: 1.7;
    }

    .menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-bottom: 24px;
    }

    .menu a {
        display: flex;
        min-width: 0;
        min-height: 52px;
        align-items: center;
        justify-content: center;
        padding: 10px 8px;
        border-radius: 0;
        border-right: 1px solid rgba(35, 31, 32, .42);
        border-top: 1px solid rgba(35, 31, 32, .42);
        font-size: 14px;
        line-height: 1.35;
        text-align: center;
    }

    .menu a:nth-child(odd) {
        border-left: 0;
        border-right: 1px solid rgba(35, 31, 32, .42);
    }

    .menu a:nth-child(even) {
        border-right: 0;
    }

    .menu a:nth-child(1),
    .menu a:nth-child(2) {
        border-top: 0;
    }

    .home-photo {
        min-height: 360px;
        padding: 38px 18px;
    }

    .home-photo::before {
        inset: 38px 18px auto;
        height: 78px;
    }

    .paper-note {
        min-height: 0;
        padding: 22px 18px;
    }

    .content {
        width: 100%;
    }

    .category-filter {
        width: 100%;
    }

    .category-filter-menu {
        width: 100%;
    }

    .category-filter-menu a {
        min-height: 44px;
        padding: 8px 10px;
        font-size: 14px;
    }

    .new-post-link {
        width: 100%;
        min-height: 48px;
        border-radius: 0;
    }

    .board-item {
        margin-bottom: 26px;
        padding: 18px 14px;
    }

    .board-item .title {
        font-size: 19px;
    }

    .board-item .body,
    .reply {
        padding: 14px;
        font-size: 15px;
        overflow-wrap: anywhere;
    }

    .post-menu-content {
        display: grid;
        position: static;
        max-width: none;
        width: 100%;
        margin-top: 14px;
        padding: 14px;
        border: 1px solid var(--line);
        background: #fffdf3;
        box-shadow: none;
        gap: 10px;
    }

    .post-menu-trigger {
        display: none;
    }

    .post-menu-help {
        display: block;
    }

    .mobile-post-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .mobile-post-action {
        min-height: 44px;
        border: 2px solid var(--line);
        background: #ffffff;
        color: var(--ink);
        font-weight: 800;
        cursor: pointer;
    }

    .mobile-post-action.active {
        background: var(--sun);
        box-shadow: 2px 2px 0 rgba(35, 31, 32, .14);
    }

    .mobile-post-action-delete.active {
        background: #ffe7e7;
        color: #9b1c1c;
    }

    .post-menu-content form {
        display: none;
        align-items: stretch;
        flex-direction: column;
        min-width: 0;
        padding: 10px;
        border: 1px solid rgba(77, 74, 69, .35);
        background: #fff;
    }

    .post-menu-content form.mobile-open {
        display: flex;
    }

    .post-menu-content input[type="password"] {
        width: 100%;
        min-height: 40px;
        font-size: 16px;
        border: 2px solid var(--line);
        border-radius: 0;
        padding: 8px 10px;
    }

    .post-key-form label {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .post-key-form label span {
        font-size: 13px;
    }

    .post-menu-content button,
    .btn-primary.btn-large {
        width: 100%;
        min-height: 44px;
    }

    .board-item .form-textarea,
    .form-textarea,
    .form-input,
    .form-select {
        font-size: 16px;
    }

    .map-container {
        width: 100%;
        margin: 16px 0 0;
        border-radius: 0;
        box-shadow: none;
    }

    #map {
        height: 62vh;
        min-height: 340px;
        max-height: 520px;
    }

    .map-controls {
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 8px;
    }

    .map-controls select {
        width: 100%;
        font-size: 16px;
    }

    .place-list {
        padding: 16px 0 0;
    }

    .place-list h2 {
        font-size: 19px;
    }

    .place-list li a {
        padding: 14px;
        font-size: 15px;
        overflow-wrap: anywhere;
    }

    .emergency-box,
    .page,
    .support-card,
    .card,
    .note-box,
    .contact-box {
        padding: 18px 16px;
        border-radius: 0;
        box-shadow: none;
    }

    .support-page h1 {
        font-size: 26px;
    }

    .support-category-card {
        min-height: 82px;
    }

    .form-actions {
        text-align: center;
    }

    .post-container .section-title,
    .support-current-title {
        font-size: 18px;
    }
}

@media (max-width: 380px) {
    .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .menu {
        gap: 8px;
    }

    .menu a {
        font-size: 13px;
    }
}
