:root {
    /* Comic Pop Art Palette */
    --color-primary: #FF0033;
    --color-secondary: #0044CC;
    --color-accent: #FFD700;
    --color-bg: #FFFFFF;
    --color-surface: #FFFFFF;
    --color-text: #000000;
    --color-text-muted: #333333;
    --color-border: #000000;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Comic Effects */
    --shadow-hard: 4px 4px 0px 0px #000000;
    --shadow-pop: 8px 8px 0px 0px rgba(0, 0, 0, 0.2);
    --border-thick: 3px solid #000000;
    --radius-comic: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    /* 背景：落ち着いたラベンダー地に超薄いドット（虹テーマに合わせた紫系） */
    background-color: #f5f0ff;
    background-image: radial-gradient(rgba(100, 50, 200, 0.1) 1px, transparent 1px);
    background-size: 28px 28px;
    color: var(--color-text);
    line-height: 1.6;
    padding-bottom: 60px;
}

/* ===== Header ===== */
.site-header {
    background: var(--color-primary);
    border-bottom: var(--border-thick);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-hard);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
    /* ロゴを赤背景から浮かせる白コンテナ */
    background: white;
    border-radius: 12px;
    padding: 4px 12px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.3);
}

.logo span {
    background: var(--color-accent);
    color: black;
    padding: 0.2rem 0.5rem;
    border: 2px solid black;
    border-radius: var(--radius-comic);
    transform: rotate(-3deg);
    box-shadow: 2px 2px 0px black;
}

.logo-img {
    height: 52px;
    width: auto;
    filter: none;
    flex-shrink: 0;
}

.logo-text {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    padding: 0 !important;
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
    text-shadow: 2px 2px 0 #000;
}

