/* miggy — public site styles (dark Liquid Glass) */
:root {
  --bg: #0d0d0f;
  --bg-elev: #17171b;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #f2f2f5;
  --text-dim: #a5a5b0;
  --accent: #7aa2ff;
  --accent-2: #c58bff;
  --radius: 20px;
  --maxw: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(122, 162, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(197, 139, 255, 0.14), transparent 55%),
    var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  background: rgba(13, 13, 15, 0.6);
  border-bottom: 1px solid var(--glass-border);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.3px;
  color: var(--text);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav a.navlink { color: var(--text-dim); font-size: 14px; }
.nav a.navlink:hover { color: var(--text); text-decoration: none; }
.nav .spacer { flex: 1; }
.lang { font-size: 13px; color: var(--text-dim); }
.lang a { color: var(--text-dim); }
.lang a.active { color: var(--text); font-weight: 600; }

/* Layout */
main { max-width: var(--maxw); margin: 0 auto; padding: 32px 20px 80px; }

.hero {
  text-align: center;
  padding: 72px 20px 40px;
}
.hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  margin: 0 0 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { color: var(--text-dim); font-size: clamp(16px, 2.4vw, 20px); max-width: 620px; margin: 0 auto; }

/* Glass cards */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 18px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 28px 0; }
.grid .card { margin: 0; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-dim); font-size: 15px; }
.emoji { font-size: 30px; display: block; margin-bottom: 10px; }

/* Content (legal) */
.content h1 { font-size: clamp(26px, 5vw, 36px); margin-top: 8px; }
.content h2 { font-size: 22px; margin-top: 36px; border-bottom: 1px solid var(--glass-border); padding-bottom: 8px; }
.content h3 { font-size: 17px; margin-top: 24px; }
.content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.content th, .content td { border: 1px solid var(--glass-border); padding: 8px 10px; text-align: left; vertical-align: top; }
.content th { background: var(--glass); }
.content code { background: var(--bg-elev); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.meta { color: var(--text-dim); font-size: 14px; }

/* Placeholder markers (to fill before go-live) */
.ph { background: rgba(197, 139, 255, 0.22); color: #f2e8ff; padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }

.note {
  border-left: 3px solid var(--accent-2);
  background: rgba(197, 139, 255, 0.08);
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 14px;
  margin: 18px 0;
}

/* Buttons */
.btn-row { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #0d0d0f; border: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 28px 20px;
  color: var(--text-dim);
  font-size: 13px;
}
.foot-inner { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot-inner .spacer { flex: 1; }
.foot-inner a { color: var(--text-dim); }

/* Landing (icon + tagline only) */
body.landing {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
  gap: 36px;
}
/* iOS アプリ風のリキッドグラス アイコン(白枠込み・角丸スクエア) */
.app-icon {
  width: clamp(160px, 42vw, 248px);
  height: auto;
  border-radius: 22.37%; /* iOS squircle 近似 */
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: icon-in 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes icon-in {
  from { opacity: 0; transform: scale(0.9) translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* aloha と同じ筆記体(Sacramento) */
@font-face {
  font-family: "Sacramento";
  src: url("assets/Sacramento-Regular.ttf") format("truetype");
  font-display: swap;
}
.tagline-script {
  margin: 0;
  font-family: "Sacramento", cursive;
  font-weight: 400;
  font-size: clamp(44px, 10vw, 104px);
  line-height: 1.08;
  color: #f5f1ea;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.tagline-sub {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: clamp(14px, 2.6vw, 19px);
  font-weight: 500;
  letter-spacing: 0.3px;
}
/* 旧ミニマル(bold)タグライン。念のため残置 */
.tagline {
  margin: 0;
  font-size: clamp(30px, 6.5vw, 56px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.2px;
  color: var(--text);
}
.landing-footer {
  padding: 24px 20px 32px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
.landing-footer a { color: var(--text-dim); }
.landing-footer a:hover { color: var(--text); text-decoration: none; }
.landing-footer .dot { margin: 0 8px; opacity: 0.5; }

/* ストア誘導バッジ(iOS/Android)。未リリースのため既定は非活性(.is-disabled)。 */
.store-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.store-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px;
  min-width: 176px;
  border-radius: 13px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.store-badge svg { flex: none; }
.store-badge .b-small { font-size: 10px; line-height: 1.1; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.3px; }
.store-badge .b-big { font-size: 18px; font-weight: 600; line-height: 1.15; }
/* 非活性(未リリース) */
.store-badge.is-disabled {
  opacity: 0.4;
  filter: grayscale(0.35);
  cursor: not-allowed;
  pointer-events: none;
}
