/* 新しいカラースキームとフォント */
:root {
    --color-bg-dark: #1A1A1A;
    --color-bg-light: #ffffff;
    --color-text-dark: #2C2C2C;
    --color-text-light: #ffffff;
    --color-accent-gold: #D4AF37;
    --color-accent-bronze: #B27C44;
}

/* 【重要】アイコンの枠を四角に変更する修正 */
.social-icon {
    width: 40px;
    height: 40px;
    /* ▼▼▼ 修正点: border-radiusを50%から0に変更し、四角にする ▼▼▼ */
    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);
}

/* --- 他のセクションのCSSは変更なし --- */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
body.menu-open {
    overflow: hidden;
}
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: center;
    color: white;
    padding-bottom: 8rem;
}
.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.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;
}
/* SEO: H1タグ内のキーワードを視覚的に強調する調整 */
.hero-title span {
    color: #FFD700; /* 識別しやすいよう金色系に調整 */
}
.cta-button {
    background-color: transparent;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    border: 2px solid white;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s, border-color 0.3s;
    animation: fadeIn 1s ease-in-out 0.6s forwards;
    opacity: 0;
}
.cta-button:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-2px);
}
/* --- ヒーローセクション終わり --- */

.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 {
    color: #1f2937;
}

/* 以下は重厚感のあるデザインを維持 */
body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.section-title-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2rem;
    display: inline-block;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 10px;
}

/* カードのスタイル */
.card {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* 画像フィルターを修正し、アニメーションを追加 */
.card-image-container {
    overflow: hidden; /* 拡大した画像がはみ出さないように */
}
.card-image-container img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    /* 待機時をさらに濃いカラーへ変更 */
    transition: filter 0.5s, transform 0.5s; /* transformにもtransitionを追加 */
}
.group:hover .card-image-container img {
    filter: grayscale(0%);
    transform: scale(1.05); /* 拡大モーションを追加 */
}

.feature-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #a3b18a;
    border-radius: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.divider-line {
    height: 2px;
    width: 100px;
    background-color: #a3b18a;
    margin: 2rem auto;
}

.cta-button-improved {
    background: linear-gradient(135deg, var(--color-accent-gold), var(--color-accent-bronze));
    color: var(--color-bg-dark);
    padding: 1.2rem 3.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(180, 150, 80, 0.3);
}
.cta-button-improved:hover {
    background: var(--color-bg-dark);
    color: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    transform: translateY(-2px);
}

/* 新規追加: cta-button-black のスタイル */
.cta-button-black {
    background-color: transparent;
    color: #2C2C2C;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    border: 2px solid #2C2C2C;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s, border-color 0.3s, color 0.3s;
    display: inline-block;
}
.cta-button-black:hover {
    background-color: #2C2C2C;
    color: #fff;
    transform: translateY(-2px);
}

.drawer-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 50;
    display: flex;
}
.drawer-wrapper.open {
    transform: translateX(0);
}
.drawer-content {
    width: 75%;
    max-width: 400px;
    height: 100%;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
}
.main-menu-container, .sub-menu-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: #f7f7f7;
    flex-shrink: 0;
    transition: transform 0.3s ease-in-out;
}
.sub-menu-container {
    background-color: #fff;
}
.drawer-content.sub-menu-active .main-menu-container {
    transform: translateX(-100%);
}
.drawer-content.sub-menu-active .sub-menu-container {
    transform: translateX(-100%);
}
.menu-item-with-arrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}
.close-drawer-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 60;
}
/* カード内の画像の高さを調整 */
.card-image-container img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    border-top-left-radius: 0.5rem; /* rounded-t-lg */
    border-top-right-radius: 0.5rem; /* rounded-t-lg */
}

/* 新規追加セクションのスタイル */
.self-history-section {
    /* 背景をグラデーションに変更 */
    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;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative; /* 帰属表示のために必要 */
}
.self-history-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.5;
    letter-spacing: 0.05em;
}
.self-history-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-dark);
    margin-top: 1rem;
}
.feature-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #a3b18a;
    border-radius: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}
.feature-icon-container {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}
.feature-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-text {
    color: #4a5568;
    line-height: 1.8;
}
.divider-line {
    height: 2px;
    width: 100px;
    background-color: #a3b18a;
    margin: 2rem auto;
}

/* プランセクションのスタイル */
.plan-section {
    position: relative;
    background-color: var(--color-bg-mid);
    padding: 10rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 120px;
}
.plan-bg {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: 1;
}
.plan-content {
    position: relative;
    z-index: 10;
    flex-grow: 1;
}
.plan-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}
.plan-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
}
.search-box {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.search-box input {
    border: none;
    outline: none;
    flex-grow: 1;
    padding-left: 0.75rem;
    font-size: 1rem;
    color: #4a5568;
}
.search-box svg {
    color: #a0aec0;
}
/* セクション区切り SVG */
.section-divider {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    background-color: var(--color-bg-light);
}
.section-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    fill: var(--color-bg-mid);
    transform: translateY(1px);
}