.schedule-store-link {
    cursor: pointer;
    color: var(--color-primary);
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.schedule-store-link:hover {
    color: var(--color-secondary);
}

/* ===== Navigation ===== */
.nav-links {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.nav-link {
    background: white;
    color: black;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
    border: 2px solid black;
    border-radius: 999px;
    box-shadow: 2px 2px 0px black;
    transition: all 0.1s;
    white-space: nowrap;
}

.nav-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px black;
    background: var(--color-accent);
}

.nav-link:active {
    transform: translate(0px, 0px);
    box-shadow: 0px 0px 0px black;
}

.nav-link.active {
    background: var(--color-secondary);
    color: white;
}

/* ===== Hero Section (Comic Starburst) ===== */
.hero-wrapper {
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        #FFD700 0deg 10deg,
        #FFAA00 10deg 20deg
    );
    border-bottom: 4px solid #000;
    padding: 2.5rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Subtle white glow overlay at top for depth */
.hero-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.25) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.hero-mascot-wrap {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-nijitan {
    max-height: 340px;
    width: auto;
    filter: drop-shadow(6px 6px 0px rgba(0, 0, 0, 0.85));
    animation: heroFloat 3.5s ease-in-out infinite;
}

.hero-text-wrap {
    flex: 1;
    min-width: 0;
}

.hero-eyebrow {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    font-weight: 900;
    font-size: 0.85rem;
    padding: 0.3rem 1rem;
    border: 2px solid black;
    border-radius: 99px;
    box-shadow: 3px 3px 0 black;
    margin-bottom: 0.75rem;
    letter-spacing: 0.06em;
    transform: rotate(-1.5deg);
}

.hero-headline {
    font-size: 3.8rem;
    font-weight: 900;
    color: #000;
    text-shadow: 4px 4px 0 white, 7px 7px 0 rgba(0, 0, 0, 0.12);
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero-subtext {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    background: white;
    border: 2px solid black;
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    display: inline-block;
    box-shadow: 3px 3px 0 black;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-btn-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-btn-white {
    background: white;
    color: black;
    border: 2px solid black;
    box-shadow: 4px 4px 0 black;
}

.hero-btn-white:hover {
    background: var(--color-accent);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 black;
}

/* ===== Dashboard Grid ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* ===== Cards ===== */
.card {
    background: var(--color-surface);
    border: var(--border-thick);
    border-radius: var(--radius-comic);
    box-shadow: var(--shadow-hard);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.card-header {
    background: #000;
    color: #FFF;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: var(--border-thick);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #FFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    color: var(--color-accent);
}

.card-body {
    padding: var(--spacing-md);
}

/* ===== Schedule List ===== */
.schedule-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 2px dashed #ddd;
    width: 100%;
    transition: background 0.2s;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item:hover {
    background: #FFFAF0;
}

.schedule-item .event-info,
.result-item-list .result-info {
    flex-grow: 1;
    margin-right: 1rem;
}

.date-badge {
    background: var(--color-primary);
    color: white;
    padding: 0.4rem;
    border: 2px solid black;
    border-radius: var(--radius-comic);
    text-align: center;
    min-width: 65px;
    margin-right: var(--spacing-sm);
    font-weight: 900;
    line-height: 1.1;
    box-shadow: 2px 2px 0px black;
    transform: rotate(-2deg);
    flex-shrink: 0;
}

.date-badge .day {
    font-size: 1.4rem;
    display: block;
}

.date-badge .month {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.event-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--color-text);
    font-weight: 800;
}

.event-info .store-name {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===== Schedule Card Large (Schedule Page) ===== */
.schedule-card-large {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: default;
    transition: transform 0.2s;
    background: white;
    border: 3px solid black;
    box-shadow: 6px 6px 0 black;
    position: relative;
    overflow: hidden;
}

.schedule-card-large .date-badge {
    position: static;
    transform: none;
    width: 80px;
    height: 80px;
    margin: 0 1.5rem 0 0;
    padding: 0;
    border-radius: 12px;
    background: var(--color-primary);
    color: white;
    border: 2px solid black;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.schedule-card-large .date-badge .month {
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.2;
}

.schedule-card-large .date-badge .day {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.schedule-card-large .schedule-item {
    border: none;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

.schedule-card-large .event-info {
    flex-grow: 1;
    margin-right: 1rem;
    text-align: left;
}

.schedule-card-large .event-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.schedule-card-large .list-thumbnail {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border: 2px solid black;
    border-radius: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ===== Result List ===== */
.result-item-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 2px dashed #ddd;
    width: 100%;
}

.result-item-list:last-child {
    border-bottom: none;
}

/* ===== Common Thumbnail ===== */
.list-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border: 2px solid black;
    border-radius: 6px;
    flex-shrink: 0;
    background: #ddd;
}

/* ===== Result Tables ===== */
.result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: var(--spacing-sm);
}

.result-table th,
.result-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid black;
}

.result-table th {
    background: var(--color-accent);
    color: black;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 900;
    border-top: 2px solid black;
}

.result-table th:first-child {
    border-left: 2px solid black;
    border-top-left-radius: 8px;
}

.result-table th:last-child {
    border-right: 2px solid black;
    border-top-right-radius: 8px;
}

.result-table td:first-child { border-left: 2px solid black; }
.result-table td:last-child  { border-right: 2px solid black; }

.result-table tr:last-child td { border-bottom: 2px solid black; }
.result-table tr:last-child td:first-child { border-bottom-left-radius: 8px; }
.result-table tr:last-child td:last-child  { border-bottom-right-radius: 8px; }

.result-table tr:hover td { background: #E0F7FA; }

.rank-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background: black;
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 900;
    border: 2px solid white;
    box-shadow: 1px 1px 0px black;
}

.rank-1 { background: #FFD700; color: black; transform: scale(1.2); border-color: black; }
.rank-2 { background: #C0C0C0; color: black; border-color: black; }
.rank-3 { background: #CD7F32; color: white; border-color: black; }

.diff-positive { color: var(--color-primary); font-weight: 900; }
.diff-negative { color: var(--color-secondary); font-weight: 700; }

/* ===== Animations ===== */
@keyframes popIn {
    0%   { transform: scale(0.8); opacity: 0; }
    80%  { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

.animate-fade-in {
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid black;
    transition: all 0.15s;
    box-shadow: var(--shadow-hard);
    text-transform: uppercase;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: #ff3355;
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0px black;
}

.btn-primary:active {
    transform: translate(0, 0);
    box-shadow: 0 0 0 black;
}

/* プレビューボタン */
.btn-preview {
    background: white;
    color: #333;
    gap: 0.3rem;
}
.btn-preview:hover {
    background: #f5f5f5;
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0px black;
}
.btn-preview:active {
    transform: translate(0, 0);
    box-shadow: 0 0 0 black;
}
.btn-outline-primary {
    background: white;
    color: #cc1122;
    border: 2px solid #cc1122;
    gap: 0.3rem;
}
.btn-outline-primary:hover {
    background: #fff5f5;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #cc1122;
}
.btn-outline-primary:active {
    transform: translate(0, 0);
    box-shadow: none;
}

/* ===== Preview Modal ===== */
.preview-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 1.5rem 1rem;
}
.preview-modal-inner {
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 10px;
    width: 100%;
    max-width: 760px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    margin: auto;
}
.preview-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #1a1a2e;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}
.preview-modal-title {
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.03em;
}
.preview-modal-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: white;
    border-radius: 4px;
    padding: 5px 14px;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
    transition: background 0.15s;
}
.preview-modal-close:hover { background: rgba(255, 255, 255, 0.18); }
.preview-modal-body {
    overflow-y: auto;
}
.preview-article-wrap {
    padding: 1.5rem 1rem 2.5rem;
}

/* ===== Admin Toolbar ===== */
.admin-toolbar {
    background: #111;
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
    font-family: monospace;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 2px solid #333;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s, bottom 0.3s;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.5));
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    /* モバイルのみ広告枠の上に表示、PCは通常位置 */
    bottom: 80px;
}

.back-to-top:hover {
    transform: scale(1.1) rotate(-5deg);
}

.back-to-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.speech-bubble {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 3px solid black;
    padding: 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 900;
    white-space: nowrap;
    text-align: center;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
    z-index: 1;
}

/* ===== Advertising Space (モバイルのみ表示) ===== */
.ad-footer-space {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #f0f0f0;
    border-top: 2px solid black;
    z-index: 1000;
    display: none; /* PCでは非表示 */
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== Login Screen ===== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-comic);
    border: 4px solid black;
    box-shadow: 10px 10px 0 var(--color-primary);
    width: 90%;
    max-width: 400px;
    text-align: center;
    background-image: radial-gradient(#ddd 1px, transparent 1px);
    background-size: 10px 10px;
    position: relative;
}

.login-card h2 {
    color: black;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 var(--color-accent);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 900;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 3px solid black;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    background: #fffbe0;
    box-shadow: 4px 4px 0 var(--color-secondary);
}

.close-login {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close-login:hover { color: black; }

/* ===== Admin Cards ===== */
.admin-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}
.admin-card-header {
    padding: 0.6rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.admin-card-body {
    padding: 0.5rem 0.75rem;
    background: #fff;
}

/* ===== Admin Management List ===== */
.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.admin-list-item:last-child { border-bottom: none; }

.admin-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    border: 1px solid #999;
    border-radius: 4px;
    background: #eee;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.btn-danger {
    background: #ffcccc;
    color: #990000;
    border-color: #990000;
}

/* ===== Machine List (出玉データ入力) ===== */
.machine-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 0.85rem;
    border-bottom: 1px dashed #ddd;
}

.machine-list-item:last-child { border-bottom: none; }

.machine-delete-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}

.machine-delete-btn:hover {
    color: darkred;
}

/* ===== X (Twitter) Follow Banner ===== */
.x-follow-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #000;
    color: #fff;
    border: 3px solid var(--color-accent);
    border-radius: 14px;
    padding: 1rem 1.4rem;
    text-decoration: none;
    box-shadow: 5px 5px 0 var(--color-accent);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}
.x-follow-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(255,215,0,0.04) 8px,
        rgba(255,215,0,0.04) 16px
    );
    pointer-events: none;
}
.x-follow-banner:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--color-accent);
}
.x-follow-icon {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: #fff;
    color: #000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: -2px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #FFD700;
}
.x-follow-body {
    flex: 1;
    min-width: 0;
}
.x-follow-label {
    font-weight: 900;
    font-size: 1rem;
    color: var(--color-accent);
    display: block;
    line-height: 1.3;
}
.x-follow-handle {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 2px;
    display: block;
}
.x-follow-cta {
    background: var(--color-accent);
    color: #000;
    font-weight: 900;
    font-size: 0.88rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
}
@media (max-width: 600px) {
    .x-follow-banner { gap: 0.75rem; padding: 0.9rem 1rem; }
    .x-follow-cta { width: 100%; justify-content: center; }
    .x-follow-label { font-size: 0.92rem; }
}

