/* 基本的なリセットと設定 */
body, h1, h2, p, ul, li, form, input, textarea, button {
    margin: 0;
    padding: 0;
    font-family: sans-serif; /* 基本的なフォントを指定 */
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 画像が親要素からはみ出さないようにする設定 */
img {
    max-width: 100%;
    height: auto;
    display: block; /* 画像下の余白を消す */
    vertical-align: middle;
}

/* 各セクションの基本的なスタイル */
section {
    /* スタイルは個別のセレクタで指定 */
}

/* --- Header --- */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    box-sizing: border-box;
    z-index: 10;
}
header img {
    height: 40px;
    width: auto;
}

/* ボタンを配置するセクションを基準点にする */


/* --- MVセクション --- */
#mv {
    background-image: url('../img/background_mv.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh; /* デバイスの高さに合わせる */
    min-height: 600px; /* 最小の高さを設定 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.mv-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; /* 画像とボタンの間隔 */
    text-align: center;
}

/* --- New Business Section --- */
#new-business {
    background-image: url('../img/background_business.png');
    background-size: cover;
    background-position: center;
    padding: 120px 20px; /* 画像の上下に余白を持たせる */
    text-align: center; /* 中の画像を中央揃えにする */
}

#new-business img {
    display: inline-block; /* 中央揃えを適用するため */
}

/* --- About Section --- */
#about {
    background-image: url('../img/background_about.png');
    background-size: cover;
    background-position: center;
    padding: 120px 20px; /* 画像の上下に余白を持たせる */
    text-align: center; /* 中の画像を中央揃えにする */
}

#about img {
    display: inline-block; /* 中央揃えを適用するため */
}

/* --- Reason Section --- */
#reason {
    background-image: url('../img/background_reason.png');
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reason-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; /* 画像とボタンの間隔 */
    text-align: center;
}

/* --- Merit Section --- */
#merit {
    background-image: url('../img/background_merit.png');
    background-size: cover;
    background-position: center;
    padding: 120px 20px; /* 画像の上下に余白を持たせる */
    text-align: center; /* 中の画像を中央揃えにする */
}

#merit img {
    display: inline-block; /* 中央揃えを適用するため */
}

/* --- Use Case Section --- */
#use-case {
    background-image: url('../img/background_use-case.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.use-case-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; /* 画像とボタンの間隔 */
    text-align: center;
}

/* --- Flow Section --- */
#flow {
    background-image: url('../img/background_flow.png');
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flow-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; /* 画像とボタンの間隔 */
    text-align: center;
}

/* --- Support Section --- */
#support {
    background-image: url('../img/background_support.png');
    background-size: cover;
    background-position: center;
    padding: 120px 20px; /* 画像の上下に余白を持たせる */
    text-align: center; /* 中の画像を中央揃えにする */
}

#support img {
    display: inline-block; /* 中央揃えを適用するため */
}


/* CTAボタンの共通スタイル */
.cta_button {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* 水平方向中央揃え */
    width: 780px;
    max-width: 90%; /* 画面幅が狭いときのはみ出し防止 */
    box-sizing: border-box;
    text-align: center;
    background-color: #FF8C42;
    padding: 18px; /* borderの分だけpaddingを調整 */
    border-radius: 60px;
    border: 2px solid #FF8C42;
    transition: background-color 0.3s ease; /* 背景色の変化を滑らかに */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 影を追加 */
}

/* --- 各セクションごとのボタン位置調整 --- */
/* 画像に合わせて bottom の値を調整してください */



/* MVセクション専用のCTAボタンスタイル */
.cta_button_mv {
    display: inline-block;
    background-color: #FF8C42;
    padding: 18px 40px;
    border-radius: 60px;
    border: 2px solid #FF8C42;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta_button_mv:hover {
    background-color: #fff;
    color: #FF8C42;
}

.cta_button:hover {
    background-color: #fff; /* ホバー時に背景を白に */
}

.btn {
    color: #fff;
    font-size: 1.4rem; /* アイコン分のスペースを考慮して少し調整 */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease; /* 文字色の変化を滑らかに */
    display: inline-flex; /* アイコンとテキストを横並びにする */
    align-items: center; /* アイコンとテキストを垂直方向中央に揃える */
    justify-content: center; /* 全体を中央揃えにする */
    gap: 20px; /* アイコンとテキストの間隔 */
    width: 460px;
}

