:root {
    --primary-color: #ff6b6b; /* 明るい赤・コーラル */
    --secondary-color: #4ecdc4; /* さわやかな青緑 */
    --bg-main: #e0f7fa; /* 全体の背景：淡い水色 */
    --header-bg: #b2ebf2; /* ヘッダー：少し濃い水色 */
    --text-dark: #2d3436;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* 基準を少し上げることで、全体のサイズ感が一回り大きくなります */
    font-size: 120%;
}
/* サイト全体の背景色を淡い水色に変更 */
body {
    font-family: 
        "Zen Maru Gothic",          /* 1. 第一優先：Google Fonts（要読み込み） */
        "Hiragino Maru Gothic ProN", /* 2. Mac/iPhone用：ヒラギノ丸ゴ */
        "HG丸ｺﾞｼｯｸM-PRO",            /* 3. Windows用：標準的な丸ゴシック */
        "Meiryo",                    /* 4. 予備：メイリオ */ 
        sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-main);
    font-size: 1rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー - 背景色を指定の色に変更 */
.header {
    background-color: var(--header-bg);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08); /* 影を少し調整 */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-brand {
    display: flex;
    flex-direction: column; /* 縦に並べる（ロゴが上、文字が下） */
    align-items: center;    /* ★これで中身を水平方向の中央に寄せる */
    justify-content: center;
    width: 100%;           /* 幅を確保して中央を計算しやすくする */
    margin-bottom: 30px;
}
/* ロゴの書体と色を個別に調整 */
.logo {
    display: flex;
    align-items: center;
    gap: 12px; 
    /* 文字に少しだけ立体感を出したい場合は以下を有効に（お好みで） */
    /* text-shadow: 1px 1px 0px rgba(255,255,255,0.5); */
    text-decoration: none; /* これで下線が消えます */
}
.logo-circle {
    display: block;
    background-color: #fff; /* ★ここで「丸の中の白」を確保 */
    border-radius: 50%;    /* 土台を丸く切り抜く */
    overflow: hidden;      /* 土台からはみ出る部分（四角いカド）を隠す */
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* 画像全体が丸の中に収まるように */
    
    /* ★ここがポイント：
       この画像自体の「白」は下の土台の「白」と混ざって消えます。
       土台の外側はそもそも overflow: hidden で消えているので、
       結果的に「丸い白背景のロゴ」だけが残ります。 */
    mix-blend-mode: multiply; 
}
/* --- ヘッダー専用サイズ --- */
.logo .logo-circle {
    width: 60px;
    height: 60px;
}

.fuwafuwa {
  animation: fuwafuwa 3s ease-in-out infinite alternate;
  background: url(../img/ico-apple.svg) no-repeat center center / 60px auto;
  display: inline-block;
  transition: 1.5s ease-in-out;
  width: 70px;
  height: 70px;
  margin-top: 15px;
}
 
@keyframes fuwafuwa {
  0% {
    transform:translate(0, 0) rotate(-7deg);
  }
  50% {
    transform:translate(0, -7px) rotate(0deg);
  }
  100% {
    transform:translate(0, 0) rotate(7deg);
  }
}

/* --- フッター専用サイズ（一回り小さく設定） --- */
.footer-side {
    width: 50px;  /* ヘッダーより10px小さく設定 */
    height: 50px;
}
.logo img {
    /* ここでロゴの大きさを調整します */
    height: 60px;       /* PCでの高さ。デザインに合わせて調整してください */
    width: auto;        /* 比率を維持 */
    display: block;
    mix-blend-mode: multiply;
}
.logo-text {
    /* 以前の .logo に設定していたフォント設定をここに移動 */
    font-family: 'Dela Gothic One', cursive;
    font-size: 1.8rem;     /* 画像の横に来るので、以前より少し小さめが綺麗です */
    color: #004e54;     /* 視認性を高めるため、少し深みのある濃い青緑に変更 */
    letter-spacing: 0.05em;
    line-height: 1;
        /* 3. 見た目のバランス調整 */
    letter-spacing: 0.05em; /* 文字間隔をわずかに広げて高級感を出す */
    line-height: 1.2;
    font-weight: normal; /* フォント自体が太いためnormalでOK */
}
/* --- フッターロゴの設定 --- */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none; /* これで下線が消えます */
}

