@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Noto+Serif+JP:wght@500;600&display=swap");

/* ==========================================================
   COMPANY REFERENCE
========================================================== */

.company-reference {
    --company-gold: #c5963e;
    --company-ink: #1b1916;
    --company-gray: #777168;
    --company-line: rgba(77, 64, 42, 0.14);
    --company-bg: #fcfaf5;

    position: relative;

    color: var(--company-ink);

    background:
        radial-gradient(
            circle at 78% 51%,
            rgba(201, 154, 61, 0.09),
            transparent 35%
        ),
        var(--company-bg);

    overflow: hidden;
}

.company-reference__frame {
    width: min(1600px, 100%);
    margin-inline: auto;
}


/* ==========================================================
   大きなCompany見出し
========================================================== */

.company-reference__hero {
    padding:
        clamp(54px, 6vw, 88px)
        clamp(30px, 4vw, 64px)
       0;
}

.company-reference__hero h2 {
    margin: 0;

    color: var(--company-ink);

    font-family: "Manrope", sans-serif;

    font-size:
    clamp(
        64px,
        6vw,
        100px
    );

    font-weight: 700;
    line-height: 0.78;
    letter-spacing: -0.075em;
}

.company-reference__hero p {
    margin:
        34px
        0
        0;

    color: var(--company-ink);

    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
}


/* ==========================================================
   全体レイアウト
========================================================== */

.company-reference__shell {
    min-height: 760px;

    display: grid;

    grid-template-columns:
        320px
        minmax(0, 1fr);

    border-top:
        1px solid
        rgba(201, 150, 62, 0.18);
}


/* ==========================================================
   左メニュー
========================================================== */

.company-reference__side {
    padding:
        42px
        38px
        70px
        50px;

    border-right:
        1px solid
        rgba(201, 150, 62, 0.22);
}

.company-reference__nav {
    display: flex;
    flex-direction: column;
}

.company-reference__tab {
    position: relative;

    width: 100%;
    min-height: 96px;

    padding:
        23px
        35px
        23px
        0;

    display: grid;

    grid-template-columns:
        32px
        minmax(0, 1fr);

    align-items: center;
    gap: 12px;

    color: var(--company-ink);
    background: transparent;

    border: 0;
    border-bottom:
        1px solid
        var(--company-line);

    text-align: left;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}

.company-reference__tab::after {
    content: "";

    position: absolute;
    left: 43px;
    bottom: -1px;

    width: 0;
    height: 2px;

    background: var(--company-gold);

    transition:
        width 0.48s
        cubic-bezier(
            0.16,
            1,
            0.3,
            1
        );
}

