/* --- ハイパーリンク（シックな水モチーフ）の設定 --- */

/* 未訪問: 深みのある静かな紺水の色 */
.content a:link {
    color: #3a6073;
    text-decoration: underline;
    transition: color 0.15s ease, background-color 0.15s ease;
}

/* 訪問済み: 鉱石を含んだ水のような落ち着いた灰青 */
.content a:visited {
    color: #607d8b;
}

/* ホバー時: 水面に薄い光が射したような淡い透明感のある青 */
.content a:hover {
    color: #4f839c;
    text-decoration: none;
    background-color: rgba(96, 125, 139, 0.15); /* 影のついたデスクトップに馴染む静かな波紋エフェクト */
}

/* クリック（アクティブ）時: 一瞬だけ深く沈むような濃いインディゴ */
.content a:active {
    color: #2c3e50;
    background-color: rgba(0, 0, 0, 0.05);
}

/* 1. フォントの定義 */


@font-face {
    font-family: 'KH-Dot-Akihabara';
    src: url('KH-Dot-Akihabara-16.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 2. 基本設定とブラウザの自動調整無効化 */
html, body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background-color: #a4b3bf;
    margin: 0;
    padding: 0;
    font-family: 'KH-Dot-Akihabara', "Osaka", "MS PGothic", sans-serif;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    image-rendering: pixelated;
    font-weight: normal;
    color: #000000;
    line-height: 1.6;
}

/* 3. 固定トップバー */
.top-nav {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 36px;
    background-color: #DDDDDD;
    border-bottom: 2px solid #000000;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 1000;
}

/* 4. メインエリア */
.desktop-area {
    padding: 60px 15px 40px; /* 左右の余白を少し詰めました */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* 5. ウィンドウ構造 */
.window {
    background-color: #DDDDDD;
    border: 1px solid #000000;
    box-shadow: 1px 1px 0 #ffffff inset, 4px 4px 0 rgba(0,0,0,0.2);
    width: 100%;
    max-width: 800px; 
    box-sizing: border-box;
}

.title-bar {
    background: repeating-linear-gradient(to bottom, #EEEEEE, #EEEEEE 1px, #CCCCCC 1px, #CCCCCC 2px);
    min-height: 28px;
    border-bottom: 1px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 0;
}

.title {
    background-color: #DDDDDD;
    padding: 2px 15px;
    font-size: 14px;
    border-left: 1px solid #999999;
    border-right: 1px solid #999999;
    line-height: 1.2;
}

/* 6. 本文エリア（PC基準） */
.content {
    padding: 24px 28px;
    font-size: 17px; /* PCでも少し大きめに調整 */
    letter-spacing: 0.03em;
}

.content p {
    margin-top: 0;
    margin-bottom: 1.4em;
}

/* 7. 見出しデザイン */
h1, h2, h3 { font-weight: normal; margin-top: 1.6em; margin-bottom: 0.8em; }
h1 { font-size: 26px; border-bottom: 2px solid #000; padding-bottom: 4px; margin-top: 0; }
h2 { font-size: 22px; border-left: 5px solid #000; padding-left: 10px; }
h3 { font-size: 18px; border-bottom: 1px dashed #666; width: fit-content; }

/* 8. ボタン・共通UI */
.os-button {
    text-decoration: none;
    color: #000;
    background-color: #DDDDDD;
    border: 1px solid #000;
    padding: 2px 12px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    box-shadow: 1px 1px 0 #FFF inset, 2px 2px 0 rgba(0,0,0,0.15);
    cursor: pointer;
    box-sizing: border-box;
    height: 70%;
    user-select: none;
}

/* --- ホバー・クリック時のエフェクト --- */
@media (hover: hover) {
    .os-button:hover:not(.current) {
        background-color: #EEEEEE;
    }
}
.os-button:active:not(.current) {
    background-color: #CCCCCC;
    box-shadow: 1px 1px 1px rgba(0,0,0,0.3) inset;
    transform: translate(1px, 1px);
}

.os-button.current {
    background-color: #000000;
    color: #FFFFFF;
    box-shadow: none;
}

.site-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: #444;
}

/* --- レスポンシブ調整 --- */

/* タブレット・中画面 (1300px以下) */
@media screen and (max-width: 1300px) {
    .title {
        font-size: 18px !important;
        padding: 4px 20px !important;
    }

    .title-bar {
        min-height: 40px !important;
    }

    .content {
        padding: 30px 24px !important;
        font-size: 20px !important; /* スマホ・タブレットで見やすい大きさに */
        line-height: 1.7 !important;
    }
    
    .content p {
        font-size: 20px !important;
        margin-bottom: 1.6em !important;
    }

    h1 { font-size: 32px !important; }
    h2 { font-size: 28px !important; }

    .top-nav {
        height: 50px;
    }

    .top-nav .os-button {
        font-size: 20px;
        padding: 4px 16px;
    }

    .desktop-area {
        padding-top: 90px;
    }
}

/* スマホ特化 (768px以下) */
@media screen and (max-width: 768px) {
    .title {
        font-size: 18px !important;
    }

    .title-bar {
        min-height: 38px !important;
    }

    .content {
        padding: 25px 18px !important; /* 余白を詰めて文字幅を確保 */
        font-size: 19px !important; /* スマホでの視認性を最優先 */
    }

    .content p {
        font-size: 19px !important;
    }

    .window {
        /* 画面端ギリギリまで使う設定 */
        width: 98%;
        max-width: 100%;
        border-left: 1px solid #000;
        border-right: 1px solid #000;
    }

    .desktop-area {
        padding-top: 95px;
        padding-left: 5px;
        padding-right: 5px;
    }

    h1 { font-size: 28px !important; }
    h2 { font-size: 24px !important; }

    .top-nav {
        height: 54px;
    }
    .top-nav .os-button {
        font-size: 18px;
    }
    
    .site-footer {
        font-size: 14px;
    }
}