/* ========================= 全体設定 ========================= */
/* Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* CSS変数（カスタムプロパティ） */
 :root{
     --color-main: #1f6b4f;
     --color-main2: #1f5e47;
     --color-bg: #f3f7f5;
     --color-panel: #ffffff;
     --color-text: #1f2937;
     --color-muted: #6b7280;
     --color-border: #e5e7eb;
     --color-accent: #1f7a4d;
     --color-accent2: #79af94;
     --color-accent-weak: color-mix(in srgb, #1f7a4d 12%, white);
     --value-radius: 14px;
     --shadow: 0 10px 26px rgba(17,24,39,.08);
     --value-container: 1080px;
}
/* Base */
 *{
     box-sizing: border-box;
}
 html{
     font-size: 16px;
}
 body{
     margin: 0;
     background: var(--color-bg);
     color: var(--color-text);
     font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
     line-height: 1.7;
}
 a{
     color: var(--color-accent);
     text-decoration-thickness: .08em;
     text-underline-offset: .18em;
}
 a:hover{
     text-decoration: none;
}


.aPDF::after {
    font-family: "Font Awesome 5 Free";
    content: "\f1c1";
    font-weight: 700;
    margin-left: 0.5em;
    color: #a2446c;
}
.aPDF2::after {
    font-family: "Font Awesome 5 Free";
    content: "\f1c1";
    font-weight: 700;
    margin-left: 0.5em;
    color: #b0c4de;
}


.aEx {
  text-decoration: none;	/* 全体の下線を消す */
}

.aEx .alabel {
  text-decoration: underline;	/* 文字部分だけ下線 */
}

.aEx::after {
  font-family: "Font Awesome 5 Free";
  content: "\f35d";
  font-weight: 700;
  margin-left: 0.5em;
}

.aDoc::after {
    font-family: "Font Awesome 5 Free";
    content: "\f1c2";
    font-weight: 700;
    margin-left: 0.5em;
    color: #185abd;
}





 img, video{
     max-width: 100%;
     height: auto;
}
/* Accessibility */
 .skip-link{
     position: absolute;
     left: -9999px;
     top: auto;
     width: 1px;
     height: 1px;
     overflow: hidden;
}
 .skip-link:focus{
     left: 14px;
     top: 14px;
     width: auto;
     height: auto;
     padding: 10px 12px;
     background: var(--color-panel);
     border: 1px solid var(--color-border);
     border-radius: 10px;
     box-shadow: var(--shadow);
     z-index: 9999;
}
/* Layout container */
 .container{
     max-width: var(--value-container);
     margin: 0 auto;
     padding: 0 6px;
}
/* Site frame */
 .site{
     min-height: 100vh;
     display: flex;
     flex-direction: column;
}
/* Header */
 .site-header{
     background: var(--color-panel);
     border-bottom: 1px solid var(--color-border);
}
 .header-inner{
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 16px;
     padding: 16px 0;
}
 .brand{
     display: inline-flex;
     align-items: center;
     gap: 12px;
     text-decoration: none;
     color: inherit;
}
 .brand-logo{
     display: block;
     width: 50px;
     height: 50px;
}
 .brand-name{
     font-weight: 800;
     letter-spacing: .1em;
     font-size:150%;
     color: var(--color-main);
     line-height: 90%;
}
 .brand-name2 {
     font-weight: 800;
     letter-spacing: 0em;
     font-size:50%;
     color: var(--color-main);
}
 .header-links{
     display: inline-flex;
     gap: 14px;
     font-size: .95rem;
}
 .header-links a{
     color: var(--color-muted);
     border-radius: 10px;
     padding: 8px 10px;
     text-decoration: none;
}
 .header-links a:hover{
     background: #f3f4f6;
     color: var(--color-text);
}
/* Mobile nav toggle (hamburger) */
 .nav-toggle{
     display: none;
     align-items: center;
     justify-content: center;
     gap: 8px;
     padding: 10px 12px;
     border-radius: 12px;
     border: 1px solid var(--color-border);
     background: #fff;
     color: var(--color-text);
     cursor: pointer;
     font-weight: 700;
}
 .nav-toggle:hover{
     background: #f3f4f6;
}
 .nav-toggle__icon{
     font-size: 1.25rem;
     line-height: 1;
}
 .nav-toggle__icon--close{
     display: none;
}
 body.is-nav-open .nav-toggle__icon--open{
     display: none;
}
 body.is-nav-open .nav-toggle__icon--close{
     display: inline;
}
 body.is-nav-open .nav-toggle__label{
     opacity: .9;
}
/* Backdrop when mobile menu is open */
 .nav-backdrop{
     display: none;
     position: fixed;
     inset: 0;
     background: rgba(17,24,39,.28);
     z-index: 25;
}
/* Global nav */
 .global-nav{
     background: var(--color-panel);
     border-bottom: 1px solid var(--color-border);
}
 .g-nav{
     display: flex;
     gap: 6px;
     margin: 0;
     padding: 10px 0;
     list-style: none;
     flex-wrap: wrap;
}
 .g-item{
     position: relative;
}
 .g-link, .g-button{
     display: inline-flex;
     align-items: center;
     gap: 8px;
     padding: 10px 12px;
     border-radius: 12px;
     color: var(--color-text);
     text-decoration: none;
     font-weight: 650;
     border: 1px solid transparent;
     background: transparent;
     cursor: pointer;
}
 .g-link:hover, .g-button:hover{
     background: #f3f4f6;
}
 .g-item.is-active > .g-link, .g-item.is-active > .g-button{
     border-color: color-mix(in srgb, var(--color-accent) 35%, var(--color-border));
     background: var(--color-accent-weak);
     color: color-mix(in srgb, var(--color-accent) 80%, black);
}
 .chev{
     font-size: .85em;
     opacity: .7;
}
/* Dropdown panel */
 .g-panel{
     position: absolute;
     /* top: calc(100% + 8px); */
     top: 100%;
     left: 0;
     min-width: 220px;
     background: var(--color-panel);
     border: 1px solid var(--color-border);
     border-radius: 14px;
     box-shadow: var(--shadow);
     padding: 8px;
     display: none;
     z-index: 30;
}
 .g-panel a{
     display: block;
     padding: 10px 10px;
     border-radius: 10px;
     text-decoration: none;
     color: var(--color-text);
}
 .g-panel a:hover{
     background: #f3f4f6;
}

/* 追加：初期状態ではサブメニューを非表示 */
.g-item > .g-panel {
  display: none;
}

/* 既にあるこれで「開いたときだけ表示」になる */
.g-item.is-open > .g-panel {
  display: block;
}

 .g-item.is-open > .g-button{
     background: #f3f4f6;
}
/* Main two-column layout (kept) */
 .layout{
     display: grid;
     grid-template-columns: 260px minmax(0, 1fr);
     gap: 8px;
     padding: 18px 0 26px;
     align-items: start;
     flex: 1;
}
/* Side menu */
 .side-card{
     background: var(--color-panel);
     border: 1px solid var(--color-border);
     border-radius: var(--value-radius);
     box-shadow: 0 6px 18px rgba(17,24,39,.05);
     padding: 14px;
}
 .side-title{
     margin: 0 0 10px 0;
     font-size: 1.05rem;
     letter-spacing: .02em;
}
 .side-nav{
     display: grid;
     gap: 6px;
}
 .side-link{
     display: block;
     padding: 10px 10px;
     border-radius: 12px;
     text-decoration: none;
     color: var(--color-text);
}
 .side-link:hover{
     background: #f3f4f6;
}
 .side-link.is-active{
     background: var(--color-accent-weak);
     color: color-mix(in srgb, var(--color-accent) 80%, black);
     font-weight: 750;
}
/* Content */
 .content{
     background: var(--color-panel);
     border: 1px solid var(--color-border);
     border-radius: var(--value-radius);
     box-shadow: 0 6px 18px rgba(17,24,39,.05);
     padding: 18px 18px 26px;
}
 .content{
     max-width: 100%;
     overflow-x: hidden;
    /* ← これが重要 */
}
 .breadcrumb ol{
     display: flex;
     flex-wrap: wrap;
     gap: 8px;
     list-style: none;
     padding: 0;
     margin: 0 0 10px 0;
     color: var(--color-muted);
     font-size: .9rem;
}
 .breadcrumb li::after{
     content: "›";
     margin-left: 8px;
     color: color-mix(in srgb, var(--color-muted) 65%, white);
}
 .breadcrumb li:last-child::after{
     content: "";
}
 .page-title{
     margin: 6px 0 6px;
     font-size: 1.55rem;
     letter-spacing: .02em;
}
 .page-lead{
     margin: 0 0 10px;
     color: var(--color-muted);
}
 .prose p{
     margin: .9em 0;
}
 .prose h2{
     margin: 1.2em 0 .5em;
}
/* Card-like blocks (optional) */
 .card{
     border: 1px solid var(--color-border);
     border-radius: 14px;
     padding: 14px;
     background: #fff;
     margin: 14px 0;
}
 .kv{
     display: grid;
     gap: 8px;
     margin: 10px 0 0;
}
 .kv > div{
     display: grid;
     grid-template-columns: 120px 1fr;
     gap: 10px;
     align-items: start;
}
 .kv dt{
     color: var(--color-muted);
}
 .kv dd{
     margin: 0;
}
/* バッジ */
 .badge{
     display: inline-block;
     padding: 0.5em 0.6em;
     font-size: 0.85rem;
     font-weight: 600;
     border-radius: 999px;
     line-height: 1.2;
     white-space: nowrap;
}
/* 警告系 */
 .badge-warn{
     background: rgba(178,58,58,.12);
     color: #8a2f2f;
}
/* 通常情報 */
 .badge-info{
     background: rgba(47,127,95,.12);
     color: var(--color-main);
}
/* NEW */
 .badge-new{
     background: #2f7f5f;
     color: #fff;
}
/* 締切 */
 .badge-deadline{
     border-color: color-mix(in srgb, #f59e0b 45%, var(--color-border));
     background: color-mix(in srgb, #f59e0b 14%, white);
     border: 1px solid var(--color-border);
}

/* リンク */
 .badge-link{
     background: color-mix(in srgb, var(--color-accent2) 14%, white);
     border: 1px solid var(--color-accent2);
     text-decoration: none;
}


 .actions{
     display: flex;
     flex-wrap: wrap;
     gap: 10px;
     margin-top: 12px;
}
 .button{
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     padding: 10px 12px;
     border-radius: 12px;
     border: 1px solid color-mix(in srgb, var(--color-accent) 35%, var(--color-border));
     background: var(--color-accent-weak);
     color: color-mix(in srgb, var(--color-accent) 85%, black);
     text-decoration: none;
     font-weight: 700;
}
 .button:hover{
     filter: brightness(.98);
}
 .button-ghost{
     background: transparent;
     color: var(--color-text);
     border-color: var(--color-border);
}
 .button-ghost:hover{
     background: #f3f4f6;
}
/* Footer */
 .site-footer{
     margin-top: auto;
     background: var(--color-panel);
     border-top: 1px solid var(--color-border);
}
 .footer-inner{
     padding: 18px 0 22px;
     display: grid;
     gap: 10px;
}
 .footer-nav{
     display: flex;
     flex-wrap: wrap;
     gap: 10px 14px;
     font-size: .95rem;
}
 .footer-nav a{
     color: var(--color-muted);
     text-decoration: none;
     padding: 6px 8px;
     border-radius: 10px;
}
 .footer-nav a:hover{
     background: #f3f4f6;
     color: var(--color-text);
}
 .copyright{
     color: var(--color-muted);
}
/* Light “non-responsive” default, but add a safety breakpoint */
 @media (max-width: 900px){
    /* layout stacks: side then content (as you requested) */
     .layout{
         grid-template-columns: 1fr;
    }
    /* show hamburger, simplify header */
     .nav-toggle{
         display: inline-flex;
    }
     .header-links{
         display: none;
    }
    /* Backdrop (tap outside to close) */
     .nav-backdrop{
         display: block;
         opacity: 0;
         transition: opacity .38s ease;
    }
     body.is-nav-open .nav-backdrop{
         opacity: 1;
    }
     .g-nav{
         flex-direction: column;
         align-items: stretch;
         padding: 10px 0 14px;
    }
     .g-link, .g-button{
         width: 100%;
         justify-content: space-between;
    }
    /* dropdown panels behave as in-flow accordions on mobile */
     .g-panel{
         position: static;
         box-shadow: none;
         border-radius: 12px;
         margin: 6px 0 10px;
         padding: 6px;
         display: none;
    }
     .g-item.is-open > .g-panel{
         display: block;
    }
     @media (prefers-reduced-motion: reduce){
         .global-nav, .nav-backdrop{
             transition: none;
        }
    }
}
/* v5 fix: make the two-column block itself 1080px wide (matches your working patch) - Useful even if the wrapper .container is changed later. - On smaller viewports it stays fluid. */
 @media (min-width: 1080px){
     .layout{
         width: 1080px;
         margin: 0 auto;
        /* center */
         grid-template-columns: 260px minmax(0, 1fr);
    }
     .content{
         max-width: none;
    }
}
/* v8 patch: backdrop must not block clicks when menu is closed */
 .nav-backdrop{
     pointer-events: none;
}
 body.is-nav-open .nav-backdrop{
     pointer-events: auto;
}
/* v8 patch: keep toggle clickable above backdrop/nav */
 .site-header{
     position: relative;
     z-index: 30;
}
 .nav-backdrop{
     z-index: 25;
}
 .global-nav{
     z-index: 26;
}



main{
  min-height:500px;
}

/* v9 patch: desktop dropdown opens on hover (and keyboard focus) */
 @media (min-width: 901px){
    /* Ensure panels are hidden by default on desktop */
     .g-panel{
         display: none;
    }
    /* Open on hover or focus-within (keyboard accessible) */
     .g-item:hover > .g-panel, .g-item:focus-within > .g-panel{
         display: block;
    }
    /* Optional: caret rotation */
     .g-item:hover .chev, .g-item:focus-within .chev{
         transform: rotate(180deg);
    }
}
/* v10: parent menu behaves like link */
 .g-link--parent{
     display: inline-flex;
     align-items: center;
    /* テキストとアイコン（▾）を 横並びで縦位置を揃える */
     gap: 6px;
    /* 文字と ▾ の間隔調整 */
     font-weight: 600;
}



/* PC: hover / focus でドロップダウン */
/* .g-item:hover > .g-panel 親メニューにマウスが乗ったら、その直下の .g-panel（サブメニュー）を表示 */
/* g-item:focus-within キーボード操作対応（重要）Tabキーで親メニューにフォーカスが来ても開く */
 @media (min-width: 901px){
     .g-item:hover > .g-panel, .g-item:focus-within > .g-panel{
         display: block;
    }
}

@media (max-width: 900px){

  /* 1) ヘッダーはstickyのまま */
  .site-header{
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
  }

  /* 2) 背景（必要なら） */
  .nav-backdrop{
    position: fixed;
    inset: 0;
    z-index: 25;
  }

  /* 3) メニュー本体は“画面上端”に固定 */
  .global-nav{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;                 /* ← ここが重要：ズレない */
    z-index: 50;            /* ヘッダーより下にする */
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;

    overflow: hidden;       /* 閉じたとき */
    transition: opacity .50s ease, transform .50s ease, max-height .38s ease;
  }

  /* 4) 開いたら“中身”はヘッダー分だけ下げる */
  body.is-nav-open .global-nav{
    max-height: 100vh;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    overflow: auto;         /* 開いたときスクロール可 */
    padding-top: 70px;      /* ← ヘッダー高さ分。合わなければ調整 */
  }

    body.is-nav-open{
        overflow: hidden;	/* メニューが開いている間、背景をスクロールさせない */
    }
}



/* v12: PC版 ドロップダウンをふわっと表示（hover/focus-within） */
 @media (min-width: 901px){
    /* display は block に固定（displayはアニメできないため） */
     .g-panel{
         display: block;
         opacity: 0;
         visibility: hidden;
         transform: translateY(8px);
         pointer-events: none;
         transition: opacity .20s ease, transform .20s ease, visibility 0s linear .20s;
        /* 閉じる時にvisibilityを遅らせてチラつき防止 */
    }
    /* hover / キーボードフォーカスで開く */
     .g-item:hover > .g-panel, .g-item:focus-within > .g-panel{
         opacity: 1;
         visibility: visible;
         transform: translateY(0);
         pointer-events: auto;
    }
}
/* Home page: no side menu, content full width */
 .page-home .layout{
     grid-template-columns: 1fr;
}
 .page-home .side{
     display:none;
}
/* サイドメニュー非表示 */
 .page-home .content{
     max-width: none;
}
/* コンテンツ幅100％ */
/* Home page: disable active state in main menu */
 .page-home .g-nav .is-active, .page-home .g-nav .g-link.is-active, .page-home .g-nav .g-item.is-active{
     color: inherit;
     background: transparent;
}
 .page-home .g-nav .is-active::before, .page-home .g-nav .is-active::after{
     display: none;
}
/* Home hero: stable full-fit without gaps */
 .page-home .home-hero{
     position: relative;
     overflow: hidden;
     border-radius: 16px;
     min-height: clamp(200px, 32vw, 340px);
    /* clamp(最小値, 理想値, 最大値) */
}
/* 画像を背景レイヤーとして全面フィット */
 .page-home .home-hero__img{
     position: absolute;
     inset: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
    /* cover 推奨（余白ゼロ） */
     object-position: center;
}
/* オーバーレイ */
 .page-home .home-hero__overlay{
     position: absolute;
     inset: 0;
     background: rgba(0,0,0,.18);
}
/* テキスト */
 .page-home .home-hero__text{
     position: absolute;
     left: 16px;
     right: 16px;
     bottom: 14px;
     color: #fff;
     max-width: 760px;
}
 .home-hero__title {
     text-shadow: 1px 1px 2px rgba(0,0,0,0.8), -1px -1px 2px rgba(0,0,0,0.8);
     margin-bottom: 0!important;
}

 .home-hero__lead{
     margin-top: 0; padding-top: 0;
     color: #ffffff;
     font-size: 120%;
     font-weight: bold;
     text-shadow: 0 0 4px rgba(255, 255, 255, 0.9);	/* text-shadow: X方向 Y方向 ぼかし量 色; */
}

/* モバイル微調整 */
 @media (max-width: 600px){
     .page-home .home-hero{
         min-height: 220px;
    }
}
/* Home: 2-column block under training */
 .page-home .home-two-col{
     display: grid;
     grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
     gap: 18px;
     align-items: start;
}
 .page-home .home-right-stack{
     display: grid;
     gap: 18px;
}
/* Card */
 .page-home .home-card{
     border: 1px solid rgba(0,0,0,.08);
     border-radius: 14px;
     background: #fff;
     padding: 14px 14px 12px;
}
 .page-home .home-card__head{
     display: flex;
     align-items: baseline;
     justify-content: space-between;
     gap: 10px;
     margin-bottom: 10px;
}
 .page-home .home-card__title{
     margin: 0;
     font-size: 1.05rem;
}
 .page-home .home-card__link{
     font-size: .95rem;
     text-decoration: none;
}
/* Updates list */
 .page-home .updates{
     margin: 0;
     padding: 0;
     list-style: none;
     display: grid;
     gap: 10px;
}
 .page-home .updates__item{
     display: grid;
     grid-template-columns: 110px minmax(0, 1fr);
     gap: 10px;
     align-items: baseline;
}
 .page-home .updates__date{
     font-variant-numeric: tabular-nums;
     color: rgba(0,0,0,.65);
}
 .page-home .updates__text{
     color: rgba(0,0,0,.9);
}
/* Publication */
 .page-home .pub-card{
     display: grid;
     grid-template-columns: 92px minmax(0, 1fr);
     gap: 12px;
     align-items: start;
}
 .page-home .pub-card__thumb{
     width: 92px;
     height: 122px;
     border-radius: 10px;
     border: 1px solid rgba(0,0,0,.08);
     background: rgba(0,0,0,.03);
}
 .page-home .pub-card__name{
     margin: 0 0 6px;
     font-weight: 600;
}
 .page-home .pub-card__meta{
     margin: 0 0 10px;
     color: rgba(0,0,0,.65);
}
/* “Banner” button links */
 .page-home .banner-grid{
     display: grid;
     gap: 10px;
}
 .page-home .banner-link{
     display: flex;
     flex-direction: column;
     gap: 4px;
     padding: 12px 12px;
     border-radius: 12px;
     text-decoration: none;
     border: 2px solid rgba(0,0,0,.10);
     background: rgba(0,0,0,.02);
}
 .page-home .banner-link__sub{
     font-size: .92rem;
     color: rgba(0,0,0,.65);
}
/* Compact card */
 .page-home .home-card--compact{
     padding: 12px 14px;
}
 .page-home .org{
     margin: 8px 0 0;
     color: rgba(0,0,0,.85);
}
/* Responsive: stack on mobile */
 @media (max-width: 900px){
     .page-home .home-two-col{
         grid-template-columns: 1fr;
    }
     .page-home .updates__item{
         grid-template-columns: 96px minmax(0, 1fr);
    }
}
/* v: Home 2x2 matrix layout */
 .page-home .home-two-col--matrix{
     display: grid;
     grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
     grid-template-areas: "updates pub" "org banners";
     gap: 18px;
     align-items: start;
}
 .page-home .home-block--updates{
     grid-area: updates;
}
 .page-home .home-block--pub{
     grid-area: pub;
}
 .page-home .home-block--org{
     grid-area: org;
}
 .page-home .home-block--banners{
     grid-area: banners;
}
/* Mobile: stack in this order */
 @media (max-width: 900px){
     .page-home .home-two-col--matrix{
         grid-template-columns: 1fr;
         grid-template-areas: "updates" "pub" "banners" "org";
    }
}

.clsDetails {
  color: #666666;
  font-size: 90%;
  line-height: 1em!important;
}




/* ===== Headings: base ===== */
 h1, h2, h3, h4{
     line-height: 1.4;
     margin: 0 0 0.6em;
}
/* --------------------------- h1 : TOP PAGE ONLY （白文字・装飾なし） ---------------------------- */
 .page-home h1{
     font-size: 2.2rem;
     font-weight: 700;
     color: #ffffff;
    /* 白文字 */
     letter-spacing: .04em;
     margin-bottom: 0.4em;
}
/* --------------------------- h1 : SUB PAGES （しっかり装飾） ---------------------------- */
 body:not(.page-home) h1{
     font-size: 1.85rem;
     font-weight: 700;
     color: var(--color-main);
     letter-spacing: .03em;
     position: relative;
     padding-bottom: 0.45em;
     margin-bottom: 1.1em;
}
/* 下層 h1 の下線 */
 body:not(.page-home) h1::after{
     content: "";
     position: absolute;
     left: 0;
     bottom: 0;
     width: 72px;
     height: 3px;
     background: linear-gradient( to right, #2f7f5f, rgba(47,127,95,.35) );
     border-radius: 2px;
}
/* --------------------------- h2 : section title ---------------------------- */
 h2{
     font-size: 1.35rem;
     font-weight: 600;
     color: #245f48;
     position: relative;
     padding-bottom: 0.35em;
     margin-bottom: 0.9em;
}
/* h2 underline : main content only */
 main h2::after, .home-section h2::after{
     content: "";
     position: absolute;
     left: 0;
     bottom: 0;
     width: 100%;
     height: 2px;
     background: #2f7f5f;
     border-radius: 2px;
}
/* --------------------------- h3 : subsection ---------------------------- */
 h3{
     font-size: 1.35rem;
     font-weight: 600;
     color: #2b4f42;
     margin-bottom: 0.4em;
     border-bottom: solid 1px #2f7f5f;
     padding-bottom: 0.2em;
}
/* --------------------------- h4 : minor heading ---------------------------- */
 h4{
     font-size: 1.35rem;
     font-weight: 600;
     color: #2b4f42;
     margin-bottom: 0.4em;
}
/* ========================= Table styles (global) ========================= */
 table{
     width: 100%;
     border-collapse: collapse;
     margin: 1.2em 0;
     font-size: 0.95rem;
}
/* table header */
 th{
     background: rgba(47,127,95,.12);
    /* グリーン系の薄い背景 */
     color: var(--color-main2);
     font-weight: 700;
     text-align: left;
     padding: 10px 12px;
     border: 1px solid rgba(0,0,0,.12);
     vertical-align: middle;
}
/* table data */
 td{
     background: #fff;
     padding: 10px 12px;
     border: 1px solid rgba(0,0,0,.12);
     vertical-align: top;
}
/* zebra stripe (optional but recommended) */
 tbody tr:nth-child(even) td{
     background: rgba(0,0,0,.02);
}
 .table-wrap{
     max-width: 100%;
     overflow-x: auto;
     -webkit-overflow-scrolling: touch;
}
 @media (max-width: 900px){
     .table-wrap{
         box-shadow: inset -10px 0 12px -12px rgba(0,0,0,.25);
    }
}
/* Force horizontal scroll for tables inside .table-wrap */
 .table-wrap table{
     width: max-content;
    /* 内容幅で広がる */
     max-width: none;
     width: 100%;
}
 .table-wrap th, .table-wrap td{
     white-space: nowrap;
    /* 折り返し禁止 → はみ出してスクロールが出る */
}

  .table-cap {
    background-color: var(--color-main2);
    font-weight: bold;
    font-size: 120%;
    color: #ffffff;
    padding: 0.5em;

}

/* ========================= 注意書き ========================= */
 .note{
     margin: 0.8em 0;
     padding-left: 1.6em;
    /* ※ 分の余白 */
     text-indent: -1.6em;
    /* 1行目だけ左に引き戻す */
     font-size: 0.9rem;
     color: #8a2f2f;
     line-height: 1.6;
}
 .note::before{
     content: "※";
     margin-right: 0.3em;
     font-weight: 700;
}
 .note--inline{
     margin-top: 0.4em;
     font-size: 0.85rem;
}
/* note inside table: remove paragraph margins */
 td .note{
     margin: 0.4em 0 0;
    /* 上だけ少し、下は0 */
}
 .note--warn{
     color: #b23a3a;
     font-weight: 600;
}
/* ========================= 枠付き ========================= */
/* Box: common */
 .box{
     border-radius: 14px;
     padding: 14px 16px;
     border: 1px solid rgba(0,0,0,.10);
     background: #fff;
}
/* Soft green (most-used) */
 .box--soft{
     border-color: rgba(47,127,95,.22);
     background: rgba(47,127,95,.08);
}
/* Callout: accented box */
 .callout{
     border-radius: 14px;
     padding: 14px 16px;
     border: 1px solid rgba(0,0,0,.10);
     background: #fff;
     position: relative;
}
 .callout::before{
     content: "";
     position: absolute;
     left: 0;
     top: 10px;
     bottom: 10px;
     width: 4px;
     border-radius: 4px;
     background: rgba(0,0,0,.20);
}
/* Variants */
 .callout--info{
     border-color: rgba(47,127,95,.22);
     background: rgba(47,127,95,.06);
}
 .callout--info::before{
     background: #2f7f5f;
}
 .callout--warn{
     border-color: rgba(178,58,58,.25);
     background: rgba(178,58,58,.08);
}
 .callout--warn::before{
     background: #b23a3a;
}
 .callout--note{
     border-color: rgba(0,0,0,.10);
     background: rgba(0,0,0,.03);
}
 .callout--note::before{
     background: rgba(0,0,0,.35);
}
/* Download box */
 .dl-box{
     display: block;
     text-decoration: none;
     border-radius: 14px;
     padding: 14px 16px;
     border: 1px solid rgba(47,127,95,.25);
     background: rgba(47,127,95,.06);
     color: inherit;
}
 .dl-box:hover{
     background: rgba(47,127,95,.10);
}
 .dl-box__title{
    /* display: block;
     */
     font-weight: 700;
     color: var(--color-main);
     margin-bottom: 4px;
}
 .dl-box__meta{
    /* display: block;
     */
     font-size: .92rem;
     color: rgba(0,0,0,.65);
}
/* 罫線 */
 .box-01 {
     margin: 20px auto;
     padding: 20px;
     border: 3px solid #faad76;
     position: relative;
     border-radius: 14px;
}
 .box-01 p {
     background-image: linear-gradient(90deg, rgba(237, 119, 128, 0) 0%, rgba(237, 119, 128, 0) 50%, #fff 0%, #fff 100%), linear-gradient(180deg, rgba(237, 119, 128, 0) 0%, rgba(237, 119, 128, 0) 95%, #faad76 100%);
     background-size: 8px 100%, 100% 2.5em;
     line-height: 2.5;
     margin: 0;
     font-size:120%;
}
 .box-13 {
     margin: 30px auto;
     padding: 1em;
     border: 2px dashed #faad76;
     position: relative;
}
 .box-13-ttl {
     position: absolute;
     top: -15px;
     left: 20px;
     background-color: #ffffff;
     padding: 0 0.5em;
     margin: 0;
     font-size: 20px;
     font-weight: bold;
     color:#f8812c;
}
 .box-15 {
     margin: 20px auto;
}
 .box-15-ttl {
     background-color: #faad76;
     color: #fff;
     padding: 0.5em 20px;
     margin: 0;
     font-size: 20px;
     font-weight: bold;
     border-radius: 14px 14px 0px 0px;
    /* 左上、右上、右下、左下 */
}
 .box-15-txt {
     padding: 10px 20px;
     border: 2px solid #faad76;
     border-radius: 0px 0px 14px 14px ;
    /* 左上、右上、右下、左下 */
}
 


/* ===== リンクボタン ===== */
/* メインカラー */
 .btn_01 {
     display: inline-block;
     width: auto;
     max-width: 100%;
    /* ボタン幅 */
     position: relative;
     background: var(--color-accent2);
    /* 背景色 */
     border: 2px solid var(--color-accent2);
     padding: 0.5em 1em 0.5em 2em;
     font-weight: bold;
     color: #fff;
    /* 文字色 */
     text-decoration: none;
     text-align: center;
     transition-duration: 0.3s;
     border-radius: 4px;
     clear: both;
}
 .btn_01:before {
     content: '';
     width: 8px;
     height: 8px;
     border: 0;
     border-top: 2px solid #fff;
    /* 矢印の色 */
     border-right: 2px solid #fff;
    /* 矢印の色 */
     transform: rotate(45deg);
     position: absolute;
     top: 50%;
     left: 0.5em;
     margin-top: -6px;
}
 .btn_01 a{
     color:#ffffff;
     text-decoration: none;
}
 .btn_01:hover {
     opacity:0.6;
}


 .btn_link {


}



/* ========================= 動画 ========================= */
.movie-block{
  margin: 18px 0 28px;
}

.movie-player{
  margin: 10px 0 0;
  display: grid;
  gap: 12px; /* ← 2本目以降の上余白 */
}

.movie-player__video{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(0,0,0,.12);
  aspect-ratio: 16 / 9;
  object-fit: contain; /* 見切れ防止 */
}

.movie-caption{
  margin: 8px 0 0;
  font-size: .92rem;
  color: rgba(0,0,0,.65);
}

.movie-meta{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}


/* ========================= 画像 ========================= */
/* 
<figure class="media media--left">
  <img class="media__img" src="../images/sample.jpg" alt="説明文">
  <figcaption class="media__cap">（任意）写真説明</figcaption>
</figure>

<p>ここに文章が続きます。画像の右側に回り込みます。…</p>
 */
/* ===== Image: float wrap ===== */
 .media{
     margin: 0.4em 0 1em;
}
 .media__img{
     display: block;
     max-width: 100%;
     height: auto;
     border-radius: 14px;
     border: 1px solid rgba(0,0,0,.10);
     background: rgba(0,0,0,.02);
}
 .media__cap{
     margin: 8px 0 0;
     font-size: .9rem;
     color: rgba(0,0,0,.65);
}
/* left float */
 .media--left{
     float: left;
     width: min(42%, 360px);
     margin: 0.2em 16px 10px 0;
}
/* clear helper (wrapの後に入れる) */
 .clearfix::after{
     content: "";
     display: block;
     clear: both;
}
/* mobile: no float */
 @media (max-width: 900px){
     .media--left{
         float: none;
         width: 100%;
         margin: 0.2em 0 12px;
    }
}
/* right float */
 .media--right{
     float: right;
     width: min(42%, 360px);
     margin: 0.2em 0 10px 16px;
}
 @media (max-width: 900px){
     .media--right{
         float: none;
         width: 100%;
         margin: 0.2em 0 12px;
    }
}

/* center image */
.media--center{
  width: min(60%, 520px);   /* ←お好みで調整 */
  margin: 0.4em auto 1em;   /* ←中央寄せの本体 */
  float: none;
  text-align: center;       /* キャプション中央 */
}
@media (max-width: 900px){
  .media--center{
    width: 92%;
  }
}


/* ===== Image grid ===== */
/* 
<div class="img-grid img-grid--2">
  <figure class="img-grid__item">
    <img class="media__img" src="../images/sample1.jpg" alt="画像1">
    <figcaption class="media__cap">（任意）説明</figcaption>
  </figure>

  <figure class="img-grid__item">
    <img class="media__img" src="../images/sample2.jpg" alt="画像2">
    <figcaption class="media__cap">（任意）説明</figcaption>
  </figure>
</div>
 */
 .img-grid{
     display: grid;
     gap: 14px;
     margin: 0.6em 0 1.2em;
}
 .img-grid--2{
     grid-template-columns: repeat(2, minmax(0, 1fr));
}
 .img-grid__item{
     margin: 0;
}
 @media (max-width: 900px){
     .img-grid--2{
         grid-template-columns: 1fr;
    }
}
/* ===== Option: center images on mobile ===== */
 @media (max-width: 900px){
     .img-grid--center-sp{
         justify-items: center;
        /* 各アイテムを中央に */
    }
     .img-grid--center-sp .media__img{
         max-width: 92%;
        /* 端に張り付かないよう少し余白 */
    }
     .img-grid--center-sp .media__cap{
         text-align: center;
        /* キャプションも中央 */
    }
}
/* ========================= v16 Print styles（色保持版） ========================= */
/* | 要素 | 印刷時の扱い | | --------- | ------ | | 枠付きボックス | 色そのまま | | バッジ | 色そのまま | | 注意枠 | 色そのまま | | テーブル背景 | そのまま | | ナビ・ハンバーガー | 非表示 | | 動画 | 非表示 | | レイアウト崩れ | 防止 | */
 @media print{
     @page{
         margin: 12mm 12mm 14mm;
    }
    /* 影や動きだけ除去 */
     *{
         box-shadow: none !important;
         text-shadow: none !important;
         animation: none !important;
         transition: none !important;
    }
     html, body{
         background: #fff;
    }
    /* 横幅固定を解除 */
     .container, .layout{
         max-width: none !important;
         width: auto !important;
         margin: 0 !important;
    }
    /* 印刷不要UIを隠す */
     .nav-toggle, .nav-backdrop, .global-nav, .header-links{
         display: none !important;
    }
    /* サイドメニューは残すならこの行は削除 */
    /* .side{
         display: none !important;
    }
     */
    /* コンテンツは全面 */
     .content{
         overflow: visible !important;
    }
    /* 見出しの疑似下線は細く */
     body:not(.page-home) h1::after, h2::after{
         height: 1px !important;
    }
    /* リンクのURL表示（外部だけにしたい場合は .ext に変更可） */
     a[href^="http"]::after{
         content: " (" attr(href) ")";
         font-size: 0.85em;
    }
    /* 画像 */
     img{
         max-width: 100% !important;
         height: auto !important;
         page-break-inside: avoid;
    }
    /* 動画は印刷できないので非表示 */
     video{
         display: none !important;
    }
    /* セクション分断防止 */
     .home-section, .home-card, .movie-block, .table-wrap, .box, .callout{
         break-inside: avoid;
         page-break-inside: avoid;
    }
    /* グリッド崩れ防止 */
     .home-two-col{
         display: block !important;
    }
}
 @media print{
     .img-grid{
         display: grid !important;
    }
     .img-grid--2{
         grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
/* 印刷で画像が切れないように */
 @media print{
     .img-grid__item{
         break-inside: avoid;
         page-break-inside: avoid;
    }
}
 @media print{
    /* 1) 2カラム（home-two-col）はPCのまま（block化しない） */
     .home-two-col{
         display: grid !important;
    }
    /* もし home-two-col が2列指定を持っているなら不要ですが、 “念のため”明示しておく場合（あなたのクラス名に合わせて調整） */
     .home-two-col--matrix{
         display: grid !important;
    }
    /* 2) 画像2列グリッドはPCのまま */
     .img-grid{
         display: grid !important;
    }
     .img-grid--2{
         grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    /* 3) 画像の回り込み（左/右float）も維持 */
     .media--left{
         float: left !important;
         width: min(42%, 360px) !important;
         margin: 0.2em 16px 10px 0 !important;
    }
     .media--right{
         float: right !important;
         width: min(42%, 360px) !important;
         margin: 0.2em 0 10px 16px !important;
    }
    /* 4) 回り込み要素やカードが途中で分断されにくくする */
     .media, .img-grid__item, .home-card, .box, .callout, table, tr, th, td{
         break-inside: avoid;
         page-break-inside: avoid;
    }
    /* 5) tableの横スクロール用ラッパーは印刷では無効化（全文表示） */
     .table-wrap{
         overflow: visible !important;
    }
}




/* ========================= ページ上部へ戻る ========================= */
.page-top{
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 70;

  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: var(--color-main);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;

  box-shadow: 0 4px 12px rgba(0,0,0,.2);

  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

/* 表示状態 */
.page-top.is-show{
  opacity: 1;
  pointer-events: auto;
}

/* hover */
.page-top:hover{
  background: var(--color-main2);
}


.page-top::before{
  font-family: "Font Awesome 6 Free";
  content: "\f106";   /* angle-up */
  font-weight: 900;
}



/* Google Map responsive */
.map-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;   /* 600×450 と同じ比率 */
  overflow: hidden;
  border-radius: 14px;   /* 任意 */
  margin-bottom: 30px;
}

.map-wrap iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}




/* ========================= フォーム ========================= */

.form-list{
  display: grid;
  gap: 16px;
  margin: 18px 0 0;
}

.form-row{
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px 16px;
  align-items: start;

  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

.form-label{
  margin: 0;
  font-weight: 700;
  color: var(--color-main2);
  line-height: 1.5;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row textarea,
.form-row select{
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;

  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);

  font: inherit;
  line-height: 1.5;
}

.form-row textarea{
  min-height: 120px;
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder{
  color: rgba(0,0,0,.45);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus{
  outline: 3px solid rgba(47,127,95,.20);
  border-color: var(--color-main);
}

/* radio / checkbox */
.form-row label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px 6px 0;
}

.form-row input[type="radio"],
.form-row input[type="checkbox"]{
  inline-size: 1.1em;
  block-size: 1.1em;
  accent-color: var(--color-main);
}

/* 補足文 */
.form-row .note{
  grid-column: 2;
  margin: 0 0 6px 0;
}

/* 必須バッジをフォーム内では少し小さめに */
.form-label .badge{
  margin-left: 6px;
  padding: 0.25em 0.55em;
  font-size: 0.75rem;
  vertical-align: middle;
}

/* 送信ボタン周り */
.form-list .actions{
  justify-content: center;
  padding-top: 10px;
}

/* モバイル */
@media (max-width: 900px){
  .form-row{
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-row .note{
    grid-column: auto;
  }

  .form-row label{
    margin-right: 12px;
  }
}


/* フォーム右側の入力エリア */
.form-field{
  min-width: 0;
}

/* radio / checkbox options */
.form-options{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
}

.form-options label{
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* form-field 内の note は右列内で自然に表示 */
.form-field .note{
  margin: 0 0 8px 0;
}



/* フォーム送信ボタン */
.form-list .actions .button[type="submit"]{
  width: 50%;
  font-size: 1.15rem;
  padding: 12px 16px;
}

/* SP：幅100% */
@media (max-width: 900px){
  .form-list .actions .button[type="submit"]{
    width: 100%;
  }
}



/* フォーム：入力エラー表示 */
.form-row input:user-invalid,
.form-row textarea:user-invalid,
.form-row select:user-invalid{
  border: 3px solid #d97706; /* オレンジ系 */
  background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(217,119,6,.16);
}

/* フォーカス時もエラー色を維持 */
.form-row input:user-invalid:focus,
.form-row textarea:user-invalid:focus,
.form-row select:user-invalid:focus{
  outline: none;
  border-color: #d97706;
  box-shadow: 0 0 0 4px rgba(217,119,6,.22);
}

/* フォールバック：送信ボタン押下後に form.is-validated を付ける場合 */
form.is-validated .form-row input:invalid,
form.is-validated .form-row textarea:invalid,
form.is-validated .form-row select:invalid{
  border: 3px solid #d97706;
  background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(217,119,6,.16);
}






