@charset "UTF-8";

/* =========================================================
   下層ページ メインビジュアル (Sub Hero)
========================================================= */
.p-sub-hero {
    position: relative;
    width: 100%;
    height: 395px; /* お好みで高さを調整してください（例: 320px + ヘッダー分など） */
    padding-top: 75px; /* 固定ヘッダーの高さ分、中の文字を下げる */
    background-color: var(--color-main);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 0; /* ★上部のマージンをなくして画面最上部にくっつける */
}

.p-sub-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.p-sub-hero__inner {
    position: relative;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    100% { transform: translateY(0); opacity: 1; }
}

.p-sub-hero__title {
    font-family: var(--font-english);
    font-size: 2.8rem;
    font-weight: normal;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.p-sub-hero__en {
    display: block;
    font-family: var(--font-english);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media screen and (max-width: 768px) {
    .p-sub-hero { 
        height: 280px; /* スマホ版の高さ */
        padding-top: 60px; /* スマホ版ヘッダーの高さ */
    }
    .p-sub-hero__title { font-size: 1.8rem; }
    .p-sub-hero__en { font-size: 0.9rem; }
}


/* =========================================================
   リード文 (GUIDE LEAD)
========================================================= */
.p-guide-lead {
    text-align: center;
    margin-bottom: 60px;
}

.p-guide-lead__catch {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--color-text);
}

.p-guide-lead__text {
    font-size: 0.95rem;
    line-height: 2;
}

@media screen and (max-width: 768px) {
    .p-guide-lead { margin-bottom: 40px; text-align: left; }
    .p-guide-lead__catch { font-size: 1.2rem; text-align: center; }
    .p-guide-lead__text { font-size: 0.9rem; }
}

/* =========================================================
   カードリスト (GUIDE CARDS)
========================================================= */
.p-guide-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.p-guide-card {
    display: flex;
    flex-direction: column;
}

.p-guide-card__img {
    margin-bottom: 15px;
}

.p-guide-card__img img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.p-guide-card__title {
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.p-guide-card__text {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1; /* ボタンをカードの下端に揃える魔法 */
}

.p-guide-card .c-btn-wrap {
    margin: 0;
    text-align: center;
}

@media screen and (max-width: 900px) {
    .p-guide-cards { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
    .p-guide-cards { grid-template-columns: 1fr; gap: 40px; }
    .p-guide-card__title { font-size: 1.1rem; }
}