body {
    background-color: #1a1a1a;
    background-image: url('./bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* 日本語フォント優先で見やすく */
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    margin: 0;
    overflow-x: hidden;
}

.container {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 600px;
    width: 100%;
    color: white;
}

/* === ロゴデザイン（Root仕様・レスポンシブ対応版） === */
h1.root-title {
    margin: 0 0 15px;
    font-weight: 300;
    line-height: 1.2;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8);

    /* Flexboxで自然な折り返しを制御 */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 15px;
    /* PC表示時の間隔 */
}

/* 単語ごとのまとまり（途中改行禁止） */
.word {
    white-space: nowrap;
}

/* 頭文字（W, H, R） */
.initial {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    /* 根っこライン */
    margin-right: 1px;
}

/* 残りの文字 */
.rest {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-right: 5px;
}

/* スマホ表示時の最適化 */
@media (max-width: 480px) {
    h1.root-title {
        gap: 5px 10px;
        /* 間隔を詰める */
    }

    .initial {
        font-size: 1.5rem;
        /* スマホではサイズ差を控える */
        border-bottom-width: 2px;
    }

    .rest {
        font-size: 1.2rem;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ================================= */

p.bio {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 0.9rem;
    display: inline-block;
}

.links {
    width: 100%;
}

.link-group {
    margin: 10px 0;
}

.link-button {
    display: block;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.link-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #fff;
}

.sub-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-top: 8px;
    font-size: 0.85em;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.sub-link:hover {
    color: white;
    border-bottom-color: white;
}

/* === ショートカットセクションのデザイン === */
.section-label {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-transform: uppercase;
}

.shortcuts-container {
    text-align: center;
}

.domain-desc {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    text-align: left;
}

/* ================================== */

.shortcut-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.shortcut-item {
    font-family: monospace;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.shortcut-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.arrow {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
    font-size: 0.8em;
}

footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
}

footer p {
    margin: 5px 0;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}