@charset "UTF-8";

/* =========================================================
   タブレット（〜1180px）
   ========================================================= */
@media (max-width: 1180px) {
    .header__nav ul {
        gap: 18px;
    }

    .header__nav a {
        font-size: 14px;
    }

    .numbers__inner {
        grid-template-columns: 300px 1fr;
        gap: 40px;
    }

    .founder__grid {
        grid-template-columns: 340px 1fr;
        gap: 48px;
    }
}

/* =========================================================
   タブレット（〜1024px）: ハンバーガー化
   ========================================================= */
@media (max-width: 1024px) {
    :root {
        --side: 0px;
        --header-h: 72px;
    }

    .side-ticker {
        display: none;
    }

    .header {
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 2px 0 var(--ink);
    }

    .header.is-scrolled {
        height: var(--header-h);
        backdrop-filter: none;
    }

    .header__inner {
        padding: 0 20px;
    }

    .header__logo-sub {
        font-size: 10px;
    }

    .header__logo-main {
        font-size: 20px;
    }

    .corner-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 52px;
        height: 52px;
        padding: 0 13px;
        background: var(--red);
        border: 3px solid var(--ink);
        box-shadow: 3px 3px 0 var(--ink);
        cursor: pointer;
        position: relative;
        z-index: 2;
    }

    .menu-toggle span {
        display: block;
        height: 3px;
        background: var(--white);
        transition: transform .3s var(--ease), opacity .3s;
    }

    .menu-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
    .menu-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--red);
        padding: 110px 32px 40px;
        overflow-y: auto;
        clip-path: circle(0 at calc(100% - 46px) 36px);
        transition: clip-path .6s var(--ease);
        visibility: hidden;
    }

    .header__nav.is-open {
        clip-path: circle(150% at calc(100% - 46px) 36px);
        visibility: visible;
    }

    .header__nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .header__nav li {
        border-bottom: 2px solid rgba(255, 255, 255, .3);
    }

    .header__nav a {
        display: block;
        padding: 18px 0;
        font-family: var(--ff-display);
        font-weight: 400;
        font-size: 22px;
        color: var(--white);
    }

    .header__nav a::after {
        display: none;
    }

    .header__nav-cta {
        display: block;
        border-bottom: none !important;
        margin-top: 32px;
    }

    .header__nav-cta a {
        background: var(--white);
        color: var(--red);
        text-align: center;
        border: 3px solid var(--ink);
        box-shadow: 5px 5px 0 var(--ink);
    }

    /* HERO */
    .hero {
        min-height: auto;
        padding: calc(var(--header-h) + 48px) 0 100px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .hero__visual {
        order: -1;
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

    .bubble--1 { left: 0; }
    .bubble--2 { left: -2%; }
    .bubble--3 { right: 0; }
    .bubble--answer { right: -2%; }

    /* ABOUT */
    .about__inner {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    /* NUMBERS */
    .numbers__inner {
        grid-template-columns: 1fr;
    }

    .numbers__head {
        position: static;
        justify-content: center;
    }

    .numbers__person {
        max-width: 300px;
    }

    /* DETAIL */
    .detail-block__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .detail-block--reverse .detail-block__main {
        order: 0;
    }

    .detail-block__side {
        max-width: 640px;
    }

    .recruit-grid {
        grid-template-columns: 1fr;
    }

    /* FOUNDER */
    .founder__grid {
        grid-template-columns: 1fr;
    }

    .founder__photo-wrap {
        max-width: 440px;
        width: 100%;
        margin: 0 auto;
    }

    /* COMPANY */
    .company__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .company__head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .company__head .sec-en {
        width: 100%;
    }

    .company__stamp {
        margin-top: 0;
        width: 110px;
        height: 110px;
        font-size: 32px;
    }

    /* CONTACT */
    .contact__inner {
        grid-template-columns: 1fr;
    }

    .contact::after {
        right: 10%;
    }

    .pagetop {
        right: 16px;
    }
}

/* =========================================================
   スマートフォン（〜767px）
   ========================================================= */
@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    .sp-only {
        display: inline;
    }

    .pc-only {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    .sec-head {
        margin-bottom: 44px;
    }

    .btn {
        min-width: 0;
        width: 100%;
        padding: 16px 24px;
    }

    /* HERO */
    .hero {
        padding: calc(var(--header-h) + 16px) 0 80px;
    }

    .hero__inner {
        padding: 0 20px;
        gap: 24px;
    }

    .hero__label span {
        font-size: 14px;
    }

    .hero__title {
        display: flex;
        flex-wrap: wrap;
        font-size: clamp(40px, 12vw, 60px);
    }

    .hero__line:nth-child(3) {
        width: 100%;
    }

    .hero__lead {
        font-size: 15px;
        margin-top: 24px;
    }

    .hero__btns {
        gap: 14px;
        margin-top: 28px;
    }

    .hero__visual {
        padding: 50px 0 40px;
    }

    .hero__img {
        width: 82%;
        box-shadow: 10px 10px 0 var(--red);
        border-radius: 140px 140px 0 0;
    }

    .bubble {
        font-size: 12px;
        padding: 8px 14px;
        border-width: 2px;
        box-shadow: 3px 3px 0 var(--ink);
    }

    .bubble::after {
        width: 12px;
        height: 12px;
        bottom: -9px;
        left: 20px;
        border-width: 2px;
    }

    .bubble--1 { top: 0; left: 0; }
    .bubble--2 { top: 40%; left: 0; }
    .bubble--3 { top: 14%; right: 0; }

    .bubble--answer {
        font-size: 13px;
        padding: 30px 24px;
        right: 0;
        bottom: 0;
    }

    .hero__vertical {
        font-size: 16px;
        right: 0;
        top: 60px;
        display: none;
    }

    .hero__scroll {
        display: none;
    }

    .marquee__track span {
        font-size: 26px;
        padding: 8px 18px;
    }

    .marquee__track i {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    /* ABOUT */
    .about {
        padding: 100px 0 120px;
    }

    .about__lead {
        font-size: 17px;
    }

    .about__body {
        line-height: 2;
    }

    .jinkei__node {
        font-size: 11px;
        border-width: 2px;
    }

    .jinkei__center-sub {
        font-size: 10px;
    }

    /* NUMBERS */
    .numbers {
        padding: 90px 0 110px;
    }

    .numbers__head {
        gap: 12px;
    }

    .numbers__vertical-small {
        font-size: 16px;
    }

    .numbers__vertical-main {
        font-size: 32px;
    }

    .numbers__person .img-slot {
        margin-top: 90px;
    }

    .numbers__person .bubble--shout {
        font-size: 12px;
        padding: 24px 18px;
        top: 10px;
    }

    .numbers__list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .num-card {
        padding: 22px 22px 20px;
        box-shadow: 6px 6px 0 var(--ink);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .num-card--lg {
        display: block;
        box-shadow: 6px 6px 0 var(--white);
    }

    .num-card__label {
        font-size: 13px;
    }

    .num-card__value {
        font-size: 56px;
        margin-top: 0;
        white-space: nowrap;
    }

    .num-card--lg .num-card__value {
        font-size: 96px;
    }

    .num-card__value small {
        font-size: 18px;
    }

    .num-card--lg .num-card__value small {
        font-size: 26px;
    }

    .num-card__value .num-card__pre {
        font-size: 16px;
    }

    /* REASON */
    .reason {
        padding: 100px 0;
    }

    .reason__list {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .reason__item {
        padding: 40px 24px 28px;
    }

    .reason__num {
        font-size: 68px;
        top: -32px;
    }

    /* SERVICE */
    .service {
        padding: 100px 0;
    }

    .service::after {
        right: 8%;
    }

    .service__list {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-card a {
        box-shadow: 7px 7px 0 var(--red);
    }

    .service-card__body {
        padding: 24px 22px 26px;
    }

    /* DETAIL */
    .detail {
        padding: 100px 0 80px;
    }

    .detail-block {
        margin-bottom: 80px;
    }

    .detail-block__head {
        gap: 16px;
        margin-bottom: 28px;
    }

    .detail-block__no {
        font-size: 64px;
    }

    .detail-block__title {
        font-size: 24px;
    }

    .price-box {
        grid-template-columns: 1fr;
    }

    .price-box__item + .price-box__item {
        border-left: none;
        border-top: 3px solid var(--ink);
    }

    .price-box strong {
        font-size: 36px;
    }

    .mini-stats {
        gap: 8px;
    }

    .mini-stats__item {
        padding: 14px 4px;
    }

    .mini-stats__item b {
        font-size: 26px;
    }

    .mini-stats__item b small {
        font-size: 11px;
    }

    .mini-stats__item span {
        font-size: 10px;
    }

    .detail-block__lead {
        font-size: 18px;
    }

    .detail-block__img {
        box-shadow: 8px 8px 0 var(--ink);
    }

    .account-card {
        margin: -40px 0 0;
        gap: 14px;
        padding: 14px;
    }

    .img-slot--qr {
        width: 84px;
        height: 84px;
    }

    .account-card__id {
        font-size: 20px;
    }

    .case-list {
        gap: 12px;
    }

    .case figcaption {
        font-size: 12px;
    }

    .detail-block--dark {
        padding: 44px 20px 28px 26px;
        margin-left: -20px;
        margin-right: -20px;
    }

    .recruit-card {
        padding: 28px 20px;
    }

    .recruit-card__title {
        font-size: 22px;
    }

    .step-list li {
        font-size: 12px;
    }

    .recruit-card__big {
        font-size: 30px;
    }

    /* FOUNDER */
    .founder {
        padding: 100px 0;
    }

    .founder__name-card {
        margin: -40px 12px 0 -8px;
        padding: 22px 20px;
    }

    .founder__name {
        font-size: 32px;
    }

    .founder__vertical {
        right: -6px;
        font-size: 15px;
    }

    .timeline li {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-left: 24px;
    }

    .timeline li::before {
        left: 6px;
        top: 12px;
    }

    .timeline li::after {
        content: "";
        position: absolute;
        left: 1px;
        top: 6px;
        width: 13px;
        height: 13px;
        background: var(--red);
        border-radius: 50%;
    }

    .timeline__tag {
        justify-self: start;
        padding: 2px 14px;
    }

    .founder__partner {
        flex-direction: column;
        gap: 16px;
        padding: 26px 22px;
    }

    .founder__partner-title {
        font-size: 16px;
    }

    /* COMPANY */
    .company {
        padding: 100px 0;
    }

    .company__table > div {
        grid-template-columns: 1fr;
    }

    .company__table dt {
        padding: 10px 18px;
        font-size: 13px;
    }

    .company__table dd {
        padding: 16px 18px;
        font-size: 15px;
    }

    .company__biz {
        grid-template-columns: 1fr;
    }

    /* CONTACT */
    .contact {
        padding: 100px 0;
    }

    .contact__lead {
        font-size: 15px;
    }

    .contact-panel {
        padding: 30px 20px;
        box-shadow: 7px 7px 0 var(--red);
    }

    .contact-confirm__list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .contact-confirm__btns {
        grid-template-columns: 1fr;
    }

    .contact-confirm__btns .btn--red {
        order: -1;
    }

    .agree {
        font-size: 14px;
    }

    .sub-header {
        padding: 14px 20px;
    }

    .sub-header__cta {
        font-size: 12px;
        padding: 8px 14px;
    }

    .policy,
    .result {
        padding: 64px 0 80px;
    }

    .policy__lead {
        padding: 20px;
    }

    .policy__section h2 {
        font-size: 18px;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .chip span {
        font-size: 13px;
        padding: 6px 12px;
    }

    /* FOOTER */
    .footer__inner {
        flex-direction: column;
    }

    .footer__nav ul {
        gap: 10px 24px;
    }

    .pagetop {
        width: 54px;
        height: 54px;
        font-size: 12px;
    }
    .footer__inner {
        padding-top: 30px;
    }
}
