﻿/* :root / :host (CSS Variables) */
:root {
    --main-color: #0d7973; /* 参照元サイトのメインカラー (青緑) */
    --accent-color: #f39c12; /* 参照元サイトのアクセント (オレンジ) */
    --base-color: #ffffff;
    --text-color: #333;
    --light-bg-color: #f4f9f9;
    --border-color: #e0e0e0;
}

/* --- 2カラムレイアウト --- */
.content-wrapper {
    display: flex;
    flex-wrap: wrap; /* モバイルで折り返すため */
    gap: 30px;
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
}

.main-column {
    flex: 3; /* 75% 程度の幅 */
    min-width: 400px; /* 最小幅 */
}

.sidebar-column {
    flex: 1; /* 25% 程度の幅 */
    min-width: 300px; /* 最小幅 */
}

/* --- メインコンテンツ ウィジェット (今回追加) --- */
.content-widget {
    background-color: var(--base-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
}

    .content-widget h2 {
        font-size: 22px;
        color: var(--main-color);
        margin-top: 0;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--main-color);
    }

        .content-widget h2 i {
            margin-right: 10px;
        }

/* --- サイドバー ウィジェット --- */
.sidebar-widget {
    background-color: var(--base-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
}

    .sidebar-widget h3 {
        font-size: 20px;
        color: var(--main-color);
        margin-top: 0;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--main-color);
    }

        .sidebar-widget h3 i {
            margin-right: 8px;
        }

    .sidebar-widget .welcome-message {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 20px;
        text-align: center;
    }

        .sidebar-widget .welcome-message i {
            color: var(--accent-color);
        }


/* --- サイドバー ログインフォーム (q-item, q-input) --- */
.q-item {
    margin-bottom: 15px;
}

.q-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
}

.q-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .q-input:focus {
        outline: none;
        border-color: var(--main-color);
        box-shadow: 0 0 0 3px rgba(13, 121, 115, 0.15);
    }

/* --- ボタン スタイル (共通) --- */
.btn {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0);
    }

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

    .btn-primary:hover {
        background-color: #e6861a;
    }

.btn-secondary {
    background-color: #a0a0a0;
    color: white;
    margin-top: 10px;
}

    .btn-secondary:hover {
        background-color: #888;
    }

.btn-signup {
    background-color: #0d7973;
    color: white;
    margin-top: 10px;
}

    .btn-signup:hover {
        background-color: #0a635d;
    }


/* --- ログイン後 サイドバーメニュー --- */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar-menu li {
        margin-bottom: 12px;
    }

    .sidebar-menu a {
        display: block;
        padding: 15px 20px;
        background-color: var(--light-bg-color);
        color: var(--text-color);
        text-decoration: none;
        font-weight: 600;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        transition: all 0.2s ease-in-out;
    }

        .sidebar-menu a:hover {
            background-color: var(--main-color);
            color: white;
            border-color: var(--main-color);
            transform: translateX(5px);
        }

        .sidebar-menu a i {
            margin-right: 12px;
            width: 20px;
            text-align: center;
        }

/* --- メインコンテンツ内の詳細スタイル --- */
/* お知らせリスト */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px dashed var(--border-color);
}

    .news-item:last-child {
        border-bottom: none;
    }

.news-date {
    background-color: var(--main-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.news-item a {
    text-decoration: none;
    color: var(--main-color);
    font-weight: 600;
}

    .news-item a:hover {
        text-decoration: underline;
    }

/* 注意書き (callout) */
.callout {
    background-color: #fffaf0; /* 薄いオレンジ */
    border: 1px solid var(--accent-color);
    border-left: 5px solid var(--accent-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
}

    .callout strong {
        color: #c27c0e; /* 濃いオレンジ */
    }

/* 料金テーブル */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

thead th {
    background-color: var(--light-bg-color);
    font-weight: 600;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: #fcfcfc;
}

td:last-child {
    font-weight: 600;
    color: var(--main-color);
}

/* 注意事項リスト */
#caution ul {
    list-style: none;
    padding-left: 0;
}

#caution li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

#caution .icon-list-red {
    position: absolute;
    left: 0;
    top: 4px;
    color: #e74c3c; /* 赤色 */
}

.caution-note {
    font-weight: 600;
    color: #c0392b; /* 濃い赤 */
}

.note {
    font-size: 14px;
    color: #555;
    margin-top: 15px;
}

/* --- ヘッダーとバナー (既存のスタイル) --- */
.top-banner {
    background: linear-gradient(90deg, #0d7973, #1a9993);
    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

.top-banner h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.top-banner p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.header {
    background-color: var(--base-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .header h1 {
        margin: 0;
        font-size: 24px;
        color: var(--text-color);
    }

        .header h1 i {
            color: var(--main-color);
        }

/* --- フッター --- */
.footer {
    background-color: #34495e;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
}

    .footer p {
        margin: 0;
        opacity: 0.8;
    }


/* --- レスポンシブ (900px以下) --- */
@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column; /* カラムを縦積みに変更 */
        gap: 20px;
    }

    .main-column,
    .sidebar-column {
        flex: 1 1 100%; /* 両方のカラムをフル幅に */
        min-width: 100%;
    }
}