/* アイコンのスタイル */
.btn::before {
    content: '';
    display: inline-block;
    width: 1.8rem; /* 文字サイズに合わせる */
    height: 1.8rem; /* 文字サイズに合わせる */
    background-color: currentColor; /* 文字色と同じ色にする */
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z'/%3E%3C/svg%3E");
    mask-size: contain;
}

/* ボタンホバー時に中の文字色を変更 */
.cta_button:hover .btn {
    color: #FF8C42;
}

/* --- FAQセクション --- */
#faq {
    background-image: url('../img/faq_background.png');
    background-size: cover;
    background-position: center;
    padding: 120px 20px; /* 上下の余白 */
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 80px;
}

.faq-header img {
    display: inline-block; /* 中央揃えのため */
    max-width: 100%;
    width: 200px;

}

.faq-item {
    background-color: #56B8C7;
    color: #fff;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden; /* 角丸を維持するため */
}

.faq-question {
    padding: 20px 60px 20px 70px; /* 左の余白をアイコン分増やす */
    cursor: pointer;
    position: relative;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex; /* アイコンとテキストを揃えるため */
    align-items: center; /* アイコンとテキストを垂直中央に */
}

/* Qアイコン */
.faq-question::before {
    content: 'Q';
    position: absolute;
    left: 30px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.faq-question p {
    margin: 0;
}

/* 開閉アイコン(+) */
.faq-question .icon-toggle::before,
.faq-question .icon-toggle::after {
    content: '';
    position: absolute;
    right: 30px;
    top: 50%;
    width: 16px;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.3s ease;
}

.faq-question .icon-toggle::after {
    transform: translateY(-50%) rotate(90deg);
}
.faq-question .icon-toggle::before {
    transform: translateY(-50%);
}

/* active時のアイコン(-) */
.faq-question.active .icon-toggle::after {
    transform: translateY(-50%) rotate(0deg);
}

.faq-answer {
    background-color: #fff; /* 回答部分の背景を白に */
    max-height: 0;
    position: relative; /* Aアイコンを配置するための基準点 */
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

/* Aアイコン */
.faq-answer::before {
    content: 'A';
    position: absolute;
    left: 30px;
    top: 30px; /* pタグのpadding-topに合わせる */
    font-size: 1.2rem;
    font-weight: bold;
    color: #56B8C7;
}

.faq-answer p {
    margin: 0;
    color: #56B8C7; /* テキスト色を修正 */
    padding: 30px 30px 30px 70px; /* 左の余白をアイコン分増やす */
    line-height: 1.8;
}

/* --- 相談申し込みフォームセクション --- */
#contact {
    background-image: url('../img/contact_background.png');
    background-size: cover;
    background-position: center;
    padding:120px 20px;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 10px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header img {
    display: inline-block;
    max-width: 60%;
    margin-bottom: 20px;
}

.contact-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.required-badge, .optional-badge {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    margin-left: 8px;
    vertical-align: middle;
}

.required-badge {
    background-color: #FF8C42;
}

.optional-badge {
    background-color: #6c757d;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 5px;
}

.radio-group label, .checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-group input, .checkbox-group input {
    width: auto;
    margin-right: 5px;
}

.privacy-policy-section {
    margin-top: 30px;
}

.privacy-policy-box {
    height: 120px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 15px;
    background-color: #fff;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.privacy-agreement {
    text-align: center;
    margin-bottom: 30px;
}

.privacy-agreement label {
    font-weight: bold;
}


.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea{
    width: 100%;
    padding: 10px;
    border: 1px solid #EEB7BB;
    border-radius: 4px;
    box-sizing: border-box; /* paddingを含めてwidth 100%にする */
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #eeb7bb6e; /* placeholderのテキストカラー */
}

.form-submit {
    text-align: center;
}

.form-submit button {
    padding: 15px 40px;
    background-color: #e78087;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.form-submit button:hover {
    background-color: #e78087;
}

/* --- 会社概要セクション --- */
#company {
    background-image: url('../img/company_background.png');
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
}

.company-container {
    max-width: 900px;
    margin: 0 auto;
}

.company-header {
    text-align: center;
    margin-bottom: 40px;
}

.company-header img {
    display: inline-block;
    max-width: 100%;
    width: 150px;
}

.company-info-box {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.company-info-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.company-info-row:last-child {
    border-bottom: none;
}

.company-info-row dt {
    width: 160px;
    font-weight: bold;
    flex-shrink: 0; /* 幅が縮まないようにする */
    color: #0080C4;
}

.company-info-row dd {
    flex-grow: 1;
    line-height: 1.8;
}

.company-info-row dd strong {
    display: block;
    margin-bottom: 4px;
}

/* フッターのスタイル */
footer {
    background-color: #EEB7BB;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}
/* --- フローティングバナー --- */
.floating-banners {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-banner {
    display: block;
    padding: 20px 12px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease;
}
.floating-banner:hover {
    opacity: 0.8;
}
.floating-banner span {
    font-size: 1.2rem;
}
.phone-banner { background-color: #56B8C7; }
.contact-banner { background-color: #FF8C42; }


/* --- レスポンシブ対応 (画面幅768px以下) --- */
@media screen and (max-width: 768px) {

    /* --- 全体的な調整 --- */
    body {
        font-size: 14px;
    }

    /* --- Header (SP) --- */
    header {
        padding: 20px;
    }
    header img {
        height: 30px;
    }
    /* --- 各セクションの余白調整 --- */
    #new-business,
    #about,
    #reason,
    #merit,
    #use-case,
    #flow,
    #support,
    #faq,
    #contact,
    #company {
        padding: 80px 15px;
    }

    /* --- MVセクション --- */
    #mv {
        background-image: url('../img/background_mv_sp.png');
        min-height: 500px;
    }
    .mv-content {
        gap: 30px;
    }
    .mv-main-image {
        max-width: 90%;
        margin: 0 auto; /* 画像を中央揃えにする */
    }

    /* --- New Business Section (SP) --- */
    #new-business {
        background-image: url('../img/background_business_sp.png');
    }

    /* --- About Section (SP) --- */
    #about {
        background-image: url('../img/background_about_sp.png');
    }

    /* --- Reason Section (SP) --- */
    #reason {
        background-image: url('../img/background_reason_sp.png');
    }

    /* --- Merit Section (SP) --- */
    #merit {
        background-image: url('../img/background_merit_sp.png');
    }

    /* --- Use Case Section (SP) --- */
    #use-case {
        background-image: url('../img/background_use-case_sp.png');
    }

    /* --- Flow Section (SP) --- */
    #flow {
        background-image: url('../img/background_flow_sp.png');
    }

    /* --- Support Section (SP) --- */
    #support {
        background-image: url('../img/background_support_sp.png');
    }

    /* --- CTAボタン --- */
    .btn {
        width: auto;
        max-width: 500px;
        font-size: 1.2rem;
        gap: 15px;
        padding: auto 20px;
        margin-bottom: 60px;
    }

    .btn::before {
        width: 1.4rem;
        height: 1.4rem;
    }

    /* --- FAQセクション --- */
    .faq-header {
        margin-bottom: 40px;
    }
    .faq-question {
        padding: 15px 50px 15px 55px;
        font-size: 1.2rem;
    }
    .faq-question::before {
        left: 20px;
        font-size: 1.2rem;
    }
    .faq-question .icon-toggle::before,
    .faq-question .icon-toggle::after {
        right: 20px;
    }
    .faq-answer p {
        padding: 20px 20px 20px 55px;
    }
    .faq-answer::before {
        left: 20px;
        top: 20px;
    }

    /* --- 相談申し込みフォーム --- */
    .contact-container {
        padding: 30px 20px;
    }
    .contact-header img {
        max-width: 80%;
    }
    .checkbox-group {
        gap: 10px 15px;
    }

    /* --- 会社概要セクション --- */
    .company-info-box {
        padding: 20px;
    }
    .company-info-row {
        flex-direction: column; /* 縦並びに変更 */
        gap: 10px;
        padding: 15px 0;
        align-items: center;
    }
    .company-info-row dt {
        width: auto; /* 幅を自動に */
        font-size: 20px;
    }
    .company-info-row dd {
        padding-left: 0px;
        margin-inline-start: 0px;
        font-size: 16px;
    }

    /* --- フローティングバナー (SP) --- */
    .floating-banners {
        bottom: 0px;
        right: 0px;
        width: 100%;
        flex-direction: row;
        gap: 0px;
    }
    .floating-banner { 
        flex: 1; 
        padding: 12px 8px;
        border-radius: 0px;
    }
    /* フッターのスタイル */
    .footer-inner {
    margin-bottom: 60px;
    }
}
