@charset "utf-8";

/* =========================================================================
   共通（purpose/index.html、partnership/index.html 共通）
   ========================================================================= */

/* 下層ページの背景画像の伸び具合をトップページに合わせるための調整 */
body {
    background-size: 100% 800vh;
}

.lower-page {
    position: relative;
    padding-top: 150px;
    margin-bottom: 30px;
}

/* Container */
.lower-container {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    margin-top: 100px;
}

/* Body Text */
.lower-body {
    width: 77%;
    margin-left: auto;
}

.lower-body p {
    font-size: clamp(14px, 1.3vw, 18px);
    line-height: 2.2;
    margin-bottom: 2.5em;
    letter-spacing: 0.05em;
}

/* Signature */
.lower-signature {
    text-align: right;
    margin-top: 30px;
    margin-bottom: 100px !important;
}

.lower-signature p {
    font-size: clamp(13px, 1.3vw, 14px);
    line-height: 2;
    letter-spacing: 0.1em;
}

/* Back button */
.lower-back {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    max-width: 1150px;
    margin-inline: auto;
    box-sizing: border-box;
    width: 95%;
}

.lower-back a {
    display: inline-block;
    font-size: clamp(14px, 1.5vw, 16px);
    font-family: "Libre Baskerville", serif;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    line-height: 1;
}

/* =========================================================================
   purpose/index.html 専用
   ========================================================================= */

/* Background Decorations */
.deco-purpose-01 {
    top: 8%;
    right: -27%;
    width: clamp(300px, 60vw, 800px);
}

.deco-purpose-02 {
    bottom: 2%;
    left: -18vw;
    width: clamp(350px, 40vw, 900px);
}

/* Heading */
.lower-heading {
    color: #ffffff;
    margin-bottom: 50px;
}

.lower-hline {
    background-color: #ffffff;
}

/* CEO Photo */
.purpose-ceo-photo {
    width: 45%;
    max-width: 400px;
    margin-bottom: 60px;
}

.purpose-ceo-photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Lead text */
.lower-ceo-lead {
    font-size: 35px;
}

.lower-lead {
    font-size: clamp(20px, 2.6vw, 35px);
    line-height: 1.8;
    margin-bottom: 50px;
    letter-spacing: 0.05em;
}

.lower-body.purpose-body {
    width: 100%;
    margin-left: 0;
}

/* =========================================================================
   partnership/index.html 専用
   ========================================================================= */

/* Partnership Background Decorations */
.deco-partnership-01 {
    top: 35%;
    left: -5%;
    width: 35%;
}

.deco-partnership-02 {
    top: 1%;
    right: -11%;
    width: 35%;
}

.deco-partnership-03 {
    bottom: 0%;
    right: -15%;
    width: 45%;
}

/* Partnership Custom */
.partnership-heading {
    color: #ffffff;
    font-size: clamp(20px, 2.7vw, 40px);
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin-bottom: 100px;
}

.partnership-footer {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-end;
    margin-top: 60px;
    margin-bottom: 150px;
    width: 77%;
    margin-left: auto;
}

.partnership-photo-box {
    flex: 1;
    aspect-ratio: 451 / 309;
    background-color: #d9d9d9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partnership-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partnership-footer .lower-signature {
    margin-bottom: 0 !important;
    flex-shrink: 0;
}


/* =========================================================================
   contact.html 専用
   ========================================================================= */

body.page-contact {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url("../images/common/bg-contact-pc.webp");
    background-size: 100% 100%;
}

/* Section */
.contact {
    position: relative;
    padding-top: 213px;
    padding-bottom: 120px;
}

.contact .case {
    position: relative;
    z-index: 1;
    max-width: 1128px;
    margin-inline: auto;
    box-sizing: border-box;
}

.contact .padh100 {
    padding-inline: 100px;
}

/* Heading（Contact） */
.contact .ttl01 {
    color: #ffffff;
    margin-bottom: 48px;
}

.contact .ttl01 span:first-child {
    display: inline-block;
    font-size: 50px;
    font-weight: 400;
    line-height: 41.54px;
    letter-spacing: 0;
}

.contact .ttl01 span:last-child {
    display: none;
}

/* Form */
.contact-form {
    max-width: 928px;
}

#mail_form dl + dl {
    margin-top: 30px;
}

#mail_form dt {
    display: block;
    margin-bottom: 2px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
    line-height: 32.85px;
    letter-spacing: 0;
}

#mail_form dt .red {
    margin-left: 4px;
    font-size: 0;
    line-height: 1;
}

#mail_form dt .red::after {
    content: "*";
    position: relative;
    top: -0.35em;
    font-size: 14px;
    line-height: 1;
    color: #ffffff;
}

#mail_form dd {
    margin: 0;
}

