/* =====================================
RESET
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    color: #262626;
    background: #fff;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =====================================
HEADER
===================================== */

.company-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 28px 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.company-logo {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: .25em;
    color: #111;
}

.company-menu {
    width: 170px;
    height: 42px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(100deg, #10b5c1, #a4c58d);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 18px;
    cursor: pointer;
}

.company-menu-icon {
    width: 24px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-right: auto;
}

.company-menu-icon i {
    width: 23px;
    height: 1px;
    display: block;
    background: #fff;
}


/* =====================================
HERO
===================================== */

.company-hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 820px;
    overflow: hidden;
    background: #fff;
}

.company-main {
    position: absolute;
    z-index: 20;
    top: 37%;
    left: 50%;
    width: min(900px, 90%);
    transform: translate(-50%, -50%);
    text-align: center;
}

/* HERO内のラベル
company-profile内の .company-label と競合しないようにスコープ化 */
.company-main .company-label {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .25em;
    color: #0bb1ba;
}

.company-main h1 {
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .12em;
    color: #222;
}

.company-illustration {
    width: min(520px, 68vw);
    margin: 30px auto 10px;
}

.company-illustration img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    animation: companyIllustrationFloat 6s ease-in-out infinite;
}

@keyframes companyIllustrationFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.company-message {
    margin-top: 10px;
    font-size: clamp(14px, 1.5vw, 19px);
    font-weight: 600;
    line-height: 2;
    letter-spacing: .1em;
    color: #444;
}


/* =====================================
WAVE
===================================== */

.company-wave {
    position: absolute;
    left: 0;
    bottom: 233px;
    width: 100%;
    height: 340px;
    z-index: 10;
    pointer-events: none;
}

.company-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.company-wave path {
    fill: #fff1c8;
}


/* =====================================
COMPANY ICON DECORATION
===================================== */

.company-icon {
    position: absolute;
    z-index: 8;
    width: 78px;
    height: 78px;
    color: #e8ad00;
    opacity: .72;
    pointer-events: none;
    animation: companyIconFloat 6s ease-in-out infinite;
}

.company-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.company-icon-building {
    top: 17%;
    left: 10%;
    animation-delay: -1s;
}

.company-icon-people {
    top: 20%;
    right: 10%;
    animation-delay: -3s;
}

.company-icon-link {
    bottom: 60%;
    left: 21%;
    width: 68px;
    height: 68px;
    animation-delay: -4.5s;
}

.company-icon-idea {
    bottom: 58%;
    right: 22%;
    width: 72px;
    height: 72px;
    animation-delay: -2s;
}

@keyframes companyIconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: .6;
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
        opacity: .85;
    }
}


/* =====================================
INTRO
===================================== */

.company-intro {
    position: relative;
    padding: 0 0 180px;
    margin-top: -248px;
    background: #fff1c8;
}

.company-section-inner {
    width: min(1000px, 88%);
    margin: 0 auto;
}

.company-intro h2 {
    margin-top: 15px;
    font-size: 26px;
    line-height: 1.35;
    letter-spacing: .08em;
    text-align: center;
}

.company-intro-text {
    margin-top: 45px;
    font-size: 16px;
    line-height: 2.5;
    letter-spacing: .08em;
    color: #555;
    text-align: center;
}

.message-lead__name {
    font-family: "M PLUS 2", sans-serif;
    font-size: calc(min(32 * .0694444444vw, 32px));
    line-height: 1.3;
    text-align: center;
}


/* =====================================
PHOTO FADE GRID
===================================== */

.photo-fade-section {
    width: 100%;
    padding-bottom: 60px;
    background: #fff1c8;
}

.photo-fade-grid {
    width: 85%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    overflow: hidden;
}

.fade-photo {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #eee;
}

.fade-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    animation: photoFade 12s infinite;
}

.fade-photo img:nth-child(1) {
    animation-delay: 0s;
}

.fade-photo img:nth-child(2) {
    animation-delay: 4s;
}

.fade-photo img:nth-child(3) {
    animation-delay: 8s;
}

@keyframes photoFade {
    0% {
        opacity: 0;
    }

    8%,
    28% {
        opacity: 1;
    }

    36%,
    100% {
        opacity: 0;
    }
}


/* =====================================
COMPANY PROFILE
===================================== */

