/* 全体のスタイル */
body {
    font: normal 18px/1.7 "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
    color: #000;
    text-align: center;
    overflow-x: hidden;
    background-color: #fff;
}

/* レスポンシブ設定 */
@media screen and (max-width: 640px) {
    body {
        min-width: inherit;
        height: 100%;
    }

    .sp-item {
        display: block !important;
    }

    .pc-item {
        display: none !important;
    }

    .sp-item img {
        width: 100%;
    }

    .sp img {
        max-width: 90%;
    }

    .btn img {
        max-width: 95%;
    }
}

@media screen and (min-width: 641px) {
    .sp-item {
        display: none !important;
    }

    .pc-item {
        display: block !important;
    }
}

/* 共通クラス */

.rollover:hover {
    opacity: 0.7;
    filter: alpha(opacity=70);
    -ms-filter: "alpha(opacity=70)";
}

/* フォーム要素 */
input[type=radio] {
    width: 15px;
    height: 15px;
    vertical-align: middle;
}

input[type=image]:hover {
    opacity: 0.7;
    filter: alpha(opacity=70);
    -ms-filter: "alpha(opacity=70)";
}

/* テキストスタイル */
em {
    text-decoration: underline;
    font-style: normal;
}

/* フォントスタイル */
.bold {
    font-weight: bold !important;
}

strong {
    font-weight: bold;
}

/* フロート */
.fr {
    float: right !important;
}

.fl {
    float: left !important;
}

.clear {
    clear: both;
}

/* 画像 */
img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    line-height: 0;
    padding: 0;
}

/* クリアフィックス */
.clearfix:after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
}

.clearfix {
    min-height: 1px;
}

/* レイアウト */
#wrapper {
    margin: 0 auto;
    margin-right: 14%;
    width: 40%;
    max-width: 480px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background: #fff;
}

/* 動画部分 */
#movie {
    width: 100%;
}

/*******************
 * スマホ版スタイル
 *******************/
@media screen and (max-width: 767px) {

    /* スマホ用背景 */
    .movie-bg {
        background-image: url('../images/sp-moveback.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 30px 0;
    }

    /* スマホ用動画コンテナ */
    .movie-bg .sp-item {
        /* 動画セクション特有のスタイル */
        width: 85%;
        max-width: 400px;
        margin: 0 auto;
        padding: 0 15px;
    }

    /* スマホ用動画 */
    .movie-bg .sp-item video {
        /* 動画セクション特有のスタイル */
        width: 100%;
        height: auto;
        border-radius: 10px;
        display: block;
    }
}

/*******************
 * PC版スタイル
 *******************/
@media screen and (min-width: 768px) {

    /* PC用コンテナ */
    .pc-movie-container {
        width: 100%;

        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        background-image: url('../images/pc-move-bg.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 40px 20px;
    }

    /* 左側コンテンツ */
    .movie-left {
        width: 60%;
    }

    .movie-left img {
        width: 80%;
        height: auto;
        display: block;
    }

    /* 右側動画 */
    .movie-right {
        width: 25%;
    }

    .video-wrapper {
        width: 100%;
        max-width: 280px;
        margin: 0;
    }

    .video-wrapper video {
        width: 100%;
        height: auto;
        border-radius: 10px;
        display: block;
    }
}

/* メリット部分背景PC用 */

#company-advantages {
    background-image: url('../images/pc-advantages-bg.png');
    background-repeat: repeat;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translatey(10px);
    }

    to {
        opacity: 1;
        transform: translatey(0);
    }
}

/* 初期状態 */
.fade-in {
    opacity: 0;
    /* 初期状態では不透明度を0に設定 */
    transform: translateY(10px);
    /* 初期状態で少し下にずらす */

}

/* ビューポートに入ったときに適用されるクラス */
.fade-in.visible {
    animation: fadeIn 1s ease-out forwards;
}





/* FAQセクションのスタイリング */
#faq {
    background: url('../images/faq-back.png') repeat;
    padding-bottom: 60px;

}

/* FAQのスタイル */
.pc-faq-box {
    margin-bottom: 0;
    /* 余白を削除 */
}

