@charset "UTF-8";

/* philosophy */
.philosophy {
    padding: clamp(60px, 8vw, 120px) 20px;
}

/* セクション全体：背景画像の設定 */
.philosophy-section {
    background: url('../img/story/philosophy.webp') no-repeat center center / cover;
    background-attachment: fixed;
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

/* すりガラスのボックス */
.philosophy-glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: 860px;
    width: 100%;
    padding: clamp(40px, 5vw, 80px);
    border-radius: 2px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* キャッチコピー（見出し） */
.philosophy-copy {
    color: #001642;
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1.4;
    font-size: clamp(22px, 2.5vw + 12px, 32px);
    text-align: center;
}

/* メインの宣言文 */
.philosophy-lead {
    color: #e67e22;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    font-size: clamp(18px, 1.5vw + 14px, 24px);
}

/* 本文 */
.philosophy-text {
    color: #333;
    line-height: 2;
    margin-bottom: 30px;
    text-align: justify;
    font-size: clamp(15px, 1vw + 12px, 18px);
}

/* 結びの言葉 */
.philosophy-footer {
    color: #555;
    font-style: italic;
    border-top: 1px solid rgba(0, 22, 66, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: clamp(14px, 0.8vw + 12px, 16px);
}

/* message */
.message {
    background-color: #fff;
    padding: clamp(60px, 8vw, 120px) 20px;
}

.greetings {
    padding: 80px 20px;
    overflow: hidden;
}

.greeting-item {
    max-width: 1000px;
    margin: 0 auto 160px;
    display: flex;
    align-items: center;
    gap: clamp(40px, 6vw, 80px);
}

/* 2人目（偶数番目）を左右反転させる魔法 */
.greeting-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* 写真の箱：ここがポイント！ */
.greeting-photo {
    flex: 0 0 clamp(280px, 35vw, 400px);
    position: relative;
    background: #f0f4f8;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
}

.greeting-photo img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: none !important;
    width: 115% !important;
    height: auto !important;
}

/* 文章部分 */
.greeting-body {
    flex: 1;
}

.greeting-label {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #e67e22;
    color: #e67e22;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.greeting-name {
    color: #001642;
    font-weight: 800;
    margin-bottom: 30px;
    font-size: clamp(24px, 2vw + 16px, 32px);
}

.sp-only {
    display: none;
}

.greeting-text {
    color: #444;
    line-height: 2;
    font-size: clamp(15px, 0.8vw + 12px, 17px);
    text-align: justify;
}



/*----------------------------
タブレット
-----------------------------*/

@media screen and (max-width: 1024px) {

    /* message */
    .greetings {
        display: flex;
        flex-direction: column;
        gap: 200px;
    }

    .greeting-item,
    .greeting-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
        margin-bottom: 0;
    }

    .greeting-photo {
        width: 100%;
        max-width: 600px;
        margin-bottom: 40px;
    }

}



/*----------------------------
スマートフォン
-----------------------------*/

@media screen and (max-width: 767px) {

    /* philosophy */
    .philosophy-section {
        padding: 60px 15px;
        background-attachment: scroll;
    }

    .philosophy-glass {
        padding: 30px 20px;
    }

    /* message */
    .greetings {
        gap: 160px;
    }

    .greeting-photo {
        max-width: 300px;
        margin-bottom: 20px;
    }

    .sp-only {
        display: block;
    }

    .greeting-text {
        line-height: 1.8;
    }
}