.company-profile {
    position: relative;
    padding: 140px 20px 160px;
    background: #fff3c8;
    overflow: hidden;
}

.company-profile::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    left: -250px;
    top: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 183, 196, .08), transparent 70%);
    filter: blur(25px);
    pointer-events: none;
}

.company-profile-inner {
    position: relative;
    z-index: 2;
    width: min(900px, 90%);
    margin: 0 auto;
}

.company-profile-title {
    margin-bottom: 70px;
    text-align: center;
}

.company-profile-title p {
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .25em;
    color: #11b3bd;
}

.company-profile-title h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: .08em;
    color: #222;
}

.company-table {
    width: 100%;
    border-top: 1px solid #e4e0d5;
}

.company-row {
    min-height: 72px;
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    border-bottom: 1px solid #e4e0d5;
    background: #ede4cd;
}

.company-row:nth-child(even) {
    background: #fff;
}

/* PROFILE表内のラベル */
.company-row .company-label {
    padding: 18px 30px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.company-value {
    padding: 18px 30px;
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: .03em;
    color: #333;
}

.company-map-button {
    position: relative;
    width: 340px;
    height: 64px;
    margin: 70px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border-radius: 999px;
    background: linear-gradient(100deg, #f59b00, #f3b900);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .05em;
    text-decoration: none;
    box-shadow: 7px 7px 0 rgba(0, 0, 0, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.company-map-button:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .08);
}

.company-map-button span:last-child {
    font-size: 20px;
    transition: transform .3s ease;
}

.company-map-button:hover span:last-child {
    transform: translate(5px, -3px);
}


/* =====================================
TABLET
===================================== */

@media (max-width: 900px) {
    .fade-photo {
        height: 170px;
    }
}


/* =====================================
MOBILE
===================================== */

@media (max-width: 700px) {
    .company-header {
        padding: 20px;
    }

    .company-logo {
        font-size: 28px;
    }

    .company-menu {
        width: 125px;
        height: 38px;
    }

    .company-hero {
        min-height: 760px;
    }

    .company-main {
        top: 43%;
        width: 90%;
    }

    .company-main h1 {
        font-size: 39px;
    }

    .company-illustration {
        width: min(370px, 80vw);
        margin-top: 25px;
    }

    .company-message {
        font-size: 13px;
        line-height: 1.9;
    }

    .company-wave {
        height: 190px;
    }

    .company-intro {
        padding: 100px 0 130px;
    }

    .company-intro h2 {
        font-size: 34px;
    }

    .company-intro-text {
        font-size: 13px;
        line-height: 2.2;
    }

    .company-profile {
        padding: 100px 15px 120px;
    }

    .company-profile-inner {
        width: 92%;
    }

    .company-profile-title {
        margin-bottom: 50px;
    }

    .company-profile-title h2 {
        font-size: 34px;
    }

    .company-row {
        min-height: 0;
        grid-template-columns: 110px 1fr;
    }

    .company-row .company-label {
        padding: 16px 14px;
        font-size: 12px;
    }

    .company-value {
        padding: 16px 14px;
        font-size: 12px;
        line-height: 1.8;
    }

    .company-map-button {
        width: 100%;
        max-width: 320px;
        height: 58px;
        margin-top: 55px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .photo-fade-grid {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .fade-photo {
        height: 180px;
    }
}

/* =========================================================
RESPONSIVE FINAL
既存のPCデザインは維持し、タブレット・SPのみ調整
========================================================= */

/* =========================
TABLET
========================= */
@media (max-width: 1024px) {

    .company-main {
        width: min(820px, 88%);
    }

    .company-main h1 {
        font-size: clamp(42px, 6vw, 60px);
    }

    .company-message {
        font-size: 15px;
    }

    .company-icon {
        width: 64px;
        height: 64px;
    }

    .company-icon-building {
        left: 6%;
    }

    .company-icon-people {
        right: 6%;
    }

    .company-icon-link {
        left: 14%;
    }

    .company-icon-idea {
        right: 14%;
    }

    .company-section-inner {
        width: min(900px, 88%);
    }

    .company-profile-inner {
        width: min(840px, 90%);
    }

    .company-row {
        grid-template-columns: 190px 1fr;
    }
}


/* =========================
MOBILE
========================= */
@media (max-width: 700px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    img,
    svg {
        max-width: 100%;
    }

    /* HERO */
    .company-hero {
        width: 100%;
        height: 720px;
        min-height: 720px;
        overflow: hidden;
    }

    .company-main {
        top: 39%;
        width: 88%;
        transform: translate(-50%, -50%);
    }

    .company-main .company-label {
        margin-bottom: 9px;
        font-size: 10px;
        letter-spacing: .22em;
    }

    .company-main h1 {
        font-size: 38px;
        line-height: 1.25;
        letter-spacing: .08em;
    }

    .company-message {
        margin-top: 18px;
        font-size: 13px;
        line-height: 1.9;
        letter-spacing: .05em;
    }

    /* HERO DECORATION */
    .company-icon {
        width: 48px;
        height: 48px;
        opacity: .58;
    }

    .company-icon-building {
        top: 17%;
        left: 5%;
    }

    .company-icon-people {
        top: 19%;
        right: 5%;
    }

    .company-icon-link {
        bottom: 46%;
        left: 7%;
        width: 44px;
        height: 44px;
    }

    .company-icon-idea {
        bottom: 44%;
        right: 8%;
        width: 46px;
        height: 46px;
    }

    /* WAVE */
    .company-wave {
        left: 50%;
        bottom: -1px;
        width: 180%;
        height: 175px;
        transform: translateX(-50%);
    }

    /* INTRO */
    .company-intro {
        margin-top: -1px;
        padding: 70px 0 95px;
    }

    .company-section-inner {
        width: 88%;
    }

    .company-intro h2 {
        margin-top: 0;
        font-size: 28px;
        line-height: 1.4;
    }

    .company-intro-text {
        margin-top: 32px;
        font-size: 13px;
        line-height: 2.15;
        letter-spacing: .035em;
        text-align: left;
    }

    .message-lead__name {
        margin-top: 20px;
        font-size: 20px;
    }

    /* PHOTO */
    .photo-fade-section {
        padding-bottom: 45px;
    }

    .photo-fade-grid {
        width: 92%;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .fade-photo {
        height: clamp(180px, 58vw, 240px);
    }

    /* PROFILE */
    .company-profile {
        padding: 85px 15px 100px;
    }

    .company-profile::before {
        width: 320px;
        height: 320px;
        left: -180px;
        top: 70px;
    }

    .company-profile-inner {
        width: 100%;
        max-width: 560px;
    }

    .company-profile-title {
        margin-bottom: 42px;
    }

    .company-profile-title p {
        margin-bottom: 8px;
        font-size: 9px;
    }

    .company-profile-title h2 {
        font-size: 30px;
    }

    .company-table {
        border-top: 1px solid #e4e0d5;
    }

    .company-row {
        min-height: 0;
        grid-template-columns: 96px minmax(0, 1fr);
        align-items: stretch;
    }

    .company-row .company-label,
    .company-value {
        display: flex;
        align-items: center;
    }

    .company-row .company-label {
        padding: 15px 12px;
        font-size: 11px;
        line-height: 1.7;
    }

    .company-value {
        min-width: 0;
        padding: 15px 14px;
        font-size: 11px;
        line-height: 1.8;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .company-map-button {
        width: min(100%, 300px);
        height: 56px;
        margin-top: 48px;
        font-size: 13px;
    }
}


/* =========================
SMALL MOBILE
========================= */
@media (max-width: 390px) {

    .company-hero {
        height: 680px;
        min-height: 680px;
    }

    .company-main {
        top: 38%;
        width: 90%;
    }

    .company-main h1 {
        font-size: 34px;
    }

    .company-message {
        font-size: 12px;
        line-height: 1.85;
    }

    .company-icon {
        width: 42px;
        height: 42px;
    }

    .company-icon-link,
    .company-icon-idea {
        width: 40px;
        height: 40px;
    }

    .company-wave {
        width: 200%;
        height: 155px;
    }

    .company-intro {
        padding: 62px 0 85px;
    }

    .company-section-inner {
        width: 90%;
    }

    .company-intro h2 {
        font-size: 26px;
    }

    .company-intro-text {
        margin-top: 28px;
        font-size: 12px;
        line-height: 2.1;
    }

    .photo-fade-grid {
        width: 94%;
    }

    .fade-photo {
        height: 175px;
    }

    .company-profile {
        padding: 75px 12px 90px;
    }

    .company-profile-title h2 {
        font-size: 28px;
    }

    .company-row {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .company-row .company-label {
        padding: 14px 9px;
        font-size: 10px;
    }

    .company-value {
        padding: 14px 11px;
        font-size: 10px;
    }

    .company-map-button {
        max-width: 280px;
        height: 54px;
        margin-top: 42px;
    }
}


/* =========================
REDUCED MOTION
========================= */
@media (prefers-reduced-motion: reduce) {

    .company-icon,
    .company-illustration img,
    .fade-photo img {
        animation: none;
    }

    .fade-photo img:first-child {
        opacity: 1;
    }

    .fade-photo img:not(:first-child) {
        opacity: 0;
    }
}

/* =========================================================
SP HERO WAVE / ICON FINAL
========================================================= */

@media (max-width: 700px) {

    /* =========================
    HERO
    ========================= */

    .company-hero {
        position: relative;
        height: 720px;
        min-height: 720px;
        overflow: hidden;
    }


    /* =========================
    WAVE
    かなり上へ配置
    ========================= */

    .company-wave {
        position: absolute;

        left: 50%;
        bottom: 400px;

        width: 190%;
        height: 210px;

        transform: translateX(-50%);

        z-index: 10;

        pointer-events: none;
    }

    .company-wave svg {
        width: 100%;
        height: 100%;

        display: block;
    }

    @media (max-width: 700px) {

        .company-wave {
            position: absolute;
            left: 50%;
            bottom: 60px;

            width: 190%;
            height: 210px;

            transform: translateX(-50%);
            z-index: 10;

            pointer-events: none;
        }

        /* 波から下を黄色で埋める */
        .company-wave::after {
            content: "";
            position: absolute;

            top: 99%;
            left: 0;

            width: 100%;
            height: 400px;

            background: #fff1c8;

            z-index: -1;
        }

    }


    /* =========================
    ICON
    波の境界にかぶせる
    ========================= */

    .company-icon {
        z-index: 15;

        width: 48px;
        height: 48px;
    }


    /* 左上：会社 */

    .company-icon-building {
        top: auto;
        bottom: 165px;
        left: 11%;
    }


    /* 右上：人 */

    .company-icon-people {
        top: auto;
        bottom: 165px;
        right: 11%;
    }


    /* 左：つながり */

    .company-icon-link {
        top: auto;
        bottom: 98px;
        left: 4%;

        width: 44px;
        height: 44px;
    }


    /* 右：アイデア */

    .company-icon-idea {
        top: auto;
        bottom: 97px;
        right: 4%;

        width: 46px;
        height: 46px;
    }


    /* =========================
    INTRO
    ========================= */

    .company-intro {
        margin-top: -181px;
    }

}

@media (max-width: 700px) {

    /* =========================
    HERO → 代表挨拶の余白を縮める
    ========================= */

    .company-hero {
        height: 250px;
        min-height: 250px;
        margin-top: 45%;
    }

    .company-intro {
        margin-top: -1px;
        padding-top: 45px;
    }

}

/* =====================================================
SP NAV 最前面表示・透け防止
===================================================== */

@media (max-width: 800px) {

    /* NAVを含んでいる親 */
    .header {
        position: relative;
        z-index: 99990 !important;
    }

    .site-header {
        z-index: 99992 !important;
    }


    /* =========================
    SP NAV
    ========================= */

    .sp-nav {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;

        /* 完全に不透明 */
        background: #45bfae !important;
        background-image:
            linear-gradient(135deg,
                #16b7c3 0%,
                #59c3b1 55%,
                #a8cd9e 100%) !important;

        z-index: 99999 !important;

        overflow-y: auto !important;

        /* 閉じている状態 */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: none !important;

        transition:
            opacity .35s ease,
            visibility .35s ease;
    }


    /* 開いている状態 */
    .sp-nav.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        padding-top: 0;
    }


    /* =========================
    NAV CONTENT
    ========================= */

    .sp-nav-inner {
        position: relative !important;
        z-index: 2 !important;

        width: 100%;
        min-height: 90dvh;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        padding: 0 25px 0;
    }


    /* =========================
    CLOSE
    ========================= */

    .sp-nav-close {
        position: absolute !important;

        top: 12px !important;
        right: 17px !important;

        z-index: 10 !important;
    }


    /* =========================
    BACKGROUND SCROLL STOP
    ========================= */

    body.menu-open {
        overflow: hidden !important;
    }
}
