* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans JP",
        sans-serif;
    color: #17324d;
    background:
        linear-gradient(
            180deg,
            #f0faff 0%,
            #f5fffc 100%
        );
    line-height: 1.6;
}

/* =========================
   ヘッダー
========================= */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #d7edf0;
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.logo-main {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #1976d2;
}

.logo-sub {
    font-size: 14px;
    font-weight: 600;
    color: #159c8c;
}

/* =========================
   ヘッダーナビ
========================= */
.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-button {
    padding: 9px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: #668093;
    cursor: pointer;
    transition: 0.2s;
}

.nav-button:hover {
    color: #1976d2;
    background: #eef8fa;
}

.nav-button.active {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #1976d2,
        #159c8c
    );
    box-shadow:
        0 4px 12px rgba(25, 118, 210, 0.18);
}
/* =========================
   メイン
========================= */
.main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* =========================
   ヒーロー
========================= */
.hero {
    text-align: center;
    padding: 70px 20px 50px;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    font-size: 32px;
    border-radius: 22px;
    background: linear-gradient(
        135deg,
        #1976d2,
        #18a999
    );
    box-shadow:
        0 10px 25px rgba(25, 118, 210, 0.18);
}

.hero h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.25;
    letter-spacing: 1px;
    color: #163b5c;
}

.hero p {
    margin: 20px 0 0;
    font-size: 16px;
    color: #668093;
}

/* =========================
   セクション
========================= */
.content {
    margin-bottom: 55px;
}

.content h2 {
    margin: 0;
    font-size: 27px;
    color: #173f60;
}

.section-description {
    margin: 8px 0 25px;
    color: #708696;
    font-size: 14px;
}

/* =========================
   カード
========================= */
.card-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.menu-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 120px;
    padding: 20px 48px 20px 20px;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid #dceef1;
    border-radius: 18px;
    box-shadow:
        0 5px 18px rgba(30, 100, 120, 0.06);
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}

.menu-card:hover {
    transform: translateY(-3px);
    border-color: #72cfc5;
    box-shadow:
        0 10px 25px rgba(30, 100, 120, 0.12);
}

/* アイコン */
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    font-size: 25px;
    background: #eaf8fa;
}

/* テキスト */
.card-text {
    min-width: 0;
}

.card-text h3 {
    margin: 0 0 5px;
    font-size: 17px;
    color: #1d496b;
}

.card-text p {
    margin: 0;
    font-size: 13px;
    color: #7a909e;
}

/* 矢印 */
.arrow {
    position: absolute;
    right: 20px;
    font-size: 28px;
    color: #54b8ad;
    transition: transform 0.2s;
}

.menu-card:hover .arrow {
    transform: translateX(4px);
}

/* =========================
   実用カード
========================= */

.practical-card {
    border-color: #d3ece7;
}
.practical-card .card-icon {
    background: #e7f8f4;
}

/* =========================
   フッター
========================= */
.footer {
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #d7edf0;
    background: #ffffff;
    color: #668093;
}

.footer p {
    margin: 4px 0;
    font-size: 13px;
}

.footer .copyright {
    font-size: 11px;
    color: #9aabb5;
}

/* =========================
   スマホ対応
========================= */
@media (max-width: 700px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 14px;
    }
    .site-logo {
        gap: 8px;
        justify-content: center;
    }
    .header-nav {
        width: 100%;
    }
    .nav-button {
        flex: 1;
        padding: 9px 8px;
    }
    .logo-main {
        font-size: 18px;
    }
    .logo-sub {
        font-size: 12px;
    }
    .main {
        padding: 0 14px 45px;
    }
    .hero {
        padding: 50px 10px 35px;
    }
    .hero-icon {
        width: 60px;
        height: 60px;

        border-radius: 18px;

        font-size: 28px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 14px;
    }
    .content h2 {
        font-size: 23px;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .menu-card {
        min-height: 105px;

        padding: 17px 45px 17px 16px;
    }
    .card-icon {
        width: 48px;
        height: 48px;

        font-size: 22px;
    }
    .card-text h3 {
        font-size: 16px;
    }
    .card-text p {
        font-size: 12px;
    }
}
/* =========================
   タブ切り替え
========================= */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* =====================
   ツイ募集テンプレ
   ===================== */
