/* ============================================================
   common.css — はこだてKids 共通スタイル
   ヘッダー / フッター / モバイルパネル / CSS変数 / リセット
   ============================================================ */

/* ── リセット ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Kiwi Maru", serif;
  font-weight: 500;
  background: #FFFDF8;
  color: #2D2D2D;
  font-size: 22px;
  line-height: 1.7;
}
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul  { list-style: none; }

.kiwi-maru-regular {
  font-family: "Kiwi Maru", serif;
  font-weight: 400;
  font-style: normal;
}

.kiwi-maru-medium {
  font-family: "Kiwi Maru", serif;
  font-weight: 500;
  font-style: normal;
}

.hina-mincho-regular {
  font-family: "Hina Mincho", serif;
  font-weight: 400;
  font-style: normal;
}
.zen-maru-gothic-regular {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.zen-maru-gothic-bold {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.zen-maru-gothic-black {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 900;
  font-style: normal;
}



/* ── CSS 変数 ── */
:root {
  --coral:   #FF6B6B;
  --coral-d: #E85555;
  --orange:  #FF9F43;
  --yellow:  #FECA57;
  --yellow-d:#F0B830;
  --pink:    #FFF0F0;
  --peach:   #FFF6EE;
  --bg:      #FFFDF8;
  --white:   #FFFFFF;
  --gray1:   #F5F0EB;
  --gray2:   #E8DDD4;
  --gray3:   #9E8E80;
  --text:    #2D2D2D;
  --text2:   #5A4F47;
  --green:   #26de81;
  --purple:  #764ba2;
  --purple-l:#667eea;
  --radius:  16px;
  --shadow:  0 4px 20px rgba(255,107,107,0.12);
  --max:     1160px;
}

/* ── レイアウト ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }

/* ── 共通ボタン ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  border: none; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--orange));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255,107,107,0.35);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(255,107,107,0.45); }
.btn-outline {
  background: var(--white);
  color: var(--coral);
  border: 2px solid var(--coral);
}
.btn-yellow {
  background: var(--yellow);
  color: #6B4C00;
  box-shadow: 0 4px 16px rgba(254,202,87,0.4);
}
.btn-white          { background: var(--white); color: var(--coral); font-weight: 700; }
.btn-outline-white  { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  background: var(--coral-d);
  border-bottom: 3px solid var(--yellow);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 90px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0; overflow: hidden;
}
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.brand-title { font-size: 18px; font-weight: 900; color: var(--coral); letter-spacing: -0.5px; }
.brand-sub   { font-size: 11px; color: var(--yellow); }

.global-nav { display: flex; align-items: center; gap: 4px; }
.global-nav a {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 14px; border-radius: 999px;
  font-size: clamp(13px, 1.6vw, 20px); font-weight: 600; color: var(--white);
  transition: background .2s, color .2s;
  white-space:nowrap;
}
.global-nav a:hover,
.global-nav a.active { background: var(--pink); color: var(--coral); }

.header-tools { display: flex; align-items: center; gap: 10px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray1); border-radius: 999px;
  padding: 8px 16px;
  border: 2px solid transparent; transition: border-color .2s;
}
.search-box:focus-within { border-color: var(--coral); }
.search-box input {
  border: none; background: none; outline: none;
  font-size: 13px; font-family: inherit; width: 140px; color: var(--text);
}
.search-box input::placeholder { color: var(--gray3); }

.menu-toggle {
  display: none; background: var(--gray1); border: none;
  border-radius: 10px; cursor: pointer; padding: 8px;
  align-items: center; justify-content: center;
}

/* ============================================================
   モバイルパネル
   ============================================================ */
.mobile-panel { display: none; position: fixed; inset: 0; z-index: 1100; }
.mobile-panel.open { display: block; }
.mobile-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.mobile-drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: 280px;
  background: var(--white); padding: 20px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.mobile-close {
  align-self: flex-end; background: var(--gray1); border: none;
  border-radius: 8px; padding: 8px 12px; cursor: pointer;
  font-size: 16px; margin-bottom: 8px; font-family: inherit;
}
.mobile-drawer a {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 12px;
  font-size: 15px; font-weight: 600; transition: background .15s;
}
.mobile-drawer a:hover,
.mobile-drawer a.active { background: var(--pink); color: var(--coral); }
.mobile-drawer hr { border: none; border-top: 1px solid var(--gray2); margin: 6px 0; }

/* ============================================================
   フッター
   ============================================================ */
.site-footer { background: #f4f3f3; color: var(--gray2); padding: 56px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand .brand-title { color: var(--yellow); }
.footer-brand .brand-sub   { color: var(--coral-d); }
.footer-brand-desc {
  font-size: 13px; color: rgba(40, 40, 40, 1);
  margin-top: 16px; margin-left: 16px; line-height: 1.8;
}
.footer-col-title {
  font-size: 16px; font-weight: 700; color: var(--coral-d);
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgb(40, 40, 40); transition: color .15s; }
.footer-links a:hover { color: var(--purple); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(0, 0, 0, 1);
  flex-wrap: wrap; gap: 8px;
}

/* ============================================================
   レスポンシブ（ヘッダー・フッター共通）
   ============================================================ */
@media (max-width: 950px) {
  /* ヘッダーナビ：文字が背景からはみ出ないようにパディング縮小 */
  .global-nav a {
    padding: 5px 9px;
    font-size: 13px;
  }
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .global-nav  { display: none; }
  .search-box  { display: none; }
  .menu-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
}
