/* ==============================================
   グランシティ豊田 自治会 - 共通スタイル v2
   年配者対応：視覚的ボタンUI・大きなタップ領域
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1F4E79;
  --blue:    #2E75B6;
  --green:   #4CAF50;
  --green-dark: #388E3C;
  --orange:  #ED7D31;
  --orange-dark: #D46A1A;
  --red:     #C00000;
  --white:   #FFFFFF;
  --text:    #1A1A1A;
  --bg-gray: #F4F7FB;
  --border:  #D0D8E4;

  /* 既定は「中」。JavaScriptが動かなくても、この大きさで表示される */
  --font-xs:   17px;
  --font-sm:   18px;
  --font-md:   21px;
  --font-lg:   25px;
  --font-xl:   30px;
  --font-xxl:  38px;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 16px rgba(31,78,121,0.12);
  --shadow-hover: 0 6px 24px rgba(31,78,121,0.20);
  --shadow-btn: 0 3px 0 rgba(0,0,0,0.15);
}

/* 文字サイズ切替。<html> に付けることで、ページ描画の前に反映される（ちらつき防止） */
html.font-small,  body.font-small  { --font-xs: 15px; --font-sm: 16px; --font-md: 18px; --font-lg: 22px; --font-xl: 26px; --font-xxl: 34px; }
html.font-large,  body.font-large  { --font-xs: 17px; --font-sm: 18px; --font-md: 21px; --font-lg: 25px; --font-xl: 30px; --font-xxl: 38px; }
html.font-xlarge, body.font-xlarge { --font-xs: 19px; --font-sm: 20px; --font-md: 24px; --font-lg: 28px; --font-xl: 34px; --font-xxl: 42px; }

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-size: var(--font-md);
  line-height: 1.9;
  color: var(--text);
  background: var(--bg-gray);
  padding-bottom: 80px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* === ヘッダー === */
.site-header {
  background: linear-gradient(135deg, #1a3f5c 0%, var(--navy) 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo .logo-sub  { font-size: var(--font-xs); opacity: .75; letter-spacing:.1em; }
.site-logo .logo-main { font-size: 20px; font-weight: 700; letter-spacing: .02em; }

/* 文字サイズ切替ボタン - 押せる見た目 */
.font-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}
.font-btn {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  border-radius: 8px;
  cursor: pointer;
  padding: 6px 14px;
  font-family: inherit;
  line-height: 1;
  transition: all .15s;
  position: relative;
  top: 0;
}
.font-btn:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); }
.font-btn.active {
  background: rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.8);
  box-shadow: 0 0 8px rgba(255,255,255,0.3);
}
.font-btn:active { transform: translateY(1px); }
.font-btn.btn-sm  { font-size: var(--font-xs); }
.font-btn.btn-md  { font-size: 16px; }
.font-btn.btn-lg  { font-size: 20px; font-weight: 700; }
.font-label { font-size: var(--font-xs); color: rgba(255,255,255,.65); margin-right: 4px; }