/* 質問ボタンのスタイル */
.pc-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    line-height: 0;
    /* 行間を削除 */
}

.pc-faq-question:hover {
    opacity: 0.8;
}

.pc-faq-question img {
    width: 100%;
    vertical-align: bottom;
    /* 画像下の余白を削除 */
}

/* 回答のスタイル */
.pc-faq-answer {
    display: none;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    margin-top: 0;
    /* 上部の余白を削除 */
    line-height: 0;
    /* 行間を削除 */
}

/* 開いた時のスタイル */
.pc-faq-answer.is-open {
    display: block;
    opacity: 1;
}

.pc-faq-answer img {
    width: 100%;
    margin-bottom: 0;
}

/* FAQリストのスタイル */
.pc-faq-list {
    font-size: 0;
    /* インライン要素間の余白を削除 */
}

/* SP用スタイル */
@media screen and (max-width: 640px) {

    /* FAQのスタイル */
    #faq {
        padding-bottom: 60px;
        /* または必要な余白の大きさ */
    }

    .sp-faq-box {
        margin-bottom: 0;
        /* ボックス間の余白を削除 */
    }

    /* 質問ボタンのスタイル */
    .sp-faq-question {
        width: 100%;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: block;
        /* ブロック要素として表示 */
        line-height: 0;
        /* 行間を削除 */
    }

    .sp-faq-question img {
        width: 100%;
        vertical-align: bottom;
        /* 画像下の余白を削除 */
    }

    /* 回答のスタイル */
    .sp-faq-answer {
        display: none;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        width: 100%;
        line-height: 0;
        /* 行間を削除 */
    }

    /* 開いた時のスタイル */
    .sp-faq-answer.is-open {
        display: block;
        opacity: 1;
    }

    .sp-faq-answer img {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 0;
    }

    /* FAQリストのスタイル */
    .sp-faq-list {
        font-size: 0;
        /* インライン要素間の余白を削除 */
    }
}



/* トップに戻るボタン */
.gotop {
    display: block;
    width: 60px;
    height: 60px;
    box-sizing: border-box;
    background: #FFF;
    border: 1px solid #999;
    border-radius: 50%;
    padding-top: 30px;
    text-indent: -9999px;
    opacity: 0.5;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}

.gotop::before {
    content: "";
    display: block;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    width: 15px;
    height: 15px;
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -25%) rotate(-45deg);
}

.gotop:hover {
    opacity: 1;
}

@media(max-width: 640px) {
    .gotop {
        width: 40px;
        height: 40px;
        opacity: 1;
        border: none;
        background: none;
        bottom: 10px;
        right: 10px;
    }

    .gotop::before {
        bottom: 0;
    }
}

