:root {
    --color-bg-dark: #1A1A1A;
    --color-bg-light: #F0EAD6;
    --color-text-dark: #2C2C2C;
    --color-text-light: #F0EAD6;
    --color-accent-gold: #D4AF37;
    --color-accent-bronze: #B27C44;
    --color-accent-blue: #0047AB;
    --color-brand-green: #a3b18a; /* ブランドカラー */
    --color-brand-dark: #1a3e6c; 
    --color-brand-green-light: #b8c4a5; 
    --color-primary-history: #A3B18A; 
    --color-secondary-history: #2C2C2C; 
}

*, *:before, *:after { -webkit-box-sizing: inherit; box-sizing: inherit; }
html { -webkit-box-sizing: border-box; box-sizing: border-box; }

body {
    /* agreement.htmlの背景グラデーションを適用 */
    background-image: linear-gradient(112.5deg, rgb(214, 214, 214) 0%, rgb(214, 214, 214) 10%,rgb(195, 195, 195) 10%, rgb(195, 195, 195) 53%,rgb(176, 176, 176) 53%, rgb(176, 176, 176) 55%,rgb(157, 157, 157) 55%, rgb(157, 157, 157) 60%,rgb(137, 137, 137) 60%, rgb(137, 137, 137) 88%,rgb(118, 118, 118) 88%, rgb(118, 118, 118) 91%,rgb(99, 99, 99) 91%, rgb(99, 99, 99) 100%),linear-gradient(157.5deg, rgb(214, 214, 214) 0%, rgb(214, 214, 214) 10%,rgb(195, 195, 195) 10%, rgb(195, 195, 195) 53%,rgb(176, 176, 176) 53%, rgb(176, 176, 176) 55%,rgb(157, 157, 157) 55%, rgb(157, 157, 157) 60%,rgb(137, 137, 137) 60%, rgb(137, 137, 137) 88%,rgb(118, 118, 118) 88%, rgb(118, 118, 118) 91%,rgb(99, 99, 99) 91%, rgb(99, 99, 99) 100%),linear-gradient(135deg, rgb(214, 214, 214) 0%, rgb(214, 214, 214) 10%,rgb(195, 195, 195) 10%, rgb(195, 195, 195) 53%,rgb(176, 176, 176) 53%, rgb(176, 176, 176) 55%,rgb(157, 157, 157) 55%, rgb(157, 157, 157) 60%,rgb(137, 137, 137) 60%, rgb(137, 137, 137) 88%,rgb(118, 118, 118) 88%, rgb(118, 118, 118) 91%,rgb(99, 99, 99) 91%, rgb(99, 99, 99) 100%),linear-gradient(90deg, rgb(195, 195, 195),rgb(228, 228, 228)); background-blend-mode:overlay,overlay,overlay,normal;
    color: var(--color-text-dark);
    font-family: 'Noto Sans JP', sans-serif;
    min-height: 100vh;
    line-height: 1.8; 
}

/* agreement.htmlからコピー: ヘッダー/ヒーロー/アニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-image: url('https://i.imgur.com/79Vzd8c.png');
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 150px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-in-out;
    color: #fff;
}
.header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 20;
    transition: background-color 0.3s;
}
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
/* スクロール時のモバイルメニューアイコンの色を調整 */
.header.scrolled .logo, .header.scrolled a:not(.mega-menu-content a) {
    color: #1f2937;
}
.header.scrolled #mobileMenuButton svg {
     fill: #1f2937;
}

/* agreement.htmlからコピー: メガメニューのスタイル（デスクトップ用） */
.mega-menu-item {
    position: relative;
}
.mega-menu-trigger {
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}
.mega-menu-item:hover .mega-menu-trigger {
    color: var(--color-accent-gold); 
}
.mega-menu-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%; 
    transform: translateX(-50%); 
    min-width: 200px; 
    background-color: white; 
    border-radius: 0.5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    padding: 0; 
    overflow: hidden; 
    z-index: 30;
}
.mega-menu-item:hover .mega-menu-content {
    display: block;
}
.mega-menu-content a {
    display: block;
    padding: 0.75rem 1rem; 
    color: #1f2937; 
    white-space: nowrap;
    border-bottom: 1px solid #e5e7eb; 
}
.mega-menu-content a:last-child {
    border-bottom: none;
}
.mega-menu-content a:hover {
    background-color: #f3f4f6; 
    color: var(--color-brand-dark); 
}
.header.scrolled .mega-menu-item:hover .mega-menu-trigger {
     color: var(--color-brand-dark); 
}

/* --- モバイルメニュー用の追加スタイル --- */
#mobile-menu {
    position: absolute;
    top: 100%; /* ヘッダーの下に配置 */
    right: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98); /* ほぼ白 */
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    padding: 0;
    z-index: 15;
    display: none; /* 初期は非表示 */
    overflow: hidden; /* アコーディオンのアニメーション用 */
}
#mobile-menu.open {
    display: block;
}

/* メインリンクのスタイル */
.mobile-main-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--color-brand-dark); /* 濃い青系 */
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.2s;
}
.mobile-main-link:hover {
    background-color: #f3f4f6;
}

/* サブメニューのコンテナ（アコーディオン本体） */
.mobile-sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: #fafafa;
}

