/* =========================================================
   Mikke Photo - Common Stylesheet
   Used across all pages
   ========================================================= */

:root {
  --bg: #fafaf7;
  --bg-soft: #f4f3ee;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-mute: #8a8a8a;
  --line: #e6e5df;
  --line-strong: #d4d3cc;

  --accent-green: #c5e685;
  --accent-green-soft: #e8f3d0;
  --accent-green-wash: #f3f9e4;
  --accent-yellow: #f0f08b;
  --accent-yellow-soft: #faf7c9;
  --accent-yellow-wash: #fbfadf;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 0 rgba(26, 26, 26, 0.08);
  --shadow-md: 0 8px 30px rgba(26, 26, 26, 0.06);

  --max: 1200px;
  --max-narrow: 960px;

  --font-body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "M PLUS Rounded 1c", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--max-narrow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo__img {
  height: 56px;
  width: auto;
  display: block;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 700;
  position: relative;
  padding: 6px 2px;
  color: var(--ink-soft);
  transition: color .2s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: 3px;
  background: var(--accent-green);
}
.header-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .15s, background .15s;
}
.header-line-btn:hover { transform: translateY(-1px); background: #000; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  align-items: center; justify-content: center;
  cursor: pointer;
  border: 0;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 18px; height: 2px; background: #fff; border-radius: 2px;
  position: relative;
}
.burger span::before,
.burger span::after {
  content: ""; position: absolute; left: 0;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  z-index: 200;
  padding: 68px 24px max(24px, env(safe-area-inset-bottom));
  transform: translateY(-100%);
  transition: transform .35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  border: 0; cursor: pointer;
  font-size: 20px;
  z-index: 1;
}
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li + li { border-top: 1px dashed var(--line-strong); }
.mobile-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 4px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}
.mobile-menu a .en {
  font-size: 11px; color: var(--ink-mute); letter-spacing: .12em;
}
.mobile-menu__cta {
  display: block;
  margin-top: 24px;
  text-align: center;
  padding: 16px;
  background: var(--accent-green);
  border-radius: 999px;
  font-weight: 800;
}

/* ---------- Section labels & titles ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px; background: var(--ink); border-radius: 2px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 14px 0 0;
}
.section-title .accent-u {
  background: linear-gradient(transparent 62%, var(--accent-yellow) 62%);
  padding: 0 4px;
}
.section-title .accent-g {
  background: linear-gradient(transparent 62%, var(--accent-green) 62%);
  padding: 0 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  letter-spacing: .05em;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--accent-green); }
.btn--line {
  background: var(--accent-green);
  color: var(--ink);
  border-color: var(--ink);
}
.btn--line:hover { box-shadow: 4px 4px 0 var(--ink); background: var(--accent-green); }
.btn--lg { padding: 20px 36px; font-size: 17px; }

/* ---------- Page Hero (for sub pages) ---------- */
.page-hero {
  padding: 80px 0 60px;
  background: var(--accent-yellow-wash);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 260px; height: 260px;
  background: var(--accent-green-soft);
  border-radius: 50%;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 10%; bottom: -60px;
  width: 140px; height: 140px;
  background: var(--accent-yellow);
  border-radius: 50%;
  opacity: .6;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
}
.page-hero__ja {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  margin: 8px 0 0;
  letter-spacing: 0.02em;
}
.page-hero__en {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--ink-soft);
}
.page-hero__lead {
  max-width: 640px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 16px;
  letter-spacing: .05em;
  font-weight: 700;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { opacity: .5; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #ededea;
  padding: 80px 24px 28px;
  margin-top: 120px;
  position: relative;
}
.site-footer__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
}
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: .2em;
  margin: 0 0 18px;
  font-weight: 800;
}
.site-footer p,
.site-footer a { font-size: 13px; color: #b4b3ae; line-height: 2; }
.site-footer a:hover { color: var(--accent-green); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-logo {
  font-size: 24px; font-weight: 800; color: #fff;
  display: inline-flex; align-items: center; gap: 10px;
}
.footer-logo__dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent-green);
}
.footer-desc { margin-top: 12px; max-width: 320px; }
.site-footer__bottom {
  max-width: var(--max);
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8a8985;
  letter-spacing: .1em;
}

/* ---------- Sticky LINE bubble ---------- */
.line-float {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .05em;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  transition: transform .2s;
}
.line-float:hover { transform: translateY(-3px); }
.line-float__dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(197, 230, 133, .9);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(197, 230, 133, 0); }
  100% { box-shadow: 0 0 0 0 rgba(197, 230, 133, 0); }
}

/* ---------- CTA ribbon (sub pages) ---------- */
.cta-ribbon {
  margin: 120px 0 0;
  padding: 0 24px;
}
.cta-ribbon__inner {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--accent-green-soft);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-ribbon__inner::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  background: var(--accent-yellow);
  border-radius: 50%;
  opacity: .55;
}
.cta-ribbon h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin: 8px 0 14px;
  line-height: 1.45;
}
.cta-ribbon p { color: var(--ink-soft); margin: 0 0 8px; }
.cta-ribbon__buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 13px; }
  .header-line-btn { padding: 9px 14px; font-size: 12px; }
}
@media (max-width: 1024px) {
  .site-nav a:not(.header-line-btn) { display: none; }
  .header-line-btn { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-ribbon__inner { grid-template-columns: 1fr; padding: 40px 24px; }
  .site-footer { margin-top: 80px; padding: 60px 24px 28px; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; gap: 8px; }
  .line-float { right: 14px; bottom: 14px; padding: 12px 18px; font-size: 12px; }
  .page-hero { padding: 56px 0 48px; }
}

/* ---------- Utility: reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Placeholder image ---------- */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(26,26,26,.04) 0 10px, rgba(26,26,26,.07) 10px 20px),
    var(--bg-soft);
  display: grid;
  place-items: center;
  color: var(--ink-mute);
  font-family: "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  border-radius: var(--radius-m);
}