.company-reference__tab-number {
    color: var(--company-gold);

    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.company-reference__tab-copy {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.company-reference__tab-copy strong {
    color: var(--company-ink);

    font-size: 16px;
    font-weight: 600;
    line-height: 1.55;
}

.company-reference__tab-copy small {
    color:
        rgba(
            27,
            25,
            22,
            0.42
        );

    font-family: "Manrope", sans-serif;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.company-reference__tab i {
    position: absolute;
    top: 50%;
    right: 7px;

    color: var(--company-gold);

    font-size: 17px;
    font-style: normal;

    opacity: 0;

    transform:
        translate(
            -8px,
            -50%
        );

    transition:
        opacity 0.35s ease,
        transform 0.45s ease;
}

.company-reference__tab:hover::after,
.company-reference__tab.is-active::after {
    width: 76px;
}

.company-reference__tab:hover i,
.company-reference__tab.is-active i {
    opacity: 1;

    transform:
        translate(
            0,
            -50%
        );
}


/* ==========================================================
   右側
========================================================== */

.company-reference__main {
    min-width: 0;

    padding:
        58px
        0
        70px
        clamp(
            55px,
            6vw,
            96px
        );
}

.company-reference__panel {
    min-height: 650px;
}

.company-reference__panel[hidden] {
    display: none !important;
}

.company-reference__panel.is-active {
    animation:
        companyPanelIn
        0.7s
        cubic-bezier(
            0.16,
            1,
            0.3,
            1
        )
        both;
}

@keyframes companyPanelIn {

    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* ==========================================================
   見出し
========================================================== */

.company-reference__panel-header {
    position: relative;
    z-index: 4;

    width: fit-content;
}

.company-reference__panel-header > span {
    display: block;

    margin-bottom: 14px;

    color: var(--company-gold);

    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.company-reference__panel-header h3 {
    margin: 0;

    color: var(--company-ink);

    font-family:
        "Zen Kaku Gothic New",
        "Noto Sans JP",
        sans-serif;

    font-size:
        clamp(
            44px,
            3.8vw,
            60px
        );

    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.045em;
}

.company-reference__panel-header i {
    display: block;

    width: 54px;
    height: 2px;

    margin-top: 24px;

    background: var(--company-gold);
}


/* ==========================================================
   会社概要
========================================================== */

.company-reference__overview {
    display: grid;

    grid-template-columns:
        minmax(
            530px,
            0.88fr
        )
        minmax(
            440px,
            1.12fr
        );

    gap: 22px;

    align-items: start;
}

.company-reference__overview-copy {
    position: relative;
    z-index: 4;
}

.company-reference__profile {
    width: 100%;
    max-width: 650px;

    margin-top: 58px;
}

.company-reference__profile > div {
    min-height: 92px;

    display: grid;

    grid-template-columns:
        174px
        minmax(0, 1fr);

    border-bottom:
        1px solid
        var(--company-line);
}

.company-reference__profile dt,
.company-reference__profile dd {
    margin: 0;

    padding:
        27px
        0;
}

.company-reference__profile dt {
    color: var(--company-ink);

    font-size: 17px;
    font-weight: 600;
    line-height: 1.7;
}

.company-reference__profile dd {
    padding-left: 55px;

    color: var(--company-ink);

    border-left:
        1px solid
        var(--company-line);

    font-size: 20px;
    font-weight: 400;
    line-height: 1.75;
}

.company-reference__profile-business {
    min-height: 166px !important;
}

.company-reference__profile-business dd {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


/* ==========================================================
   抽象図
========================================================== */

.company-reference__art {
    position: relative;

    width: 100%;
    min-height: 670px;

    margin-top: 10px;

    pointer-events: none;
}

.company-reference__art-haze {
    position: absolute;
    top: 100px;
    right: -30px;

    width: 510px;
    height: 510px;

    background:
        radial-gradient(
            circle,
            rgba(201, 150, 62, 0.13),
            transparent 69%
        );

    border-radius: 50%;
}

.company-reference__orbit,
.company-reference__axis,
.company-reference__art-core,
.company-reference__node {
    position: absolute;
}

.company-reference__orbit {
    border:
        1px solid
        rgba(201, 150, 62, 0.35);

    border-radius: 50%;
}

.company-reference__orbit-01 {
    top: 112px;
    right: -25px;

    width: 440px;
    height: 440px;
}

.company-reference__orbit-02 {
    top: 40px;
    right: -95px;

    width: 590px;
    height: 590px;

    border-style: dashed;

    opacity: 0.72;

    animation:
        companyReferenceOrbit
        38s
        linear
        infinite;
}

.company-reference__orbit-03 {
    top: 174px;
    right: 100px;

    width: 246px;
    height: 246px;
}

.company-reference__orbit-04 {
    top: 325px;
    left: 5px;

    width: 216px;
    height: 216px;

    opacity: 0.65;
}

@keyframes companyReferenceOrbit {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

.company-reference__axis {
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(201, 150, 62, 0.51),
            transparent
        );

    transform-origin: center;
}

.company-reference__axis-horizontal {
    top: 355px;
    left: -36px;

    width: 670px;
}

.company-reference__axis-vertical {
    top: -38px;
    right: 220px;

    width: 720px;

    transform: rotate(90deg);
}

.company-reference__axis-diagonal-01 {
    top: 272px;
    left: -110px;

    width: 830px;

    transform: rotate(51deg);
}

.company-reference__axis-diagonal-02 {
    top: 385px;
    left: -124px;

    width: 850px;

    transform: rotate(-25deg);
}

.company-reference__art-core {
    top: 274px;
    right: 124px;

    width: 166px;
    height: 166px;

    background:
        radial-gradient(
            circle,
            transparent 0 34%,
            rgba(201, 150, 62, 0.68) 35% 58%,
            transparent 59%
        );

    border-radius: 50%;

    filter:
        drop-shadow(
            0
            12px
            34px
            rgba(201, 150, 62, 0.2)
        );
}

.company-reference__node {
    width: 11px;
    height: 11px;

    background: var(--company-gold);

    border:
        3px solid
        var(--company-bg);

    border-radius: 50%;

    box-shadow:
        0
        0
        0
        1px
        rgba(201, 150, 62, 0.55);
}

.company-reference__node-01 {
    top: 76px;
    right: 236px;
}

.company-reference__node-02 {
    top: 211px;
    right: 236px;
}

.company-reference__node-03 {
    top: 459px;
    right: 81px;
}

.company-reference__node-04 {
    top: 410px;
    left: 176px;
}

.company-reference__node-05 {
    top: 569px;
    right: 237px;
}


/* ==========================================================
   理念・沿革
========================================================== */

.company-reference__principles,
.company-reference__history {
    max-width: 800px;

    margin-top: 64px;
}

.company-reference__principles article,
.company-reference__history article {
    min-height: 110px;

    padding:
        27px
        0;

    display: grid;

    grid-template-columns:
        90px
        minmax(0, 1fr);

    gap: 30px;

    border-bottom:
        1px solid
        var(--company-line);
}

.company-reference__principles article > span,
.company-reference__history article > span {
    color: var(--company-gold);

    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.company-reference__principles strong,
.company-reference__history strong {
    color: var(--company-ink);

    font-family:
        "Noto Serif JP",
        serif;

    font-size: 21px;
    font-weight: 500;
}

.company-reference__principles p,
.company-reference__history p {
    margin:
        8px
        0
        0;

    color: var(--company-gray);

    font-size: 13px;
    line-height: 2;
}


/* ==========================================================
   代表メッセージ
========================================================== */

.company-reference__message {
    max-width: 920px;

    margin-top: 60px;

    display: grid;

    grid-template-columns:
        280px
        minmax(0, 1fr);

    gap: 54px;
}

.company-reference__message figure {
    height: 430px;

    margin: 0;

    overflow: hidden;
}

.company-reference__message img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;
}

.company-reference__message-copy h4 {
    margin:
        0
        0
        25px;

    color: var(--company-ink);

    font-family:
        "Noto Serif JP",
        serif;

    font-size: 31px;
    font-weight: 500;
    line-height: 1.65;
}

.company-reference__message-copy p {
    margin: 0;

    color: var(--company-gray);

    font-size: 13px;
    line-height: 2.1;
}

.company-reference__message-copy p + p {
    margin-top: 14px;
}

.company-reference__signature {
    margin-top: 31px;

    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.company-reference__signature span {
    color: var(--company-gray);

    font-size: 11px;
}

.company-reference__signature strong {
    color: var(--company-ink);

    font-family:
        "Noto Serif JP",
        serif;

    font-size: 22px;
    font-weight: 500;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1200px) {

    .company-reference__shell {
        grid-template-columns:
            270px
            minmax(0, 1fr);
    }

    .company-reference__side {
        padding-left: 30px;
    }

    .company-reference__main {
        padding-left: 52px;
    }

    .company-reference__overview {
        grid-template-columns: 1fr;
    }

    .company-reference__art {
        min-height: 490px;
    }

}

@media (max-width: 820px) {

    .company-reference__hero {
        padding:
            60px
            20px
            46px;
    }

    .company-reference__hero h2 {
        font-size:
            clamp(
                70px,
                22vw,
                104px
            );
    }

    .company-reference__hero p {
        margin-top: 25px;
    }

    .company-reference__shell {
        min-height: auto;

        grid-template-columns: 1fr;
    }

    .company-reference__side {
        padding:
            0
            20px;

        border-right: 0;
    }

    .company-reference__nav {
        flex-direction: row;

        overflow-x: auto;

        scroll-snap-type: x mandatory;
    }

    .company-reference__tab {
        min-width: 225px;

        scroll-snap-align: start;
    }

    .company-reference__main {
        padding:
            58px
            20px
            78px;
    }

    .company-reference__panel-header h3 {
        font-size: 42px;
    }

    .company-reference__profile {
        margin-top: 44px;
    }

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

    .company-reference__profile dt {
        padding-bottom: 8px;
    }

    .company-reference__profile dd {
        padding:
            0
            0
            23px;

        border-left: 0;
    }

    .company-reference__art {
        min-height: 380px;

        transform: scale(0.75);
        transform-origin: top center;
    }

    .company-reference__message {
        grid-template-columns: 1fr;
    }

}
.company-address-building {
    white-space: nowrap;
}

/* ==========================================================
   COMPANY ENTRY ANIMATION
========================================================== */

@media (min-width: 821px) {

    .company-reference.is-company-motion-ready
    .company-reference__hero {
        position: relative;
        --company-hero-line: 0;
    }

    /* Company下のゴールドライン */
    .company-reference.is-company-motion-ready
    .company-reference__hero::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -1px;
        left: 0;
        z-index: 20;
        height: 2px;
        pointer-events: none;

        background:
            linear-gradient(
                90deg,
                rgba(201, 154, 56, 0),
                rgba(201, 154, 56, 0.95) 12%,
                rgba(201, 154, 56, 0.65) 88%,
                rgba(201, 154, 56, 0)
            );

        transform:
            scaleX(
                var(--company-hero-line)
            );

        transform-origin:
            left center;
    }

    .company-reference.is-company-motion-ready
    .company-reference__overview-copy {
        position: relative;
        --company-center-line: 0;
    }

    /* 会社概要と右側の抽象図を分ける縦線 */
    .company-reference.is-company-motion-ready
    .company-reference__overview-copy::after {
        content: "";
        position: absolute;
        top: 0;
        right: -1px;
        bottom: 0;
        z-index: 20;
        width: 2px;
        pointer-events: none;

        background:
            linear-gradient(
                180deg,
                rgba(201, 154, 56, 0),
                rgba(201, 154, 56, 0.85) 12%,
                rgba(201, 154, 56, 0.5) 88%,
                rgba(201, 154, 56, 0)
            );

        transform:
            scaleY(
                var(--company-center-line)
            );

        transform-origin:
            top center;
    }

    .company-reference__hero h2,
    .company-reference__hero p,
    .company-reference__tab,
    .company-reference__panel-header,
    .company-reference__profile,
    .company-reference__art span {
        will-change:
            transform,
            opacity;
    }

}
/* ==========================================================
   COMPANY ANIMATION FIX
   文字切れ防止・縦線削除
========================================================== */

@media (min-width: 821px) {

    /* Companyの文字を切り抜かない */
    .company-reference__hero,
    .company-reference__hero h2 {
        overflow: visible !important;
    }

    .company-reference__hero h2 {
        clip-path: none !important;
        -webkit-clip-path: none !important;
    }

    /* アニメーションで追加した縦線を削除 */
    .company-reference.is-company-motion-ready
    .company-reference__overview-copy::after {
        content: none !important;
        display: none !important;
    }

}
/* ==========================================================
   COMPANY下部にぼかしが被るのを防ぐ
========================================================== */

/* COMPANYの中身をぼかしより前面に出す */
#company,
#company .section-flow-content,
#company .company-reference,
#company .company-reference__main {
    position: relative;
    z-index: 2;
}

/* FAQのぼかしが上に被りすぎないように少し下げる */
#faq .section-flow-bridge {
    top: -10px !important;
}