/* ベースリセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* コンテナ */
#container {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
}

/* ヘッダー */
#header {
    width: 100%;
    height: auto;
    background-color: #fff;
    color: white;
    text-align: center;
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    font-weight: 700;
    border-top: 5px solid #ae0000;
}

/* ロゴ */
/* ロゴの位置を基準に統一 */
#title {
    width: 100%;
    max-width: 128rem;
    margin: 0 auto;
    padding-left: 7px;
    /* imgのmargin-leftを親に移動 */
    padding-right: 2rem;
    /* mainNav1と統一 */
    box-sizing: border-box;
}

#title img {
    max-width: 200px;
    bottom: 0;
    margin: 15px 0 7px 0;
    /* left margin削除 */
    display: block;
}

/* 背景・高さはそのまま */
#navigation-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    height: 39px;
    background: url(https://u.jimcdn.com/cms/o/sd12cd22d1c8c9bbf/userlayout/img/bg-jrfukikin.png?t=1765244870) repeat-x top / auto;
}

/* 中央寄せコンテナ */
#navigation {
    display: flex;
    align-items: center;
    width: 128rem;
    max-width: 128rem;
    margin: 0 auto;
    height: 100%;
}

/* 自前ナビ本体 */
#nav-custom .nav-root {
    list-style: none;
    margin: 0;
    padding: 0 1rem;
    display: flex;
    width: 100%;
    font-size: 1.8rem;
    gap: 3.5rem;
    justify-content: flex-start;
}

/* 親メニュー li */
#nav-custom .nav-root > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

/* 親メニュー a */
#nav-custom .nav-root > li > a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

#nav-custom .nav-root > li > a span {
    color: #fff;
}

#nav-custom .nav-root > li > a:hover {
    color: #ffd700;
}

/* ドロップダウン ul（背景変更） */
#nav-custom .has-sub .nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 120px;
    background: url(https://u.jimcdn.com/cms/o/sd12cd22d1c8c9bbf/userlayout/img/bg-jrfukikin.png?t=1765244870) repeat top / auto;
    /* ★navigation-wrapと同じ背景 */
    list-style: none;
    margin: 0;
    padding: 2px 0;
    $border-radius: 0 0 8px 8px;
    $box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1001;
}

/* ホバー時：黒網掛け */
#nav-custom .has-sub:hover .nav-sub {
    display: block;
}

#nav-custom .has-sub:hover .nav-sub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    $background: rgba(0, 0, 0, 0.2);
    /* ★透過黒網掛け */
    border-radius: 0 0 8px 8px;
    z-index: 1;
}

/* ドロップダウン内 li / a（フォント白維持） */
#nav-custom .nav-sub li {
    width: 100%;
    position: relative;
    z-index: 2;
    /* ★文字を網掛けの上に */
    text-align: left;
}

#nav-custom .nav-sub a {
    display: block;
    padding: 7px 7px;
    color: #fff !important;
    /* ★白文字維持 */
    text-decoration: none;
    font-size: 1.4rem;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    /* ★文字を網掛けの上に */
}

#nav-custom .nav-sub a:hover {
    background: rgba(255, 255, 255, 0.2);
    /* ★ホバー時白透過 */
    $color: #ffd700 !important;
    /* ★ゴールド */
}



/* コンテンツ */
#content {
    width: 100%;
    max-width: 128rem;
    margin: 0 auto;
    flex: 1;
    $padding: 1.5rem 0.1rem;
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    line-height: 1.6;
}

#cont-l {
    width: 70%;
    padding: 15px 25px 0 0;
    float: left;
}

#page-1743031286 #cont-l {
    width: 70%;
    padding: 0;
    float: left;
    padding-top: 0 !important;
}

#cont-r {
    width: 29%;
    float: right;
}

#news-list > div[style*="display: flex"] > div[style*="width: 70px"] {
    height: 170px !important;
}


/* フッター */
#footer-wrap {
    background: url(https://u.jimcdn.com/cms/o/sd12cd22d1c8c9bbf/userlayout/img/bg-jrfukikin-ftr.png?t=1765246415) repeat top / contain;
    height: 300px;
    margin-top: 15rem;
}

#footer {
    width: 100%;
    max-width: 128rem;
    margin: 0 auto;
    color: #eee;
    text-align: right;
    padding: 1rem;
    font-size: clamp(0.875rem, 1vw, 1rem);
}