/* PC版フォーム */
@media screen and (min-width: 641px) {
    #formWrap {
        width: 100%;
        background: #f8fcfb;
        font-family: "Yu Gothic", YuGothic, "游ゴシック", "游ゴシック体", sans-serif;
    }

    #addressForm {
        width: 800px;
        /* PC用の固定幅 */
        margin: 0 auto;
        padding: 40px;
        box-sizing: border-box;
    }

    .form-group {
        display: flex;
        /* 横並びレイアウト */
        border-bottom: 1px solid #ccc;
        width: 100%;
    }

    #addressForm>.form-group:last-of-type {
        border-bottom: none;
    }

    .label-field {
        width: 250px;
        /* ラベル部分の固定幅 */
        min-width: 250px;
        background: #f7f7f7;
        padding: 15px;
        box-sizing: border-box;
        text-align: left;
        /* 左揃え */
        display: flex;
        /* 必須ラベルとテキストを横並びに */
        align-items: center;
    }

    .input-field {
        flex: 1;
        /* 残りのスペースを使用 */
        background: #fff;
        padding: 15px;
        box-sizing: border-box;
    }

    /* 必須・任意ラベル */
    .label-required {
        background: #FF6B00;
        color: #fff;
        font-size: 12px;
        padding: 2px 8px;
        margin-right: 8px;
    }

    .label-optional {
        background: #999;
        color: #fff;
        font-size: 12px;
        padding: 2px 8px;
        margin-right: 8px;
        white-space: nowrap;
    }

    /* チェックボックスグループ */
    .checkbox-group {
        display: flex;
        flex-direction: row;
        /* 横並び */
        gap: 20px;
        /* 項目間の間隔 */
        flex-wrap: wrap;
        /* 必要に応じて折り返し */
    }

    .checkbox-item {
        display: flex;
        align-items: center;
        white-space: nowrap;
        /* テキストの折り返しを防止 */
    }

    /* ラジオボタングループ */
    .radio-group {
        display: flex;
        flex-direction: column;
        /* 縦並び */
        gap: 10px;
        /* 項目間の間隔 */
    }

    .radio-item {
        display: flex;
        align-items: center;
    }

    p.address-note {
        font-size: 12px;
        color: #666;
        text-align: left;
    }

    /* 入力フィールド */
    input[type="text"],
    input[type="tel"],
    input[type="email"] {
        width: 100%;
        height: 40px;
        /* 高さを統一 */
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-sizing: border-box;
    }

    /* プレースホルダー */
    input::placeholder {
        color: #ccc;
        opacity: 1;
        font-size: 14px;
    }

    /* 送信ボタン */
    .submit-button {
        width: 400px;
        /* PC用のボタン幅 */
        margin: 20px auto;
        display: flex;
        justify-content: center;
        border: none;
        /* 枠を削除 */
        padding: 0;
        /* パディングをリセット */
        background: transparent;
    }

    .submit-button img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* プライバシーポリシー */
    .privacy-notice {
        text-align: center;
        font-size: 14px;
        line-height: 1.6;
        margin: 15px 0;
    }

    .privacy-notice a {
        color: #00A0A0;
        text-decoration: underline;
    }
}









/*　スマホ用フォーム（*/
@media screen and (max-width:640px) {


    #formWrap {
        width: 100%;
        box-sizing: border-box;
        background: #f8fcfb;
        padding: 0;
        font-family: "Yu Gothic", YuGothic, "游ゴシック", "游ゴシック体", sans-serif;
        text-align: left
    }

    #addressForm {
        width: 90%;
        margin: 0 auto;
        padding: 20px;
        box-sizing: border-box;
    }

    .form-group {
        margin-bottom: 25px;
        width: 100%;
        box-sizing: border-box;
    }

    .label-field {
        background: #f7f7f7;
        padding: 15px;
        justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;

    }

    /* 必須ラベル */
    .label-required {
        background: #FF6B00;
        color: #fff;
        font-size: 12px;
        padding: 2px 8px;

        margin-right: 8px;
    }

    /* 任意ラベル */
    .label-optional {
        background: #999;
        color: #fff;
        font-size: 12px;
        padding: 2px 8px;

        margin-right: 8px;
    }

    /* フォームラベル */
    .form-label {
        display: inline-block;
    }

    .form-description {
        text-align: center;
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 30px;
    }



    /* チェックボックスグループ */
    .checkbox-group {
        background: #fff;

        padding: 15px;

        width: 100%;
        box-sizing: border-box;
    }


    .checkbox-item {
        margin-bottom: 12px;
        display: flex;
        align-items: center;
    }

    .checkbox-item input[type="checkbox"] {
        margin-right: 8px;
    }

    /* ラジオボタングループ */
    .radio-group {
        background: #fff;

        padding: 15px;

        width: 100%;
        box-sizing: border-box;
    }

    .radio-item {
        margin-bottom: 12px;
        display: flex;
        align-items: center;
    }

    .radio-item input[type="radio"] {
        margin-right: 8px;
    }

    /* 必須項目 */
    .required .form-label {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
    }


    .input-field {
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 20px;

    }

    /* 入力フィールド */
    input[type="text"],
    input[type="tel"],
    input[type="email"] {
        width: 100%;
        padding: 10px;
        border: none;
        background: transparent;
        border-radius: 5px;
        box-sizing: border-box;
        font-size: 14px;
        color: #333;
        border: 1px solid #ccc;
    }

    input::placeholder {
        color: #ccc;
        opacity: 1;
        font-size: 14px;
    }

    /* 住所入力部分 */
    .address-note {
        font-size: 12px;
        color: #666;
        margin: 5px 0;
    }

    p.address-note {
        font-size: 12px;
        color: #666;
        text-align: left;
    }

    /* プライバシーポリシー */
    .privacy-notice {
        text-align: center;
        font-size: 12px;
        line-height: 1.6;
        margin: 20px 0;
    }

    .privacy-notice a {
        color: #00A0A0;
        text-decoration: underline;
    }

    /* 送信ボタン */
    .submit-button {
        background: transparent;
        border: none;
        width: 100%;
        padding: 0;
        margin: 20px auto;
        cursor: pointer;
        display: flex;
        justify-content: center;
    }

    .submit-button img {
        width: 80%;
        height: auto;
        display: block;
    }

    /* ボタンホバー時の透明度 */
    .submit-button:hover {
        opacity: 0.8;
        transition: opacity 0.3s;
    }

}

