/* ========================================
   昭島から
   共通スタイルシート
======================================== */


/* ---------- 基本設定 ---------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        "Yu Gothic",
        "YuGothic",
        "Hiragino Kaku Gothic ProN",
        Meiryo,
        sans-serif;

    line-height: 1.8;
    color: #333;

    background-color: #f5f5f5;
}


/* ---------- リンク ---------- */

a {
    color: #245b8a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* ========================================
   HERO
======================================== */

.hero {
    position: relative;

    min-height: 420px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 40px 20px;

    color: white;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.20),
            rgba(0, 0, 0, 0.20)
        ),
        url("../picture/top.jpg");

    background-size: cover;
    background-position: center 18%;
    background-repeat: no-repeat;
}


.hero h1 {
    margin: 0 0 10px;

    font-size: 3rem;
    letter-spacing: 0.08em;

    text-shadow:
        0 2px 6px rgba(0,0,0,0.8);
}


.hero .subtitle {
    margin: 5px 0;

    font-size: 1.2rem;
    font-weight: bold;

    text-shadow:
        0 2px 5px rgba(0,0,0,0.8);
}


.hero .message {
    margin-top: 20px;

    font-size: 1rem;

    text-shadow:
        0 2px 5px rgba(0,0,0,0.8);
}


/* ========================================
   NAVIGATION
======================================== */

nav {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 6px;

    padding: 10px;

    background-color: #222;
}


nav a {
    display: inline-block;

    padding: 7px 11px;

    color: white;

    font-size: 0.9rem;

    white-space: nowrap;

    border-radius: 4px;
}


nav a:hover {
    background-color: #555;

    text-decoration: none;
}


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

section {
    max-width: 1000px;

    margin: 30px auto;

    padding: 25px 30px;

    background-color: white;

    border-radius: 8px;
}


section h2 {
    margin-top: 0;

    padding-bottom: 8px;

    border-bottom: 2px solid #ddd;

    font-size: 1.5rem;
}


section p {
    margin: 12px 0;
}


/* ========================================
   TOP PROFILE
======================================== */

.profile-home {
    display: flex;

    align-items: center;

    gap: 30px;
}


.profile-image {
    flex: 0 0 260px;

    text-align: center;
}


.profile-image img {
    display: block;

    width: 100%;
    max-width: 260px;

    height: auto;

    margin: 0 auto;

    border-radius: 8px;
}


.profile-text {
    flex: 1;
}


.profile-button {
    display: inline-block;

    margin-top: 8px;

    padding: 8px 14px;

    color: white;

    background-color: #333;

    border-radius: 5px;
}


.profile-button:hover {
    background-color: #555;

    text-decoration: none;
}


/* ========================================
   CATEGORY
======================================== */

section ul {
    padding-left: 25px;
}


section li {
    margin: 8px 0;
}


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

img {
    max-width: 100%;
    height: auto;
}


/* ========================================
   FOOTER
======================================== */

footer {
    margin-top: 40px;

    padding: 25px 15px;

    text-align: center;

    color: #ddd;

    background-color: #222;

    font-size: 0.85rem;
}


/* ========================================
   SMARTPHONE
======================================== */

@media screen and (max-width: 600px) {

    body {
        font-size: 15px;
    }


    /* HERO */

    .hero {
        min-height: 300px;

        padding: 30px 15px;

        background-position: center center;
    }


    .hero h1 {
        font-size: 2.2rem;
    }


    .hero .subtitle {
        font-size: 0.95rem;
    }


    .hero .message {
        font-size: 0.9rem;

        line-height: 1.6;
    }


    /* NAV */

    nav {
        justify-content: flex-start;

        flex-wrap: nowrap;

        overflow-x: auto;

        gap: 3px;

        padding: 6px;
    }


    nav a {
        flex: 0 0 auto;

        padding: 6px 8px;

        font-size: 0.78rem;
    }


    /* CONTENT */

    section {
        margin: 15px 10px;

        padding: 18px;
    }


    section h2 {
        font-size: 1.3rem;
    }


    /* PROFILE */

    .profile-home {
        display: block;
    }


    .profile-image {
        width: 100%;

        margin-bottom: 20px;
    }


    .profile-image img {
        width: 70%;

        max-width: 230px;

        margin: 0 auto;
    }


    .profile-text {
        width: 100%;
    }

}

.video-box {
    max-width: 300px;
    margin: 30px auto;
    text-align: center;
}

.video-box video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
}
