@charset "utf-8";
/* CSS Document */

.global-nav a {
    text-shadow:
        0 0 3px rgba(0, 0, 0, 1.0),
        0 0 3px rgba(0, 0, 0, 1.0);
}

/* ===== メインビジュアル 基本設定 ===== */
main {
    position: relative;
    width: 100%;
    height: 640px;
    overflow: hidden;
}

.main-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: mvFade 25s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-img h1 {
    font-size: clamp(32px, 3.5vw, 58px);
    letter-spacing: 0.1em;
    font-weight: normal;
}

.main-img h1,
.main-img .caption {
    text-shadow:
        0 0 6px rgba(0, 0, 0, 0.85),
        0 0 12px rgba(0, 0, 0, 0.8);
}

/* ===== 画像ごとの背景設定 ===== */
#m1 { background-image: url("../images/top/main1.jpg"); animation-delay: 0s; }
#m2 { background-image: url("../images/top/main2.jpg"); animation-delay: 5s; }
#m3 { background-image: url("../images/top/main3.jpg"); animation-delay: 10s; }
#m4 { background-image: url("../images/top/main4.jpg"); animation-delay: 15s; }
#m5 { background-image: url("../images/top/main5.jpg"); animation-delay: 20s; }

/* ===== テキストカラー指定（ここだけ各スライドで調整すればOK） ===== */
#m1 h1 { color: #fff; }
#m2 h1 { color: #fff; }
#m3 h1 { color: #fff; }
#m4 h1 { color: #fff; }
#m5 h1 { color: #fff; }

/* スライドごとに文字色変更も可能（必要なら） */
#m1 .caption { color: #fff; }
#m2 .caption { color: #fff; }
#m3 .caption { color: #fff; }
#m4 .caption { color: #fff; }
#m5 .caption { color: #fff; }

/* ===== フェードアニメーション ===== */
@keyframes mvFade {
    0%   { opacity: 0; }
    4%   { opacity: 1; }
    20%  { opacity: 1; }
    24%  { opacity: 0; }
    100% { opacity: 0; }
}

/* ===== キャプション（右下固定） ===== */
.main-img .caption {
    position: absolute;
    right: 30px;
    bottom: 30px;
    font-size: 16px;
    letter-spacing: 0.1em;
    color: #fff;
    opacity: 0.9;
}

.c1 {
    text-align: center;
    padding: 120px 0 0;
}

.c1 h2 {
    font-size: 48px;
    letter-spacing: 4px;
}

.c1 p{
    line-height: 240%;
    margin-top: 50px;
    font-size: 18px;
}


/* =========================
   コンテンツリンク（2×2カード）
   ========================= */
.c2 {
    padding: 80px 0;
    max-width: 1200px;          /* 全体の最大幅 */
    margin: 80px auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));  /* 2列 */
    gap: 40px;                  /* カード同士の余白 */
}