/*　タブレット用フォーム*/
@media screen and (min-width: 641px) and (max-width: 1024px) {
    table.formTable {
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
        margin-right: 5px;
        border-collapse: collapse;
        align-items: center;
        font-family: "Yu Gothic", YuGothic, "游ゴシック", "游ゴシック体", sans-serif;

    }

    table.formTable th,
    table.formTable td {
        width: 85%;
        display: block;
    }

    table.formTable th {
        margin-top: 0;
        border-bottom: 0;
    }

    form input[type="text"],
    form textarea {
        width: 95%;
        padding: 5px;
        font-size: 110%;
        display: block;
    }

    .submit-button {
        width: 100%;
        padding: 0;
    }

    .submit-button img {
        width: 50%;
        height: auto;
        margin-bottom: 20px;
        margin-top: 0;
    }

    form input[type="reset"],
    form input[type="button"] {
        display: block;
        width: 100%;
        height: 40px;

    }
}



/* フッター */
footer {
    width: 100%;
    margin-bottom: 120px;
}

/* フッターリンク */
.footer-links {
    background-color: #E5F4F7;
    /* 薄い水色の背景 */
    padding: 20px 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

/* SP用フッターリンク */
@media screen and (max-width: 767px) {
    .footer-links li {
        margin: 10px 0;
    }

    .footer-links a {
        font-size: 14px;
    }
}

/* PC用フッターリンク */
@media screen and (min-width: 768px) {
    .footer-links ul {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
        /* リンク間の間隔 */
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px 20px;
    }

    .footer-links li {
        margin: 0;
    }

    .footer-links a {
        font-size: 18px;
        /* PCでのフォントサイズを大きく */
    }
}

/* 共通のリンクスタイル */
.footer-links a {
    color: #0F5B78;
    text-decoration: none;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
}

/* ホバー効果（PC用） */
@media screen and (min-width: 768px) {
    .footer-links a:hover {
        opacity: 0.7;
        transition: opacity 0.3s;
    }
}


/* コピーライト共通 */
.copyright {
    text-align: center;
    color: #fff;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
}

/* SP用コピーライト */
@media screen and (max-width: 767px) {
    .copyright {
        padding: 15px 0;
        font-size: 12px;
        background-image: url('../images/sp-footer.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* PC用コピーライト */
@media screen and (min-width: 768px) {
    .copyright {
        padding: 20px 0;
        font-size: 14px;
        background-image: url('../images/pc-footer.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* 大画面対応 */
@media screen and (min-width: 1920px) {
    .copyright {
        background-size: 100% 100%;
    }
}

/* サンクスメッセージ */

/* サンクスページ全体の背景 */
main.thanks-wrapper {
    width: 100%;
    background-image: url('../images/pc-advantages-bg.png');
    background-repeat: repeat;
    padding: 50px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}
.thanks-message {

   
    background-repeat: repeat;
    width: 100%;
    text-align: center;
    padding: 50px 20px;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
    max-width: 600px;
    margin: 50px auto;
}

.thanks-message h1 {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    
    animation: fadeIn 1s ease-in-out;
}

.thanks-message p {
    font-size: 1.0em;
    color: #666;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}