/*
 * Template Name: Mission Page Template CSS (Revised)
 */

/* ==================================== */
/* 01. 色の定義 (Variables)             */
/* ==================================== */
:root {

    --base-color: #FFFFFF;
    --text-color: #333;
    --light-gray: #f2f2f2;
    --dark-gray: #666;
    --border-color: #ddd;
}

/* ==================================== */
/* 02. 基本レイアウト (Base Layout)     */
/* ==================================== */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
}

/*
 * セクション間の余白を調整する
 * sectionタグ自体には余白を持たせず、
 * .content-block や .section-heading などの
 * 内部要素で余白を管理する構造に変更
 */
section {
    /* section自体の上下マージンはリセット */
    margin-top: 0;
    margin-bottom: 0;
}




/* ==================================== */
/* 03. ページヘッダー (Page Header)     */
/* ==================================== */
/* ==================================== */
/* 03. ページヘッダー (Page Header)     */
/* ==================================== */
/* HTMLに .page-title-overlay が追加されているため、それに合わせて調整 */
.page-header-image {
    position: relative;
    width: 96%;
    margin: auto;
    text-align: center;
    color: var(--base-color);
    overflow: hidden;
}

.header-image-wrapper {
    position: relative;
}

.header-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.7);
    /* 画像を少し暗くしてテキストを見やすくする */
    border-radius: 50px;
    max-height: 10rem;
}


.page-title {
    z-index: 2;
    margin: 3rem;
    font-size: 3rem;
    font-weight: 400;
    white-space: nowrap;
    /* テキストの折り返しを防ぐ */
    text-align: center;
    font-family: "Times New Roman", "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HiraMinProN-W3", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;
}

/* ==================================== */
/* 04. セクションタイトル (Section Title) */
/* ==================================== */
.section-heading {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    padding: 10px 20px;
    border-radius: 50px;
    max-width: 500px;
    /*
     * セクションタイトル上下の余白を調整
     * ここでセクションの区切りとなる余白を調整します
     */
    margin: 0rem auto 2rem auto;
}

/* ==================================== */
/* 05. コンテンツブロック (Content Blocks) */
/* ==================================== */
.content-block {
    /* 開発者ツールで確認された余白を調整 */
    margin-top: 2rem;
    /* ここを調整してセクション間の余白を変更してください */
    padding: 1rem 0;
}

.content-inner {
    max-width: 800px;
    margin: 0 auto;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
    /* テキストを両端揃えに */
}




/* ==================================== */
/* 06. 価値提供セクション (Value Section) */
/* ==================================== */
.value-proposition-section .container {
    max-width: 1080px;
}

.value-item {
    background-color: transparent;
    border-radius: 40px;
    padding: 40px;
    margin-bottom: 30px;
    /* value-item間の下マージン */
    text-align: center;
    border: 2px solid #333;
}

.value-item h3 {
    font-size: 1.6rem;
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
    /*
     * h3と次の要素（h4またはol）の間の余白を調整
     * 画像で指摘された余白はここで制御
     */
    margin: 0 auto 30px auto;
    /* 上0, 左右auto, 下30px */
}

/* olのリスト全体のマージンを調整 */
/* olのリスト全体のマージンとパディングを調整 */
.value-item ol {
    text-align: left;
    margin-top: 0;
    padding-left: 0;
    /* ← この行を0に設定して、ブラウザのデフォルトパディングをリセット */
}

.value-item h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: bold;
    margin-bottom: 15px;
    /* h4とpの間の余白 */
    text-align: left;
}

/* .value-item h4 の前にチェックマークを追加 */
.value-item h4::before {
    content: "✓";
    color: var(--accent-color);
    /* アクセントカラーの緑色 */
    font-weight: bold;
    margin-right: 8px;
    /* テキストとの間に少し余白を設ける */
}

/* ol内のh4は左揃えにする */
.value-item ol li h4 {
    text-align: left;
    margin-bottom: 5px;
    /* h4とpの間の余白を少し狭く */
}

.value-item p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: left;
}

.value-item ol li {
    margin-bottom: 20px;
    list-style-type: none;
    align-items: left;
}



.valt-link-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.valt-link-container .flex-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 0;
}


.valt-link-container .flex-text span {
    display: inline;
    margin: 0;
    padding: 0;
}

.valt-logo {
    max-width: 20rem;
    width: 100%;
    height: auto;
}



/* ==================================== */
/* 07. レスポンシブデザイン (Responsive) */
/* ==================================== */
@media (max-width: 768px) {
    .page-header-image {
        margin: 0;
        padding: 0;
    }

    .header-image-wrapper {
        height: 3rem;
        margin: 0;
        padding: 0;
    }


    .page-title {
        font-size: 1.5rem;
        /* スマホでのフォントサイズ */
        white-space: normal;
        /* 折り返しを許可 */
        padding: 0 10px;
        margin-top: 5rem;
    }





    .section-heading {
        font-size: 1.2rem;
        padding: 6px 12px;
        margin: 30px auto 20px auto;
    }


    .container {
        padding: 10px;
    }

    /*
     * レスポンシブでのセクション間の余白も
     * .content-block で調整します
     */
    .content-block {
        margin-top: 30px;
        /* ここを調整してスマホでの余白を変更してください */
    }

    .text-content p {
        font-size: 1rem;
    }

    .value-item {
        padding: 25px;
        margin-bottom: 20px;
    }

    .value-item h3 {
        font-size: 1.4rem;
        margin: 0 auto 20px auto;
        /* SP版のh3下マージン */
    }

    .value-item h4 {
        font-size: 1.1rem;
    }

    .value-item ol li h4 {
        margin-bottom: 5px;
    }

    .value-item p {
        font-size: 0.95rem;
    }
}