/* ===== Toast Notifications ===== */
#toast-container {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 320px;
    pointer-events: none;
}

.toast {
    background: white;
    border: 3px solid black;
    border-radius: var(--radius-comic);
    padding: 0.75rem 1rem;
    box-shadow: 4px 4px 0 black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.88rem;
    animation: slideInRight 0.3s ease forwards;
    transition: opacity 0.3s;
    pointer-events: auto;
    line-height: 1.4;
}

.toast-success {
    border-color: #00aa44;
    background: #e8fff2;
    color: #007733;
}

.toast-error {
    border-color: var(--color-primary);
    background: #fff0f0;
    color: #cc0022;
}

.toast-info {
    border-color: var(--color-secondary);
    background: #f0f4ff;
    color: var(--color-secondary);
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: inherit;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.6;
}

.toast-close:hover { opacity: 1; }

/* ===== Responsive (Mobile) ===== */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    /* モバイルヘッダー */
    .header-content {
        flex-direction: column;
        gap: 0.4rem;
    }

    .logo {
        font-size: 1.4rem;
        justify-content: center;
    }

    /* ナビゲーション：横スクロール対応（折り返しなし） */
    .nav-links {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: 0.35rem;
        padding: 0.2rem 0.25rem;
        /* スクロールバー非表示 */
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
        flex-shrink: 0;
    }

    .site-header {
        padding: 0.5rem 0;
    }

    /* モバイルで広告スペースを表示 */
    .ad-footer-space {
        display: flex;
    }

    body {
        padding-bottom: 110px; /* 広告スペース分 */
    }

    .back-to-top.visible {
        bottom: 75px; /* 広告の上 */
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    #toast-container {
        top: auto;
        bottom: 80px;
        right: 8px;
        left: 8px;
        max-width: none;
    }

    .editor-grid-2 { grid-template-columns: 1fr; }
    .machine-top-diff { font-size: 2rem; }
    .result-editor { padding: 0.5rem; }
    .editor-header { flex-wrap: wrap; gap: 0.5rem; }

    /* 管理リスト：モバイルで縦並び */
    .admin-list-item {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .admin-list-item > span:first-child,
    .admin-list-item > .admin-item-info {
        width: 100%;
    }
    .admin-actions {
        width: 100%;
    }

    /* 管理画面カード */
    .admin-card-header {
        font-size: 0.88rem;
    }
    .admin-action-btns .btn {
        font-size: 0.88rem;
        padding: 0.55rem 0.9rem;
    }
}