.c2 a {
    position: relative;
    height: 200px;              /* 高さは指定どおり200px */
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 80px;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    color: #fff;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.c2 a:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

/* 背景画像 */
.c2 a:nth-child(1) { background-image: url("../images/top/c2-1.jpg"); }
.c2 a:nth-child(2) { background-image: url("../images/top/c2-2.jpg"); }
.c2 a:nth-child(3) { background-image: url("../images/top/c2-3.jpg"); }
.c2 a:nth-child(4) { background-image: url("../images/top/c2-4.jpg"); }

/* テキスト */
.c2 a p {
    font-size: 32px;
    letter-spacing: 0.1em;
}

.c2 a p span {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    letter-spacing: 0.08em;
}

/* 右側の白丸ボタン */
.c2 a > div {
    margin-left: auto;
}

.c2 a > div img {
    width: 60px;
    display: block;
}

/* （任意）背景に応じて文字色変える例 */
.c2 a:nth-child(1) p { color: #111; }

/* 背景に応じて文字色を変えたい場合（例） */
.c2 a:nth-child(1) p { color: #111; }
.c2 a:nth-child(2) p { color: #111; }
.c2 a:nth-child(4) p { color: #fff; }

/* =========================
   主な行事ブロック
   ========================= */

.c3 {
    background: #27d1a6;
    padding: 100px 80px;
    box-sizing: border-box;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

/* ------- 左側：3×3カード ------- */

.c3 .events {
    order: 1;  /* 左側に置く */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 960px;
}


/* カード本体 */
.c3 .events a {
    background: #f5f8fb;
    border-radius: 20px;
    padding: 20px 20px 0px;          /* ★ 下の余白を少し詰める（28→20） */
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    display: flex;                    /* ★ 追加：縦方向flex */
    flex-direction: column;
}

.c3 .events a:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

/* 写真 */
.c3 .events .photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 0px;              /* 少しだけ詰める */
    flex: 0 0 auto;
}

.c3 .events .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* キャプション */
.c3 .events p {
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.06em;
    flex: 1;                          /* ★ 残りを占有 */
    display: flex;                    /* ★ 自身をflexコンテナにして */
    align-items: center;              /* ★ 縦中央 */
    justify-content: center;          /* ★ 横方向も中央 */
    text-align: center;
}

/* ------- 右側：タイトル＋コピー（縦書き） ------- */

/* コピー（説明文） */
.c3 > p {
    order: 2;                        /* 真ん中（h2の左側） */
    writing-mode: vertical-rl;
    font-size: 23px;
    line-height: 2.2;
    letter-spacing: 0.12em;
    color: #ffffff;
    margin: 0;
}

/* 見出し */
.c3 h2 {
    order: 3;                        /* 一番右 */
    writing-mode: vertical-rl;
    font-size: 58px;
    letter-spacing: 0.18em;
    color: #ffffff;
    margin: 0;
    padding-left: 24px;              /* 破線との余白 */
    border-left: 1px dashed rgba(255,255,255,0.7); /* コピーとの間の破線 */
    font-weight: normal;
}

/* =========================
   入会案内セクション（c4）
   ========================= */

.c4 {
    padding: 100px 0 0;
    background: #ffffff;
}

/* 見出しの下余白を少しコンパクトに */
.c4 .section-heading {
    margin: 0 0 32px;
}

/* 左写真＋右テキストの2カラム */
.c4-content1 {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* 写真エリア */
.c4-content1 .photo {
    flex: 0 0 40%;
}

.c4-content1 .photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* テキストエリア */
.c4-content1 .text {
    flex: 1;
}

.c4-content1 .text h3 {
    font-size: 26px;
    line-height: 1.7;
    margin: 0 0 16px;
}

.c4-content1 .text p {
    font-size: 18px;
    line-height: 2.4;
    letter-spacing: 0.05em;
    margin: 0;
}

/* 「詳しくはこちら」ボタン */
.c4-btn-wrap {
    margin-top: 32px;
    text-align: center;
}

.c4-btn {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid #333;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    letter-spacing: 0.15em;
    background: #fff;
    transition: background 0.25s ease, color 0.25s ease;
    min-width: 240px;
}

.c4-btn:hover {
    background: #333;
    color: #fff;
}

/* 簡単なレスポンシブ対応（c4用既存） */
@media (max-width: 960px) {
    .c4 .c-wrapper {
        padding: 30px 20px;
    }

    .c4-content1 {
        flex-direction: column;
    }

    .c4-content1 .photo {
        flex: 0 0 auto;
    }
}

/* =========================
   c5：入会申し込み 3ボタン
   ========================= */

.c5 {
    padding: 20px 0 90px;
    background: #fff;
}

/* ボタン横並び */
.c5-buttons {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap; /* 画面が狭い時は折り返し */
}

/* ボタン共通 */
.c5-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 38px;
    border-radius: 999px; /* pill shape */
    font-size: 18px;
    letter-spacing: 0.05em;
    color: #fff;
    text-decoration: none;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ホバー時 */
.c5-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 14px rgba(0,0,0,0.2);
}

/* ボタン別色 */
.c5-buttons .btn.b1 { background: #27d1a6; }
.c5-buttons .btn.b2 { background: #006926; }
.c5-buttons .btn.b3 { background: #e30008; }

/* アイコン画像 */
.c5-buttons .btn img {
    width: 26px;
    height: auto;
    display: block;
}


.c6 {
    padding: 60px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap:40px;
    background:#ECECEC;
}

.c6 a{
    border: #D3D3D3 solid 8px;
}

/* =========================
   協賛・リンクバナー（c7）
   ========================= */

.c7 {
    padding: 40px 0 120px;
    background: #f5f7f9;
}

.c7 .bn-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 32px;
}

/* 1つのバナーアイテム */
.c7 .bn-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.04);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.c7 .bn-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* ロゴ画像 */
.c7 .bn-logo img {
    width: 128px;
    height: 42px;
    object-fit: contain;
    display: block;
}

/* テキスト */
.c7 .bn-text {
    font-size: 13px;
    line-height: 1.6;
}

.c7 .bn-text .name {
    display: block;
    font-weight: 600;
}

.c7 .bn-text .site {
    display: block;
}

/* レスポンシブ：幅が狭いときは2列→1列（既存） */
@media (max-width: 960px) {
    .c7 .bn-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
	.c7 .bn-text .site {
		display: none;
	}
}

@media (max-width: 640px) {
    .c7 .bn-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .c7 .bn-item {
        padding: 8px 10px;
    }

    .c7 .bn-logo img {
        width: 110px;   /* 少し小さく */
        height: 36px;
    }

    .c7 .bn-text {
        font-size: 11px;
        line-height: 1.4;
    }
}

/* =======================================================
   ここから追加のレスポンシブ調整（PCには影響しないよう media 内だけ）
   ======================================================= */
@media (max-width: 1365px) {
	.c3 .events {
        gap: 32px;
        /* 画面が狭くなったら 3列→2列 にする */
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;   /* 左側の幅いっぱい使う */
    }
}

/* タブレット以下で少しだけ調整 */
@media (max-width: 1024px) {

    main {
        height: 520px;
    }

    .main-img h1 {
    }

    .c3 {
        padding: 80px 40px;
        gap: 32px;
    }

    .c3 .events {
        gap: 32px;
    }
}

/* スマホ縦向き中心の調整 */
@media (max-width: 768px) {

    /* ================= メインビジュアル ================= */

    main {
        height: 420px;
    }

    .main-img h1 {
        font-size: 30px;
        line-height: 1.7;
        padding: 0 20px;
        text-align: center;
    }

    .main-img .caption {
        right: 10px;
        bottom: 0px;
        font-size: 12px;
        letter-spacing: 0.08em;
    }
	/* 明るい2枚目・4枚目だけ、背景プレートを追加 */
	.caption {
		  background: rgba(0, 0, 0, 0); /* 半透明の黒 */
		  padding: 2px 4px;               /* 文字の周りに少し余白 */
		  border-radius: 0px;              /* 角を少し丸く */
	  }
	  /* 明るい2枚目・4枚目だけ、背景プレートを追加 */
	  #m2 .caption,
	  #m4 .caption,
	  #m5 .caption {
		  background: rgba(0, 0, 0, 0.50); /* 半透明の黒 */
	  }

    /* ================= c1 ================= */

    .c1 {
        padding: 70px 20px 0;
        text-align: left;
    }

    .c1 h2 {
        font-size: 32px;
        letter-spacing: 0.15em;
    }

    .c1 p {
        margin-top: 24px;
        font-size: 16px;
        line-height: 2.1;
    }

    /* ================= c2：コンテンツリンク ================= */

    .c2 {
        padding: 50px 20px;
        margin: 40px auto 0;
        grid-template-columns: 1fr;   /* 1列 */
        gap: 24px;
    }

    .c2 a {
        height: auto;                 /* 高さ自動 */
        min-height: 160px;
        padding: 0 24px;
        border-radius: 24px;
    }

    .c2 a p {
        font-size: 22px;
    }

    .c2 a p span {
        font-size: 14px;
    }

    .c2 a > div img {
        width: 44px;
    }

    /* ================= c3：主な行事 ================= */

    .c3 {
        padding: 70px 20px 80px;
        flex-direction: column;       /* 縦積み */
        align-items: stretch;
        gap: 32px;
    }

    /* 見出し・コピーは横書き・上部に配置 */
    .c3 h2,
    .c3 > p {
        writing-mode: horizontal-tb;
        text-align: center;
    }

    .c3 h2 {
        order: 1;
        font-size: 32px;
        letter-spacing: 0.18em;
        border-left: none;
        padding-left: 0;
        border-top: 1px dashed rgba(255,255,255,0.7);
        padding-top: 16px;
        margin-top: 8px;
    }

    .c3 > p {
        order: 2;
        font-size: 16px;
        line-height: 2.1;
        letter-spacing: 0.12em;
    }

    .c3 .events {
        order: 3;
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: none;
    }
	

    /* ================= c4：入会案内 ================= */

    .c4 {
        padding: 80px 0 0;
    }

    .c4-content1 {
        gap: 24px;
    }

    .c4-content1 .text h3 {
        font-size: 22px;
        line-height: 1.6;
    }

    .c4-content1 .text p {
        font-size: 16px;
        line-height: 2;
    }

    .c4-btn {
        width: 100%;
        max-width: 260px;
    }

    /* ================= c5：入会申し込みボタン ================= */

    .c5 {
        padding: 20px 0 70px;
    }

    .c5-buttons {
        gap: 20px;
        margin-top: 30px;
        padding: 0 16px;
    }

    .c5-buttons .btn {
        width: 100%;
        justify-content: center;
        font-size: 16px;
        padding: 14px 24px;
    }

    .c5-buttons .btn img {
        width: 22px;
    }

    /* ================= c6：バナー（？） ================= */

    .c6 {
        flex-direction: column;
        padding: 40px 20px;
        gap: 24px;
    }

    .c6 a {
        display: inline-block;
    }

    /* ================= c7：協賛リンク ================= */

    .c7 {
        padding: 30px 0 80px;
    }

    .c7 .bn-item {
        padding: 10px 12px;
    }
}

/* さらに狭いスマホ向け微調整 */
@media (max-width: 480px) {

    main {
        height: 360px;
    }

    .main-img h1 {
        font-size: 24px;
    }

    .c1 h2 {
        font-size: 28px;
    }

    .c3 .events {
        grid-template-columns: 1fr;
        gap: 16px;
    }
	
	.c3 .events p {
        font-size: 12px;
        line-height: 1.4;
    }
}
