/**
 * 規約系ページ専用スタイルシート
 * 対象ページ: 利用規約、プライバシーポリシー、特定商取引法、運営会社
 */

/* Tab Navigation Grid */
.tab_nav_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tab_nav_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 20px;
    background: #FFFFFF;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    color: #333333;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 10%);
}

.tab_nav_item span {
    flex: 1;
    margin: 0 auto;
    text-align: center;
}

.tab_nav_item svg {
    flex-shrink: 0;
    margin-left: 10px;
}

.tab_nav_item:hover {
    background-color: #fd7801;
    border-color: #fd7801;
    color: #FFFFFF;
}

.tab_nav_item_active {
    background: #fc6203;
    border-color: #fc6203;
    color: #FFFFFF;
}

.tab_nav_item_active:hover {
    background: #fc6203;
    border-color: #fc6203;
    opacity: 0.9;
}

/* ===========================
   PC版スタイル
   =========================== */

/* 背景色 */
.main-content-regulations {
    background-color: #F9F9F9;
}

/* タイトル */
.main-content-regulations .title_wrapper_static h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0 auto 40px;
    padding: 0;
    line-height: normal;
}

.main-content-regulations .head_chapter {
    max-width: min(90vw, 1000px);
    margin: 4.0rem auto 0;
    text-align: left;
    font-size: 2.2rem;
    border-radius: 0.3rem;
    background: rgba(0, 0, 0, 0.40);
    padding: 0.5rem 1.5rem;
    color: #FFFFFF;
}

/* キャプションエリア */

.main-content-regulations .head_left_border {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fc6203;
    line-height: 30px;
    padding-left: 20px;
    border-left: 8px solid #fc6203;
    margin: 0 0 20px 0;
}

.main-content-regulations .white_caption_container {
    background-color: unset;
    padding: 0;
    border-radius: unset;
}

.main-content-regulations .caption_intro,
.main-content-regulations .caption_intro strong {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.75;
    color: #2f1b00;
    margin: 0 0 1em;
}

.main-content-regulations .contact_info_box {
    background-color: #FFFFFF;
    padding: 30px 80px;
    border-radius: 15px;
    margin: 30px auto 0;
    max-width: min(90vw, 1000px);
}

.main-content-regulations .contact_info_inner h3 {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #2f1b00;
    line-height: normal;
    margin: 0 0 20px 0;
}

.main-content-regulations .contact_info_text {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 24px;
    color: #2f1b00;
    margin-bottom: 20px;
}

.main-content-regulations .contact_info_text>p {
    margin: 0 0 10px 0;
    line-height: 24px;
}

.main-content-regulations .contact_info_text>div {
    margin: 0 0 10px 0;
    line-height: 24px;
}

.main-content-regulations .contact_info_text>div p {
    margin: 0;
    line-height: 24px;
}

.main-content-regulations .contact_label {
    margin: 0;
}

.main-content-regulations .contact_button_wrapper {
    text-align: center;
    margin: 20px 0;
}

.main-content-regulations .contact_button {
    font-family: "Noto Sans JP", sans-serif;
    position: relative;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    margin: 0;
    border-radius: 2em;
    padding: 15px 50px 15px 25px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    border: 2.5px solid #fff;
    background-color: #2F1B00;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.10);
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-content-regulations .contact_button:hover {
    background-color: #FFF;
    color: #2F1B00;
    border: 2.5px solid #2F1B00;
    opacity: 1;
}

.main-content-regulations .contact_button span {
    white-space: nowrap;
    color: inherit;
}

.main-content-regulations .contact_button::after {
    position: absolute;
    height: fit-content;
    right: 11px;
    top: 0;
    bottom: 0;
    margin: auto;
    content: "";
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0C23.2843 0 30 6.71573 30 15ZM12.6834 22.5L21.3174 15.365L12.6834 7.5V22.5Z" fill="white"/></svg>');
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 2rem;
}

.main-content-regulations .contact_button:hover::after {
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0C23.2843 0 30 6.71573 30 15ZM12.6834 22.5L21.3174 15.365L12.6834 7.5V22.5Z" fill="%232F1B00"/></svg>');
}

.main-content-regulations .revision_date {
    text-align: right;
    font-size: 1.4rem;
    line-height: 20px;
    color: #2f1b00;
    margin: 0;
}

.main-content-regulations .caption_area_help {
    margin: 0 auto;
    padding: 4.0rem 0;
    max-width: min(90vw, 1000px);
}

.main-content-regulations .caption_block {
    max-width: min(90vw, 1000px);
    margin: 4rem auto;

}

.main-content-regulations .whole_caption {
    margin: 0 auto 4rem;
    padding: 0;
    max-width: 1000px;
    text-align: left;
}

.main-content-regulations .whole_caption .caption_main {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.75;
    margin: 0 0 8px 0;
}

.main-content-regulations .whole_caption .caption_note {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.75;
    margin: 2rem 0 0;
}

.main-content-regulations .whole_caption p:first-child {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.75;
    margin-bottom: 0;
}

.main-content-regulations .whole_caption2 {
    line-height: 1.75;
    margin: 40px auto;
    padding: 0;
    max-width: 1000px;
    text-align: left;
    font-size: 1.8rem;
    font-weight: 500;
}

/* 定義リスト（テーブル風）のスタイル */
.main-content-regulations dl.table_beige_white {
    margin: 0 auto 40px;
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 23% 77%;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    overflow: hidden;
}

.main-content-regulations dl.table_beige_white dt {
    padding: 1.0rem 3.0rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.05);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.5;
    border-right: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
}