#ftr-info p {
    padding-top: 2rem;
}

#ftr-info p,
#ftr-info a {
    color: #fff !important;
}

.gutter {
    width: 100%;
}

/* ==========================================================================
   フォント
   ========================================================================== */
html {
    font-size: 62.5%;
    /* 1rem = 10px 相当 */
}

/* Google Fonts（HTML <head>に追加） */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;700&family=Zen+Maru+Gothic:wght@400;500;700&family=Source+Han+Sans:wght@400;500;700&display=swap');

/* 本文：シャープで力強いゴシック */
body,
p,
li {
    font-family:
        "Source Han Sans JP",
        "Zen Maru Gothic",
        "Yu Gothic UI", sans-serif;
    font-weight: 500;
    font-size: 1.5rem !important
}
}

/* 見出し（最高にダイナミック） */
body h1,
body h2,
body h3 {
font-family: "Noto Sans JP", "Source Han Sans JP", sans-serif !important;
    font-feature-settings: "palt"; /* 文字詰めをして余白を美しくする */
    letter-spacing: 0.05em; /* わずかに字間を広げると高級感が出ます */
font-style: normal !important;
    font-variant: normal !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
/* bodyを起点にし、さらに要素を重ねることで詳細度を最強にします */
html body #cc-inner h1, 
html body #cc-inner h2,
html body .j-blog-headline,
html body .j-text h1,
html body .j-text h2 {
    /* フォントを強制 */
    font-family: "Source Han Sans JP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif !important;
    
    /* fontプロパティ全体をリセット（Ralewayを完全に消去） */
    font-style: normal !important;
    font-variant: normal !important;
    font-weight: 700 !important;
    
    /* 下記を個別に指定することで Jimdoの font: ... 一括指定を無効化 */
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* 念のため、特定のクラスがついたリンク内の英数字も指定 */
h1 a, h2 a, .j-blog-headline a {
    font-family: inherit !important;
    font-weight: inherit !important;
}
body h4,
body h5,
body h6 {
    font-family: "Source Han Sans JP", "Zen Maru Gothic", sans-serif;
    font-weight: 700;
}


body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    color: #333;
    line-height: 1.4;
}

/* 基本設定（上記のfont-familyと併用） */
body h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.2;
}

body h2 {
    font-size: clamp(2.2rem, 4vw, 2.5rem);
    line-height: 1.3;
}

body h3 {
    font-size: clamp(1.8rem, 3vw, 1.8rem);
    line-height: 1.4;
}

body h4 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.4;
}

body h5 {
    font-size: 1.4rem;
    line-height: 1.4;
}

body h6 {
    font-size: 1.25rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    body h1 {
        font-size: 2.4rem;
    }

    body h2 {
        font-size: 2rem;
    }

    body h3 {
        font-size: 1.6rem;
    }
}


/* ==========================================================================
   装飾
   ========================================================================== */

/* ボタン */
.rugby-btn {
    display: inline-block;
    padding: 7px 15px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white !important;
    text-decoration: none !important;
    font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    font-weight: 400;
    font-size: 1.5em;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    $letter-spacing: 0.5px;
    margin-left: 2rem;
}

.rugby-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}


/* モーダルボタン */
.modal-trigger {
    display: inline-block;
    padding: 3px 7px;
    background-color: #ffde00;
    text-decoration: none !important;
    font-weight: 400;
    font-size: 0.9em;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

/* モーダルオーバーレイ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

/* モーダルコンテンツ */
.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 70%;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

/* ヘッダー */
.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
}

/* 閉じるボタン */
.modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* 本文 */
.modal-body {
    padding: 24px;
    max-height: 50vh;
    overflow-y: auto;
}

/* アニメーション */
@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(-30px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* 開く状態 */
.modal-overlay.show {
    display: flex !important;
}


/* ==========================================================================
   新着記事取得
   ========================================================================== */

/* 既存CSSはそのまま + 以下の1行追加 */
#news-list > div[style*="display: flex"] {
    display: block !important;
    padding: 12px 0 !important;
    $border-bottom: 1px solid #eee !important;
}

/* ★記事を横並び4列に */
#news-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    padding: 0 !important;
}

/* 既存の内部レイアウトCSSはそのまま */
#news-list > div[style*="display: flex"] > div[style*="width: 70px"] {
    width: 100% !important;
    height: 170px !important;
    flex-shrink: none !important;
    margin-bottom: 8px !important;
    order: 1 !important;
}