/* サブメニュー内のリンク */
.mobile-sub-menu a {
    display: block;
    padding: 0.75rem 2.5rem; /* 左側にインデント */
    color: #4A5568; /* グレー */
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}
.mobile-sub-menu a:last-child {
    border-bottom: none;
}
.mobile-sub-menu a:hover {
    background-color: #f0f0f0;
    color: var(--color-brand-dark);
}

/* 問い合わせボタン（常に表示するリンク）のスタイル */
.mobile-contact-link {
    padding: 1rem 1.5rem;
    color: var(--color-brand-dark);
    font-weight: 700;
    display: block;
    border-bottom: 1px solid #e5e7eb;
}
.mobile-contact-link:hover {
    background-color: #f3f4f6;
}

/* 矢印アイコンの回転 */
.arrow-icon {
    transition: transform 0.3s;
}
.mobile-main-link.open .arrow-icon {
    transform: rotate(90deg);
}

/* --- モバイルメニュー用の追加スタイル終わり --- */


/* agreement.htmlからコピー: ボタンのスタイル */
/* -------------------------------------- */
.button-link {
    text-decoration: none;
    color: inherit;
    display: block; 
    margin: 10px auto; 
    max-width: 400px; 
}

/* ----------------------------------------------------- */
/* メインボタン (青色) のスタイル */
/* ----------------------------------------------------- */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: linear-gradient(to bottom, #4f73a9 0%, var(--color-brand-dark) 100%); 
    color: white; 
    
    padding: 15px 30px;
    min-width: 250px; 
    border-radius: 10px; 
    font-size: 22px; 
    font-weight: 800; 
    white-space: nowrap;
    
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden; 
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); 
    transform: skewX(-30deg);
    transition: left 0.5s;
}

.button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
}
.button:hover::after {
    left: 150%; 
}

.button-icon-container {
    width: 30px; 
    height: 30px;
    min-width: 30px; 
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px; 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) inset;
}

.button-icon {
    fill: var(--color-brand-dark); 
    width: 14px; 
    height: 14px; 
    margin-left: 3px; 
}

/* -------------------------------------- */
/* ホームへ戻るボタンのスタイル (agreement.htmlからコピー) */
/* -------------------------------------- */
.home-button .button {
    background: linear-gradient(to bottom, #4f73a9 0%, var(--color-brand-dark) 100%); 
    color: white;
    padding: 12px 25px;
    min-width: 280px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3); 
}

.home-button .button:hover {
    transform: translateY(-4px); 
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
}

.home-button .button-icon-container {
    width: 25px; 
    height: 25px;
    min-width: 25px;
    margin-right: 10px;
}
.home-button .button-icon {
    fill: var(--color-brand-dark); 
    width: 15px; 
    height: 15px;
    margin-left: 0; 
}
/* --- ボタン関連のスタイルここまで --- */

/* history.htmlからコピー: コンテンツの再定義と調整 */
/* -------------------------------------- */

/* history.htmlのタイトル装飾（色をブランドカラーに調整） */
.section-title-history {
    position: relative;
    display: inline-block;
    font-size: 2.25rem; 
    font-weight: 700;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-text-dark); 
}
.section-title-history::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 300px;
    height: 4px;
    background-color: var(--color-accent-gold); 
}
.section-title-wrapper {
    text-align: center;
}

/* history.htmlのカードデザイン（色をブランドカラーに調整） */
.value-card {
    background-color: #ffffff;
    border-left: 6px solid var(--color-brand-green); 
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%; 
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* history.htmlの訴求ポイントリスト（色をブランドカラーに調整） */
.point-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}
.point-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-brand-green); 
    font-weight: 700;
    font-size: 1.2rem;
}

/* history.htmlのCTAボタン（agreement.htmlのボタンデザインに上書き） */
.cta-button-link {
    text-decoration: none;
    color: inherit;
    display: block; 
    margin: 10px auto; 
    max-width: 400px; 
}
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: linear-gradient(to bottom, #4f73a9 0%, var(--color-brand-dark) 100%); 
    color: white; 
    
    padding: 15px 30px;
    min-width: 250px; 
    border-radius: 10px; 
    font-size: 22px; 
    font-weight: 800; 
    white-space: nowrap;
    
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden; 
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}
.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
}
.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); 
    transform: skewX(-30deg);
    transition: left 0.5s;
}
.cta-button:hover::after {
    left: 150%; 
}

/* セクション区切り線 */
.divider {
    height: 1px;
    background-color: #ddd;
    margin: 4rem 0;
}

/* agreement.htmlからコピー: フッタースタイル */
/* -------------------------------------- */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    background-color: transparent;
    border: 1px solid transparent; 
    overflow: hidden; 
}
.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.social-icon:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); 
    transform: scale(1.05);
}
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 4rem 0;
    font-family: 'Noto Sans JP', sans-serif;
    margin-top: 4rem; 
}
.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-link {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.footer-link:hover {
    opacity: 1;
}
.footer-button {
    background-color: transparent;
    color: #fff;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s;
}
.footer-button:hover {
    background-color: #fff;
    color: #1a1a1a;
}
.social-icons-container {
    display: flex;
    gap: 1rem;
}
/* --- フッタースタイル終わり --- */