.footer-logo img {
    height: 50px;       /* フッターはヘッダーより少し小さめが一般的です */
    width: auto;
    /* もしロゴが黒文字で、暗いフッターで見えにくい場合は以下を有効に */
}
/* --- スマホ時のロゴ調整（重要） --- */
@media (max-width: 820px) {
/* --- ヘッダー・フッター共通の丸枠調整 --- */
    .logo-circle, 
    .footer-side {
        width: 40px !important;  /* スマホでの土台の幅 */
        height: 40px !important; /* スマホでの土台の高さ */
    }

    .logo-circle img {
        width: 100%;
        height: 100%;
        /* 画像が土台を突き抜けないようにする */
    }
    .logo {
        gap: 8px;          /* 間隔も少し詰める */
    }
}
@media (max-width: 375px) {
/* --- ヘッダー・フッター共通の丸枠調整 --- */
    .logo-circle, 
    .footer-side {
        width: 30px !important;  /* スマホでの土台の幅 */
        height: 30px !important; /* スマホでの土台の高さ */
    }

    .logo-circle img {
        width: 100%;
        height: 100%;
        /* 画像が土台を突き抜けないようにする */
    }
    .logo-text {
        font-size: 1.1rem; /* スマホでは文字も少し小さく */
    }
}
/* ホバー時の挙動を少しおしゃれに */
.logo-text:hover {
    color: var(--primary-color);
    transition: 0.3s;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 25px;
    font-weight: 700;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* ヒーローエリア */
.hero {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: url('../image/s1.jpg');
    background-size: cover;
    background-position: center 30%;
}

.hero-content h2 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow:
        2px 2px 4px rgba(78, 205, 196, 0.8),
        -1px -1px 0px rgba(78, 205, 196, 0.5),
        0px 0px 20px rgba(78, 205, 196, 0.9);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 0px 1px 5px rgba(0,0,0,0.7);
}


.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 18px 45px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: transform 0.3s, background-color 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    background-color: #ff5252;
}

.badge {
    display: inline-block;
    /* 色やサイズは現行のボタンのデザインを維持 */
    background-color: var(--primary-color);
    color: white;
    padding: 18px 45px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    
    /* grid関係の記述（place-itemsやwidth:32pxなど）は
       ボタンの文字が崩れてしまうため削除し、上記のボタン用サイズに統一しています */

    /* アニメーションの初期影を設定 */
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.5); 
    
    /* 1.6秒周期でずっと脈打つパルスアニメーション */
    animation: buttonPulse 1.6s infinite;
}

/* マウスを乗せたときは指マークにするだけ（ホバーで浮き上がったり色は変えない） */
.badge:hover {
    cursor: pointer;
}

/* --- ボタン用に調整したパルスアニメーション（ここは先ほどと同じです） --- */
@keyframes buttonPulse {
  0% {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4), 0 0 0 0 rgba(255, 107, 107, 0.6);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2), 0 0 0 12px rgba(255, 107, 107, 0);
    transform: scale(1.04);
  }
  100% {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4), 0 0 0 0 rgba(255, 107, 107, 0);
    transform: scale(1);
  }
}

/* --- アニメーション用の記述（調整版） --- */
.matrix .bg-wrap,
.matrix .bg-wrap .inn {
  display: block;
}
 
.matrix .bg-wrap {
  overflow: hidden;
  opacity: 0;
}
 
/* 
  ★ .matrix .inn.large にあった「font-size: 36px;」「font-weight: bold;」を削除しました。
  これにより、既存の h2 で指定している「3rem」や「テキストシャドウ」がそのまま適用されます。
*/
 