#news-list > div[style*="display: flex"] > span[style*="min-width: 90px"] {
    display: block !important;
    min-width: auto !important;
    margin-bottom: 4px !important;
    order: 2 !important;
}

#news-list > div[style*="display: flex"] > div[style*="flex: 1"] {
    flex: none !important;
    order: 3 !important;
    width: 100% !important;
}

#news-list > div[style*="display: flex"] > div[style*="flex: 1"] > a {
    margin-bottom: 4px !important;
}


#news-list > div {
    border-bottom: 0 !important;
}


/* ==========================================================================
   FaQ
   ========================================================================== */
.faq-accordion {
    max-width: 960px;
    margin: 0 auto;
}

/* 全体枠 */
.faq-accordion details {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #fff;
    overflow: hidden;
}

/* 質問行 */
.faq-accordion summary {
    cursor: pointer;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 1.6rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* デフォルトの三角マークを消す（対応ブラウザ向け） */
.faq-accordion summary::-webkit-details-marker {
    display: none;
}

/* 質問行の背景（閉じているとき） */
.faq-accordion summary {
    background: #f5f5f5;
    color: #333;
}

/* 開いているときの背景 */
.faq-accordion details[open] summary {
    background: #e74c3c;
    color: #fff;
}

/* 質問行の右側に＋／−アイコン */
.faq-accordion summary::after {
    content: "+";
    font-size: 1.4rem;
    margin-left: 12px;
}

.faq-accordion details[open] summary::after {
    content: "−";
}

/* 回答部分 */
.faq-accordion .faq-body {
    padding: 12px 16px 16px;
    font-size: 1.5rem;
    line-height: 1.7;
    background: #fff;
}




/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */
/* 小さい画面向けにパディングを調整 */
@media (max-width: 600px) {
    body {
        padding: 0.5rem;
    }

    #container {
        border-radius: 0;
        box-shadow: none;
    }

    #news-list > div[style*="display: flex"] > div[style*="width: 70px"] {
        height: 70px !important;
    }

    #header,
    #content,
    #footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==========================================================================
   レスポンシブ対応（ハンバーガーメニュー）
   ========================================================================== */

/* ハンバーガーボタン */
#hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    position: relative;
}

/* タブレット以下でハンバーガーメニュー表示 */
@media (max-width: 1024px) {

    #header {
        border-bottom: solid 2px #bc1010;
    }

    .j-imageSubtitle .cc-m-image-align-1,
    ul.cc-shop-product-alternatives {
        text-align: center !important;
    }

    #footer-wrap {
        margin-top: 3rem;
    }

    /* ナビ非表示＋ハンバーガーボタン表示 */
    #navigation-wrap {
        height: auto !important;
    }



    #hamburger-btn {
        display: block !important;
    }

    #nav-custom .nav-root {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: url(https://u.jimcdn.com/cms/o/sd12cd22d1c8c9bbf/userlayout/img/bg-jrfukikin.png?t=1765244870) repeat-x top / auto;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    /* ハンバーガー開閉 */
    #hamburger-btn.active ~ #nav-custom .nav-root {
        display: flex !important;
    }

    #nav-custom .nav-root > li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #nav-custom .nav-root > li > a {
        justify-content: center !important;
        padding: 1rem 2rem !important;
    }
}

/* サイドバーバナー最適化 */
@media (min-width: 400px) and (max-width: 768px),
    {
    .cc-imagewrapper img {
        width: 80%;
    }
}

/* スマホ以下で最適化 */
@media (max-width: 768px) {
    #title {
        padding: 0 1rem !important;
    }

    #title img {
        max-width: 150px !important;
    }

    #navigation {
        width: 100% !important;
        max-width: 100% !important;
    }

    #nav-custom .nav-root {
        font-size: 1.6rem !important;
    }

    #nav-custom .nav-sub {
        position: static !important;
        background: rgba(0, 0, 0, 0.3) !important;
        box-shadow: none !important;
        margin-left: 2rem;
    }

    #cont-l {
        width: 100% !important;
        padding: 0 !important;
        float: none !important;
    }

    #cont-r {
        width: 100% !important;
        float: none !important;
        margin-top: 2rem;
    }

    #content {
        flex-direction: column !important;
        padding: 1rem !important;
    }

    #ftr-info p {
        font-size: 1.1em;
    }
}