/* ===== Result Article (Public Display) ===== */
.result-article {
    max-width: 820px;
    margin: 0 auto;
}

.article-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border: var(--border-thick);
    border-radius: var(--radius-comic);
    box-shadow: var(--shadow-hard);
    margin-bottom: 1.5rem;
    display: block;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--color-text);
}

.article-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: white;
    border: 2px solid black;
    border-radius: var(--radius-comic);
    overflow: hidden;
    box-shadow: 3px 3px 0 black;
}

.article-info-table th {
    background: var(--color-secondary);
    color: white;
    padding: 0.5rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    width: 30%;
    font-weight: 900;
}

.article-info-table td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
    font-weight: 700;
}

.article-info-table tr:last-child td { border-bottom: none; }

/* Article Blocks */
.article-block { margin-bottom: 1.8rem; }

.article-block-heading {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--color-secondary);
    border-left: 5px solid var(--color-primary);
    padding: 0.3rem 0 0.3rem 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-block-text {
    line-height: 1.9;
    white-space: pre-wrap;
    font-size: 0.95rem;
}
/* 枠あり テキストブロック */
.article-block-text--bordered {
    border: 2px solid #333;
    border-radius: 8px;
    padding: 1rem 1.2rem;
}

.article-block-image { text-align: center; }
.article-block-image img {
    max-width: 100%;
    border: var(--border-thick);
    border-radius: var(--radius-comic);
    box-shadow: var(--shadow-hard);
}
.article-block-image figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #555;
    font-weight: 700;
}

