/* Tablet --------------------------------------------------------------- */
@media (max-width: 1100px) {
    :root {
        --container-width: min(88vw, 960px);
        --side-space: 6vw;
    }

    .site-header__toggle {
        display: inline-flex;
    }

    .global-nav {
        position: fixed;
        z-index: -1;
        inset: var(--header-height) 0 0;
        padding: 40px 6vw 64px;
        overflow-y: auto;
        visibility: hidden;
        background: var(--color-white);
        opacity: 0;
        transform: translateY(-12px);
        transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    }

    .global-nav.is-open {
        z-index: 999;
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .global-nav__list {
        display: block;
        max-width: 720px;
        margin-inline: auto;
    }

    .global-nav__item {
        border-bottom: 1px solid var(--color-border);
    }

    .global-nav__link {
        display: flex;
        min-height: 68px;
        font-size: 1rem;
    }

    .global-nav__item--contact {
        padding-top: 26px;
        border: 0;
    }

    .global-nav__item--contact .button {
        justify-content: center;
        width: 100%;
    }

    .company-values {
        width: var(--container-width);
    }

    .company-values__heading {
        margin-bottom: 54px;
    }

    .value-card__number {
        top: -12px;
    }

}

/* Mobile --------------------------------------------------------------- */
@media (max-width: 767px) {
    :root {
        --container-width: calc(100vw - 40px);
        --side-space: 20px;
        --header-height: 72px;
        --fs-body: 0.9375rem;
        --fs-h2: clamp(1.65rem, 8vw, 2.15rem);
        --fs-display: clamp(2.2rem, 12vw, 3.4rem);
        --fs-hero: clamp(1.75rem, 8.7vw, 2.7rem);
    }

    body {
        line-height: 1.8;
    }

    .site-header__logo {
        width: min(53vw, 200px);
    }

    .page-heading {
        min-height: 400px;
        padding-block: 72px;
    }

    .page-heading--contact {
        min-height: 300px;
        padding-block: 64px 36px;
    }

    .page-heading--contact-step {
        min-height: 220px;
    }

    .page-heading__copy {
        max-width: 84%;
    }

    .page-heading--privacy .page-heading__copy {
        max-width: 100%;
    }

    .page-heading__title {
        margin-bottom: 28px;
    }

    .page-heading__bird {
        --reveal-layout-transform: translateY(-50%);

        top: 50%;
        right: -24vw;
        width: 92vw;
    }

    .page-heading__bird[data-reveal].is-revealed {
        opacity: 1;
    }

    .home-hero,
    .home-hero__content {
        min-height: calc(100svh - var(--header-height));
        max-height: 760px;
    }

    .home-hero__media img {
        object-position: 57% center;
    }

    .home-hero::after {
        background: linear-gradient(90deg, rgb(0 33 114 / 66%) 0%, rgb(0 33 114 / 25%) 76%, transparent 100%);
    }

    .home-hero__content {
        align-items: flex-end;
        padding-bottom: 29vw;
    }

    .home-hero__title {
        width: 100%;
        max-width: none;
        font-size: clamp(1.125rem, 5.8vw, 1.75rem);
        line-height: 1.55;
        letter-spacing: 0.02em;
        white-space: nowrap;
        transform: none;
    }

    .home-hero__title span {
        display: inline;
    }

    .home-hero__break--pc {
        display: none;
    }

    .home-hero__break--sp {
        display: inline;
    }

    .home-hero__marquee {
        bottom: 5vw;
        font-size: 11vw;
    }

    .home-stats,
    .home-services,
    .company-history,
    .quality-education,
    .company-values,
    .company-profile,
    .news-archive,
    .news-article,
    .contact-page,
    .contact-confirm,
    .contact-complete,
    .privacy-page,
    .not-found {
        padding-block: 84px;
    }

    .home-stats__grid {
        display: flex;
        gap: 14px;
        width: 100vw;
        max-width: none;
        margin-inline: 0;
        overflow-x: hidden;
        scroll-snap-type: none;
        scrollbar-width: none;
    }

    .news-article__header h1 {
        font-size: 1.375rem;
        line-height: 1.5;
    }

    .news-article__featured {
        margin-bottom: 52px;
        border-radius: 8px;
    }

    .news-article__content {
        font-size: 0.9375rem;
        line-height: 1.8;
    }

    .news-article__content h2,
    .news-article__content h3,
    .news-article__content h4 {
        overflow-wrap: anywhere;
    }

    .news-article__content .news-toc {
        padding: 16px 18px 20px;
        margin-top: 56px;
        border-radius: 14px;
    }

    .news-article__content blockquote {
        padding: 18px;
    }

    .stat-card {
        flex: 0 0 min(58vw, 230px);
        height: auto;
        min-height: 150px;
        border-radius: 16px 0 16px 0;
        scroll-snap-align: start;
    }

    .stat-card__label {
        flex-basis: 62px;
        font-size: 1rem;
    }

    .stat-card__body {
        display: flex;
        flex: 1 0 88px;
        align-items: center;
        justify-content: center;
    }

    .stat-card .stat-card__value {
        flex: 0 1 auto;
        padding-block: 0;
    }

    .stat-card__value strong,
    .stat-card--long-number .stat-card__value strong {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    .stat-card__value span {
        font-size: 1rem;
    }

    .home-about {
        grid-template-columns: 1fr;
        gap: 48px;
        width: 100%;
        padding-inline: 20px 0;
        padding-block: 84px;
    }

    .home-about__copy .section-title {
        margin-bottom: 28px;
        font-size: clamp(1.35rem, 6.8vw, 1.75rem);
        white-space: nowrap;
    }

    .home-about__media {
        min-height: 0;
        aspect-ratio: auto;
        border-radius: 0;
    }

    .home-concept__inner {
        grid-template-columns: 1fr;
        gap: 52px;
        min-height: 0;
        padding-block: 84px;
    }

    .home-concept__mark {
        width: min(82vw, 430px);
        margin-inline: auto;
    }

    .home-concept__mark img {
        margin-bottom: 52px;
    }

    .home-concept__copy {
        width: 100%;
    }

    .home-concept__copy p:not(.section-label) {
        margin-bottom: 34px;
    }

    .company-concept-hero__inner {
        min-height: 0;
        padding-block: 84px;
    }

    .company-concept-hero__bird {
        top: 46%;
        width: 120vw;
    }

    .company-concept-hero__mark {
        width: min(84vw, 470px);
        margin-bottom: 52px;
    }

    .company-concept-hero__copy {
        width: 100%;
        line-height: 1.95;
    }

    .company-concept-hero__copy > p:not(.company-concept-hero__signature) br {
        display: none;
    }

    .company-concept-hero__copy > p:not(.company-concept-hero__signature) {
        margin-bottom: 46px;
    }

    .company-philosophy__inner,
    .company-penguin-story__inner,
    .purpose-row,
    .company-profile__inner {
        grid-template-columns: 1fr;
    }

    .company-philosophy__inner {
        gap: 64px;
        min-height: 0;
        padding-block: 84px;
    }

    .company-philosophy__heading,
    .company-philosophy__title,
    .company-philosophy__copy {
        grid-column: 1;
        grid-row: auto;
    }

    .company-philosophy__copy {
        padding-top: 0;
    }

    .company-philosophy__title {
        margin-top: 0;
    }

    .company-philosophy__list {
        gap: 24px;
    }

    .company-philosophy__title img {
        width: min(78vw, 307.244px);
    }

    .company-philosophy__list p br {
        display: none;
    }

    .company-shine-story,
    .company-penguin-story {
        padding-block: 84px;
    }

    .company-penguin-story {
        --penguin-blue-start: 190px;
        --penguin-blue-height: auto;
        min-height: 0;
        padding-block: 0;
    }

  .company-penguin-story__scene {
    /* PC版の左ビジュアル全体を、SPの画面幅へ同率で縮小する。 */
    top: calc(var(--penguin-blue-start) - min(18.6916vw, 140px));
    width: min(100vw, 749px);
  }

  .company-penguin-story__iceberg {
    width: min(81.0414vw, 607px);
  }

  .company-penguin-story__swimmer--01 {
    top: calc(var(--penguin-blue-start) + min(94.7239vw, 709.482px));
    left: min(26.3065vw, 197.036px);
    width: min(19.7569vw, 147.979px);
  }

  .company-penguin-story__swimmer--02 {
    top: calc(var(--penguin-blue-start) + min(70.132vw, 525.289px));
    left: min(51.9431vw, 389.054px);
    width: min(21.3993vw, 160.281px);
  }

  .company-penguin-story__swimmer--03 {
    top: calc(var(--penguin-blue-start) + min(108.5861vw, 813.31px));
    left: min(45.0005vw, 337.054px);
    width: min(13.885vw, 103.999px);
    }

    .company-shine-story__inner {
        gap: 54px;
    }

    .company-shine-story__columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .company-shine-story__columns p {
        font-size: clamp(0.875rem, 3.8462vw, 0.9375rem);
        line-break: strict;
        text-wrap: pretty;
        word-break: auto-phrase;
    }

    .company-shine-story__brand {
        white-space: nowrap;
    }

    .company-shine-story__columns p + p {
        margin-top: 1.9em;
    }

    .company-penguin-story__inner {
        gap: 56px;
        min-height: 0;
        padding-top: var(--penguin-blue-start);
        padding-bottom: 84px;
    }

  .company-penguin-story__visual {
    min-height: 590px;
    padding-top: min(13.3511vw, 100px);
    padding-left: min(10.9vw, 82px);
  }

  .company-penguin-story__visual h2 {
    font-size: clamp(1.75rem, 7.8772vw, 3.6875rem);
  }

    .company-penguin-story__body {
        padding-top: 0;
    }

    .company-purpose {
        padding-top: 84px;
    }

    .purpose-row {
        gap: 16px;
        min-height: 0;
        padding-block: 64px;
    }

    .purpose-row__copy h3 br {
        display: none;
    }

    .service-card-grid,
    .value-list,
    .service-index,
    .safety-grid {
        grid-template-columns: 1fr;
    }

    .service-card-grid {
        gap: 18px;
    }

    .home-services,
    .home-news {
        padding-block: 84px;
    }

    .home-services__heading {
        margin-bottom: 48px;
    }

    .home-services__button {
        margin-top: 42px;
    }

    .service-card__body {
        min-height: 0;
    }

    .home-news__heading {
        display: block;
    }

    .home-news {
        display: block;
    }

    .home-news__heading .text-link {
        display: flex;
        width: max-content;
        margin-top: 22px;
    }

    .home-news > .news-list,
    .home-news > .notice-box {
        margin-top: 24px;
    }

    .home-news .news-list__link {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 14px;
        min-height: 0;
        padding-block: 18px;
    }

    .home-news .news-list__date {
        grid-column: 1;
        grid-row: 1;
    }

    .home-news .news-list__category {
        grid-column: 2;
        grid-row: 1;
    }

    .home-news .news-list__title {
        grid-column: 1 / -1;
        grid-row: 2;
        overflow: visible;
        line-height: 1.55;
        text-overflow: clip;
        white-space: normal;
    }

    .value-list {
        gap: 72px;
    }

    .company-values__heading {
        margin-bottom: 64px;
    }

    .company-values,
    .company-profile,
    .company-history {
        padding-block: 84px;
    }

    .company-profile {
        min-height: 0;
        margin-top: 0;
    }

    .value-card {
        height: auto;
        min-height: 0;
    }

    .value-card__number {
        top: -24px;
    }

    .company-gallery__item {
        flex-basis: 50%;
        aspect-ratio: 1;
    }

    .profile-table__row,
    .confirm-list__row {
        grid-template-columns: 1fr;
    }

    .profile-table dt,
    .profile-table dd,
    .confirm-list dt,
    .confirm-list dd {
        padding: 16px 18px;
    }

    .company-history__inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .history-list__item {
        grid-template-columns: 74px 1fr;
        gap: 16px;
    }

    .service-index {
        gap: 10px;
        padding-bottom: 84px;
        margin-top: -42px;
    }

    .service-index__item {
        min-height: 72px;
        padding: 14px 18px;
    }

    .service-detail-list {
        padding-block: 84px;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 38px;
        height: auto;
        padding-block: 64px;
    }

    .service-detail__body {
        display: contents;
    }

    .service-detail__heading {
        grid-template-columns: auto minmax(0, 244px);
        gap: clamp(14px, 2.625vw, 22px);
        order: 1;
        padding-inline: clamp(22px, 6.4vw, 42px);
        margin-bottom: 0;
    }

    .service-detail__number {
        border-radius: 30px 0 30px 0;
    }

    .service-detail .service-detail__media {
        order: 2;
    }

    .service-detail__body > p {
        width: auto;
        order: 3;
        padding-inline: clamp(22px, 6.4vw, 42px);
        margin: 0;
        font-size: 16px;
        line-height: 30px;
    }

    .service-detail__media {
        height: auto;
        aspect-ratio: 1.5;
    }

    .education-card {
        padding-block: 42px;
    }

    .education-card h3 {
        margin-bottom: 18px;
    }

    .safety-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .safety-card {
        min-height: 0;
    }

    .quality-safety__banner {
        padding-block: 54px;
    }

    .quality-safety__inner {
        padding-block: 84px;
    }

    .news-list__link {
        grid-template-columns: 1fr auto;
        gap: 8px 18px;
        padding-block: 22px;
    }

    .news-list__date {
        grid-column: 1;
    }

    .news-list__category {
        grid-column: 2;
        grid-row: 1;
    }

    .news-list__title {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .news-list__arrow {
        display: none;
    }

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

    .contact-cta__image {
        aspect-ratio: 4 / 3;
    }

    .contact-cta__content {
        min-height: 420px;
        padding: 54px 20px;
    }

    .contact-cta__bird {
        left: -45vw;
        width: 120vw;
    }

    .contact-form,
    .contact-form__errors,
    .confirm-list__privacy {
        width: 100%;
    }

    .contact-cta__text br {
        display: none;
    }

    .recruit-cta__inner {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .recruit-cta__copy {
        padding: 64px 20px;
    }

    .recruit-cta__text {
        white-space: normal;
    }

    .recruit-cta__image {
        aspect-ratio: 4 / 3;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 48px;
        min-height: 0;
        padding-top: 72px;
    }

    .site-footer__navigation {
        left: 0;
        padding-top: 0;
        padding-left: 0;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
        gap: 8px;
    }

    .site-footer__bottom {
        display: block;
    }

    .site-footer__copyright {
        margin-top: 24px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .button {
        width: 100%;
    }

}

@media (max-width: 374px) {
    :root {
        --container-width: calc(100vw - 32px);
        --side-space: 16px;
    }

}