#mail_form input[type="text"],
#mail_form input[type="email"],
#mail_form select,
#mail_form textarea {
    display: block;
    width: 100%;
    height: 43px;
    padding: 0 12px;
    background-color: #ffffff;
    border: 1px solid #76C0DC;
    border-radius: 0;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
}

#mail_form select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888888' d='M0 0h12L6 8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#mail_form select::-ms-expand {
    display: none;
}

#mail_form textarea {
    height: 155px;
    padding: 10px 12px;
    resize: vertical;
}

#mail_form #form_submit {
    position: relative;
    margin-top: 50px;
    text-align: right;
}

#mail_form .submit-btn,
#mail_form #form_submit::after {
    padding: 0 4px 4px;
    font-size: 24.99px;
    line-height: 32.85px;
    letter-spacing: 0;
}

#mail_form .submit-btn {
    display: inline-block;
    background: transparent;
    border: none;
    border-radius: 0;
    color: transparent;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

#mail_form #form_submit::after {
    content: "送信 →";
    position: absolute;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid #000000;
    color: #000000;
    pointer-events: none;
}

#mail_form #form_submit:hover::after {
    opacity: 0.8;
}

.page-contact article {
    position: relative;
    flex: 1 0 auto;
}

.page-contact footer {
    position: relative;
    z-index: 1;
}

.deco-contact-01 {
    width: 894px;
    right: -447px;
    top: -130px;
}

.deco-contact-02 {
    width: 572px;
    left: -168px;
    top: 577px;
}

.page-contact .lower-back {
    margin-top: 166px;
    margin-bottom: 44px;
}

/* =========================================================================
   SP Layout
   ========================================================================= */
@media screen and (max-width: 1024px) {
    .lower-back {
        width: 85%;
        margin-top: 80px;
    }
}

@media screen and (max-width: 768px) {

    /* --- Common --- */
    body {
        background-size: 100% 700vh;
    }

    .lower-page {
        padding-top: 100px;
    }

    .lower-container {
        width: 85%;
        margin-inline: auto;
    }

    .lower-body {
        width: 100%;
        margin-left: 0;
    }

    .lower-body p {
        font-size: 14px;
        margin-bottom: 2em;
    }

    .lower-signature {
        margin-bottom: 20px !important;
    }

    .lower-signature p {
        font-size: 13px;
    }

    /* --- Purpose --- */
    .deco-purpose-01 {
        width: 100%;
        right: -50%;
        top: 6%;
    }

    .deco-purpose-03 {
        width: 100%;
        left: -35%;
        bottom: -3%;
    }

    .lower-heading {
        margin-bottom: 100px;
    }

    .purpose-ceo-photo {
        width: 100%;
        margin-bottom: 40px;
    }

    .lower-ceo-lead {
        font-size: 25px;
    }

    .lower-lead {
        font-size: 18px;
        margin-bottom: 40px;
    }

    /* --- Partnership --- */
    .deco-partnership-01 {
        width: 90%;
        left: -15%;
        top: auto;
        bottom: 20%;
    }

    .deco-partnership-02 {
        width: 80%;
        right: -20%;
        top: 6%;
    }

    .partnership-heading {
        font-size: 22px;
        margin-bottom: 40px;
    }

    .partnership-footer {
        display: block;
        margin-bottom: 0;
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }

    .partnership-photo-box {
        width: 100%;
        max-width: none;
        margin-bottom: 60px;
    }

    .partnership-footer .lower-signature {
        margin-bottom: 60px;
    }
}

/* =========================================================================
   contact.html 専用の SP（サイト共通と同じ 768px ブレイクポイント）。
   ========================================================================= */
@media screen and (max-width: 768px) {

    body.page-contact {
        background-image: url("../images/common/bg-contact-sp.webp");
    }

    .contact {
        padding-top: 167px;
        padding-bottom: 0;
    }

    .contact .case {
        width: 80.2%;
        max-width: none;
    }

    .contact .padh100 {
        padding-inline: 0;
    }

    .contact .ttl01 {
        margin-bottom: 46px;
    }

    .contact .ttl01 span:first-child {
        font-size: 40px;
    }

    #mail_form dl + dl {
        margin-top: 23px;
    }

    #mail_form input[type="text"],
    #mail_form input[type="email"],
    #mail_form select {
        height: 39px;
    }

    #mail_form select {
        padding-right: 34px;
        background-position: right 12px center;
    }

    #mail_form textarea {
        height: 141px;
    }

    #mail_form #form_submit {
        margin-top: 32px;
    }

    #mail_form .submit-btn,
    #mail_form #form_submit::after {
        font-size: 19.04px;
        line-height: 21.58px;
    }

    .deco-contact-04 {
        width: 303px;
        right: -144px;
        top: 91px;
        transform: none;
    }

    .deco-contact-03 {
        width: clamp(200px, 70vw, 300px);
        left: -94px;
        bottom: -60px;
        transform: none;
    }

    .page-contact .lower-back {
        margin-top: 138px;
        margin-bottom: 24px;
    }
}