/* ==========================================================================
   Project: ARBORETUM (Beta) Style Sheet
   Based on: System Template by campanella
   Modified by: Haruka
   Theme: Concrete / Houseplant (Dominant) / Earth (Accent)
   ========================================================================== */

/* リセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ::selection (テキスト選択時の色) */
::selection {
    background: #556B2F; /* オリーブグリーン（緑に戻しました） */
    color: #fff;
}

body {
    /* 背景：コンクリート（明るいグレー） */
    background-color: #e8e8e8; 
    
    /* 文字：濃いモスグリーン */
    color: #2f4f2f;
    font-family: 'Outfit', 'Zen Kaku Gothic New', sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    letter-spacing: 0.02em;
    padding: 20px 0;
}

a {
    text-decoration: none;
    /* リンク色：落ち着いた緑 */
    color: #4a6b4a; 
    transition: all 0.3s ease;
    border-bottom: 1px dotted transparent;
}

a:hover {
    /* ホバー時：ここでアクセントの「茶色」を使用（土が見えるイメージ） */
    color: #8b5a2b; 
    border-bottom-color: #8b5a2b;
}

/* 中央コンテナ */
.container {
    text-align: center;
    width: 100%;
    max-width: 640px;
    padding: 20px;
    
    /* 枠線：緑に変更（植物のフレーム） */
    border-left: 1px solid #556B2F; 
    border-right: 1px solid #556B2F;
    
    margin: 80px auto 0;
}

/* ヘッダー */
header {
    margin-bottom: 20px;
}

h1 {
    font-weight: 700;
    font-size: 2.0rem;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    
    /* タイトル：鮮やかなオリーブグリーン */
    color: #556B2F; 
    text-transform: uppercase;
    
    /* 下線だけ茶色（植物を支える土） */
    border-bottom: 2px solid #8b5a2b; 
    display: inline-block;
    padding-bottom: 5px;
}

.subtitle {
    font-size: 0.9rem;
    color: #555;
    font-weight: 400;
    margin-top: 10px;
    font-family: sans-serif;
    text-align: center;
}

.header-msg {
    margin-top: 20px; 
    font-size: 0.9rem;
    color: #4a6b4a; /* メッセージも緑系 */
    font-family: sans-serif;
    text-align: center; 
}

/* ナビゲーションメニュー */
nav ul {
    list-style: none;
}

nav li {
    margin-bottom: 25px;
}

nav a {
    display: inline-block;
    font-size: 1.1rem;
    position: relative;
    padding: 8px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;

    /* ボタン背景：コンクリートより少し濃いグレー */
    background-color: #dcdcdc;
    /* 枠線：緑 */
    border: 1px solid #556B2F;
    /* 文字色：濃い緑 */
    color: #2f4f2f;
}


/* ホバー時の挙動 */
nav a:hover {
    color: #fff;
    /* 背景：緑で塗りつぶす */
    background-color: #556B2F; 
    border-color: #556B2F;
}

nav a span {
    display: block;
    font-size: 0.65rem;
    color: #666; 
    margin-top: 2px;
    transition: color 0.3s ease;
}

nav a:hover span {
    color: #e8e8e8; 
}

/* フッター */
footer {
    margin-top: 80px;
    font-size: 0.7rem;
    color: #666;
    font-family: sans-serif;
    text-align: center;
}

footer p {
    text-align: center;
}

/* ----------------------------------------------------
   アニメーション
   ---------------------------------------------------- */
.fade-in {
    animation: fadeIn 2s ease forwards;
    opacity: 0;
}

.fade-in-delay {
    animation: fadeIn 2s ease 0.5s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   page.html 用のスタイル
   ========================================= */

body.sub-page {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    padding: 60px 0;
    align-items: flex-start;
}

.content-wrapper {
    text-align: left;
    padding: 0 10px;
}

.content-wrapper header h1 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.8rem;
    border-bottom: none;
    
    color: #fff; 
    /* 背景を緑に変更 */
    background-color: #556B2F; 
    padding: 5px 15px;
}

/* 見出し2 */
h2 {
    font-size: 1.1rem;
    color: #2f4f2f;
    
    /* 左線：緑 */
    border-left: 4px solid #556B2F; 
    border-bottom: none;
    
    padding-left: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    
    background: linear-gradient(90deg, rgba(85, 107, 47, 0.2) 0%, rgba(0,0,0,0) 100%);
}

p {
    line-height: 1.8;
    margin-bottom: 24px;
    color: #2f4f2f;
    font-size: 0.9rem;
    text-align: justify;
}

.back-link-area {
    margin-top: 80px;
    text-align: center;
    /* 点線はアクセントとして茶色を残す（または緑でも可） */
    border-top: 1px dashed #8b5a2b; 
    padding-top: 40px;
}

.back-link {
    font-size: 0.9rem;
    color: #666;
}

.back-link:hover {
    /* 戻るリンクも茶色アクセント */
    color: #8b5a2b;
}

/* admin/console関連 */
#console-wrapper {
    margin-top: 40px;
    border: 1px solid #bbb;
    padding: 10px;
    background-color: #f0f0f0;
}

.terminal-window {
    background-color: #1a1a1a; 
    color: #00ff00; 
    padding: 20px;
    font-family: 'Courier New', monospace;
    height: 300px;
    overflow-y: auto;
    border-radius: 4px;
    border: 1px solid #444;
}

/* =========================================
   スマホ表示用レスポンシブ対応
   ========================================= */
@media screen and (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.4;
    }

    .container {
        padding: 15px;
        margin-top: 40px;
        width: 95%; /* 横幅を少し広げて余裕を持たせる */
    }

.subtitle {
        /* remではなくpx指定で確実に小さくします（約10px） */
        font-size: 10px; 
        
        /* 文字の横の間隔をゼロにして詰める */
        letter-spacing: 0;
        
        /* 絶対に改行させない指定 */
        white-space: nowrap; 
        
        /* 幅をコンテナいっぱいまで確保 */
        width: 100%;
        display: block;
    }
}