/* Machine Card */
.machine-card {
    background: white;
    border: var(--border-thick);
    border-radius: var(--radius-comic);
    box-shadow: var(--shadow-hard);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.machine-card-header {
    background: #111;
    color: var(--color-accent);
    padding: 0.6rem 1rem;
    font-weight: 900;
    font-size: 1.1rem;
}

.machine-card-image {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 2px solid black;
}

.machine-card-body { padding: 1rem; }

/* Top format */
.machine-top-display { text-align: center; padding: 1.2rem; }
.machine-top-label { font-size: 0.8rem; color: #888; font-weight: 700; text-transform: uppercase; margin-bottom: 0.2rem; }
.machine-top-no { font-size: 1rem; font-weight: 900; color: #444; margin-bottom: 0.4rem; }
.machine-top-diff {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-primary);
    text-shadow: 3px 3px 0 rgba(0,0,0,0.12);
    line-height: 1;
}
.machine-top-diff.negative { color: var(--color-secondary); }

/* Rating Block */
.article-rating {
    text-align: center;
    padding: 2rem;
    background: #fffbe0;
    border: var(--border-thick);
    border-radius: var(--radius-comic);
    box-shadow: var(--shadow-hard);
}
.rating-stars { font-size: 2.5rem; letter-spacing: 3px; margin-bottom: 0.75rem; }
.rating-comment { font-size: 1rem; font-weight: 700; line-height: 1.7; }

/* ===== Result Editor (Admin Full-Page) ===== */
.result-editor {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.editor-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.editor-header h2 {
    flex: 1;
    font-size: 1.4rem;
    font-weight: 900;
    min-width: 0;
}

.editor-section {
    background: white;
    border: var(--border-thick);
    border-radius: var(--radius-comic);
    box-shadow: var(--shadow-hard);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.editor-section-header {
    background: var(--color-secondary);
    color: white;
    padding: 0.6rem 1rem;
    font-weight: 900;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editor-section-body { padding: 1rem; }

.editor-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.editor-input {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 2px solid #bbb;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
    color: #111;
}
.editor-input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(0,68,204,0.12);
}

.editor-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Block List in Editor */
.block-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.block-item {
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.block-item:hover { border-color: var(--color-secondary); box-shadow: 2px 2px 0 rgba(0,68,204,0.15); }

.block-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: #f0f0f0;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #e0e0e0;
}

.block-move-btns { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.block-move-btn {
    background: white;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 1px 6px;
    cursor: pointer;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #555;
    transition: background 0.1s;
}
.block-move-btn:hover { background: #e8e8e8; }
.block-move-btn:disabled { opacity: 0.3; cursor: default; }

.block-type-badge {
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 99px;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
}
.badge-heading  { background: #ffe0f0; color: #bb0066; border-color: #cc0077; }
.badge-text     { background: #e0f0ff; color: #0044bb; border-color: #0055cc; }
.badge-image    { background: #e0fff0; color: #006622; border-color: #008833; }
.badge-machine  { background: #fff3e0; color: #bb5500; border-color: #cc6600; }
.badge-rating   { background: #fffde0; color: #aa7700; border-color: #bb8800; }

.block-preview-text {
    flex: 1;
    font-size: 0.82rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.block-delete-btn {
    background: none;
    border: none;
    color: #cc3333;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.1s;
}
.block-delete-btn:hover { color: #aa0000; }

.block-item-body { padding: 0.75rem; }
.block-item-body.collapsed { display: none; }

/* Add Block Menu */
.add-block-section { margin-top: 0.75rem; position: relative; }

.block-add-menu {
    background: white;
    border: 2px solid black;
    border-radius: 8px;
    box-shadow: 4px 4px 0 black;
    padding: 0.5rem;
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.4rem;
}

.block-add-btn-item {
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: left;
    font-family: inherit;
    transition: all 0.12s;
}
.block-add-btn-item:hover {
    background: var(--color-accent);
    border-color: black;
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 black;
}

/* Cancel button - spans full width */
.block-add-btn-cancel {
    grid-column: 1 / -1;
    background: #f0f0f0;
    border: 1px solid #bbb;
    border-radius: 6px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    font-family: inherit;
    transition: all 0.12s;
    text-align: center;
}
.block-add-btn-cancel:hover {
    background: #e0e0e0;
    color: #333;
}

/* Multi-image block */
.image-list-item {
    display: grid;
    gap: 0.4rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    margin-bottom: 0.5rem;
}
.image-item-controls {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}
.image-item-label {
    flex: 1;
    font-size: 0.8rem;
    color: #666;
    font-weight: 700;
}

/* Rich Text Editor — Container & Tabs */
.rich-container {
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.rich-tabs {
    display: flex;
    background: #e8e8e8;
    border-bottom: 1px solid #ccc;
}
.rich-tab {
    padding: 5px 16px;
    background: transparent;
    border: none;
    border-right: 1px solid #ccc;
    cursor: pointer;
    font-size: 0.82rem;
    color: #666;
    font-family: inherit;
    transition: background 0.12s;
}
.rich-tab:hover { background: rgba(0,0,0,0.06); }
.rich-tab-active {
    background: white;
    color: #111;
    font-weight: 600;
}

/* Toolbar — no outer border (container handles it) */
.rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 5px 6px;
    background: #f4f4f4;
    border-bottom: 1px solid #ccc;
}
.rich-btn {
    background: white;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 0.85rem;
    min-width: 30px;
    height: 28px;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s;
}
.rich-btn:hover { background: #e0e0e0; }
.rich-btn:active { background: #ccc; }
.rich-sep {
    width: 1px;
    background: #ccc;
    height: 20px;
    margin: 0 3px;
    flex-shrink: 0;
}

/* Color picker button */
.rich-color-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.1s;
}
.rich-color-label:hover { background: #e0e0e0; }
.rich-color-a {
    font-weight: bold;
    font-size: 0.95rem;
    color: #c00;
    pointer-events: none;
    z-index: 1;
}
.rich-color-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    padding: 0;
    border: none;
}

/* Font family select */
.rich-select {
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: white;
    font-size: 0.8rem;
    padding: 0 4px;
    cursor: pointer;
    max-width: 130px;
    font-family: inherit;
    transition: background 0.1s;
}
.rich-select:hover { background: #e8e8e8; }
.rich-select-size { max-width: 72px; }

/* テキストブロック オプション行 */
.text-block-options {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}
.text-option-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #444;
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: white;
    transition: background 0.12s;
}
.text-option-label:hover { background: #f0f0f0; }
.text-option-label input[type=checkbox] { cursor: pointer; }

/* Link / Table insertion bars */
.rich-link-bar,
.rich-table-bar {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 10px;
    background: #fffbe6;
    border-bottom: 1px solid #e6d700;
    flex-wrap: wrap;
}
.btn-secondary-sm {
    padding: 0.3rem 0.6rem;
    background: #e0e0e0;
    border: 1px solid #bbb;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
}
.btn-secondary-sm:hover { background: #ccc; }

/* Visual editor area */
.rich-editor {
    min-height: 130px;
    padding: 10px 12px;
    font-size: 0.95rem;
    line-height: 1.7;
    outline: none;
    background: white;
    cursor: text;
}
.rich-editor h3 { font-size: 1.05rem; font-weight: 700; margin: 0.4rem 0; }
.rich-editor ul { padding-left: 1.5rem; list-style: disc; }
.rich-editor ol { padding-left: 1.5rem; list-style: decimal; }
.rich-editor p { margin: 0.2rem 0; }

/* Rich table inside visual editor */
.rich-editor .rich-table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5rem 0;
}
.rich-editor .rich-table th,
.rich-editor .rich-table td {
    border: 1px solid #bbb;
    padding: 5px 8px;
    min-width: 50px;
}
.rich-editor .rich-table th { background: #f0f0f0; font-weight: 600; }

/* HTML source textarea (text mode) */
.rich-html-textarea {
    width: 100%;
    min-height: 180px;
    padding: 10px 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.82rem;
    line-height: 1.55;
    resize: vertical;
    box-sizing: border-box;
    background: #1e1e1e;
    color: #d4d4d4;
    border: none;
    outline: none;
}

/* Rich text rendered in public article */
.article-block-text h3 { font-size: 1.05rem; font-weight: 700; margin: 0.5rem 0 0.3rem; }
.article-block-text ul { padding-left: 1.5rem; list-style: disc; margin: 0.3rem 0; }
.article-block-text ol { padding-left: 1.5rem; list-style: decimal; margin: 0.3rem 0; }
.article-block-text p { margin: 0.2rem 0; }

/* Rich tables in public articles */
.article-block-text .rich-table,
.article-block-text table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.8rem 0;
}
.article-block-text .rich-table th,
.article-block-text .rich-table td,
.article-block-text table th,
.article-block-text table td {
    border: 1px solid #bbb;
    padding: 7px 12px;
    text-align: left;
}
.article-block-text .rich-table th,
.article-block-text table th {
    background: #f0f0f0;
    font-weight: 600;
}

/* Machine table editor */
.machine-table-editor {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.machine-table-editor th {
    background: #eee;
    padding: 0.3rem 0.5rem;
    border: 1px solid #ccc;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
}
.machine-table-editor td {
    padding: 0.2rem 0.3rem;
    border: 1px solid #ddd;
}

/* Star rating selector */
.star-selector {
    display: flex;
    gap: 0.2rem;
    font-size: 1.9rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}
.star-selector span { transition: transform 0.1s; user-select: none; }
.star-selector span:hover { transform: scale(1.2); }

/* Image preview box */
.image-preview-box {
    margin-top: 0.5rem;
    position: relative;
    display: inline-block;
}
.image-preview-box img {
    max-width: 220px;
    max-height: 160px;
    object-fit: cover;
    border: 2px solid #ccc;
    border-radius: 6px;
    display: block;
}
/* アップロード済み画像の削除ボタン（右上に重ねて表示） */
.img-preview-delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e53935;
    color: white;
    border: 2px solid white;
    font-size: 0.7rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    transition: background 0.15s;
    padding: 0;
}
.img-preview-delete-btn:hover { background: #b71c1c; }
/* アップロード済みファイル名 */
.img-filename-display {
    font-size: 0.78rem;
    color: #555;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 8px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Schedule Modal ===== */
.schedule-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.72);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.schedule-modal {
    background: white;
    border: 3px solid black;
    border-radius: var(--radius-comic);
    box-shadow: 8px 8px 0 black;
    padding: 1.5rem;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.schedule-modal h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.6rem;
}

.schedule-modal .close-btn {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    font-weight: bold;
    line-height: 1;
}
.schedule-modal .close-btn:hover { color: black; }

/* Admin Panel New Layout */
.admin-action-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.admin-action-btns .btn {
    font-size: 0.95rem;
    padding: 0.65rem 1.2rem;
}

/* ===== Rainbow Divider Bar ===== */
.rainbow-bar {
    height: 8px;
    background: linear-gradient(
        to right,
        #FF0000 0%, #FF6600 14%, #FFD700 28%,
        #33CC00 43%, #0066FF 57%, #6600CC 71%, #FF00AA 86%, #FF0000 100%
    );
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

/* ===== Floating Animation ===== */
@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}

/* ===== Scroll-in Animation ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CTA Card with にじたん ===== */
.cta-card {
    background: #111 !important;
    border-color: black !important;
    overflow: visible !important;
}

.cta-card .card-header {
    display: none;
}

.cta-card .card-body {
    padding: 0 !important;
}

.cta-card-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 1rem 0.5rem;
}

.cta-nijitan {
    width: 90px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(2px 2px 0px rgba(255, 215, 0, 0.5));
}

.cta-text {
    color: white;
    flex: 1;
}

.cta-text h3 {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
    color: var(--color-accent);
}

.cta-text p {
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
    color: #ccc;
    line-height: 1.5;
}

/* ===== Section Title Banner ===== */
.section-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0 1rem;
}

.section-banner-line {
    flex: 1;
    height: 3px;
    background: black;
}

.section-banner-title {
    font-size: 1.3rem;
    font-weight: 900;
    background: black;
    color: var(--color-accent);
    padding: 0.3rem 1.2rem;
    border-radius: 99px;
    white-space: nowrap;
}

/* ===== Mobile Responsive (hero new layout) ===== */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .hero-nijitan {
        max-height: 210px;
    }

    .hero-headline {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }

    .hero-btn-row {
        justify-content: center;
    }

    .hero-eyebrow {
        transform: none;
    }

    .hero-subtext {
        display: block;
        text-align: left;
    }

    .cta-card-inner {
        justify-content: center;
    }

    .cta-nijitan {
        width: 65px;
    }
}
