/* 基本設定 */
:root {
    --primary-color: #228B22; /* ソフトな緑 */
    --accent-color: #FFA500;  /* オレンジ */
    --text-color: #333;
    --bg-color: #FAF9F6;      /* 薄いクリーム色 */
    --base-font-size: 16px;
}

body {
    font-family: 'Yomogi', 'Helvetica Neue', 'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: var(--base-font-size);
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
}

/* ヘッダー */
.header {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* 左、中央、右の3カラム */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.header-left {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 10px; /* ロゴとテキストの間隔 */
}
.cocolink-logo {
    height: 50px; /* ロゴの高さを指定 */
    width: auto;
}
.header-left p {
    margin: 0;
    font-size: 14px;
    color: #555;
}
.logo {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-text {
    text-align: center;
}
.logo-image {
    height: 60px;
    width: auto;
}
.logo h1 {
    margin: 0;
    font-size: 36px;
    color: #00A9E0; /* オーシャンブルー */
    font-family: 'Yomogi', sans-serif; /* Yomogiフォントに変更 */
}
.logo p {
    margin: 0;
    font-size: 14px;
}
.header-right {
    justify-self: end;
    display: flex;
    align-items: center;
}
.contact-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 15px;
    transition: background-color 0.3s;
}
.contact-btn:hover {
    background-color: #e69500;
}
.header-contact p {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}
.header-contact p.tel {
    margin-bottom: 4px;
}

/* ナビゲーション */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    transition: background-color 0.3s;
}
.nav-menu li a:hover {
    background-color: rgba(255,255,255,0.1);
}
.nav-toggle {
    display: none; /* PCでは非表示 */
}

/* メインビジュアル */
.hero {
    color: white;
    text-align: center;
}
.hero-image {
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}
.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.hero-diagonal-text {
    color: white;
    font-size: 2.8rem;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    transform: rotate(-5deg);
    animation: fadeIn 1.5s ease-out forwards;
}
.hero-text p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* 特徴セクション */
.features {
    padding: 60px 0;
    background-color: #f9f9f9;
}
.features h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    display: inline-block; /*  線を文字の幅に合わせる */
    border-bottom: 3px solid var(--primary-color); /* 緑色の線 */
    padding-bottom: 10px; /* 文字と線の間の余白 */
}
.features .container {
    text-align: center; /* h2を中央揃えにするため */
}
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}
.feature-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px; /* 見出しと本文の間隔を調整 */
    font-size: 1.4em; /* 見出しのフォントサイズを少し調整 */
    line-height: 1.4; /* 行間を調整 */
    text-align: center; /* タイトルを中央揃え */
}
.feature-logo {
    max-width: 150px; /* ロゴの最大幅を指定 */
    margin: 0 auto 20px; /* 中央揃えと下の余白 */
    display: block;
}

/* お問い合わせセクション */
.contact-section {
    padding: 60px 0;
    text-align: center;
}
.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.contact-details-main {
    margin-top: 30px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}
.contact-details-main p {
    margin: 10px 0;
}
.contact-details-main a {
    color: var(--primary-color);
    text-decoration: none;
}
.contact-details-main a:hover {
    text-decoration: underline;
}

/* フッター */
.footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* スタッフ紹介セクション */
.staff-section {
    padding: 60px 0;
    background-color: #fff;
}
.staff-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.staff-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left; /* 左揃えに変更 */
    padding: 30px 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.staff-photo {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px; /* 中央揃えを維持 */
    display: block; /* 中央揃えのため */
    border: 3px solid var(--primary-color);
}
.staff-info .staff-name {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.8em; /* サイズ調整 */
    color: var(--primary-color);
    text-align: center; /* 名前は中央揃え */
}
.staff-name-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.8em;
    margin-bottom: 5px;
}
.staff-name-container .staff-name,
.staff-name-container .staff-title {
    margin: 0; /* p, h4のデフォルトマージンをリセット */
}
.staff-info .staff-title {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #555;
    font-weight: bold;
}
.staff-info .staff-furigana {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 20px;
    text-align: center; /* フリガナも中央揃え */
}

.staff-qualifications {
    margin-top: 15px;
}

.staff-qualifications h4 {
    font-size: 1.1em;
    color: var(--primary-color);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.staff-qualifications ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.staff-qualifications li {
    font-size: 0.95em;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer p {
    margin: 0 0 10px 0;
}
.copyright {
    margin-top: 20px;
    font-size: 0.9em;
    color: #ccc;
}

/* レスポンシブ対応 (スマートフォン) */
@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: 1fr; /* 1カラムにして縦に並べる */
        gap: 10px;
    }
    .logo { order: 1; }
    .header-left { order: 2; justify-self: center; }
    .header-right {
        order: 3;
        justify-self: center;
        flex-direction: column;
        gap: 10px;
    }
    .contact-btn { margin-right: 0; }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        position: absolute;
        top: 10px;
        right: 20px;
    }
    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
        transition: all 0.3s;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }
    .hero-text p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    animation: fadeIn 1.5s ease-out forwards;
}

/* みらぽけの想いセクション */
.about-section {
    position: relative; /* 円を配置するため */
    padding: 80px 20px;
    text-align: center;
    overflow: hidden; /* はみ出した円を隠す */
    background-color: #fdfdfd;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-section h2 {
    margin-bottom: 60px; /* メッセージとの間隔を広げる */
    font-size: 2.2rem;
}

.about-message {
    font-size: 1.5rem; /* 文字を大きく */
    line-height: 2.8;   /* 行間を広くとる */
    font-weight: 500;
    color: #444;
    max-width: 800px; /* 横幅を制限して中央に */
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

.about-message p {
    margin-bottom: 2.5em; /* 段落間のマージン */
}

.about-message p:last-child {
    margin-bottom: 0;
}

/* パステルカラーの円の背景 */
.about-section::before,
.about-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    z-index: 0;
    filter: blur(20px); /* 円をぼかす */
}

.about-section::before {
    width: 350px;
    height: 350px;
    background-color: rgba(173, 216, 230, 0.5); /* パステルブルー */
    top: -80px;
    left: -120px;
}

.about-section::after {
    width: 450px;
    height: 450px;
    background-color: rgba(255, 192, 203, 0.4); /* パステルピンク */
    bottom: -150px;
    right: -180px;
}

/* お知らせセクション */
.news-section {
    padding: 60px 20px;
    background-color: #fff;
}
.news-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    display: inline-block;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}
.news-section .container {
    text-align: center;
}
.news-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* 画像とテキストの比率を調整 */
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-top: 40px;
    background: #fdfdfd;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.news-image img {
    width: 100%;
    border-radius: 5px;
}
.news-content h3 {
    margin-top: 0;
    font-size: 1.6rem;
    color: var(--primary-color);
}
.news-details {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    font-size: 1.1rem;
}
.news-details li {
    margin-bottom: 12px;
}
.news-content .contact-btn {
    margin-top: 15px;
    font-size: 1.1rem;
}

/* お知らせセクションのレスポンシブ対応 */
@media (max-width: 900px) {
    .news-card {
        grid-template-columns: 1fr;
    }
}

/* フッターのリンクスタイル */
.footer-links a {
    color: #ffffff; /* リンクの色を白に */
    text-decoration: none; /* 下線を消す */
    transition: opacity 0.3s; /* ホバー時の透明度変化を滑らかに */
}

.footer-links a:hover {
    opacity: 0.8; /* ホバー時に少し透明にする */
    text-decoration: underline; /* ホバー時に下線を出す */
}

