@charset "UTF-8";
/* ==========================================================
   i-Tools 共通スタイル（トップ・展開ページ共用）
   基本色：グリーン #82B140 / ティール #5AB4BD / ライム #E8F593
   ========================================================== */

:root {
  --green: #82B140;
  --green-dark: #5E8A24;
  --green-light: #DEF2C2;
  --lime: #E8F593;
  --teal: #5AB4BD;
  --teal-light: #DDF1F3;
  --cream: #FBFDF4;
  --peach: #FFE9D6;
  --text: #2E3A22;
  --text-sub: #5F6B52;
  --line: #D5E3BC;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(94, 138, 36, .12);
  --font-head: a-otf-jun-pro, "YakuHanJP", "Hiragino Maru Gothic ProN", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "YakuHanJP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  /* フッターを常にページ最下部へ（内容が短くても下に空白を作らない） */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
main { flex: 1 0 auto; }

img { max-width: 100%; vertical-align: bottom; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ---------- ヘッダー ---------- */
.site_header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 253, 244, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site_header.is_scrolled { box-shadow: 0 4px 16px rgba(94, 138, 36, .15); }

.header_flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--green-dark);
}
.logo_mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--green);
  border-radius: 0 70% 0 70%;
  transform: rotate(-8deg);
}
.logo small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-sub);
  margin-left: 4px;
}

.gnav ul { display: flex; align-items: center; gap: 28px; }
.gnav a { font-size: 14px; position: relative; padding: 4px 0; }
.gnav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .3s;
}
.gnav a:hover::after { width: 100%; }
.gnav .nav_btn {
  padding: 8px 20px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  transition: background .3s, transform .3s;
}
.gnav .nav_btn::after { display: none; }
.gnav .nav_btn:hover { background: var(--green-dark); transform: translateY(-2px); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is_open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is_open span:nth-child(2) { opacity: 0; }
.burger.is_open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid var(--green);
  transition: transform .3s, background .3s, color .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn_main { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(130, 177, 64, .35); }
.btn_main:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn_sub { background: #fff; color: var(--green-dark); }
.btn_sub:hover { background: var(--green-light); }


/* ---------- セクション共通 ---------- */
.section { padding: 84px 0; }
.section_alt { background: #fff; }

.sec_head { text-align: center; margin-bottom: 48px; }
.sec_head .en {
  display: block;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--green);
  font-weight: 700;
}
.sec_head h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.5;
  margin-top: 4px;
}
.sec_head p { margin-top: 12px; color: var(--text-sub); }


/* ---------- CTA ---------- */
.cta {
  margin: 0 5% 84px;
  padding: 56px 24px;
  background: linear-gradient(135deg, var(--green) 0, var(--teal) 100%);
  border-radius: 32px;
  text-align: center;
  color: #fff;
}
.cta h2 { font-family: var(--font-head); font-size: clamp(22px, 4vw, 30px); line-height: 1.6; }
.cta p { margin: 12px 0 28px; opacity: .95; }
.cta .btn { background: #fff; color: var(--green-dark); border-color: #fff; }
.cta .btn:hover { background: var(--lime); border-color: var(--lime); }

/* ---------- フッター ---------- */
.site_footer { margin-top: auto; background: var(--lime); padding: 36px 0 24px; text-align: center; }
.site_footer .logo { justify-content: center; margin-bottom: 10px; }
.site_footer ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 14px; font-size: 14px; }
.site_footer small { font-size: 12px; color: var(--text-sub); }

/* ---------- ページトップ ---------- */
.to_top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.to_top.is_show { opacity: 1; pointer-events: auto; }
.to_top:hover { transform: translateY(-4px); }

/* ---------- ふわっと表示 ---------- */
.fade { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.fade.is_in { opacity: 1; transform: none; }


.page_hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(circle at 90% 10%, var(--lime) 0, transparent 40%),
    var(--cream);
}
.breadcrumb { margin-bottom: 20px; font-size: 13px; color: var(--text-sub); }
.breadcrumb a { color: var(--green-dark); border-bottom: 1px solid var(--line); }
.breadcrumb span { margin: 0 6px; }
.page_hero h1 { font-family: var(--font-head); font-size: clamp(26px, 5vw, 42px); line-height: 1.5; }
.page_hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--lime) 62%); }
.page_hero .lead { max-width: 600px; margin-top: 16px; color: var(--text-sub); }


.back_link { margin-top: 40px; text-align: center; }


.tbl_wrap { max-width: 900px; margin: 0 auto; overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px dashed var(--line); line-height: 1.7; }
.tbl thead th { background: var(--green-dark); color: #fff; border-bottom: 0; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody td:first-child { font-weight: 700; white-space: nowrap; }
.tbl_hl td { background: var(--lime); font-weight: 700; }
.tbl_2col th { width: 26%; background: var(--green-light); color: var(--green-dark); white-space: nowrap; }
.tbl_2col td { font-weight: 400 !important; white-space: normal !important; }


.red { color: #D2503C; }

/* ページ内目次 */
.page_toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.page_toc a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px 8px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 14px; transition: background .2s;
}
.page_toc a:hover { background: var(--green-light); }
.page_toc b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 13px;
}


/* ---------- 共通部品：AIカード・バッジ（トップとAIページ） ---------- */
.ai_cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
.ai_card {
  position: relative;
  display: block;
  padding: 32px 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s, background .3s;
}
.ai_card h3 { font-family: var(--font-head); font-size: 20px; margin: 10px 0 8px; }
.ai_card p { font-size: 14px; color: var(--text-sub); }
.ai_card .go { display: block; margin-top: 14px; color: var(--green-dark); font-weight: 700; font-size: 14px; }
.ai_card_soon { border-style: dashed; box-shadow: none; background: var(--cream); }
.badge {
  display: inline-block;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge_on { background: var(--green); color: #fff; }
.badge_soon { background: var(--peach); color: #C0602A; }

/* ---------- 共通部品：3つの柱（給食費目次とAIページ） ---------- */
.pillar_list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  padding: 32px 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 6px solid var(--green);
}
.pillar:nth-child(2) { border-top-color: var(--teal); }
.pillar:nth-child(3) { border-top-color: #F4B183; }
.pillar h3 { font-family: var(--font-head); font-size: 20px; margin-bottom: 8px; }
.pillar p { font-size: 14px; color: var(--text-sub); }

/* ---------- スマホ・タブレット ---------- */
@media (max-width: 800px) {
  .burger { display: block; }
  .gnav {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s;
  }
  .gnav.is_open { max-height: 420px; }
  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 5% 20px; }
  .gnav li a { display: block; padding: 14px 4px; border-bottom: 1px dashed var(--line); }
  .gnav .nav_btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .section { padding: 60px 0; }
  .pillar_list, .ai_cards { grid-template-columns: 1fr; }
  .cta { margin: 0 4% 60px; }
}

/* 共通ヘッダー・フッターの差し込み枠（枠自体はレイアウトに影響させない） */
#header, #footer { display: contents; }
