/* ===========================
   SNS風メモ日記 — Developer Website
   =========================== */

:root {
  --accent: #FF3264;
  --accent-dark: #d4194f;
  --text-primary: #0f0f0f;
  --text-secondary: #555;
  --text-muted: #999;
  --bg: #ffffff;
  --bg-secondary: #f8f8fa;
  --bg-card: #ffffff;
  --border: #e8e8ec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.13);
  --font: 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  --max-w: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

section:nth-child(even) {
  background: var(--bg-secondary);
}

/* ── Header / Nav ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── Hero ── */
#hero {
  text-align: center;
  padding: 100px 0 80px;
  background: linear-gradient(160deg, #fff5f8 0%, #fff 50%, #f5f8ff 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 50, 100, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

#hero h1 span {
  color: var(--accent);
}

#hero .hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 50, 100, 0.35);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: #eee;
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--text-primary);
}

.hero-mockup {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.mockup-phone {
  width: 240px;
  border-radius: 36px;
  background: var(--text-primary);
  padding: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2), 0 0 0 2px #222;
  position: relative;
}

.mockup-screen {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9/19;
  display: flex;
  flex-direction: column;
}

.mockup-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mockup-statusbar {
  height: 28px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.mockup-notch {
  width: 80px;
  height: 18px;
  background: var(--text-primary);
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
}

.mockup-content {
  flex: 1;
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-nav {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 4px;
}

.mockup-nav-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mockup-nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
}

.mockup-post {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  gap: 6px;
}

.mockup-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.mockup-post-body {
  flex: 1;
}

.mockup-post-name {
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  width: 50%;
  margin-bottom: 5px;
}

.mockup-post-line {
  height: 5px;
  background: #eee;
  border-radius: 3px;
  margin-bottom: 3px;
}

.mockup-post-line.short {
  width: 60%;
}

.mockup-post-actions {
  display: flex;
  gap: 8px;
  margin-top: 5px;
}

.mockup-action-dot {
  width: 14px;
  height: 10px;
  background: #eee;
  border-radius: 3px;
}

.mockup-fab {
  position: absolute;
  bottom: 28px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(255, 50, 100, 0.5);
}

.mockup-tabbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid #f0f0f0;
  padding: 0 10px;
}

.mockup-tab {
  width: 20px;
  height: 20px;
  background: #e0e0e0;
  border-radius: 4px;
}

.mockup-tab.active {
  background: var(--accent);
}

/* ── Section Titles ── */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.section-header p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 50, 100, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Premium ── */
#premium {
  background: var(--bg-secondary);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 0;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.plan-card.featured {
  border-color: var(--accent);
  border-width: 2px;
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.plan-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 20px;
}

.plan-features {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plan-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.5;
}

/* ── FAQ ── */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

details[open] {
  box-shadow: var(--shadow);
}

summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.15s;
}

summary:hover {
  background: #fafafa;
}

summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 300;
  transition: transform 0.2s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  padding: 0 22px 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

details p:first-of-type {
  padding-top: 16px;
}

/* ── Support / Contact ── */
#support .support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 620px) {
  #support .support-grid {
    grid-template-columns: 1fr;
  }
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.support-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.support-card .email-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.support-card .email-link:hover {
  text-decoration: underline;
}

.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.15s;
}

.link-list li a:hover {
  gap: 12px;
  text-decoration: none;
}

/* ── Footer ── */
footer {
  background: var(--text-primary);
  color: #aaa;
  padding: 48px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-logo span {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  list-style: none;
}

.footer-links a {
  color: #aaa;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-copy {
  font-size: 0.8rem;
  color: #666;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  section {
    padding: 60px 0;
  }

  .nav-links {
    display: none;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.featured {
    order: -1;
  }
}
