/* 株式会社Chibana&Co. 共通スタイル
   色を変えたいときは下の :root の値を変えます */
:root {
  --honey: #f5b335;       /* はちみつ色（ボタン・アクセント） */
  --honey-pale: #fff6df;  /* 淡いはちみつ色の面 */
  --leaf: #2f7a55;        /* 葉っぱの緑（見出し・リンク） */
  --leaf-pale: #e9f5ee;   /* 淡い緑の面 */
  --sky: #e8f4fb;         /* 空色の面 */
  --ink: #2b2a27;         /* 文字色 */
  --muted: #6b6760;       /* 補足の文字 */
  --line: #ece6d8;        /* 線 */
  --white: #fff;
  --radius: 18px;
  --f-body: "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-round: "Zen Maru Gothic", var(--f-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: #fffdf8;
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: .02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); }
h1, h2, h3 { font-family: var(--f-round); line-height: 1.5; margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(780px, 100% - 40px); margin-inline: auto; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; }
.logo-text { font-family: var(--f-round); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em; }
.logo-text small { display: block; font-size: .62rem; font-weight: 500; color: var(--muted); letter-spacing: .08em; line-height: 1.2; }

.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--leaf); }

.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn {
    display: grid; place-items: center;
    width: 44px; height: 44px; border: 0; border-radius: 12px;
    background: var(--honey-pale); color: var(--ink); font-size: 1.3rem; cursor: pointer;
  }
  .nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fffdf8; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px;
  border-radius: 999px; text-decoration: none; font-weight: 700;
  background: var(--honey); color: var(--ink);
  box-shadow: 0 4px 0 #d6922057;
  transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: var(--white); border: 2px solid var(--leaf); color: var(--leaf); box-shadow: none; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, #ffe7a8 0, transparent 45%),
    radial-gradient(circle at 10% 90%, #d9f0e2 0, transparent 45%),
    var(--honey-pale);
  padding: 72px 0 84px;
}
.hero::after { /* はちの巣もよう */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23f5b335' stroke-opacity='.25' stroke-width='1.5'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to left, #000 0, transparent 60%);
  mask-image: linear-gradient(to left, #000 0, transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-label {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: var(--white); color: var(--leaf); font-weight: 700; font-size: .85rem; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.75rem, 5.2vw, 2.9rem); font-weight: 900; margin-bottom: 20px; }
.hero h1 .hl { background: linear-gradient(transparent 62%, #ffd66e 62%); }
.hero p { font-size: clamp(1rem, 2.4vw, 1.1rem); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bee { position: absolute; z-index: 1; width: 64px; right: 8%; top: 22%; animation: fly 6s ease-in-out infinite; }
@keyframes fly { 0%,100% { transform: translate(0,0) rotate(-6deg); } 50% { transform: translate(-14px,-12px) rotate(4deg); } }
@media (max-width: 760px) { .bee { width: 44px; right: 6%; top: 10px; } .hero { padding: 56px 0 64px; } }
@media (prefers-reduced-motion: reduce) { .bee { animation: none; } html { scroll-behavior: auto; } }

/* ---------- セクション ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--leaf-pale); }
.section.sky { background: var(--sky); }
.section.honey { background: var(--honey-pale); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .en { display: block; font-size: .8rem; letter-spacing: .2em; color: var(--honey); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.sec-head h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
.sec-head p { color: var(--muted); margin-top: 12px; }
@media (max-width: 760px) { .section { padding: 56px 0; } .sec-head { margin-bottom: 32px; } }

/* ---------- 事業カード ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .biz-grid { grid-template-columns: 1fr; } }
.biz-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(120, 90, 20, .06);
}
.biz-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 16px; font-size: 2rem; }
.biz-card:nth-child(1) .biz-icon { background: var(--honey-pale); }
.biz-card:nth-child(2) .biz-icon { background: var(--leaf-pale); }
.biz-card:nth-child(3) .biz-icon { background: var(--sky); }
.biz-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.biz-card .tag { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.biz-card p { flex: 1; }
.biz-card .btn { align-self: flex-start; margin-top: 8px; min-height: 48px; padding: 10px 22px; font-size: .95rem; }

/* ---------- 会社概要 ---------- */
.company-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.company-table th, .company-table td { padding: 18px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: 0; }
.company-table th { width: 30%; background: #fffaf0; font-weight: 700; white-space: nowrap; }
.company-table ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 600px) {
  .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { padding-bottom: 6px; border-bottom: 0; }
  .company-table td { padding-top: 6px; }
}

/* ---------- お問い合わせ ---------- */
.contact-box {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
  padding: 36px 28px; text-align: center;
}
.contact-items { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
@media (max-width: 640px) { .contact-items { grid-template-columns: 1fr; } }
.contact-item {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--honey-pale); border-radius: 14px; padding: 18px 16px;
}
.contact-item .k { display: block; font-size: .85rem; color: var(--muted); }
.contact-item .v { display: block; font-size: clamp(1rem, 4.6vw, 1.2rem); font-weight: 700; overflow-wrap: anywhere; }

/* ---------- フッター ---------- */
.site-footer { background: #3a3326; color: #f3eee2; padding: 44px 0 28px; font-size: .92rem; }
.site-footer a { color: #ffe3a1; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-name { font-family: var(--f-round); font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.copy { margin-top: 28px; font-size: .8rem; opacity: .7; text-align: center; }

/* ============ ミツバチインフラのページ ============ */
.page-hero { background: linear-gradient(160deg, var(--honey-pale), var(--leaf-pale)); padding: 64px 0 56px; text-align: center; }
.page-hero .crumb { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.page-hero .crumb a { color: var(--muted); }
.page-hero h1 { font-size: clamp(1.7rem, 5.4vw, 2.7rem); font-weight: 900; margin-bottom: 14px; }
.page-hero .lead { font-size: clamp(1rem, 2.6vw, 1.15rem); max-width: 36em; margin: 0 auto; }

/* 目次（流れ） */
.steps-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; padding: 0; list-style: none; }
.steps-nav a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 8px 16px; border-radius: 999px; background: var(--white); text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: .9rem; border: 1px solid var(--line);
}
.steps-nav .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--honey); font-size: .8rem; }

.chapter-num {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--leaf); font-size: .9rem; margin-bottom: 8px;
}
.chapter-num b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--honey); color: var(--ink); }

.point-list { display: grid; gap: 16px; padding: 0; margin: 28px 0 0; list-style: none; }
.point-list li {
  background: var(--white); border-radius: 16px; padding: 20px 22px 20px 64px; position: relative; border: 1px solid var(--line);
}
.point-list li::before {
  content: attr(data-icon); position: absolute; left: 18px; top: 18px; font-size: 1.6rem; line-height: 1;
}
.point-list li strong { display: block; font-size: 1.08rem; margin-bottom: 4px; font-family: var(--f-round); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.card { background: var(--white); border-radius: 16px; padding: 24px 22px; border: 1px solid var(--line); }
.card .icon { font-size: 2rem; margin-bottom: 8px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { margin: 0; }

.flow { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; counter-reset: f; }
.flow li { position: relative; padding: 0 0 28px 64px; }
.flow li::before {
  counter-increment: f; content: counter(f);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--leaf); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem;
}
.flow li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: #b9dcc7; }
.flow li:last-child::after { display: none; }
.flow li:last-child { padding-bottom: 0; }
.flow h3 { font-size: 1.12rem; margin-bottom: 4px; padding-top: 8px; }
.flow p { margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 28px; }
.stat { background: var(--white); border-radius: 16px; padding: 20px 14px; text-align: center; border: 1px solid var(--line); }
.stat .num { font-family: var(--f-round); font-size: 2.1rem; font-weight: 900; color: var(--leaf); line-height: 1.2; }
.stat .num small { font-size: 1rem; }
.stat .lbl { font-size: .9rem; color: var(--muted); }

.network-figure { margin: 32px auto 0; max-width: 640px; }

.note { font-size: .85rem; color: var(--muted); }

.cta-band { background: var(--leaf); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin-bottom: 12px; }
.cta-band p { opacity: .95; }
.cta-band .btn { margin-top: 12px; }
