@charset "utf-8";
/* スマホサイズ */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    main {
        margin-bottom: 80px;
    }

    /* 共通 */
    section {
        padding: 80px 0;
        padding: 60px 0;
    }

    /* ヘッダー */
    .header {
        padding: 10px 16px;
    }

    .header-logo {
        width: 54px;
        aspect-ratio: 1 / 1;
    }

    .header-logo a {
        padding: 0;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        aspect-ratio: 1 / 1;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
    }

    .hamburger-inner {
        position: relative;
        display: block;
        width: 32px;
        aspect-ratio: 4 / 3;
    }

    .hamburger-line {
        position: absolute;
        display: block;
        left: 0;
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
    }

    .hamburger-line:nth-child(1) {
        top: 0;
    }

    .hamburger-line:nth-child(2) {
        top: 11px;
    }

    .hamburger-line:nth-child(3) {
        top: 22px;
    }

    /* 開いた時にX字に変形 */
    .hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
        top: 11px;
        transform: rotate(45deg);
    }

    .hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
        top: 11px;
        transform: rotate(-45deg);
    }


    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--black);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        z-index: 1000;
        padding: 80px 24px 60px;
    }

    .header-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header-nav__inner {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .header-nav__list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .header-nav__item a {
        font-size: 24px;
    }

    .header-sns__icon {
        margin-top: 40px;
        gap: 20px;
    }

    .header-sns__icon a {
        width: 45px;
    }

    /* メニューが開いている間、背景スクロールを止める */
    body.menu-open {
        overflow: hidden;
    }

    .contact-pc {
        display: none;
    }

    .contact-sp {
        position: relative;
        display: block;
        width: 100%;
        text-align: center;
        max-width: 400px;
        margin: 60px auto 0;
        background: #d4af3766
    }

    .contact-sp::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url(../img/contact-bg.png) center center / cover no-repeat;
        opacity: .2;
        z-index: 0;
    }

    .contact-sp a {
        position: relative;
        font-size: 32px;
        width: 100%;
        padding: 30px 0;
        z-index: 2;
    }

    .t-h2,
    .subpage-h2 {
        font-size: 50px;
        margin-bottom: 1em;
    }

    .footer-contact {
        padding: 50px 0;
    }

    .footer-contact::before {
        opacity: .2;
    }

    .footer-contact__head.t-h2 {
        margin-bottom: .8em;
    }

    .footer-inner {
        padding: 0;
        margin-bottom: 30px;
    }

    .footer-logo {
        width: 90px;
    }

    .footer-block {
        margin-bottom: 30px;
        gap: 26px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 14px;
        padding: 0;
    }


    /* サブページ */
    .fv-head {
        display: flex;
        align-items: center;
        min-height: 140px;
        margin-bottom: 60px;

    }

    .fv-head h1 {
        padding: min(5vw, 50px) min(3vw, 30px);
        font-size: 50px;
        line-height: 1.3;
    }

    .fv-subhead {
        font-size: 28px;
    }

    @media (max-width: 500px) {
        .fv-subhead {
            font-size: 24px;
        }
    }

    .fv-text {
        font-size: 16px;
    }

    .fv-mokuji {
        font-size: 14px;
        gap: 14px;
    }

    .fv-mokuji a::after {
        right: 8px;
    }

    /* トップページ */
    .mv-wrap {
        padding: 100px 0 30px;
    }

    .catch {
        flex-direction: row;
        align-items: flex-end;
        flex-wrap: wrap;
        gap: 16px 40px;
    }

    .catch-sub__br {
        display: block;
    }

    .catch h1 {
        line-height: 1.2;
        font-size: min(16vw, 74px);
    }

    .catch h1 span {
        display: block;
    }

    .t-about {
        padding-top: 80px;
    }

    .t-about-head {
        font-size: 28px;
    }

    @media (max-width: 500px) {
        .t-about-head {
            font-size: 24px;
        }
    }

    .t-about-box p {
        font-size: 16px;
    }

    @media (max-width: 650px) {
        .t-about-box {
            max-width: 100%;
        }
    }

    .t-services-list {
        grid-template-columns: 1fr 1fr;
        gap: clamp(16px, 2.8vw, 20px);
    }

    .t-services-item {
        padding: clamp(16px, 2.8vw, 20px);
    }

    .t-services-item p {
        font-size: 16px;
    }

    /* アバウトページ */
    .vision-head {
        font-size: 28px;
    }

    @media (max-width: 500px) {
        .vision-head {
            font-size: 24px;
        }
    }

    .vision-text {
        font-size: 16px;
    }

    .value-item,
    .value-item:first-child {
        width: 100%;
        max-width: 360px;
        margin: 0;
    }

    .value-item__ttl {
        max-width: 70%;
        font-size: 24px;
    }

    @media (max-width: 500px) {
        .value-list {
            gap: 20px;
        }

        .value-item:nth-child(even),
        .value-item:nth-child(odd) {
            max-width: 100%;
            aspect-ratio: auto;
            padding: clamp(20px, 3vw, 40px);
            border-radius: 0;
            align-self: center;
        }

        .value-item__ttl {
            text-align: center;
            font-size: 22px;
        }

        .value-item__ttl,
        .value-item p {
            width: 100%;
            max-width: 100%;
            margin-right: 0;
            margin-left: 0;
        }
    }

    /* 強み */
    .strengths-list {
        gap: 40px;
    }

    .strengths-item {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .strengths-item::before {
        margin-bottom: 0;
        text-align: center;
        font-size: 60px;
    }

    .strengths-item::after {
        position: absolute;
        top: 94px;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80px;
        height: 2px;
    }

    .strengths-item__ttl {
        font-size: 24px;
    }

    .strengths-item__inner p {
        font-size: 16px;
    }

    /* 挨拶 */
    .message-inner {
        flex-direction: column;
        gap: 0;
    }

    .message-block {
        display: contents;
    }

    .message .subpage-h2 {
        order: 1;
    }

    .message-img {
        min-width: auto;
        margin: 0 auto 30px;
        order: 2;
    }

    .message-text {
        order: 3;
    }

    .message-text>p {
        margin-bottom: 40px;
    }

    .company-list {
        font-size: 13px;
    }

    .company-list dd,
    .company-list dt {
        padding: 10px 0;
    }


    /* サービス */
    .services-ttl {
        font-size: 30px;
    }

    .services-text {
        font-size: 16px;
    }

    .services-subttl {
        font-size: 18px;
    }

    .services-list {
        font-size: 12px;
    }

    /* プライバシー */
    .contents-container {
        padding: 20px;
    }

    /* コンタクト */
    .contact-dl {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .contact-dl dd {
        margin-bottom: 20px;
    }

    .wpcf7-form-control.wpcf7-text,
    .wpcf7-form-control.wpcf7-email,
    .wpcf7-form-control.wpcf7-tel,
    .wpcf7-form-control.wpcf7-select,
    .wpcf7-form-control.wpcf7-textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
}