.main-content-regulations dl.table_beige_white dd {
    margin: 0;
    padding: 1.0rem 3.0rem;
    text-align: left;
    background: #FFFFFF;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.5;
    border-bottom: 1px solid #d9d9d9;
}

/* dd内のリンクスタイル */
.main-content-regulations dl.table_beige_white dd a {
    color: #2f1b00;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
}

.main-content-regulations dl.table_beige_white dd a:hover {
    opacity: 0.7;
}

/* 画像とテキストを横並びにするセル用スタイル */
.main-content-regulations .table_cell_with_image {
    display: flex;
    gap: 15px;
    align-items: center;
}

.main-content-regulations .table_cell_with_image img {
    height: 52.5px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.main-content-regulations .table_cell_with_image span {
    flex: 1;
}

/* コンテンツビューエリア */
.main-content-regulations .main-content-viewarea {
    padding-top: 0;
    padding-bottom: 10rem;
}


/* ===========================
   モバイル・タブレット版スタイル
   (max-width: 768px)
   =========================== */

@media (max-width: 768px) {

    /* Tab Navigation - Mobile */
    .tab_nav_grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 0;
    }

    .tab_nav_item {
        height: 55px;
        padding: 10px 20px;
        font-size: 1.6rem;
        font-weight: 700;
        border-radius: 10px;
        box-shadow: 2px 2px 15px 0px rgba(0, 0, 0, 0.1);
    }

    .tab_nav_item span {
        width: 192px;
        text-align: left;
        margin: 0;
    }

    /* タイトル */
    .main-content-regulations .title_wrapper_static h2 {
        font-size: 2.4rem;
        margin: 0 auto 30px;
    }

    /* キャプション */
    .main-content-regulations .whole_caption {
        margin: 0 0 2rem;
        max-width: none;
    }

    .main-content-regulations .caption_block {
        margin: 2rem auto;
    }

    .main-content-regulations .head_chapter {
        font-size: 2rem;
        margin: 0 0 2rem;
    }

    .main-content-regulations .head_left_border {
        font-size: 2rem;
    }

    .main-content-regulations .whole_caption .caption_main {
        font-size: 1.6rem;
        font-weight: 500;
        line-height: 1.5;
        margin: 0 0 6px 0;
    }

    .main-content-regulations .whole_caption .caption_note {
        font-size: 1.6rem;
        font-weight: 400;
        line-height: 1.5;
        margin: 0;
    }

    .main-content-regulations .whole_caption p:first-child {
        font-size: 1.6rem;
        font-weight: 500;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .main-content-regulations .whole_caption p:last-child {
        font-size: 1.6rem;
        font-weight: 400;
        line-height: 1.5;
        margin-top: 0;
    }

    .main-content-regulations .whole_caption2 {
        font-size: 1.6rem;
        line-height: 1.5;
        margin: 3.0rem 20px;
    }

    .main-content-regulations .caption_intro,
    .main-content-regulations .caption_intro strong {
        font-size: 1.6rem;
        line-height: 1.5;
    }

    /* 定義リスト */
    .main-content-regulations dl.table_beige_white {
        margin: 0;
        grid-template-columns: 100px 1fr;
    }

    .main-content-regulations dl.table_beige_white dt {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
        padding: 10px;
        font-size: 1.4rem;
        line-height: 20px;
    }

    .main-content-regulations dl.table_beige_white dd {
        padding: 10px;
        font-size: 1.4rem;
        line-height: 20px;
    }

    /* 画像とテキストを縦並びにするセル用スタイル - モバイル */
    .main-content-regulations .table_cell_with_image {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .main-content-regulations .table_cell_with_image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* コンテンツビューエリア */
    .main-content-regulations .main-content-viewarea {
        padding-top: 4rem;
        padding-bottom: 8rem;
        max-width: max(325px, 90vw);
    }

    .main-content-regulations .caption_area_help {
        padding: 0;
        margin: 0 auto 30px;
    }

    /* お問い合わせ窓口 - Mobile */
    .main-content-regulations .contact_info_box {
        padding: 20px;
        border-radius: 10px;
    }

    .main-content-regulations .contact_info_inner h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .main-content-regulations .contact_info_text {
        font-size: 1.4rem;
        line-height: 20px;
        margin-bottom: 15px;
    }

    .main-content-regulations .contact_info_text>p {
        margin-bottom: 8px;
        line-height: 20px;
    }

    .main-content-regulations .contact_info_text>div {
        margin-bottom: 8px;
        line-height: 20px;
    }

    .main-content-regulations .contact_info_text>div p {
        line-height: 20px;
    }

    .contact_button_wrapper {
        margin: 15px auto;
        display: flex;
        justify-content: center;
    }

    .main-content-regulations .contact_button {
        padding: 12px 40px 12px 20px;
        font-size: 16px;
        width: 300px;
        display: flex;
        justify-content: center;
    }

    .main-content-regulations .contact_button::after {
        width: 19px;
        height: 19px;
        right: 10px;
    }

    .main-content-regulations .revision_date {
        font-size: 1.2rem;
        line-height: 18px;
    }
}