/* 超小画面 */
@media (max-width: 480px) {
    #nav-custom .nav-root > li > a {
        font-size: 1.4rem !important;
        padding: 0.8rem 1.5rem !important;
    }

    #hamburger-btn {
        font-size: 2rem !important;
    }
}

/* ハンバーガーの配置と色調整 */
#header {
    position: relative;
}

/* ハンバーガーボタンを#title右端に配置＋赤背景で視認性UP */
#hamburger-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: #ae0000;
    /* 赤背景 */
    color: #fff;
    /* 白いアイコン */
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ホバー時少し明るく */
#hamburger-btn:hover {
    background: #d00000;
}

/* スマホでタイトルと被らないよう微調整（任意） */
@media (max-width: 768px) {
    #title img {
        max-width: 160px;
    }
}

/* 1024px以下でハンバーガー制御 */
@media (max-width: 1024px) {

    /* 初期状態：メニュー非表示（縦並び用の形だけ用意） */
    #nav-custom .nav-root {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: url(https://u.jimcdn.com/cms/o/sd12cd22d1c8c9bbf/userlayout/img/bg-jrfukikin.png?t=1765244870) repeat-x top / auto;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    /* JS で #nav-custom に .mobile-open が付いたときだけ表示 */
    #nav-custom.mobile-open .nav-root {
        display: flex !important;
    }

    /* 親メニューを全幅に */
    #nav-custom .nav-root > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: center;
    }

    #nav-custom .nav-root > li > a {
        justify-content: center;
        padding: 1rem 2rem;
    }
}

@media (max-width: 1024px) {

    /* ハンバーガーメニューを最前面に（z-indexでコンテンツより上） */
    #nav-custom.mobile-open {
        position: relative;
        z-index: 9999;
    }

    #nav-custom.mobile-open .nav-root {
        display: flex !important;
        position: fixed;
        /* 画面全体に固定 */
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        /* 画面高さいっぱい */
        background: rgba(0, 0, 0, 0.95);
        /* ほぼ真っ黒なオーバーレイ */
        backdrop-filter: blur(5px);
        flex-direction: column;
        padding: 6rem 0 2rem;
        margin: 0;
        box-shadow: none;
    }

    /* メニューリンクの中央揃え・タップしやすく */
    #nav-custom.mobile-open .nav-root > li {
        width: 100%;
        padding: 1rem 0;
    }

    #nav-custom.mobile-open .nav-root > li > a {
        font-size: 1.3rem;
        padding: 1rem 3rem;
        color: #fff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
}

/* ハンバーガー開き中はコンテンツを下にずらす */
#nav-custom.mobile-open ~ #content {
    position: relative;
    z-index: 1;
}


/* 閉じるボタン（最前面固定） */
#close-btn {
    position: fixed !important;
    /* fixedで画面固定 */
    right: 1rem;
    top: 1.5rem;
    /* ヘッダー上部に固定 */
    transform: none;
    /* translateY削除 */
    background: #ae0000;
    color: #fff;
    $border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-size: 2.8rem;
    cursor: pointer;
    z-index: 10000 !important;
    /* メニューより最前面 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: none;
}

#close-btn:hover {
    background: #d00000;
}

/* ハンバーガー開いた時に閉じるボタン表示＋ハンバーガーボタン非表示 */
#hamburger-btn.active + #close-btn {
    display: block !important;
}

#hamburger-btn.active {
    display: none !important;
}

div#contentfooter div.leftrow {
    float: right !important;
    text-align: right !important;
margin-top:.7em;}
#contentfooter a:link, #contentfooter a:visited {color:#fff; text-decoration:none !important}





/* ==========================================================================
   芳名録Nav
   ========================================================================== */
.donation-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start; /* centerから変更で左揃えベース */
  max-width: 100%;
  align-items: stretch;
}
.donation-nav a {
  flex: 0 0 150px; /* grow:0, shrink:0, basis:150pxで固定幅 */
  max-width: 250px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  line-height: 1.2;
}
.donation-nav a:link, .donation-nav a:visited {
  color: #fff;
  text-decoration: none;
}
.donation-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #45a049, #4CAF50);
}


#page-1745332486 #hamburger-btn,
#page-1745332486 #navigation,
#page-1745332486 #cc-m-10400793586
{display:none !important;}