.plan-content {
    position: relative;
    left: 100px; 
}

@media (min-width: 768px) {
    .plan-content {
        left: 100px; 
    }
}
/* --- 新規追加セクション「もっと知る」のスタイル --- */
.more-info-section {
    padding: 8rem 0;
    background-color: #f7f7f7;
    text-align: center;
}
.more-info-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 4rem;
}
.info-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.info-card img {
    width: 100%;
    height: auto;
    display: block;
}
.info-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    min-height: 100px;
}
.info-card-title {
    font-size: 1.25rem;
    font-weight: 600;
}
.info-card-arrow {
    width: 24px;
    height: 24px;
    color: white;
}
/* 添付画像のフレーム形状を忠実に再現するためのアスペクト比調整 */
.info-card-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 768px) {
    .info-card-container {
        grid-template-columns: 1fr;
    }
}
/* 新規追加: フッターのスタイル */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 4rem 0;
    font-family: 'Noto Sans JP', sans-serif;
}
.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;
}

/* 帰属表示のスタイル */
.attribution {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.75rem;
    color: #6b7280;
    opacity: 0.7;
    z-index: 100;
}
.attribution a {
    color: #6b7280;
    text-decoration: none;
}
.attribution a:hover {
    text-decoration: underline;
}
/* ユーザーからの要望による追加CSS */
.py-8.bg-white:has(.text-6xl) {
    padding-top: 10rem;
    padding-bottom: 10rem;
}
/* 新規追加: cta-button-in-text のスタイル */
.cta-button-in-text {
    background-color: transparent;
    color: #2C2C2C;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    border: 2px solid #2C2C2C;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s, border-color 0.3s, color 0.3s;
    display: inline-block;
}
.cta-button-in-text:hover {
    background-color: #2C2C2C;
    color: #fff;
    transform: translateY(-2px);
}

/* ユーザーの要望によるデザイン変更 */
.cta-button-white-fill {
    background-color: #ffffff;
    color: #2C2C2C;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    border: 2px solid #2C2C2C;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s, border-color 0.3s, color 0.3s;
    display: inline-block;
}
.cta-button-white-fill:hover {
    background-color: #2C2C2C;
    color: #fff;
    transform: translateY(-2px);
}

/* 「大切な家族と、安心で繋がる」セクションの薄い抹茶色のボタン */
.cta-button-green {
    background-color: #A3B18A;
    color: #ffffff;
    padding: 1.2rem 3.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid #A3B18A;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(163, 177, 138, 0.3);
}
.cta-button-green:hover {
    background-color: transparent;
    color: #A3B18A;
    border-color: #A3B18A;
    transform: translateY(-2px);
}

.bold-black {
    font-weight: bold;
    color: black;
}

/* 【ご利用.htmlからの追加】画像CTAのスタイル */
.image-cta-container {
    display: block; /* 縦並びを確保 */
    margin: 1.5rem auto 2.5rem; /* 既存ボタンや次の要素との間隔を確保 */
    max-width: 400px; /* PCでのボタンの横幅を制限 */
    height: auto; 
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}
.image-cta-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}
.image-cta-container img {
    width: 100%;
    height: auto; /* 高さを自動調整し、アスペクト比を維持 */
    vertical-align: top;
}
@media (max-width: 768px) {
     .image-cta-container {
         max-width: 90%;
         height: auto; /* モバイルでも高さを自動調整 */
    }
     .image-cta-container img {
        height: auto; /* モバイルでも高さを自動調整 */
    }
}

/* ユーザーからの要望による追加CSS - 画像の上にテキストを重ねるため（今回は不使用、欄外配置のため） */
.image-cta-with-text-container {
    position: relative; /* 子要素を絶対配置するため */
    display: block;
    margin: 0 auto;
    max-width: 400px; 
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}
.image-cta-with-text-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}
.image-cta-with-text-container img {
    width: 100%;
    height: auto;
    display: block;
}
.cta-text-overlay {
    position: absolute;
    top: 10px; /* 画像の上部に配置 */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(44, 44, 44, 0.9); /* テキストの背景色 */
    color: #ffffff;
    font-size: 0.875rem; /* text-sm */
    font-weight: 700; /* font-bold */
    padding: 0.25rem 0.75rem; /* py-1 px-3 */
    border-radius: 5px;
    z-index: 10;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .image-cta-with-text-container {
         max-width: 90%;
    }
    .cta-text-overlay {
        font-size: 0.75rem; /* モバイルではさらに小さく */
    }
}