/* ========================================
   PHILOSOPHY
======================================== */

.philosophy {
    display: grid;
    grid-template-columns: 34% 66%;
    align-items: start;

    width: 100%;
    background: var(--color-background);
    color: var(--color-text);
}

/* ========================================
   LEFT VISUAL
======================================== */

.philosophy__visual {
    position: sticky;
    top: 0;

    width: 100%;
    height: 100vh;

    overflow: hidden;
    align-self: start;

    background: var(--color-line);
}

/* ========================================
   IMAGE COMMON
======================================== */

.philosophy__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    margin: 0;
    overflow: hidden;
}

.philosophy__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* ========================================
   IMAGE 01
======================================== */

.philosophy__image--01 {
    z-index: 1;
}

/* ========================================
   IMAGE 02
======================================== */

.philosophy__image--02 {
    z-index: 2;

    /*
     * 最初は右下の一点に隠しておく
     */
    clip-path: polygon(100% 100%, 100% 100%, 100% 100%, 100% 100%);

    transition: clip-path 0.2s cubic-bezier(0.76, 0, 0.24, 1);

    will-change: clip-path;
}

.philosophy__image--02 img {
    transform: scale(1.05);

    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

/* ========================================
   IMAGE CHANGE
======================================== */

.philosophy__visual.is-second .philosophy__image--02 {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.philosophy__visual.is-second .philosophy__image--02 img {
    transform: scale(1);
}

/* ========================================
   RIGHT CONTENT
======================================== */

.philosophy__content {
    min-width: 0;

    padding: clamp(90px, 9vw, 150px) clamp(50px, 8vw, 120px) 150px;

    background: var(--color-background);
}

/* ========================================
   INNER
======================================== */

.philosophy__inner {
    width: min(100%, 760px);
    margin-inline: auto;
}

/* ========================================
   HEADER
======================================== */

.philosophy__header {
    min-height: 72vh;

    padding-top: 20px;
    margin-bottom: 70px;
}

.philosophy__label {
    margin: 0 0 18px;

    color: var(--color-muted);

    font-size: 16px;
    font-weight: 600;
    line-height: 1.8;
    letter-spacing: 0.12em;
}

.philosophy__title {
    margin: 0;

    font-size: clamp(36px, 3.5vw, 58px);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.04em;
}

.philosophy__title__second {
    margin-top: 48px;

    font-size: clamp(36px, 3.5vw, 58px);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.04em;
}

.philosophy__title span {
    color: var(--color-accent);
}

.philosophy__lead {
    margin: 50px 0 0;

    font-size: 30px;
    font-weight: 800;
    line-height: 1.8;
    letter-spacing: 0.12em;
}

/* ========================================
   ▼変更：NOTE（メッセージ＋鳥の写真）
   benefit__visual を流用していた部分を
   philosophy専用のスタイルに置き換え
======================================== */

.philosophy__note {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    margin-top: 60px;
}

/* テキスト（横書き・2行） */
.philosophy__message {
    margin: 0;
    max-width: 420px;

    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    line-height: 1.9;
    letter-spacing: 0.06em;

    color: var(--color-text);
}

.philosophy__message span {
    display: block;
}

/* タイピング中のカーソル（script-type.jsが is-typing を付与） */
.philosophy__message span.is-typing::after {
    content: "";

    display: inline-block;

    width: 2px;
    height: 1em;
    margin-left: 2px;

    background: var(--color-text);
    vertical-align: -0.1em;

    animation: philosophy-cursor 0.7s steps(1) infinite;
}

@keyframes philosophy-cursor {
    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* 鳥の写真 */
.philosophy__bird {
    position: relative;
    left: -80px;
    flex: 0 0 auto;

    width: clamp(130px, 13vw, 180px);
    aspect-ratio: 1 / 1;
}

.philosophy__bird-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* 足跡（写真の右下に少しはみ出す） */
.philosophy__footprints {
    position: absolute;
    top: 100px;
    right: -190px;

    display: block;
    width: 170%;

    transform: rotate(-9deg);
}

.philosophy__footprints img {
    display: block;
    width: 100%;
}

/* ▲変更ここまで */

/* ========================================
   LIST
======================================== */

.philosophy__list {
    border-top: 1px solid var(--color-line);
}

/* ========================================
   ITEM
======================================== */

.philosophy-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 20px;

    min-height: 260px;

    padding: 55px 0;

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

/* ========================================
   NUMBER
======================================== */

.philosophy-item__number {
    padding-top: 5px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.12em;
    font-family: var(--font-crimson);
}

/* ========================================
   ITEM TITLE
======================================== */

.philosophy-item__title {
    margin: 0 0 18px;

    font-size: 30px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.05em;
}

/* ========================================
   ITEM TEXT
======================================== */

.philosophy-item__text {
    max-width: 520px;

    margin: 0;

    color: var(--color-muted);

    font-size: 16px;
    font-weight: 600;
    line-height: 2.2;
    letter-spacing: 0.12em;
}

/* ========================================
   スマホ
======================================== */

@media (max-width: 767px) {
    .philosophy {
        display: block;
    }

    .philosophy__visual {
        position: relative;
        top: auto;

        width: 100%;
        height: 65vw;
        min-height: 260px;
        max-height: 420px;
    }

    .philosophy__content {
        padding: 60px 48px 80px;
    }

    .philosophy__header {
        min-height: auto;

        padding-top: 0;
        margin-bottom: 60px;
    }

    .philosophy__title {
        font-size: 32px;
    }

    .philosophy__lead {
        margin-top: 15px;

        font-size: 20px;
        font-weight: 800;
    }

    .philosophy-item {
        grid-template-columns: 1fr;

        min-height: auto;

        padding: 36px 0;
    }
    .philosophy__label {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.8;
        letter-spacing: 0.12em;
    }
    .philosophy-item__text {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.8;
        letter-spacing: 0.12em;
    }
    .philosophy-item__number {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.7;
        letter-spacing: 0.12em;
    }
    .philosophy-item__title {
        font-size: 20px;
        font-weight: 800;
    }

    /* ▼変更：NOTE（メッセージ＋鳥の写真）のスマホ調整 */
    .philosophy__note {
        margin-top: 36px;
        gap: 16px;
    }

    .philosophy__message {
        max-width: 220px;

        font-size: 18px;
        line-height: 1.8;
    }

    .philosophy__bird {
        width: 96px;
        margin-top: 24px;
    }

    .philosophy__footprints {
        right: -30px;
        bottom: -46px;
        width: 68px;
    }
    /* ▲変更ここまで */
}
