/* TuneFerry website common stylesheet */

:root {
  --bg: #0a0e14;
  --bg-elev: #131a23;
  --bg-card: #1b242f;
  --text: #e8edf2;
  --text-mute: #8b96a3;
  --text-dim: #5a6470;
  --accent: #4f9dff;
  --accent-soft: rgba(79, 157, 255, 0.18);
  --warn: #ff9f43;
  --line: rgba(255, 255, 255, 0.08);
  --max-width: 1080px;
  --radius: 14px;
  --radius-sm: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
    'Yu Gothic Medium', 'Yu Gothic', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

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

img { max-width: 100%; display: block; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}
.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.nav a { color: var(--text-mute); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero — 左右 2 カラム (左: コピー、右: デバイスフレーム) */
.hero {
  padding: 64px 0 64px;
  background:
    radial-gradient(80% 60% at 0% 10%, rgba(79, 157, 255, 0.14), transparent 60%),
    radial-gradient(80% 70% at 100% 0%, rgba(255, 159, 67, 0.08), transparent 60%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.hero__copy {
  text-align: left;
}
.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  margin: 0 0 22px;
  box-shadow: 0 12px 48px rgba(79, 157, 255, 0.35);
}
.hero h1 {
  font-size: 56px;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
  font-weight: 800;
  line-height: 1.05;
}
.hero .tagline {
  color: var(--text-mute);
  font-size: 17px;
  margin: 0 0 14px;
  line-height: 1.7;
  max-width: 520px;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero__meta .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-mute);
}
.hero__meta .chip strong { color: var(--text); }
.hero__meta .chip .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__visual .device-frame {
  max-width: 280px;
  transform: rotate(-2.5deg);
  transition: transform 0.4s ease;
}
.hero__visual .device-frame:hover {
  transform: rotate(0deg) scale(1.02);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: #66adff; text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--bg-elev); text-decoration: none; }
.btn:active { transform: scale(0.97); }

/* Sections */
section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
section h2 {
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
section .lede {
  color: var(--text-mute);
  font-size: 16px;
  max-width: 680px;
  margin: 0 0 36px;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.feature p {
  margin: 0;
  color: var(--text-mute);
  font-size: 14px;
}

/* Screenshots — 旧 thumbnail グリッド (プレスキットで使用) */
.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.screen {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.screen img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.screen .caption {
  font-size: 13px;
  color: var(--text-mute);
}

/* Showcase — 機能ごと左右交互の大きいスクリーンショット (LP) */
.showcase {
  display: grid;
  gap: 96px;
  margin-top: 24px;
}
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.showcase-row.reverse .showcase-visual {
  order: 2;
}
.showcase-visual {
  display: flex;
  justify-content: center;
}
.showcase-copy .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.showcase-copy h3 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.25;
}
.showcase-copy p {
  margin: 0 0 12px;
  color: var(--text-mute);
  font-size: 16px;
  line-height: 1.75;
}
.showcase-copy ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.8;
}
.showcase-copy ul li::marker { color: var(--accent); }

/* iPhone デバイスフレーム */
.device-frame {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 9 / 19.5;
  border-radius: 48px;
  background: linear-gradient(160deg, #2a313c 0%, #181c25 50%, #2a313c 100%);
  padding: 12px;
  box-shadow:
    0 36px 72px rgba(0, 0, 0, 0.55),
    0 12px 28px rgba(79, 157, 255, 0.12),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.05),
    inset 0 0 0 4px rgba(0, 0, 0, 0.6);
}
.device-frame::before {
  /* Dynamic Island */
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 32px;
  background: #000;
  border-radius: 18px;
  z-index: 3;
}
.device-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
  display: block;
  position: relative;
  z-index: 1;
}
.device-frame::after {
  /* 内側の境界線で締まりを出す */
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 38px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 2;
}

/* showcase 用フローティングタイトル/タグ (任意) */
.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.showcase-tags span {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
}

/* Phase progress */
.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.phase {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.phase .badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.badge.done { background: rgba(75, 211, 124, 0.18); color: #4bd37c; }
.badge.partial { background: rgba(255, 159, 67, 0.18); color: var(--warn); }
.phase h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.phase p {
  margin: 0;
  font-size: 13px;
  color: var(--text-mute);
}

/* Spec table */
.spec {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 24px;
}
.spec dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  margin: 0;
}
.spec dt {
  padding: 14px 0;
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--line);
}
.spec dt:first-of-type, .spec dt:first-of-type + dd { border-top: 0; }
.spec dd {
  padding: 14px 0;
  margin: 0;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
}

/* Press kit list */
.kit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
}
.kit-list li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.kit-list li h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}
.kit-list li p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-mute);
}
.kit-list li a {
  font-size: 13px;
  font-weight: 600;
}

/* Footer — 4 カラム + 下段クレジット */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  color: var(--text-mute);
  font-size: 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(79, 157, 255, 0.03) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 8px;
  font-size: 13px;
}
.footer-col a {
  color: var(--text-mute);
}
.footer-col a:hover {
  color: var(--text);
  text-decoration: none;
}
.footer-tagline {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.65;
  max-width: 320px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-status .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #4bd37c;
  box-shadow: 0 0 0 3px rgba(75, 211, 124, 0.18);
}
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 920px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero__copy { text-align: center; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
  .hero__meta { justify-content: center; }
  .hero__visual .device-frame { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .showcase { gap: 72px; }
  .showcase-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .showcase-row.reverse .showcase-visual { order: 0; }
  .showcase-copy { text-align: center; }
  .showcase-copy ul { display: inline-block; text-align: left; }
}

@media (max-width: 720px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 38px; }
  .hero .tagline { font-size: 16px; }
  section { padding: 56px 0; }
  section h2 { font-size: 26px; }
  .spec dl { grid-template-columns: 1fr; }
  .spec dt { padding-bottom: 4px; }
  .spec dd { padding-top: 0; border-top: 0; }
  .nav { display: none; }
  .showcase-copy h3 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Legal / Support pages (privacy.html, support.html) */
.legal {
  padding: 64px 0 96px;
}
.legal__inner {
  max-width: 760px;
}
.legal__breadcrumb {
  font-size: 13px;
  color: var(--text-mute);
  margin: 0 0 24px;
}
.legal__breadcrumb a { color: var(--text-mute); }
.legal__breadcrumb a:hover { color: var(--accent); }
.legal h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.legal__updated {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 40px;
}
.legal section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.legal section:first-of-type { border-top: 0; padding-top: 0; }
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}
.legal h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
}
.legal p, .legal li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-mute);
}
.legal ul {
  padding-left: 1.4em;
  margin: 8px 0 16px;
}
.legal strong { color: var(--text); font-weight: 600; }

@media (max-width: 720px) {
  .legal { padding: 40px 0 64px; }
  .legal h1 { font-size: 28px; }
  .legal h2 { font-size: 18px; }
  .legal p, .legal li { font-size: 14px; line-height: 1.8; }
}