/* === デスクトップナビ：バインダー式インデックスタブ === */
.desktop-nav {
  background: var(--blue);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  position: sticky;
  top: 68px;
  z-index: 99;
  padding-top: 9px;
}
.desktop-nav ul {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px;
  row-gap: 5px;
}
.desktop-nav ul li a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px 9px;
  color: #4a4335;
  background: #e6e0d4;
  font-size: var(--font-sm);
  font-weight: 700;
  line-height: 1.3;
  border: 2px solid #cfc6b6;
  border-bottom: none;
  border-radius: 11px 11px 0 0;
  white-space: nowrap;
  transform: translateY(4px);
  box-shadow: inset 0 -7px 11px -8px rgba(0,0,0,.30);
  position: relative;
}
.desktop-nav ul li a:hover {
  background: #f2ede3;
  transform: translateY(1px);
  text-decoration: none;
}
.desktop-nav ul li a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
/* 開いているページ＝白い紙とつながって見える */
.desktop-nav ul li a.active {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  border-top: 4px solid var(--orange);
  transform: translateY(0);
  padding-bottom: 13px;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.10);
  text-decoration: none;
}
/* 鍵つき（関係者向け資料あり）：斜線で区別 */
.nav-lock {
  font-size: .88em;
  opacity: .9;
  margin-left: -2px;
}
.desktop-nav ul li a.has-lock {
  background: repeating-linear-gradient(135deg,#ddd6ea,#ddd6ea 6px,#e7e1ef 6px,#e7e1ef 12px);
  border-color: #c3b9d6;
  color: #413a52;
}
.desktop-nav ul li a.has-lock:hover {
  background: repeating-linear-gradient(135deg,#e7e1ef,#e7e1ef 6px,#f1edf7 6px,#f1edf7 12px);
}
.desktop-nav ul li a.has-lock.active {
  background: var(--white);
  border-color: var(--white);
  border-top-color: #6b5b95;
  color: var(--navy);
}
.desktop-nav ul li a.disabled {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}
.badge-soon {
  font-size: var(--font-xs);
  background: var(--orange);
  color: white;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
}

/* === モバイルボトムナビ：5つのタブ === */
/* タブは5つまで。6つ以上にすると文字が折り返して崩れる。
   残りのページは右端の「☰ メニュー」から開く。      */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 3px solid var(--border);
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
  padding-bottom: env(safe-area-inset-bottom, 0px);   /* iPhoneの下の余白 */
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  height: 62px;
  margin: 0;
  padding: 0;
}
.mobile-nav ul li {
  flex: 1 1 0;
  min-width: 0;
}
.mobile-nav ul li > a,
.mobile-nav ul li > button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #777;
  /* 文字サイズ設定（小・中・大）の影響を受けないよう固定にする */
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  gap: 2px;
  background: none;
  border: none;
  border-top: 3px solid transparent;
  margin-top: -3px;
  padding: 0 2px;
  font-family: inherit;
  cursor: pointer;
  transition: color .15s;
}
.mobile-nav .nav-icon {
  font-size: 24px;
  line-height: 1;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav .nav-label {
  display: block;
  white-space: nowrap;      /* 折り返さない */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.mobile-nav ul li > a.active {
  color: var(--navy);
  border-top-color: var(--blue);
  background: #EEF4FB;
}
.mobile-nav ul li > a:hover,
.mobile-nav ul li > button:hover {
  color: var(--blue);
  text-decoration: none;
}
.mobile-nav ul li > button[aria-expanded="true"] {
  color: var(--navy);
  background: #EEF4FB;
  border-top-color: var(--blue);
}

/* === 「☰ メニュー」で下から出てくる一覧 === */
.nav-sheet-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 110;
}
.nav-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  background: var(--white);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,.25);
  max-height: 82vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}
