/* 基本スタイル */
img {margin:0; padding:0;}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
header {
    background: #10aedb;
    color: white;
    padding: 0;
    text-align: center;
}
header h1 {
    background: #15637a;
    font-size:0.8rem;
    color:white;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    text-align:left;
    margin:0;
}

h2 {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    position: relative;
    display: inline-block;
    padding: 0 20px;
    color:#333;
}

h2::before,
h2::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 3px;
    background: #10aedb;
}

h2::before {
    left: -50px;
}

h2::after {
    right: -50px;
}

.eyecatch img {
    width: 100%;
    height: auto;
    display: block;
}

nav ul {
    list-style: none;
    padding: 0;
    margin:10px auto 0 50px;
}
nav ul li {
    display: inline;
    margin: 0 15px;
}
nav ul li a {
    color: #999;
    text-decoration: none;
}
nav ul li a:hover {
    color: #333;
    text-decoration: underline;
}
.section {
    padding: 50px 20px;
    text-align: center;
}
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
}
.video-item {
    text-align: center;
}
.video-item img {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
}

/* 先輩オーナーの声 */
.owners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.owner-card {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.owner-icon {
    width: 90px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.owner-icon img {

}

.owner-card h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
}

.owner-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    text-align: left;
}

/* タイムライン矢印付きのステップ表示（FontAwesome使用） */
.timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.step-group {
    padding: 20px;
    color: white;
    text-align: center;
    border-radius: 10px;
    flex-grow: 1;
    position: relative;
}
.step-group h3 {
    white-space: nowrap; /* 自動改行を防ぐ */
}


.step-group.short {
    background: #10aedb;
    flex-basis: 20%;
}

.step-group.long {
    background: #15637a;
    flex-basis: 50%;
}

.step-group.medium {
    background: #0a4a5f;
    flex-basis: 30%;
}

.step-group::after {
    content: '\f061'; /* fa-arrow-right（FontAwesome 6対応） */
    font-family: 'Font Awesome 6 Free'; /* FontAwesome 6の場合 */
    font-weight: 900; /* アイコンを太字に */
    font-size: 24px;
    color: #28aabf;
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.step-group:last-child::after {
    content: ''; /* 最後のステップには矢印を表示しない */
}

/* スマホ対応（縦並びに変更） */
@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        align-items: center;
    }

    .step-group {
        flex-basis: auto;
        width: 90%;
    }

    .step-group::after {
        content: '\f063'; /* 下向き矢印（fa-arrow-down） */
        right: 50%;
        top: auto;
        bottom: -30px;
        transform: translateX(50%);
    }
}
 .video-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 20px;
     justify-content: center;
 }
.video-item {
    text-align: center;
}
.video-item img {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
}

/* ヘッダー画像のレスポンシブ対応 */
.eyecatch img {
    width: 100%;
    height: auto;
    display: block;
}

/* 代表メッセージのレスポンシブ対応 */
.message-container {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    width:70%;
    max-width: 100%;
    overflow: hidden;
}

.message-photo img {
    width: 150px;
    height: auto;
    border-radius: 10px;
    max-width: 100%;
}

.message-content {
    flex: 1;
    text-align: left;
    min-width: 250px;
    max-width: 100%;
}

.message-content h2 {
    font-size: 1.8rem;
    color: #10aedb;
    margin-bottom: 10px;
    text-align: center;
    /*width: 100%;*/
}

.message-content p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    word-wrap: break-word;
}

.message-content em {
    font-weight: bold;
    color: #15637a;
}

@media (max-width: 768px) {
    .message-container {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .message-photo img {
        width: 120px;
        margin-bottom: 10px;
    }

    .message-content {
        text-align: center;
        width: 100%;
    }
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    /* ナビゲーションのスマホ対応 */
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        width:100%;
        gap: 5px;
    }

    nav ul li {
        width: 90%;
        text-align: center;
        margin:5px auto;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 10px;
        background: #10aedb;
        color: white;
        text-decoration: none;
        border-radius: 5px;
    }
}

/* ローディング画面 */
#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ロゴコンテナ */
#logo-container {
    position: relative;
    width: 150px; /* ロゴサイズは適宜調整 */
    height: auto;
    margin-bottom: 20px;
}

/* カラーのロゴ（下に配置） */
#logo {
    width: 100%;
    display: block;
}

/* グレーのロゴ（上に配置してフェードアウト） */
#mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('imgs/logo-gray.png') no-repeat center/contain;
    opacity: 1;
    transition: opacity 2.5s ease-in-out;
}

/* ローディングが終わったらマスクをフェードアウト */
.fade-out {
    opacity: 0 !important;
}

/* ローディング画面をフェードアウト */
.hidden {
    opacity: 0;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
}

/* メインコンテンツ（最初は非表示） */
#content {
    display: none;
}

/* Loading テキスト */
#loading-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    font-family: Arial, sans-serif;
    text-align: center;
    letter-spacing: 1px;
    white-space: nowrap;
    animation: loadingText 2s steps(8) infinite;
}

/* Loading アニメーション */
@keyframes loadingText {
    0% { content: "L"; }
    12.5% { content: "Lo"; }
    25% { content: "Loa"; }
    37.5% { content: "Load"; }
    50% { content: "Loading"; }
    62.5% { content: "Loading."; }
    75% { content: "Loading.."; }
    87.5% { content: "Loading..."; }
    100% { content: "Loading"; }
}

/* 擬似要素を使って文字を変化させる */
#loading-text::after {
    content: "L";
    animation: loadingText 2s steps(8) infinite;
}
