@charset "UTF-8";
/* ==========================================================
   給食費システム 詳細ページ専用（kyushoku/01〜05.cfm）
   ========================================================== */

.h1_sys { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 400; color: var(--green-dark); letter-spacing: .08em; }

/* 機能リスト */
.fn_list { max-width: 900px; margin: 0 auto; display: grid; gap: 16px; }
.fn_group {
  display: grid; grid-template-columns: 220px 1fr; gap: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.section_alt .fn_group { background: var(--cream); box-shadow: none; border: 1px solid var(--line); }
.fn_name {
  margin: 0; padding: 20px 20px; background: var(--green-light); color: var(--green-dark);
  font-family: var(--font-head); font-size: 16px; line-height: 1.6;
}
.fn_items { margin: 0; padding: 0; }
.fn_item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-bottom: 1px dashed var(--line);
}
.fn_item:last-child { border-bottom: 0; }
.fn_main { margin: 0; font-size: 15px; line-height: 1.8; }
.fn_note { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: var(--text-sub); }
.fn_sep { border: 0; border-top: 1px dashed var(--line); margin: 10px 0; width: 60px; }
.fn_img { flex: none; }

.fn_caps { max-width: 900px; margin: 20px auto 0; font-size: 13px; color: var(--text-sub); line-height: 1.8; }
.fn_caps p { margin: 0 0 4px; }
.fn_caps_top { margin: 0 auto 20px; }

/* 画像モーダル（CSSのみ） */
.open_btn {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--teal-light); color: #2F7E87; border: 1px solid var(--teal);
  font-size: 13px; line-height: 1.6; cursor: pointer; white-space: nowrap; transition: background .2s;
}
.open_btn:hover { background: var(--teal); color: #fff; }
.modal_wrap input { position: absolute; opacity: 0; pointer-events: none; }
.modal_overlay { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; padding: 16px; }
.modal_wrap input:checked + .modal_overlay { display: flex; }
.modal_bg { position: absolute; inset: 0; background: rgba(46, 58, 34, .6); cursor: pointer; }
.modal_content {
  position: relative; max-width: 1000px; max-height: 90vh; overflow: auto;
  background: #fff; border-radius: var(--radius); padding: 14px 14px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.close_btn_area { text-align: right; margin-bottom: 8px; }
.close_button { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; cursor: pointer; }
.modal_content img { display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* 料金表 */
.price_wrap { max-width: 900px; margin: 0 auto; overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.price_wrap_s { max-width: 560px; }
.price_tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.price_tbl th, .price_tbl td { padding: 14px 16px; border-bottom: 1px dashed var(--line); line-height: 1.6; }
.price_tbl thead th { background: var(--green-dark); color: #fff; border-bottom: 0; text-align: center; white-space: nowrap; }
.price_tbl tbody th { text-align: left; background: var(--green-light); color: var(--green-dark); min-width: 170px; }
.price_tbl td { text-align: right; white-space: nowrap; }
.price_tbl tbody tr:last-child th, .price_tbl tbody tr:last-child td { border-bottom: 0; }
.price_tbl .total th, .price_tbl .total td { background: var(--lime); font-weight: 700; color: var(--text); font-size: 15px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 720px) {
  .fn_group { grid-template-columns: 1fr; }
  .fn_name { padding: 12px 18px; }
  .fn_item { flex-direction: column; gap: 10px; padding: 14px 18px; }
  .price_tbl th, .price_tbl td { padding: 12px; }
  .price_tbl tbody th { min-width: 140px; }
}