.nav-sheet[hidden], .nav-sheet-bg[hidden] { display: none; }
.nav-sheet-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--navy);
  color: #fff;
  font-size: var(--font-md);
  font-weight: 700;
  border-radius: 18px 18px 0 0;
}
.nav-sheet-close {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 40px; height: 40px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.nav-sheet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-sheet-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.nav-sheet-list li a:hover { background: var(--bg-gray); text-decoration: none; }
.nav-sheet-list li a.active { background: #EEF4FB; color: var(--navy); }
.nav-sheet .s-ico { font-size: 24px; width: 32px; text-align: center; flex: none; }
/* 「設備の状況」は お知らせ の下位項目として一段下げて見せる */
.nav-sheet-list li a.s-sub {
  padding-left: 40px;
  font-size: var(--font-sm);
  color: #444;
}
.nav-sheet-list li a.s-sub::before {
  content: "└";
  color: #aaa;
  margin-right: 2px;
}
.nav-sheet .s-lock {
  margin-left: auto;
  font-size: var(--font-xs);
  font-weight: 600;
  color: #6b5b95;
  white-space: nowrap;
}
.nav-sheet-sep {
  padding: 14px 18px 8px;
  font-size: var(--font-sm);
  font-weight: 700;
  color: #666;
  background: var(--bg-gray);
}


/* === 押せるとわかる大きなご案内ボタン（お知らせページの設備の状況など） === */
.setsubi-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin: 0 0 24px;
  border: 3px solid var(--navy);
  border-radius: 14px;
  background: #F2F7FD;
  box-shadow: 0 4px 0 var(--navy);
  color: inherit;
  text-decoration: none;
  transition: background .15s, transform .08s, box-shadow .08s;
}
.setsubi-banner:hover { background: #E3EEFA; text-decoration: none; color: inherit; }
.setsubi-banner:active { transform: translateY(4px); box-shadow: 0 0 0 var(--navy); }
.setsubi-banner:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.setsubi-banner .sb-ico { font-size: 34px; line-height: 1; flex: none; }
.setsubi-banner .sb-txt { flex: 1 1 auto; min-width: 0; }
.setsubi-banner .sb-txt b {
  display: block;
  font-size: var(--font-lg);
  color: var(--navy);
  margin-bottom: 3px;
}
.setsubi-banner .sb-txt span {
  display: block;
  font-size: var(--font-sm);
  color: #555;
  line-height: 1.6;
}
.setsubi-banner .sb-go {
  flex: none;
  background: var(--navy);
  color: #fff;
  font-size: var(--font-sm);
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 10px;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .setsubi-banner { flex-wrap: wrap; gap: 10px; }
  .setsubi-banner .sb-txt { flex: 1 1 60%; }
  .setsubi-banner .sb-go { width: 100%; text-align: center; padding: 13px; font-size: var(--font-md); }
}
@media print { .setsubi-banner { display: none; } }


/* === 入力フォームのご案内（メールを使わない方向け） === */
.form-ready {
  border: 3px solid var(--navy);
  border-radius: 14px;
  background: #F2F7FD;
  padding: 20px 22px;
  margin: 0 0 22px;
}
.form-ready h3 {
  font-size: var(--font-lg);
  color: var(--navy);
  margin: 0 0 6px;
}
.form-ready > p {
  font-size: var(--font-sm);
  color: #444;
  line-height: 1.7;
  margin: 0 0 14px;
}
.form-ready .fr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 18px;
  background: var(--navy);
  color: #fff;
  font-size: var(--font-lg);
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 0 #0d2a40;
  text-decoration: none;
  transition: background .15s, transform .08s, box-shadow .08s;
}
.form-ready .fr-btn:hover { background: var(--blue); color: #fff; text-decoration: none; }
.form-ready .fr-btn:active { transform: translateY(4px); box-shadow: 0 0 0 #0d2a40; }
.form-ready .fr-note {
  font-size: var(--font-xs);
  color: #666;
  margin: 12px 0 0;
  line-height: 1.7;
}

/* === メールが開かない方へ === */
.no-mail {
  border: 2px solid #E0B94A;
  border-radius: 12px;
  background: #FFFBEF;
  padding: 18px 20px;
  margin: 0 0 22px;
}
.no-mail h3 {
  font-size: var(--font-md);
  color: #8a6100;
  margin: 0 0 6px;
}
.no-mail p {
  font-size: var(--font-sm);
  color: #4a4a4a;
  line-height: 1.7;
  margin: 0 0 12px;
}
.no-mail .nm-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.no-mail .nm-btn {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #C99700;
  border-radius: 10px;
  color: #6b4b00;
  font-size: var(--font-md);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.no-mail .nm-btn:hover { background: #FFF3D4; text-decoration: none; color: #6b4b00; }
.no-mail .nm-addr {
  display: block;
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--navy);
  word-break: break-all;
  margin: 10px 0 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px dashed #C99700;
  border-radius: 8px;
}
@media print { .form-ready, .no-mail { display: none; } }


/* === ホームページの中でフォームを開くページ === */
.form-lead {
  font-size: var(--font-md);
  line-height: 1.8;
  color: #333;
  margin: 0 0 18px;
}
.form-embed {
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin: 0 0 22px;
}
.form-embed iframe {
  display: block;
  width: 100%;
  height: 1500px;   /* 中でスクロールしないよう高めに取る */
  border: 0;
}
.form-back {
  border: 3px solid var(--navy);
  border-radius: 14px;
  background: #F2F7FD;
  padding: 18px 20px;
  margin: 0 0 18px;
}
.form-back p { font-size: var(--font-md); color: #333; margin: 0 0 12px; }
.form-back .fb-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-back .fb-btn {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 16px;
  background: var(--navy);
  color: #fff;
  font-size: var(--font-md);
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 4px 0 #0d2a40;
  text-decoration: none;
  transition: background .15s, transform .08s, box-shadow .08s;
}
.form-back .fb-btn:hover { background: var(--blue); color: #fff; text-decoration: none; }
.form-back .fb-btn:active { transform: translateY(4px); box-shadow: 0 0 0 #0d2a40; }
.form-note {
  font-size: var(--font-sm);
  color: #666;
  line-height: 1.8;
  margin: 0;
}
@media (max-width: 768px) {
  .form-embed iframe { height: 1700px; }
}
@media print { .form-embed, .form-back { display: none; } }

/* === サブナビ（自治会・組織グループの2段目） === */
.sub-nav {
  background: var(--white);
  border-bottom: 2px solid #e0e0e0;
  position: sticky;
  top: 118px;
  z-index: 98;
}
.sub-nav[hidden] { display: none; }
.sub-nav ul {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px;
}
.sub-nav ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px 7px;
  margin-top: 8px;
  font-size: var(--font-sm);
  font-weight: 700;
  color: #413a52;
  background: #f1eef7;
  border: 2px solid #ded6ea;
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  white-space: nowrap;
}
.sub-nav ul li a:hover { background: #f7f5fb; text-decoration: none; }
.sub-nav ul li a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.sub-nav ul li a.active {
  background: var(--white);
  color: var(--navy);
  border-top: 3px solid #6b5b95;
  padding-bottom: 9px;
  margin-bottom: -2px;
}
.sub-lock { font-size: .88em; opacity: .85; }
/* 親タブの▾印 */
.desktop-nav ul li a.has-lock .nav-lock { font-size: .86em; opacity: .8; }

@media (max-width: 900px) {
  .sub-nav { position: static; }
  .sub-nav ul li a { font-size: var(--font-sm); padding: 8px 12px 6px; }
}
@media print { .sub-nav { display: none; } }


/* === メインコンテンツ === */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  background: var(--white);
  min-height: 60vh;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* パンくず */
.breadcrumb {
  font-size: var(--font-xs);
  color: #666;
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--bg-gray);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.breadcrumb a {
  color: var(--blue);
  padding: 2px 6px;
  border-radius: 4px;
  transition: background .15s;
}
.breadcrumb a:hover { background: #D8E8F8; text-decoration: none; }
.breadcrumb .sep { color: #bbb; }

/* セクション見出し */
.section-title {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--navy);
  border-left: 6px solid var(--blue);
  padding-left: 16px;
  margin: 40px 0 24px;
  line-height: 1.4;
}
.section-title:first-child { margin-top: 0; }

.section-subtitle {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--border);
}

/* === ヒーロー（今月の回収日）=== */
.hero-collection {
  background: linear-gradient(135deg, #1a3f5c 0%, var(--blue) 60%, #3d8dd4 100%);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  color: var(--white);
  margin-bottom: 32px;
  box-shadow: 0 6px 20px rgba(31,78,121,0.25);
  position: relative;
  overflow: hidden;
}
.hero-collection::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.hero-collection .hero-label {
  font-size: var(--font-xs);
  opacity: .85;
  margin-bottom: 6px;
  letter-spacing: .1em;
  font-weight: 500;
}
.hero-collection .hero-month {
  font-size: var(--font-xxl);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.collection-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.collection-card {
  border-radius: 14px;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15);
  transition: transform .1s, box-shadow .1s;
  cursor: default;
}
.collection-card.general  { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); }
.collection-card.cardboard{ background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%); }
.collection-card .card-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}
.collection-card .card-type { font-size: var(--font-xs); font-weight: 600; opacity: .95; letter-spacing: .05em; }
.collection-card .card-date { font-size: 34px; font-weight: 700; line-height: 1.1; text-shadow: 0 2px 4px rgba(0,0,0,0.12); }
.collection-card .card-day  { font-size: 16px; opacity: .9; font-weight: 500; }
.hero-note {
  margin-top: 18px;
  font-size: var(--font-xs);
  opacity: .9;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

/* === お知らせカード（押せるカード） === */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.notice-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--white);
  box-shadow: 0 2px 0 var(--border);
  transition: all .15s;
  cursor: pointer;
  position: relative;
}
.notice-card::after {
  content: '▶';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--font-xs);
  color: #ccc;
  transition: color .15s, transform .15s;
}
.notice-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  transform: translateY(-2px);
}
.notice-card:hover::after { color: var(--blue); transform: translateY(-50%) translateX(3px); }
.notice-card:active { transform: translateY(0); box-shadow: 0 1px 0 var(--border); }

.notice-card .notice-badge {
  font-size: var(--font-xs);
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .05em;
}
.badge-important { background: var(--red);    color: white; box-shadow: 0 2px 6px rgba(192,0,0,0.3); }
.badge-info      { background: var(--blue);   color: white; box-shadow: 0 2px 6px rgba(46,117,182,0.3); }
.badge-event     { background: var(--green);  color: white; box-shadow: 0 2px 6px rgba(76,175,80,0.3); }
.badge-other     { background: #888;          color: white; }

.notice-card .notice-body { flex: 1; padding-right: 24px; }
.notice-card .notice-date { font-size: var(--font-xs); color: #888; margin-bottom: 4px; }
.notice-card .notice-title { font-size: var(--font-md); font-weight: 700; color: var(--text); line-height: 1.5; }

/* === クイックリンク（大きなボタン形式） === */
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.quick-link-item {
  background: var(--white);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 14px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all .15s;
  color: var(--text);
  min-height: 120px;
  cursor: pointer;
  /* ボタンらしい立体感 */
  box-shadow: 0 4px 0 var(--border);
  position: relative;
  top: 0;
}
.quick-link-item:hover {
  border-color: var(--blue);
  background: #EEF4FB;
  box-shadow: 0 6px 0 #a7c0d8, var(--shadow);
  text-decoration: none;
  color: var(--navy);
  transform: translateY(-3px);
}
.quick-link-item:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--border);
}
.quick-link-item .ql-icon {
  font-size: 40px;
  line-height: 1;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray);
  border-radius: 16px;
  transition: background .15s;
}
.quick-link-item:hover .ql-icon {
  background: #D4E5F8;
}
.quick-link-item .ql-text { font-size: var(--font-sm); font-weight: 700; line-height: 1.3; }

/* === 表 === */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--font-sm);
  margin: 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.data-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
  font-size: var(--font-sm);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--bg-gray); }
