/* public.css — 公開側の共通デザイン（大会エントリーシステム） */

:root {
    --primary: #1666d4;
    --primary-dark: #0f4fa8;
    --primary-soft: #eaf2ff;
    --ink: #1d2733;
    --muted: #6b7684;
    --line: #e6e9ee;
    --bg: #f6f8fb;
    --card: #ffffff;
    --ok: #1e8e4e;
    --ok-soft: #e7f6ec;
    --warn: #b26b00;
    --warn-soft: #fff5e2;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(20, 40, 80, 0.06);
    --shadow-sm: 0 2px 10px rgba(20, 40, 80, 0.05);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- サイトヘッダー ---- */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}
.site-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 17px;
    color: var(--ink);
    letter-spacing: .02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 30px; height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), #4b9bff);
    color: #fff;
    display: grid; place-items: center;
    font-size: 16px; font-weight: 900;
}
.brand-logo { height: 22px; width: auto; display: block; }
.site-header .spacer { flex: 1; }
.header-link { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---- コンテナ ---- */
.wrap { max-width: 960px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 620px; }

/* ---- ヒーロー ---- */
.hero {
    padding: 54px 0 30px;
    text-align: center;
}
.hero h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.35;
    letter-spacing: .01em;
}
.hero p {
    margin: 0 auto;
    max-width: 560px;
    color: var(--muted);
    font-size: 16px;
}

/* ---- セクション見出し ---- */
.section-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: .06em;
    margin: 28px 0 14px;
}

/* ---- カード ---- */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}
.card-lg { padding: 28px; box-shadow: var(--shadow); }

/* ---- 協会/大会リスト ---- */
.tile-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .tile-list.cols-2 { grid-template-columns: 1fr 1fr; } }

.tile {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s;
}
.tile:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: #cfe0fb;
}
.tile-title { font-weight: 800; font-size: 17px; color: var(--ink); }
.tile-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.tile-arrow { float: right; color: var(--primary); font-weight: 800; }

/* ---- バッジ ---- */
.badge {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.badge-open { background: var(--ok-soft); color: var(--ok); }
.badge-closed { background: #f0f2f5; color: var(--muted); }

/* ---- ボタン ---- */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background .12s ease;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn-block { display: block; width: 100%; }
.btn-ghost { background: #fff; color: var(--primary); border: 1.5px solid #cfe0fb; }
.btn-ghost:hover { background: var(--primary-soft); }

/* ---- 大会メタ表 ---- */
.meta { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.meta th, .meta td { padding: 7px 2px; text-align: left; vertical-align: top; border-bottom: 1px solid #f0f2f5; }
.meta th { width: 34%; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* ---- フォーム ---- */
.field { margin-top: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.req { color: #d23; font-size: 12px; margin-left: 5px; }
.input, select.input, textarea.input,
input[type=text], input[type=email], input[type=password], select, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cfd6df;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.hint { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ---- メッセージ ---- */
.notice { border-radius: 10px; padding: 12px 15px; margin-bottom: 16px; line-height: 1.75; }
.notice-plan { background: var(--ok-soft); border: 1px solid #bfe3cb; color: #1c6b3c; }
.notice-error { background: #fff4f4; border: 1px solid #e6c0c0; color: #a33; }
.notice-error ul { margin: 0; padding-left: 20px; }

/* ---- 空表示 ---- */
.empty { text-align: center; color: var(--muted); padding: 34px 12px; line-height: 1.9; }

/* ---- フッター ---- */
.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: #fff;
}
.site-footer-inner {
    max-width: 960px; margin: 0 auto; padding: 22px 18px;
    text-align: center; color: var(--muted); font-size: 12.5px; line-height: 2;
}
.site-footer a { color: var(--muted); margin: 0 9px; }

.spacer-lg { height: 30px; }

/* ============ プレミアム（トップ用） ============ */

/* ヒーロー：グラデ背景＋装飾 */
.hero-xl {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 460px at 80% -10%, #d9e8ff 0%, rgba(217,232,255,0) 60%),
        radial-gradient(900px 420px at 0% 0%, #e9f7ef 0%, rgba(233,247,239,0) 55%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
}
.hero-xl-inner {
    max-width: 960px; margin: 0 auto; padding: 62px 18px 54px;
    text-align: center; position: relative; z-index: 1;
}
.hero-badge {
    display: inline-block;
    background: #fff; border: 1px solid #d6e4fb; color: var(--primary);
    font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
    box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.hero-xl h1 {
    margin: 0 0 14px; font-size: 40px; line-height: 1.28; letter-spacing: .01em; font-weight: 900;
}
.hero-xl h1 .accent { color: var(--primary); }
.hero-xl .lead { margin: 0 auto 26px; max-width: 600px; color: var(--muted); font-size: 17px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }
@media (max-width: 560px) { .hero-xl h1 { font-size: 30px; } }

/* 機能グリッド */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .features { grid-template-columns: 1fr 1fr 1fr; } }
.feature {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow-sm);
}
.feature-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--primary-soft); color: var(--primary);
    display: grid; place-items: center; margin-bottom: 12px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* セクション見出し（中央・大） */
.section-head { text-align: center; margin: 46px 0 22px; }
.section-head h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: .01em; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }

/* 運営者CTAバンド */
.cta-band {
    border-radius: 20px; padding: 40px 28px; text-align: center; color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #3b86ff 55%, #29a06a 130%);
    box-shadow: 0 16px 40px rgba(22, 102, 212, 0.25);
}
.cta-band h2 { margin: 0 0 8px; font-size: 24px; }
.cta-band p { margin: 0 0 20px; opacity: .92; font-size: 15px; }
.cta-band .btn { background: #fff; color: var(--primary); }
.cta-band .btn:hover { background: #eef4ff; }
