* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    background-color: #F9F5ED;
    color: #000000;
    line-height: 1.5;
    font-feature-settings: 'palt' on;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sp_show {
    display: none;
}

.pc_show {
    display: block;
}

@media (max-width: 767px) {
    .sp_show {
        display: block;
    }

    .pc_show {
        display: none;
    }

}

/* Header */
.header {
    background-color: #CC0000;
    width: 100%;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header .logo {
    width: 120px;
    height: 24px;
    background-image: url('../images/logo_yusei.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        height: 271px;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 253px;
    background-image: url('../images/bg_lead.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-image: url('../images/bg_7-658597.png');
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 253px;
        background-image: url('../images/bg_lead_sp.jpg');
        background-size: cover;
        background-position: center;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 46px 38px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    padding: 55px 80px 0;
    max-width: 798px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 47px 80px 0 0;
    }
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    font-family: 'DIN Alternate', 'Arial Black', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #000000;
    text-align: center;
    line-height: 1.16;
    margin-bottom: 15px;
}

.hero-text {
    margin-bottom: 84px;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 25px;
    text-align: center;
    font-feature-settings: 'palt' on;
    color: #000000;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 27px;
    width: 150px;
    height: 227px;
    background-image: url('../images/img_momokuro.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

@media (max-width: 768px) {
    .hero-image {
        right: -42px;
        top: 27px;
        width: 175px;
        height: 244px;
    }
}

/* Main Content */
.main-content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .main-content {
        padding: 26px 16px 0px;
    }
}

.main-content.complete-page {
    max-width: none;
}

.content-section {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    /* margin-bottom: 40px; */
}

.main-content.complete-page section {
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    max-width: 1200px;
    /* 画面幅に応じて調整 */
    width: 100%;
    /* 必ず画面幅内に収める */
    box-sizing: border-box;
    /* padding込みで幅計算 */
}

/* Instructions */
.instructions {
    margin-bottom: 24px;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .main-content.complete-page section{
        max-width: 100%;
    }

    .instructions {
        padding: 0;
    }

}

.instructions-text {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 22px;
}

.notice {
    background-color: transparent;
    padding: 0;
    text-align: center;
}

.notice-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 8px;
}

#notice-heading {
    text-align: center;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    font-feature-settings: 'palt' on;
    color: #000000;
    margin-bottom: 7px;
}

.notice-text-container {
    display: flex;
    justify-content: center;
}

.notice-text {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    text-align: left;
    line-height: 1.8;
    font-style: normal;
    color: #000000;

}

@media (max-width: 768px) {
    ul.notice-text {
        padding-left: 22px;
    }
}

/* Form */
.form-container {
    background-color: transparent;
    padding: 0;
}

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

@media (max-width: 768px) {
    .form-group {
        margin-bottom: 23px;
    }

    .confirm-page .form-group {
        margin-bottom: 10px;
    }
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 6px;
}

.form-select {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #E7E7E7;
    background-color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    border-radius: 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1 L5 5 L9 1' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 10px 6px;
    padding-right: 40px;
}

.form-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #E7E7E7;
    background-color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    border-radius: 0;
}

.form-input::placeholder {
    color: #B8B8B8;
}

/* Checkbox Groups */
.checkbox-group {
    padding: 0 16px;
}

.checkbox-row {
    gap: 10px;
    margin-bottom: -2px;
    display: flex;
    align-items: start;
    flex-direction: column;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 11px;
}

.checkbox {
    /* appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;  */

    display: inline-block;
    /* 幅・高さを効かせる */
    width: 18px;
    height: 18px;
    border: 1px solid #B8B8B8;
    background-color: #FFFFFF;
    border-radius: 2px;
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
    /* 親がflexのとき縮まないようにする */
}

.checkbox-label {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
}

.checkbox-label-confirm {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
 
}

/* Long checkbox items */
.checkbox-group.long-options .checkbox-item {
    width: 100%;
    margin-bottom: 10px;
}

/* Terms and Agreement */
.terms-container {
    background-color: #FFFFFF;
    border: 1px solid #E7E7E7;
    border-width: 1px 0 1px 1px;

    height: 360px;
    overflow-y: auto;
    margin: 0 auto;
    position: relative;
}