.tool-page {
    max-width: 500px;
    margin: 0 auto;
}

.tool-page-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-page-header h1 {
    margin: 10px 0;
    font-size: 24px;
    color: #234;
}

.tool-page-header p {
    color: #668093;
    line-height: 1.7;
}

/* 戻るボタン */
.back-button {
    padding: 9px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #1976d2;
    background: #eef8fa;
    font-weight: 700;
    font-size: 14px;
}

/* ツールカード */
.tool-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.06);
}

.tool-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
}

/* 入力欄 */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #34495e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid #d8e2e8;
    border-radius: 10px;
    background: #f9fcfd;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1976d2;
    box-shadow:
        0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.7;
}

.input-note {
    margin: 6px 0 0;
    font-size: 12px;
    color: #8a9aa5;
}

/* 作成ボタン */
.tool-main-button {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #1976d2,
        #159c8c
    );
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 5px 15px rgba(25, 118, 210, 0.2);

    transition: 0.2s;
}

.tool-main-button:hover {
    transform: translateY(-1px);
}

/* 結果 */
.result-card {
    display: none;
}

.result-card.show {
    display: block;
}

#result-text {
    width: 100%;
    min-height: 180px;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #d8e2e8;
    border-radius: 10px;
    background: #f9fcfd;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
}

/* 結果ボタン */
.result-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.tool-sub-button,
.tool-x-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.tool-sub-button {
    background: #eef3f6;
    color: #526674;
}

.tool-x-button {
    background: #111111;
    color: #ffffff;
}

/* 下の戻るリンク */
.back-link-area {
    text-align: center;
    margin: 30px 0;
}

.back-link-area a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 700;
}

/* スマホ */
@media (max-width: 700px) {
    .tool-page {
        width: 100%;
    }
    .tool-page-header h1 {
        font-size: 24px;
    }
    .tool-card {
        padding: 20px 16px;
        border-radius: 14px;
    }
    .result-buttons {
        flex-direction: column;
    }
}


/* =====================
   アンコール判断
   ===================== */
.encore-result {
    text-align: center;
}

.encore-result-main {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1976d2;
}

.encore-result-value {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #eef8fa;
    color: #526674;
}

.encore-result-value strong {
    font-size: 24px;
    color: #159c8c;
}

.encore-result p {
    margin: 0;
    line-height: 1.7;
    font-size: 14px;
    color: #668093;
}

/* ヘッダーメニュー */
.header {
    position: relative;
}

.menu-button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #eef8fa;
    color: #1976d2;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
}

.menu-button:hover {
    background: #dff2f5;
}

.header-menu {
    position: absolute;
    top: 65px;
    right: 20px;
    width: 280px;
    padding: 4px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.header-menu.show {
    display: block;
}

.menu-section {
    margin: 0;
}

.menu-section-button {
    width: 100%;
    padding: 7px 10px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: #34495e;
    cursor: pointer;
    border-radius: 6px;
}

.menu-section-button:hover {
    background: #eef8fa;
}

.menu-items {
    display: none;
}

.menu-items.show {
    display: block;
}

.menu-items a {
    display: block;
    padding: 5px 10px 5px 24px;
    text-decoration: none;
    color: #668093;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 5px;
}

.menu-items a:hover {
    background: #eef8fa;
    color: #1976d2;
}

@media (max-width: 700px) {
    .header-menu {
        top: 62px;
        left: 14px;
        right: 14px;
        width: auto;
    }
}
/* 画像ポップアップ */
.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    box-sizing: border-box;
}

.image-modal.show {
    display: flex;
}

.image-modal-content {
    position: relative;
    max-width: 1000px;
    max-height: 90vh;
}

.image-modal-content img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #34495e;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

@media (max-width:700px) {
    .image-modal {
        padding: 10px;
    }

    .image-modal-content {
        max-width: 100%;
        max-height: 90vh;
    }

    .image-modal-content img {
        max-width: 100%;
        max-height: 85vh;
    }

    .image-modal-close {
        top: -10px;
        right: -6px;
    }
}

.site-logo{
    text-decoration:none;
    color:inherit;
    cursor:pointer;
}