/* =========================================
   ORおおみや鉄道サーバー 専用スタイルシート
   Design: OmiyaSoft Style (Dark Modern)
   ========================================= */

html {
    scroll-behavior: smooth;
}

:root {
    --bg: #05070a;
    --ink: #e6edf5;
    --muted: #b1c0d1;
    --card: #0f151e;
    --line: #1f2a38;
    --primary: #2f80ed;
    --primary-strong: #2263b8;
    --accent-teal: #00c8c8;
    --ghost-bg: #1a2431;
    --danger: #ff6b6b;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: #0a1017;
    line-height: 1.7;
    padding-top: 80px;
}

/* 背景グラデーション */
.rent-page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 14%, rgba(47, 128, 237, 0.25), transparent 34%),
        radial-gradient(circle at 88% 20%, rgba(0, 200, 200, 0.16), transparent 38%),
        linear-gradient(180deg, #06090f 0%, #0b121b 100%);
}

/* メインコンテナ */
.rent-wrap {
    width: min(980px, calc(100% - 28px));
    margin: 20px auto 48px;
}

/* パンくずリスト */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #7fd8ff !important;
}

.breadcrumb span.sep {
    opacity: 0.5;
}

/* カード共通 */
.rent-hero,
.rent-panel,
.rent-card,
.rent-note {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
    border-radius: 10px;
}

/* ヒーローセクション */
.rent-hero {
    padding: 36px 32px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(47, 128, 237, 0.15);
    border: 1px solid rgba(47, 128, 237, 0.4);
    color: #7fd8ff;
    letter-spacing: 0.05em;
}

.badge-tag.highlight {
    background: rgba(255, 107, 107, 0.18);
    border-color: rgba(255, 107, 107, 0.5);
    color: #ff8e8e;
}

.badge-tag.success {
    background: rgba(46, 213, 115, 0.15);
    border-color: rgba(46, 213, 115, 0.4);
    color: #7bed9f;
}

.rent-hero h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
    background: linear-gradient(135deg, #ffffff 40%, #8ec8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-sub {
    font-size: 16px;
    color: var(--muted);
    margin: 10px 0 0;
    line-height: 1.6;
}

/* ★ トップ画像の大型ショーケース表示 ★ */
.hero-image-container {
    margin: 26px 0 24px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #28374d;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.65), 0 0 32px rgba(47, 128, 237, 0.18);
    background: #090e15;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image-container:hover img {
    transform: scale(1.01);
}

/* ボタン群 */
.rent-cta-row {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 13px 24px;
    font-weight: 700;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.rent-btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(47, 128, 237, 0.35);
}

.rent-btn-primary:hover {
    background: var(--primary-strong);
    box-shadow: 0 6px 20px rgba(47, 128, 237, 0.5);
    text-decoration: none !important;
}

.rent-btn-ghost {
    background: var(--ghost-bg);
    color: #ffffff !important;
    border: 1px solid var(--line);
}

.rent-btn-ghost:hover {
    background: #233143;
    border-color: #3b4e68;
    text-decoration: none !important;
}

/* パネルセクション */
.rent-panel {
    padding: 28px;
    margin-bottom: 24px;
}

.rent-panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
    color: #fff;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rent-lead {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

/* 2カラムグリッド */
.rent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.rent-card {
    padding: 22px;
}

.rent-card h3 {
    margin: 0 0 12px;
    font-size: 17px;
    color: #7fd8ff;
}

.rent-card ul,
.rent-card ol {
    margin: 0;
    padding-left: 1.2em;
}

.rent-card li {
    margin: 8px 0;
    font-size: 14px;
    color: #d1deec;
    line-height: 1.6;
}

/* 仕様テーブル */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    margin-top: 14px;
}

.spec-table th,
.spec-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.spec-table th {
    width: 28%;
    color: #8da2bc;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
}

.spec-table td {
    color: #e6edf5;
}

.spec-table code {
    font-family: Consolas, Monaco, monospace;
    background: rgba(47, 128, 237, 0.15);
    border: 1px solid rgba(47, 128, 237, 0.3);
    color: #7fd8ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* 注意事項ボックス */
.warning-box {
    background: #181414;
    border: 1px solid #5a2727;
    border-radius: 8px;
    padding: 20px 22px;
    margin: 20px 0 0;
}

.warning-box h4 {
    margin: 0 0 10px;
    color: #ff7675;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box p {
    font-size: 13.5px;
    color: #d1b8b8;
    line-height: 1.7;
    margin: 0;
}

/* ステップ表示 */
.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.step-card {
    background: #0f1622;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px 20px;
    position: relative;
}

.step-badge {
    position: absolute;
    top: -10px;
    left: 18px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 12px;
    letter-spacing: 0.08em;
}

.step-card h4 {
    margin: 6px 0 8px;
    font-size: 16px;
    color: #fff;
}

.step-card p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* 最下部CTAエリア */
.bottom-cta-area {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* フッター */
footer {
    background-color: var(--card);
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
    font-size: 13px;
}

footer a {
    color: var(--muted);
    text-decoration: none;
    margin: 0 6px;
}

footer a:hover {
    color: #7fd8ff;
    text-decoration: underline;
}

/* モバイル対応 */
@media (max-width: 760px) {
    .rent-wrap {
        width: calc(100% - 20px);
        margin: 16px auto 32px;
    }

    .rent-hero,
    .rent-panel,
    .rent-card {
        padding: 20px 18px;
    }

    .rent-grid {
        grid-template-columns: 1fr;
    }

    .spec-table th {
        width: 36%;
    }

    .bottom-cta-area {
        flex-direction: column;
    }

    .bottom-cta-area .rent-btn {
        width: 100%;
    }
}

/* トップへ戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0.8;
    transition: all 0.2s ease;
    z-index: 100;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: #fff;
    background: var(--primary-strong);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

@media (max-width: 760px) {
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* =======================================================
   Minecraft サーバー稼働状況表示ウィジェット
   ======================================================= */
.mc-status-container {
    background: #141b24;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--ink);
    width: 100%;
    max-width: 360px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: border-color 0.3s ease;
}
.mc-status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.mc-status-pulse {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #888;
    flex-shrink: 0;
    transition: background-color 0.3s;
}
.mc-status-pulse.online {
    background-color: #00e676;
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    animation: mc-pulse 2s infinite;
}
.mc-status-pulse.offline {
    background-color: #ff5252;
    box-shadow: none;
    animation: none;
}
@keyframes mc-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}
.mc-status-title-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}
.mc-server-name {
    font-weight: bold;
    font-size: 15px;
    color: #ffffff;
}
.mc-status-badge {
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    background: #202b38;
    color: #aaa;
}
.mc-status-badge.online {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border: 1px solid #00e676;
}
.mc-status-badge.offline {
    background: rgba(255, 82, 82, 0.15);
    color: #ff5252;
    border: 1px solid #ff5252;
}
.mc-status-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    border-top: 1px solid #1f2a38;
    padding-top: 8px;
}
.mc-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mc-label {
    color: #889bb0;
}
.mc-value {
    color: #cbd5e1;
    font-family: monospace;
}