.data-table .td-general  {
  background: #E8F5E0 !important;
  font-weight: 700;
  color: var(--green-dark);
  font-size: calc(var(--font-sm) + 1px);
}
.data-table .td-cardboard{
  background: #FFF0E4 !important;
  font-weight: 700;
  color: var(--orange-dark);
  font-size: calc(var(--font-sm) + 1px);
}
.data-table .td-month    { font-weight: 700; background: #EEF4FB !important; }

/* === 注意ボックス === */
.alert-box {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 18px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: var(--font-sm);
  line-height: 1.8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.alert-box .alert-icon { font-size: 28px; flex-shrink: 0; line-height: 1.5; }
.alert-important { background: #FFF0F0; border-left: 6px solid var(--red); }
.alert-info      { background: #EEF4FB; border-left: 6px solid var(--blue); }
.alert-tip       { background: #F0FAE8; border-left: 6px solid var(--green); }

/* === 連絡先カード（電話ボタン付き） === */
.contact-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.contact-card .contact-name {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* 電話番号 = 押せるボタン */
.contact-card .contact-tel {
  display: block;
  margin: 12px 0;
}
.contact-card .contact-tel a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 0 #132f4a;
  transition: all .12s;
  position: relative;
  top: 0;
  letter-spacing: .03em;
}
.contact-card .contact-tel a::before {
  content: '📞';
  font-size: 22px;
}
.contact-card .contact-tel a:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #1a4a72, 0 6px 16px rgba(0,0,0,0.15);
}
.contact-card .contact-tel a:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #132f4a;
}
.contact-card .contact-info { font-size: var(--font-sm); color: #555; line-height: 1.9; margin-top: 8px; }

/* === ページトップへ（大きめ丸ボタン） === */
.back-to-top {
  position: fixed;
  bottom: 92px;
  right: 20px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
  transition: all .15s;
}
.back-to-top:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.back-to-top:active { transform: translateY(1px); }
.back-to-top.visible { display: flex; }

/* === 印刷ボタン（大きめ・押しやすい） === */
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 24px;
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  margin: 20px 0;
  box-shadow: 0 3px 0 var(--border);
  position: relative;
  top: 0;
}
.print-btn:hover {
  background: #E4EDF8;
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #a7c0d8;
}
.print-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--border); }

/* === 準備中ページ === */
.coming-soon {
  text-align: center;
  padding: 80px 20px;
  color: #888;
}
.coming-soon .cs-icon { font-size: 72px; margin-bottom: 20px; }
.coming-soon .cs-title { font-size: var(--font-xl); font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.coming-soon .cs-text  { font-size: var(--font-md); line-height: 1.9; color: #555; }

/* === 一般ボタン（立体感） === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: var(--font-sm);
  font-weight: 700;
  text-decoration: none;
  transition: all .12s;
  font-family: inherit;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 0 #1a5a8a;
  position: relative;
  top: 0;
  letter-spacing: .03em;
}
.btn-primary:hover {
  background: var(--navy);
  text-decoration: none;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #132f4a, 0 4px 12px rgba(0,0,0,0.15);
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #1a5a8a;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--navy);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: var(--font-sm);
  font-weight: 700;
  text-decoration: none;
  transition: all .12s;
  font-family: inherit;
  border: 3px solid var(--border);
  cursor: pointer;
  box-shadow: 0 3px 0 var(--border);
  position: relative;
  top: 0;
}
.btn-secondary:hover {
  border-color: var(--blue);
  background: #EEF4FB;
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--navy);
}
.btn-secondary:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--border); }

/* === 区切り線 === */
.divider { border: none; border-top: 2px solid var(--border); margin: 32px 0; }

/* === フッター === */
.site-footer {
  background: linear-gradient(135deg, #1a3f5c 0%, var(--navy) 100%);
  color: rgba(255,255,255,.85);
  padding: 32px 20px;
  font-size: var(--font-xs);
  margin-top: 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-site-name { font-size: 18px; font-weight: 700; color: white; margin-bottom: 8px; }
.footer-copy { font-size: var(--font-xs); opacity: .5; margin-top: 10px; }
.footer-contact a { color: rgba(255,255,255,.9); }

/* === 2カラムレイアウト === */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* === レスポンシブ === */
@media (max-width: 768px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  .desktop-nav { display: none; }
  .mobile-nav  { display: block; }
  .back-to-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }

  .main-content {
    padding: 18px 14px 36px;
    border-radius: 0;
  }

  .header-inner { height: 60px; }
  .site-logo .logo-main { font-size: 16px; }
  .font-label { display: none; }
  .font-btn { padding: 5px 10px; }

  .hero-collection { padding: 22px 18px 20px; }
  .hero-collection .hero-month { font-size: 26px; }
  .collection-cards { grid-template-columns: 1fr; gap: 12px; }
  .collection-card .card-date { font-size: 28px; }

  .quick-links { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .quick-link-item { padding: 18px 10px 14px; min-height: 100px; }
  .quick-link-item .ql-icon { font-size: 34px; width: 56px; height: 56px; border-radius: 14px; }

  .section-title { font-size: var(--font-lg); }

  .data-table { font-size: var(--font-xs); }
  .data-table th, .data-table td { padding: 10px 10px; }

  .contact-card .contact-tel a { font-size: 22px; padding: 12px 22px; }

  .grid-2col { grid-template-columns: 1fr; }
  .notice-card { padding: 14px 16px; }

  .footer-inner { flex-direction: column; gap: 16px; }
}

@media (min-width: 769px) {
  .mobile-nav  { display: none; }
  .nav-sheet, .nav-sheet-bg { display: none !important; }
  .desktop-nav { display: block; }
}

/* === 印刷スタイル === */
/* ══════════════════════════════════════════════
   タブの色分け（ページごとの色で「今どこか」を示す）
   ══════════════════════════════════════════════ */

/* 上段タブ：濃い色と、その薄い地色をセットで定義 */
.desktop-nav a[data-page="index.html"]       { --tab:#1F4E79; --tab-bg:#DEE9F3; }
.desktop-nav a[data-page="oshirase.html"]    { --tab:#C2410C; --tab-bg:#FBE5D8; }
.desktop-nav a[data-page="calendar.html"]    { --tab:#0E7490; --tab-bg:#D8EEF3; }
.desktop-nav a[data-page="shigen.html"]      { --tab:#2E7D32; --tab-bg:#DFEFE0; }
.desktop-nav a[data-page="bousai.html"]      { --tab:#B91C1C; --tab-bg:#FADFDF; }
.desktop-nav a[data-page="toiawase.html"]    { --tab:#9D174D; --tab-bg:#F8DDE8; }
.desktop-nav a[data-group="soshiki"]         { --tab:#5B4B85; --tab-bg:#E5E1F0; }
/* 下段タブ */
.sub-nav a[data-page="jichikai.html"]        { --tab:#5B4B85; --tab-bg:#E5E1F0; }
.sub-nav a[data-page="bousai-soshiki.html"]  { --tab:#92400E; --tab-bg:#F4E7D9; }
.sub-nav a[data-page="rijikai.html"]         { --tab:#1E4D8B; --tab-bg:#DFE8F4; }
.sub-nav a[data-page="shiryo.html"]          { --tab:#3F6B4C; --tab-bg:#DFEBE2; }

/* ── 未選択のタブ：薄い色地＋上に太めの色線 ── */
.desktop-nav ul li a {
  background: var(--tab-bg, #E6E0D4);
  color: #2b2b2b;
  border: 2px solid rgba(0,0,0,.10);
  border-bottom: none;
  border-top: 5px solid var(--tab, #cfc6b6);
  box-shadow: none;
  transform: translateY(6px);
  opacity: .82;
  transition: opacity .15s ease, filter .15s ease;
}
.desktop-nav ul li a:hover { opacity: 1; filter: brightness(1.06); }

/* ── 開いているページ：白地・太い色線・色つき文字・ひとまわり大きい ── */
.desktop-nav ul li a.active {
  transition: none;
  background: #ffffff;
  color: var(--tab, var(--navy));
  border-color: #ffffff;
  border-top: 11px solid var(--tab, var(--orange));
  transform: translateY(0);
  opacity: 1;
  font-weight: 800;
  padding-top: 12px;
  padding-bottom: 16px;
  box-shadow: 0 -5px 14px rgba(0,0,0,.18);
  position: relative;
  z-index: 3;
}
/* 鍵つきタブは斜線をやめ、🔒 と色で示す */
.desktop-nav ul li a.has-lock,
.desktop-nav ul li a.has-lock:hover { background: var(--tab-bg); }
.desktop-nav ul li a.has-lock.active { background:#fff; }

/* ── 下段タブも同じ考え方 ── */
.sub-nav { background:#fff; border-bottom: 3px solid var(--page-color, #e0e0e0); }
.sub-nav ul li a {
  background: var(--tab-bg, #f1eef7);
  color: #2b2b2b;
  border: 2px solid rgba(0,0,0,.10);
  border-bottom: none;
  border-top: 4px solid var(--tab, #ded6ea);
  opacity: .85;
  transition: opacity .15s ease, filter .15s ease;
}
.sub-nav ul li a:hover { opacity: 1; filter: brightness(1.05); }
.sub-nav ul li a.active {
  transition: none;
  background:#fff; color: var(--tab); border-color:#fff;
  border-top: 8px solid var(--tab); font-weight: 800;
  padding-bottom: 11px; margin-bottom: -3px; opacity: 1;
}

/* ── ページ本体：上の帯はやめ、見出しを色帯にする ── */
.main-content { border-top: 0; }
h1.section-title {
  background: var(--page-color, var(--navy));
  color: #ffffff;
  border-left: 0;
  border-radius: 10px;
  padding: 14px 20px;
  margin: 4px 0 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
h2.section-title { border-left-color: var(--page-color, var(--blue)); }
.section-subtitle { border-bottom-color: var(--page-color, var(--border)); }
.breadcrumb { border-left: 5px solid var(--page-color, transparent); padding-left: 12px; }

@media (max-width: 900px) {
  .desktop-nav ul li a { border-top-width: 4px; }
  .desktop-nav ul li a.active { border-top-width: 8px; padding-bottom: 12px; }
}
@media print {
  h1.section-title { background: none !important; color: #000 !important; border-left: 4px solid #333; border-radius: 0; padding-left: 8px; }
}

@media print {
  .site-header, .desktop-nav, .mobile-nav, .back-to-top,
  .nav-sheet, .nav-sheet-bg,
  .quick-links, .print-btn, .breadcrumb, .site-footer { display: none !important; }
  body { padding: 0; font-size: 14px; line-height: 1.7; background: white; }
  .main-content { padding: 0; max-width: 100%; box-shadow: none; }
  .section-title { font-size: 18px; border-left: 4px solid #333; padding-left: 8px; margin: 16px 0 8px; }
  .data-table th { background: #333 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .td-general   { background: #d4edbc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .td-cardboard { background: #fde5cb !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .contact-card .contact-tel a { background: none !important; color: #333 !important; box-shadow: none !important; padding: 0 !important; font-size: 18px !important; }
  .contact-card .contact-tel a::before { content: '☎ '; }
  a::after { content: ""; }
}
