@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;700&family=Shippori+Mincho:wght@400;700&display=swap');

/* ここから通常のCSSルールを記述 */
body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
}
h1 {
    font-family: 'Shippori Mincho', serif;
}

/* --- 下層ページ用メインビジュアルのスタイル --- */
.mv-under {
    width: 100%;
    min-height: 980px;
    background-image: url('../images/qa/slide1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative; /* 子要素の配置基準になるので必須 */
    overflow: hidden;

    /* ★★★ PCでのレイアウト調整 (Flexbox を利用) ★★★ */
    display: flex; /* Flexbox を有効にする */
    flex-direction: column; /* 子要素を縦に並べる */
    justify-content: space-between; /* mv-content と mv-content3 を上下に引き離す */
    align-items: flex-start; /* 全体の子要素を左寄せにする */
    padding: 40px; /* 全体の内側に余白を追加 (コンテンツが端に寄りすぎないように) */
    box-sizing: border-box; /* padding を含めて高さ計算 */
    /* ★★★ ここまでPCでのレイアウト調整 ★★★ */
}

/* メインビジュアル内のコンテンツのスタイル */
.mv-under .mv-content {
    z-index: 1;
    /* padding-top をヘッダーの高さなどを考慮して調整 */
    padding: 280px 20px 20px;
    width: 1280px; /* 中央寄せの幅 */
    margin: 0 auto; /* 中央寄せ */
    text-align: center; /* コンテンツ内のテキストは中央寄せを維持 */

    /* Flexbox で配置されるため、absolute 関連のスタイルは不要 */
}

.mv-under .mv-content h2 {
    font-family: 'Shippori Mincho', serif;
    font-size: 3em;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.mv-under .mv-content h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.0em;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.mv-under .mv-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.mv-under .mv-content p span {
    font-size: 0.8em;
    font-family: "Libertinus Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

/* --- .mv-content-title 内の <p> タグのスタイル --- */
.mv-content-title p {
    /* ★★★ ここを修正し、PCでも縦書き風を維持 ★★★ */
    position: absolute; /* 親要素 .mv-under を基準に配置 */
    left: 20px; /* 左からの位置を調整 (必要に応じて) */
    top: 20%; /* 垂直方向の中央に配置 */
    transform: translateY(50%) rotate(90deg); /* 自身の高さの半分で垂直中央に寄せ、-90度回転 */
    transform-origin: left center; /* 回転の基準点を左中央に設定 */
    white-space: nowrap; /* 文字列を折り返さない */

    /* 文字色やフォントサイズなどの調整 (必要に応じて) */
    color: #fff;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 10; /* 他のコンテンツの上に表示されるように */
    /* margin-bottom は position: absolute のため不要 */
}

.mv-content-title .content-title {
    font-size: 2.4rem !important;
    font-family: "Libertinus Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

/* --- .mv-content3 のスタイル --- */
.mv-content3 {
    /* ★★★ ここからPCでのスタイル変更 (absolute を使用しない) ★★★ */
    width: 1280px; /* 中央寄せの幅 */
    margin: 0 auto; /* 中央寄せ */
    text-align: left; /* ★PCでは左寄せに変更★ */
    color: #fff;
    z-index: 10;
    
    /* 下線（白い線）の適用 */
    padding: 20px;
    padding-bottom: 5px;

    display: inline-block; /* 内容に合わせて幅を調整し、下線を適用 */
    /* bottom: 40px; right: 40px; など absolute に関連するプロパティは削除 */
    margin-top: auto; /* flexアイテムとして下部に配置されるように */
    margin-right: auto; /* text-align: left と合わせて、flexアイテムとして左寄せを強調 */
    /* ★★★ ここまでPCでのスタイル変更 ★★★ */
}

.mv-content3 p {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left; /* 念のためここも左寄せ */
}

.mv-content3 h3 {
    width: 240px;
    display: inline-block;
    font-size: 1.8rem;
    font-weight: normal;
    margin-top: 0;
    text-align: left; /* 念のためここも左寄せ */
        border-bottom: 1px solid #fa4617;
}


.content-header {
    display: flex;
    align-items: flex-end;
    margin-bottom: 60px;
    justify-content: flex-start;
}

.content-title-horizontal {
    font-size: 2.2em; /* PCでの基本フォントサイズ */
    font-family: 'Shippori Mincho', serif; /* フォントファミリー共通化 */
    margin: 0;
    padding-bottom: 5px;
    color: #333; /* ★変更点: デフォルトの文字色を#333に設定（Priceセクションのデフォルト色） */
    flex-shrink: 0; /* 要素が縮まないようにする (PCレイアウト用) */
    white-space: nowrap; /* テキストが改行されないようにする (PCレイアウト用) */
}

.content-title-horizontal h2 {
        font-size: 0.8em;
}

.content-title-vertical {
    line-height: 1; /* 行間を詰める */
    font-size: 2.5em; /* PCでの基本フォントサイズ */
    font-weight: bold;
    color: #333; /* デフォルトの文字色 (各セクションで上書き) */
    padding-right: 20px; /* 日本語タイトルとの間隔 */
    flex-shrink: 0; /* 要素が縮まないようにする (PCレイアウト用) */
    white-space: nowrap; /* テキストが改行されないようにする (PCレイアウト用) */
}

/* --- よくあるご質問セクション --- */
.faq-section {
    max-width: 1280px; /* PCでの最大幅 */
    margin: 0 auto; /* 中央寄せ */
    padding: 80px 20px; /* 上下左右のパディング */
    box-sizing: border-box;
    background-color: #f2ecde; /* mainの背景色を継承 (あるいはセクション全体の背景色を設定) */
    color: #333;
}

.faq-container {
    display: flex; /* PCで2カラムにするため */
    gap: 40px; /* カラム間の余白 */
    flex-wrap: wrap; /* スマホで1カラムになるように */
}

/* 1. カテゴリーナビゲーション (左カラム) */
.faq-categories {
    flex: 0 0 250px; /* PCでの固定幅 */
    box-sizing: border-box;
    padding-right: 20px; /* 右カラムとの余白 */
    border-right: 1px dashed #ddd; /* 区切り線 */
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    margin-bottom: 15px; /* 各カテゴリ項目の下マージン */
}

.category-item:last-child {
    margin-bottom: 0;
}

.category-link {
    display: inline-block; /* 下線アニメーションのために必要 */
    text-decoration: none;
    color: #000; /* 文字色を黒に */
    font-size: 1.1em;
    font-weight: bold;
    position: relative; /* 下線アニメーションの基準 */
    padding-bottom: 2px; /* 下線と文字の間に少しスペース */
    cursor: pointer;
}

/* 下線アニメーション */
.category-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* 最初は幅0 */
    height: 1px; /* 下線の太さ */
    background-color: #000; /* 下線の色を黒に */
    transition: width 0.3s ease-out; /* アニメーション設定 */
}

.category-link:hover::before {
    width: 100%; /* ホバー時に幅100%に */
}

/* 2. Q&Aセクション (右カラム) */
.faq-content-wrapper {
    flex: 1; /* 残りのスペースを埋める */
    background-color: #fff; /* 背景色を白に */
    padding: 30px;
    border-radius: 8px; /* 角丸 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* 軽い影 */
}

.faq-category-block {
    margin-bottom: 60px; /* 各カテゴリブロック間の間隔 */
}

.faq-category-block:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee; /* タイトルの下線 */
    padding-bottom: 10px;
}

.faq-item {
    margin-bottom: 20px; /* 各Q&A項目の下マージン */
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    background-color: #f7f7f7;
    padding: 15px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #eee;
}

.faq-q-label {
    background-color: #000; /* Qの背景色 */
    color: #fff;
    border-radius: 50%; /* 丸にする */
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    flex-shrink: 0; /* 縮まないように */
    margin-right: 15px;
}

.question-text {
    flex-grow: 1; /* テキストが残りのスペースを埋める */
    padding-right: 30px; /* +/-アイコンとの間隔を確保 */
    margin: 0;
    padding-right: 30px; /* +/-アイコンとの間隔 */
    line-height: 1.5;
}

.faq-toggle-icon {
    font-size: 1.5em;
    font-weight: normal;
    color: #333;
    flex-shrink: 0;
    width: 20px; /* アイコンの幅を固定 */
    text-align: center;
}

/* 回答部分 */
.faq-answer {
    display: none; /* 初期は非表示 */
    overflow: hidden; /* 高さを0にするためにoverflowをhiddenに */
    max-height: 0; /* 高さを0に */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out, opacity 0.3s ease-out; /* アニメーションを追加 */
    opacity: 0; /* 透明度も0に */
    
    /* 既存のスタイルはここに残す */
    padding: 0px 20px 0px 30px; /* 初期パディングを0に */
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
    margin-left: 0px;
    /* animation: fadeIn 0.3s ease-out; は不要になりますので削除 */
    display: flex; /* flexは残して、中身の配置に使う */
    align-items: flex-start;
}

/* 回答部分が表示された時の状態 */
.faq-answer.is-open { /* JavaScriptでこのクラスを付与/削除します */
    max-height: 500px; /* 回答の最大高さ (コンテンツに合わせて調整。十分な高さを確保してください) */
    padding: 15px 20px; /* 表示時のパディング */
    opacity: 1; /* 透明度を1に */
    display: flex; /* flexは表示時に維持 */
}

/* QとAのラベルとそのテキスト部分を揃えるための調整 */

.faq-question,
.faq-answer {
    /* display: flex; と align-items: center; は既に設定済みのはずですが、念のため確認 */
    display: flex;
    align-items: flex-start; /* Q/Aラベルの丸の上端とテキストの行頭を揃える */
    padding-top: 15px; /* 上部パディングを調整 */
    padding-bottom: 15px; /* 下部パディングを調整 */
    /* その他の既存スタイルは維持 */
}

/* Qの丸背景色 */
.faq-q-label {
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    flex-shrink: 0;
    margin-right: 15px; /* Qラベルと質問テキストの間隔 */
    flex-shrink: 0; /* 縮まないように */
}

/* +/- アイコンの切り替え */
.faq-question.active .faq-toggle-icon {
    content: '-'; /* ★JavaScriptでクラスを付与し、-に切り替える */
}

/* これも追加します - .faq-question.activeでない場合の+アイコンを確保 */
.faq-toggle-icon {
    content: '+'; /* デフォルトは+ */
}

.faq-a-label {
    background-color: #000; /* Aの背景色 */
    color: #fff;
    border-radius: 50%; /* 丸にする */
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    flex-shrink: 0;
    margin-right: 15px; /* Aラベルと回答テキストの間隔 */
    flex-shrink: 0; /* 縮まないように */
}

.answer-text {
    flex-grow: 1;
    line-height: 1.7;
    font-size: 0.95em;
}

.answer-text p {
    margin-bottom: 1em; /* 段落間のスペース */
}

.answer-text p:last-child {
    margin-bottom: 0;
}

/* アコーディオンが開いた時のスタイル */
.faq-question.active .faq-toggle-icon {
    content: '-'; /* ★JavaScriptでクラスを付与し、-に切り替える */
}


/* フェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ////.min-width:751px | 751px ~
---------------------------------------------------------------------
------------
------------
------------
------------
------------
------------
------------
------------
------------
------------
max-width:750px | ~ 750px
------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {

    /* @media screen
    ------------------------------------------------------------------------- */

    /* モバイル時のメインビジュアルエリア */
    .mv-under {
        height: auto;
        min-height: 400px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 20px; /* スマホでの余白を統一 */
    }

    /* モバイル時のメインビジュアル内の見出し */
    .mv-under .mv-content {
        text-align: left; /* スマホでは左寄せ */
        padding: 180px 0 20px; /* 左右のpaddingを0にするか、mv-underのpaddingに任せる */
        width: auto; /* スマホでは幅を自動調整 */
        margin: 0; /* マージンをリセット */
    }

    .mv-under .mv-content h2 {
        font-size: 1.6em;
    }

    .mv-under .mv-content h3 {
        font-size: 1.2em;
    }

    /* モバイル時のメインビジュアル内の段落 */
    .mv-under .mv-content p {
        font-size: 1em;
        font-family: "Libertinus Mono", monospace;
        font-weight: 400;
        font-style: normal;
    }

    /* ボタンを左寄せにする */
    .mv-under .mv-content .btn-contact {
        font-size: 0.8em;
        text-align: center;
        display: block;
        margin-left: 0;
        margin-right: auto;
    }

    /* mv-content2 のスタイル (ご提示のコードにはありませんが、もし存在すれば調整) */
    .mv-under .mv-content2 {
        padding: 15px;
        margin-top: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-left: 20px;
    }

    /* --- .mv-content-title p (スマホでも同じ縦書きスタイルを維持) --- */
    .mv-content-title p {
        position: absolute; /* 引き続き absolute */
        left: 10px; /* スマホでの左からの位置調整 */
        top: 44%; /* スマホでの垂直方向の位置調整 (必要に応じて) */
        transform: translateY(-50%) rotate(-90deg); /* 引き続き回転 */
        transform-origin: left center;
        white-space: nowrap;
        font-size: 1rem;
        margin-bottom: 0; /* スマホでは margin-bottom をリセット */
    }

    .mv-content-title .content-title {
        font-size: 1.6rem !important;
    }


    /* --- .mv-content3 (スマホでは absolute + 右寄せを再適用) --- */
    .mv-content3 {
        position: absolute; /* スマホでは absolute に戻す */
        bottom: 20px;
        right: 20px;
        text-align: right; /* スマホでは右寄せに戻す */
        display: inline-block; /* absolute と合わせる */
        width: auto; /* 幅を自動調整 */
        margin-top: 0; /* 不要なマージンをリセット */
        margin-right: 0; /* 右寄せにするためリセット */
        padding: 0;
    }
    
    .mv-content3 p {
        font-size: 1.2rem;
        text-align: right; /* スマホでは右寄せに戻す */
    }

    .mv-content3 h3 {
        font-size: 1rem;
        text-align: right; /* スマホでは右寄せに戻す */
    }

    .content-title-vertical {
        font-size: 1.8em; /* スマホでのフォントサイズ */
        padding-right: 0; /* 縦並びになるため間隔不要 */
        margin-bottom: 5px; /* 日本語タイトルとの間に少し余白 */
    }

    .content-title-horizontal {
        font-size: 1.6em; /* スマホでのフォントサイズ */
        /* その他のスタイルは共通のものを継承 */
    }

    .company-info-section {
        padding: 40px 15px; /* スマホでのパディング */
    }

    .faq-section {
        padding: 40px 15px; /* スマホでのパディング */
    }

    .faq-container {
        flex-direction: column; /* 1カラムにする */
        gap: 30px; /* カラム間の間隔 */
    }

    /* 1. カテゴリーナビゲーション (上部に表示) */
    .faq-categories {
        flex: auto; /* 幅を自動調整 */
        padding-right: 0;
        border-right: none; /* PC用の区切り線解除 */
        margin-bottom: 20px; /* Q&Aセクションとの間隔 */
    }

    .category-list {
        display: flex; /* 横並びにする */
        flex-wrap: wrap;
        justify-content: center; /* 中央寄せ */
        gap: 10px; /* カテゴリ項目間の間隔 */
    }

    .category-item {
        margin-bottom: 0; /* スマホでの下マージン解除 */
    }

    .category-link {
        background-color: #d4be98; /* スマホでの背景色 */
        color: #fff; /* 白文字 */
        border-radius: 20px; /* 角丸 */
        padding: 8px 18px;
        font-size: 0.9em;
        font-weight: bold;
        white-space: nowrap; /* テキストが改行されないように */
        /* 下線アニメーションを無効化 */
        text-decoration: none;
    }
    .category-link::before {
        display: none; /* 下線を非表示 */
    }
    .category-link:hover {
        opacity: 0.8; /* ホバー時の透明度 */
    }

    /* 2. Q&Aセクション */
    .faq-content-wrapper {
        padding: 20px;
    }

    .faq-category-block {
        margin-bottom: 40px;
    }

    .faq-category-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .faq-question {
        padding: 12px 15px;
    }

    .faq-question,
    .faq-answer {
        padding-top: 12px; /* スマホでのパディング調整 */
        padding-bottom: 12px; /* スマホでのパディング調整 */
    }

    .faq-q-label {
        width: 25px;
        height: 25px;
        font-size: 1em;
        margin-right: 10px;
    }
    .faq-q-label,
    .faq-a-label {
        margin-right: 10px; /* スマホでのラベルとテキストの間隔 */
    }

    .question-text {
        font-size: 0.95em;
        padding-right: 25px;
    }

    .faq-toggle-icon {
        font-size: 1.3em;
        width: 15px;
    }

    .faq-answer {
        padding: 15px 15px 15px 25px;
    }

    .faq-a-label {
        width: 25px;
        height: 25px;
        font-size: 1em;
        margin-right: 10px;
    }

    .answer-text {
        font-size: 0.9em;
    }

    /* @media screen
    ------------------------------------------------------------------------- */
}