/* -------------------------------------------
 * 基本設定 & 共通スタイル
 * ------------------------------------------- */
:root {
    --custom-orange: #E74C07;
    --text-dark: #333;
    --text-black: #000;
    --bg-light-gray: #f6f6f6;
    --font-noto: 'Noto Sans JP', sans-serif;
    --font-jost: 'Jost', sans-serif;
}

body {
    font-family: var(--font-noto);
    color: var(--text-dark);
    background-color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* メニュー表示時に背景をスクロールさせない */
body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom; /* 画像下の余白対策 */
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px; /* PCでの最大幅 */
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* -------------------------------------------
 * ヘッダー
 * ------------------------------------------- */
/*.site-header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.logo img {
    height: 2.5rem;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem; 
}

.main-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.main-nav .nav-en {
    font-family: var(--font-jost);
    color: var(--custom-orange);
    font-weight: 700;
    font-size: 1rem; 
    letter-spacing: normal;
}

.main-nav .nav-ja {
    color: var(--text-black);
    font-weight: 700;
    font-size: 0.6rem; 
    margin-top: -0.25rem;
}*/

/* -------------------------------------------
 * ハンバーガーメニュー
 * ------------------------------------------- */
.hamburger-button {
    display: none; /* PCでは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* メニューより手前に */
}

.hamburger-bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-black);
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
}

/* ハンバーガーメニューが開いた時の「×」印アニメーション */
.hamburger-button.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger-button.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.hamburger-button.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* -------------------------------------------
 * フッター
 * ------------------------------------------- */
.site-footer {
    background-color: var(--bg-light-gray);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 3rem;
    width: auto;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links img {
    height: 1.5rem;
    width: auto;
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 0.875rem;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

/* -------------------------------------------
 * 共通ユーティリティクラス
 * ------------------------------------------- */
.font-jost {
    font-family: var(--font-jost);
}

.text-custom-orange {
    color: var(--custom-orange);
}

.bg-custom-orange {
    background-color: var(--custom-orange);
}

/* セクションタイトルの下線 */
.section-title {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2.5rem;
    display: inline-block; 
}
/*
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #69b55b;
}*/

/* リストのカスタムマーカー */
.custom-list-disc li {
    position: relative;
    padding-left: 1.5em; /* マーカーを置くための左側の余白 */
}

.custom-list-disc li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3em; /* 上下の位置を微調整 */

    /* 円のスタイリング */
    width: 1em;  /* 円の直径 */
    height: 1em; /* 円の直径 */
    border: 4px solid #69b55c; /* 線の太さと色 */
    border-radius: 50%; /* 正円にする */
    box-sizing: border-box; /* 線の太さを含めてサイズ計算する */
} 

/* チェックボックスアイコン */
.check-icon {
    min-width: 30px;
    min-height: 30px;
    width: 30px;
    height: 30px;
}

/* テーブルのスタイル */
.custom-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 1rem;
    vertical-align: top;
    padding-left: 3rem;
}

.custom-table th {
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 1rem;
    vertical-align: middle;
    width: 15%;
    text-align: left;
    position: relative;
}

.custom-table {
    border-top: 1px solid #e5e7eb;
}

/* thの右側に余白付きの縦線を描画 */
.custom-table th::after {
    content: '';
    position: absolute;
    top: 1.5rem;    /* 上の余白 */
    bottom: 1.5rem; /* 下の余白 */
    right: 0;
    width: 1px;
    background-color: #e5e7eb;
}

.sidebar {
    /* サイドバーの基本スタイル */
}

.sidebar-sticky {
    position: sticky;
    top: 1rem;
}

.form-wrapper {
    background-color: #f7fafc;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #69b55c;
    text-align: left;
    margin-bottom: 1rem;
    margin-top: 1rem;
    padding-left: 1rem;
}

/* -------------------------------------------
 * レスポンシブ対応
 * ------------------------------------------- */
@media (max-width: 768px) {
    .site-header::after {
        content: '';
        position: absolute;
        bottom: -50px;
        left: -25%;
        width: 150%;
        height: 200px;
        background: white;
        border-radius: 50%;
    }
    .main-container {
        margin-top: -6rem;
    }

    .breadcrumb {
        margin-bottom: 2.5rem;
    }
    .main-nav ul {
        gap: 0.5rem;
    }
    
    .main-nav .nav-en {
        font-size: 0.875rem;
    }
    
    .main-nav .nav-ja {
        font-size: 0.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hamburger-button {
        display: block; /* スマホでは表示 */
    }
    
    .main-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 1000;
        /* メニュー内の配置を調整 */
        flex-direction: column;
        justify-content: flex-start; /* 上から配置 */
        align-items: center;
        padding-top: 0;
        box-sizing: border-box;


        /* 初期状態は画面の外(右)で非表示 */
        transform: translateX(100%);
        visibility: hidden;
        /* なめらかな動きのためのtransition設定 */
        transition: transform 0.4s ease-in-out, visibility 0.4s;
    }
    
    /* メニューが開いた時のスタイル */
    .main-nav.is-active {
        transform: translateX(0);
        visibility: visible;
    }
    
    .main-nav.is-active .logo-in-menu {
        display: block;
        position: absolute; /* ← 要素を独立させる */
        top: 2rem;          /* ← 上からの位置を指定 */
        left: 2rem;         /* ← 左からの位置を指定 */
    }

    .logo-in-menu img {
        height: 2.5rem; /* ヘッダーロゴと同じ高さを指定 */
        width: auto;
    }
    
    /* メニュー項目を縦並びに */
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        padding-top: 10rem; /* ← ロゴと被らないように上部に余白を追加 */
        width: 100%;       /* 中央揃えを維持するために幅を指定 */
    }
}