.terms-content {
    padding: 24px 16px;
}

.terms-section {
    margin-bottom: 35px;
}

.terms_top_title {
    text-align: center;
}

.terms-title {
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #000000;
    margin-bottom: 8px;
}

.terms-text {
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #000000;
    line-height: 1.5;
}

ol.terms-text {
    padding-left: 27px;
}

ol.terms-text li {
    margin-bottom: 10px;

}

.terms-note {
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #000000;
    margin-bottom: 4px;
}

.scrollbar {
    position: absolute;
    right: 0;
    top: 0;
    width: 14px;
    height: 100%;
    background-color: #FAFAFA;
    border-left: 1px solid #E7E7E7;
}

.scrollbar-thumb {
    position: absolute;
    top: 4px;
    left: 3px;
    width: 8px;
    height: 115px;
    background-color: #C1C1C1;
    border-radius: 4px;
}

/* Agreement Checkbox */
.agreement-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px auto 0;
    justify-content: center;
    flex-direction: column;
}

/* Submit Button */
.submit-container {
    display: flex;
    justify-content: center;
    margin: 16px auto;
    flex-direction: column;
    text-align: center;
}

.submit-button {
    background-color: #CC0000;
    color: #FFFFFF;
    border: none;
    padding: 16px 0;
    font-size: 17px;
    font-weight: 700;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    border-radius: 0;
    cursor: pointer;
    width: 220px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    text-decoration: none;
    position: relative;
}

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

.submit-button:disabled {
    background-color: #CCCCCC;
    cursor: not-allowed;
}

.complete-page a.submit-button::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 28px;
    width: 100%;
    background: url(../images/icon_download.png);
    background-size: cover;
    width: 24px;
    height: 25px;
}

/* Background Image Section */
.bg-section {
    width: 100%;
    height: 290px;
    background-image: url('../images/bg_image-649ef4.png');
    background-size: contain;
    background-position: center;
    margin-top: 58px;
    background-repeat: no-repeat;
    background-color: #cc0100;
}

@media (min-width: 768px) {
    .bg-section {
        width: 100%;
        height: 290px;
        background-image: url('../images/bg_image-649ef4.png');
        background-size: contain;
        background-position: center;
        margin-top: 58px;
        background-repeat: no-repeat;
        background-color: #cc0100;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
    background-color: #000000;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.back-to-top::after {
    content: '';
    width: 8px;
    height: 8px;
    border-left: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    transform: rotate(135deg);
    margin: 9px;
    /* padding: 2px; */
    position: absolute;
    top: 25%;
}

/* Responsive Design */
@media (min-width: 768px) {
    .main-content {
        width: 100%;
        padding: 56px 32px 0;
    }

    .hero-content {
        padding: 46px 80px 30px;
    }

    .terms-container {
        width: 100%;
    }

    .submit-button {
        width: 280px;
    }
}

.form-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
}