.matrix .bg-wrap .inn {
  opacity: 0;
  transform: matrix(1, 0, 0, 1, 0, 100);
  transition: 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
 
/* 画面に入った時の動き */
.matrix.is-animated .bg-wrap {
  opacity: 1;
}
.matrix.is-animated .bg-wrap .inn {
  opacity: 1;
  transform: matrix(1, 0, 0, 1, 0, 0);
}

/* --- アニメーション用のスタイル（不要な記述を削除） --- */
.smooth {
  clip-path: inset(0 100% 0 0);
  display: block; /* inline-block から block に変更（pタグ本来の挙動に合わせる） */
  transition: 1.4s cubic-bezier(0.37, 0, 0.63, 1);
  transition-property: clip-path;
  transition-delay: 0.7s;
  
  /* 以下の記述は既存の p と喧嘩するので削除しました */
  /* font-size, font-weight, height, margin-top, line-height */
}

/* 画面に入った時にJavaScriptで付与されるクラス */
.smooth.is-animated {
  clip-path: inset(0);
}


/* セクション共通 */
section {
    padding: 80px 0;
}

h2.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

/* 特徴カード */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white); /* カードは白のままにして背景から浮かせる */
    padding: 40px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
}

.fa-seedling { color: #8bc34a; }
.fa-users { color: #03a9f4; }
.fa-calendar-check { color: #f44336; }


/* 紹介セクション */
.about-flex {
    display: flex;
    align-items: first-start;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.about-text { flex: 1; min-width: 300px; line-height: 1.9; margin-bottom: 20px;}
.about-image {
    flex: 1;
    min-width: 300px;
    position: relative; /* これが抜けるとafterがズレます */
    display: flex;      /* 画像との隙間をなくすため */
    border-radius: 30px;
    overflow: hidden; /* ベールが角からはみ出さないように */
    background-color: #b2ebf2;
}

.about-text h2.section-title {
    text-align: left;    /* 左揃えに変更 */
    margin-left: 0;      /* 念のため左余白をリセット */
    padding-left: 0;     /* 念のため左余白をリセット */
  
    /* 文字の大きさを変えないために、既存の .section-title の
       font-size などをあえて指定しない（継承させる）のがコツです */
}

/* 紹介セクションの画像を馴染ませる */
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    border: 4px solid #ffffff;
    box-shadow: 0 15px 40px rgba(0, 121, 107, 0.15);
    /* ★ここがポイント★
       画像の「黒」を少しだけ浮かせて、背景の水色に寄せます
    */
    filter: brightness(1.6) contrast(0.6) sepia(0.2) saturate(1.2);
    display: block;
    opacity: 0.8; /* 画像を20%透かして、背後の水色と混ぜる */
    /* ...上の設定に追加... */
    mask-image: radial-gradient(circle, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
}

/* 画像の上に被せる水色のベール */
.about-image::after {
    content: "";
    position: absolute;
    /* borderの太さ分(4px)内側に寄せる */
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    background: linear-gradient(
        135deg,
        rgba(0, 188, 212, 0.9) 0%,   /* ヘッダーに近い水色 */       
    );
    transition: 0.3s;
    mix-blend-mode: screen; /* または overlay / screen を試してください */
    border-radius: 26px; /* imgの30pxからborder分引く */
    pointer-events: none;
    z-index: 2;
}

/* 画像の上の文字（イベント名） */
.about-image span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #b3e5fc;
    font-size: 0.8rem;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

/* アニメーション前の状態 */
/*.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 画面に入った時に付与するクラス */
/*.fade-up.is-active {
  opacity: 1;
  transform: translateY(0);
}*/


/* 1. アニメーション前の初期状態 */
.anim-box.fadeup {
  opacity: 0;
  transform: translateY(30px);
  /* transitionの記述は不要になったので削除 */
}

/* 2. 画面に入った時に付与するクラス（アニメーション実行） */
.anim-box.fadeup.is-animated {
  animation: fadeup 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

/* 3. アニメーションのタイムライン定義 */
@keyframes fadeup {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  80% {
    opacity: 1; /* 1秒の80%（0.8秒）の時点で不透明度をMAXにする設定 */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ホバー時の演出 */
/*.about-image:hover img {
    transform: scale(1.1);  少し拡大 */
/*}
*/


/* 左側のテキストエリア内の追加ギャラリー */
.about-sub-gallery {
    display: flex;
    gap: 15px;         /* 画像同士の隙間 */
    margin-top: 30px;  /* 上の文章との間隔 */
    width: 100%;
}

/* 各画像の枠 */
.gallery-item {
    flex: 1;           /* 2枚を均等な幅にする */
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 150px;     /* ★重要：高さを固定して、右のメイン画像の下端と合わせやすくする */
}

/* 画像自体の設定 */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ★重要：枠に合わせて画像を綺麗に切り抜く */
    transition: transform 0.3s;
}

/* ホバー時の演出 */
.gallery-item:hover img {
    transform: scale(1.1); /* 少し拡大 */
}

/* 画像の上の文字（イベント名） */
.gallery-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #b3e5fc;
    font-size: 0.8rem;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

/* スマホ対応：画面が狭いときは、この2枚も縦並びにする */

@media (max-width: 900px) {
    .about-sub-gallery {
        display: none !important;
    }
    .about-text {
        margin-bottom: 20px;
    }
    .about-text h2.section-title {
        text-align: center;
        margin-left: auto;
        margin-right: auto; /* 中央揃えに戻す */
    }
}

/* お知らせ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-info { padding: 20px; }

/* カードを囲むリンクの装飾をリセット */
.news-card-link {
    text-decoration: none; /* 下線を消す */
    color: inherit;        /* 文字の色を親要素（通常のテキスト色）と同じにする */
    display: block;        /* カード全体の幅をリンク範囲にする */
}

/* マウスを乗せた時に文字が変わらないように固定（必要であれば） */
.news-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* --- 参加申し込みセクションの修正 --- */

/* ボタンの並びを中央に、適度な間隔で配置 */
.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* インスタボタン：公式グラデーションで目を引くデザイン */
.btn-insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(188, 24, 136, 0.4) !important;
}

/* 掲示板ボタン：落ち着いたダークトーンでシアンと対比 */
.btn-board {
    background-color: #34495e !important;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.4) !important;
}

/* インスタ埋め込みエリア（SnapWidgetなど用） */
.insta-feed-area {
    margin-top: 60px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.4); /* 背景の水色と馴染ませる */
    border-radius: 30px;
    border: 2px dashed var(--secondary-color);
}

.insta-feed-area h3 {
    font-family: 'Dela Gothic One', cursive;
    color: #00796b;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

/* ボタン内のアイコンに少し余白 */
.btn i {
    margin-right: 8px;
}

/* フッター */
footer {
    background-color: #263238;
    color: #eceff1;
    padding: 40px 0;
    text-align: center;
}

.footer-links ul {
    list-style: none; /* これで「・」が消えます */
    padding: 0;       /* 左側の余白もリセットすると綺麗になります */
    margin: 0;
    display: flex;    /* 横並びにする */
    gap: 20px;        /* 項目同士の間隔（お好みで調整してください） */
    justify-content: center; /* もし中央に寄せたい場合はこれを入れる */
}

/* レスポンシブ */

@media (max-width: 768px) {
    .header .container { flex-direction: column; }
    nav { margin-top: 15px; }
    nav a { margin: 0 10px; font-size: 0.85rem; }
    .hero-content h2 { font-size: 2rem; }
}

/* スマホの時は縦に戻したい場合（オプション） */

@media (max-width: 600px) {
    .footer-links ul {
        flex-direction: column; /* 縦並びに戻す */
        align-items: center;    /* 中央揃えにする */
        gap: 10px;              /* 間隔を狭める */
    }
}
@media (max-width: 375px) {
    nav a {
        font-size: 0.8rem; /* 0.85から少しだけ小さく */
        margin: 0 5px;     /* 余白を最小限に */
    }
}