/* ============================================================
   ラジオファクトリー — common.css
   ブランド: 電波工場 / フレンドリー・クラフト
   オレンジ #FF6B35 × ペーパーホワイト × 丸ゴシック
   ============================================================ */

:root {
  /* Brand colors */
  --orange: #FF6B35;
  --orange-dark: #E8551E;
  --orange-soft: #FFEDE3;
  --ink: #1F2933;
  --ink-soft: #52606D;
  --ink-mute: #8A97A3;
  --paper: #FFF8F0;
  --paper-2: #FFFFFF;
  --line-edge: #EFE6DA;
  --yellow: #FFC94D;
  --mint: #3DBE8B;
  --mint-soft: #E4F6EE;
  --line-green: #06C755;
  --line-green-dark: #05b34c;
  --red: #E5484D;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(31,41,51,.06);
  --shadow: 0 10px 30px rgba(31,41,51,.08);
  --shadow-lg: 0 24px 60px rgba(31,41,51,.12);
  --shadow-orange: 0 12px 28px rgba(255,107,53,.30);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1120px;

  --serif: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  --sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

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

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Subtle dotted texture utility */
.dotbg {
  background-image: radial-gradient(var(--line-edge) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}

/* ===== Containers / section rhythm ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { position: relative; }
.sec-pad { padding: 84px 22px; }

.sec-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--serif); font-weight: 700; font-size: .8rem;
  color: var(--orange); background: var(--orange-soft);
  padding: 6px 15px; border-radius: 999px; letter-spacing: .04em;
}
.sec-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.55rem, 4.4vw, 2.4rem); line-height: 1.45;
  margin: 16px 0 8px; letter-spacing: .01em;
}
.sec-lead { color: var(--ink-soft); font-size: 1rem; max-width: 640px; }
.tac { text-align: center; }
.tac .sec-lead { margin-left: auto; margin-right: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--serif); font-weight: 700; font-size: 1rem;
  padding: 15px 28px; border-radius: 999px; line-height: 1.2;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

.btn-line { background: var(--line-green); color: #fff; box-shadow: 0 10px 24px rgba(6,199,85,.28); }
.btn-line:hover { background: var(--line-green-dark); transform: translateY(-2px); }

.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--line-edge); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 24px rgba(255,201,77,.35); }
.btn-yellow:hover { transform: translateY(-2px); }

.btn-lg { padding: 18px 36px; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

/* ===== Chips / badges ===== */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 500; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line-edge);
  padding: 5px 12px; border-radius: 999px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--serif); font-weight: 700; font-size: .82rem;
  padding: 7px 14px; border-radius: 999px;
}
.badge-orange { background: var(--orange); color: #fff; }
.badge-yellow { background: var(--yellow); color: var(--ink); }
.badge-mint { background: var(--mint); color: #fff; }

/* ===== NAV ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; background: rgba(255,248,240,.85);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
nav.scrolled { border-bottom-color: var(--line-edge); box-shadow: var(--shadow-sm); }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.18rem; letter-spacing: .01em; }
.brand-name b { color: var(--orange); }
.brand-sub { font-size: .64rem; color: var(--ink-mute); letter-spacing: .14em; font-weight: 500; }

.nav-center { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-center a {
  display: block; padding: 9px 14px; border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--ink-soft); transition: .18s;
}
.nav-center a:hover { color: var(--orange); background: var(--orange-soft); }
.nav-center .nav-cta { color: #fff; background: var(--orange); font-weight: 700; }
.nav-center .nav-cta:hover { background: var(--orange-dark); color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.drawer-overlay {
  position: fixed; inset: 0; background: rgba(31,41,51,.45);
  opacity: 0; visibility: hidden; transition: .25s; z-index: 99;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100%;
  background: var(--paper-2); z-index: 100; padding: 88px 24px 32px;
  display: flex; flex-direction: column; gap: 4px; transition: right .3s ease;
  box-shadow: var(--shadow-lg);
}
.mobile-drawer.open { right: 0; }
.mobile-drawer a {
  padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; color: var(--ink-soft);
}
.mobile-drawer a:hover { background: var(--orange-soft); color: var(--orange); }
.mobile-drawer .drawer-cta { background: var(--orange); color: #fff; font-weight: 700; text-align: center; margin-top: 8px; }
.mobile-drawer .drawer-line { background: var(--line-green); color: #fff; font-weight: 700; text-align: center; }

/* ===== FOOTER ===== */
footer { background: var(--ink); color: #cfd8e0; padding: 56px 22px 28px; }
.footer-top {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.footer-brand .brand-name { color: #fff; }
.footer-tagline { margin-top: 10px; font-size: .9rem; color: var(--ink-mute); max-width: 260px; line-height: 1.7; }
.footer-col h4 { font-family: var(--serif); font-size: .92rem; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: .88rem; color: #aeb8c2; transition: .15s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  max-width: var(--maxw); margin: 36px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: .8rem; color: var(--ink-mute);
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; right: 20px; bottom: 22px; width: 48px; height: 48px;
  background: var(--orange); border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--shadow-orange); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: .25s; z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; }

/* ===== Floating LINE button (mobile) ===== */
.fab-line {
  position: fixed; left: 20px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--line-green); color: #fff; font-family: var(--serif); font-weight: 700;
  font-size: .9rem; padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(6,199,85,.35); transition: transform .15s;
}
.fab-line:hover { transform: translateY(-2px); }

/* ===== fade-in ===== */
.fade { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.fade.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .nav-center { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sec-pad { padding: 60px 18px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .fab-line { font-size: .82rem; padding: 11px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .fade { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