@media (min-width: 1024px) {
    .main-content {
        width: 100%;
        padding: 26px 0 0;
    }







    .form-group.full-width {
        grid-column: 1 / -1;
    }

    .checkbox-group.long-options {
        grid-column: 1 / -1;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
.form-select:focus,
.form-input:focus,
.checkbox:focus,
.submit-button:focus {
    outline: 1px solid #c3c3c3;
    outline-offset: 0px;
}

/* Print styles */
@media print {

    .back-to-top,
    .submit-button {
        display: none;
    }

    body {
        background-color: white;
    }
}

.complete-page h3 {
    border-bottom: 3px solid #000;
    font-style: normal;
    font-weight: 700;
    font-size: 25px;
    line-height: 125%;
    text-align: center;
    color: #000000;
    margin-bottom: 23px;
    padding-bottom: 6px;
}

p.info {
    display: block;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #FF0000;
    margin-top: 7px;
}

.agreement-section p.info {
    margin-top: 0;
    line-height: 5px;
}

.confirm-page .answer {
    margin: 16px 15px 6px;
}

.confirm-page .link-back {
    margin-top: 20px;
}

.txt_red {
    color: #cc0000;
}

.terms-section a {
    text-decoration: none;
    color: #000000;
}

.download_items_container {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

.download_items {
    display: flex;
    flex-direction: row;
    gap: 40px;
    max-width: 1081px;
    margin: 21px 0 79px;
}

.download_items img {
    max-width: 100%;
    /* コンテナ幅を超えない */
    height: auto;
    /* アスペクト比を維持 */
    display: block;
    /* 下の余白を消す場合 */
}

.download_items section {
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .download_items {
        flex-direction: column;
        gap: 65px;
    }

    .download_items img {
        max-width: 400px;
        width: 100%;
        height: auto;
        display: block;
    }
}

.complete-page a.submit-button {
    max-width: 230px;
    margin-top: 22px;
    text-indent: -1.5rem;
}

.agreement_checkbox_container {

    display: flex;
    align-items: center;
    gap: 13px;
    margin: 15px 0;

}

body>main>section:nth-child(3)>div.terms-container>div>div:nth-child(6)>div:nth-child(3) {
    margin-top: 15px;
}



/* -----------------------------------
 * Base Styles (All Devices)
 * ----------------------------------- */
@media all {

    footer div,
    footer span,
    footer img,
    footer ul,
    footer li,
    footer {
        margin: 0;
        padding: 0;
        border: 0;
        outline: 0;
        font-size: 100%;
        vertical-align: baseline;
        background: transparent;
    }



    footer img {
        margin: 0;
        padding: 0;
        border: 0;
        vertical-align: bottom;
    }
}

/* -----------------------------------
 * Desktop (min-width: 800px)
 * ----------------------------------- */
@media only screen and (min-width: 800px) {

    footer ul,
    footer li {
        font-size: 16px;
        line-height: 1.9;
    }

    .sp {
        display: none !important;
    }

    footer {
        background: #cc0000;
        padding: 18px 50px;
    }

    footer ul {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0 20px;
        list-style-type: none;
    }

    footer ul .img_wrap {
        width: 14%;
        flex-shrink: 0;
    }

    footer ul .img_wrap img {
        width: 100%;
    }

    footer ul .txt_wrap {
        color: #fff;
        font-size: 18px;
        font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
        font-weight: bold;
        line-height: 1.8;
        text-align: left;
    }

    footer ul .txt_wrap span {
        font-size: 24px;
        display: inline-block;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* -----------------------------------
 * Mobile (max-width: 799px)
 * ----------------------------------- */
@media only screen and (max-width: 799px) {

    footer ul,
    footer li {
        font-size: 16px;
        line-height: 1.5;
    }

    .pc {
        display: none !important;
    }

    footer {
        background: #cc0000;
        padding: 36px 20px;
    }

    footer ul {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 0 20px;
        list-style-type: none;
    }

    footer ul .img_wrap {
        flex-shrink: 0;
        width: 25%;
    }

    footer ul .img_wrap img {
        width: 100%;
    }

    @media (max-width: 640px) {
        footer ul .img_wrap {
            width: 35%;
        }
    }

    footer ul .txt_wrap {
        color: #fff;
        font-size: clamp(16px, 4vw, 18px);
        font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
        font-weight: bold;
        line-height: 1.6;
        text-align: left;
    }

    footer ul .txt_wrap span {
        font-size: 24px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

.expired-page {
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 250px);
}

.expired {
    margin: 0 auto;
}

.expired-page section>div {
    text-align: center;
    max-width: 25rem;
}

.expired-page h2 {
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 125%;
    font-feature-settings: 'palt' on;
    color: #000000;
    margin-bottom: 30px;
}

.expired-page p {
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    font-feature-settings: 'palt' on;
    color: #000000;
    text-align: left;
}

.expired-page section>div>div {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}




/* 
 * LOGIN
 */
.login_box {
  width: 450px;
  margin-top: 90px;
}
.login_box_h1 {
  font-size: 28px;
}
.login_box .btn_lg {
  width: 100%!important;
}
.login_box a span.rang {
  position: absolute!important;
  top: -3px;
  right: 0;
}
.login_box + table h4 {
  line-height: 18px;
}
.login_box + table h4.commom_headline::before {
  top: 6px;
}
.login_download::after {
  content: "";
  background: url(../images/icon_download_gr.svg) no-repeat;
  width: 9px;
  height: 12px;
  position: absolute;
  top: 0;
  right: 3px;
}