/* ==========================================================================
   LoveLog Official Website Stylesheet (Minimal 5-Section Global Edition)
   ========================================================================== */

:root {
  /* LoveLog Theme Colors */
  --love-theme: #c15e72;
  --love-theme-light: #d87a8c;
  --love-theme-dark: #a04a5c;

  /* Surface Colors */
  --surface-white: #ffffff;
  --surface-blush: #f6eeec;
  --surface-blush-soft: #fbf6f5;
  --surface-predicted: #f5e9e2;
  --surface-border: #eadedd;
  --surface-border-subtle: #efe6e4;

  /* Icon / Data Accent Colors */
  --sex-icon: #f47891;
  --period-icon: #e7bb9f;
  --period-predicted: #d4c4b8;

  /* Text Colors */
  --text-heading: #362529;
  --text-body: #484645;
  --text-muted: #756b6a;

  /* Typography */
  --font-en: "Jost", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Plus Jakarta Sans", "Noto Sans JP", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container-width: 1020px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 8px 28px rgba(61, 38, 44, 0.06);
  --shadow-card-hover: 0 12px 34px rgba(193, 94, 114, 0.12);
  --shadow-preview: 0 18px 48px rgba(61, 38, 44, 0.1);
  --shadow-header: 0 4px 18px rgba(61, 38, 44, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--surface-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

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

.container--narrow {
  max-width: 780px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--surface-border-subtle);
  box-shadow: var(--shadow-header);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-heading);
}

.brand-logo:hover {
  opacity: 0.85;
}

.brand-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.brand-wordmark {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-heading);
  line-height: 1;
}

.brand-wordmark span {
  color: var(--love-theme);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-heading);
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--love-theme);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  background-color: var(--surface-white);
  color: var(--text-heading);
}

.lang-switcher svg {
  color: var(--love-theme);
  flex-shrink: 0;
}

.lang-select {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-heading);
  cursor: pointer;
  outline: none;
}

.header-mobile-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-heading);
}

.mobile-nav-drawer {
  display: none;
  background: var(--surface-white);
  border-top: 1px solid var(--surface-border-subtle);
  padding: 12px 24px 20px;
}

.mobile-nav-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
}

.mobile-nav-list a {
  display: block;
  padding: 12px 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-heading);
  border-bottom: 1px solid var(--surface-border-subtle);
}

/* ==========================================================================
   Hero (2-Column: Copy + Live App Preview Card)
   ========================================================================== */
.hero-section {
  background-color: var(--surface-blush);
  padding: 68px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 600;
  color: var(--love-theme);
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.hero-title em {
  font-style: normal;
}

.hero-lead {
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 14px;
  max-width: 500px;
}

.hero-platforms {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 6px;
  background-color: var(--text-heading);
  color: var(--surface-white);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--text-heading);
}

.btn-primary:hover {
  background-color: var(--love-theme);
  border-color: var(--love-theme);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 6px;
  background-color: var(--surface-white);
  color: var(--text-heading);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
  border-color: var(--love-theme);
  color: var(--love-theme);
}

/* Hero App Window Preview */
.app-preview-window {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-preview);
  overflow: hidden;
}

.preview-topbar {
  background: var(--surface-blush);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--surface-border-subtle);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--period-predicted);
}

.preview-dots span:first-child {
  background: var(--love-theme-light);
}

.preview-title {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.preview-body {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  background: linear-gradient(180deg, var(--surface-blush-soft) 0%, var(--surface-white) 100%);
}

.preview-calendar-pane {
  padding: 18px 16px;
  border-right: 1px solid var(--surface-border-subtle);
}

.preview-side-pane {
  padding: 16px 14px;
  background: #f3ecea;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-side-card {
  background: var(--surface-white);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--surface-border-subtle);
}

/* ==========================================================================
   Common Section Styling
   ========================================================================== */
.section {
  padding: 76px 0;
}

.section--tint {
  background-color: var(--surface-blush-soft);
}

.section-header {
  text-align: left;
  max-width: 680px;
  margin: 0 0 40px;
}

.section-eyebrow {
  font-family: var(--font-en);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.section-title {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 600;
  color: var(--love-theme);
  line-height: 1.35;
}

.section-desc {
  margin-top: 12px;
  font-size: 0.93rem;
  color: var(--text-body);
}

/* ==========================================================================
   Section 1: Features (4 Cards)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.screen-card {
  background-color: var(--surface-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--surface-border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.screen-mockup {
  background: linear-gradient(180deg, var(--surface-blush) 0%, var(--surface-white) 100%);
  padding: 16px 14px;
  border-bottom: 1px solid var(--surface-border-subtle);
  height: 196px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.screen-caption {
  padding: 16px 16px 18px;
  flex: 1;
}

.screen-caption-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.screen-caption-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Mini UI Mockup Primitives */
.ui-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.ui-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.ui-cal-cell {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface-white);
  border: 1px solid var(--surface-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--text-body);
}

.ui-cal-cell.is-sex {
  border-color: var(--sex-icon);
  background: #fff3f6;
  color: var(--love-theme);
  font-weight: 700;
}

.ui-cal-cell.is-period {
  border-color: var(--period-icon);
  background: #fdf6f1;
  color: #9e6b4f;
  font-weight: 700;
}

.ui-cal-cell.is-predicted {
  border: 1px dashed var(--period-predicted);
  background: var(--surface-predicted);
}

.ui-event-pill {
  background: var(--surface-white);
  border-radius: 8px;
  padding: 7px 9px;
  border: 1px solid var(--surface-border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  margin-bottom: 6px;
}

.ui-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ui-stat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 86px;
  padding: 8px 6px 4px;
  background: var(--surface-white);
  border-radius: 8px;
  border: 1px solid var(--surface-border-subtle);
}

.ui-stat-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--love-theme-light);
}

.ui-stat-bar.is-accent {
  background: var(--love-theme);
}

.ui-stat-bar.is-peach {
  background: var(--period-icon);
}

.ui-cycle-box {
  background: var(--surface-white);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid var(--surface-border-subtle);
  text-align: center;
}

.ui-cycle-num {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--love-theme);
  line-height: 1.1;
}

/* ==========================================================================
   Section 2: Privacy (Single Unified Block)
   ========================================================================== */
.privacy-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.privacy-points {
  display: flex;
  flex-direction: column;
}

.privacy-point {
  padding: 16px 0;
  border-top: 1px solid var(--surface-border);
}

.privacy-point:last-child {
  border-bottom: 1px solid var(--surface-border);
}

.privacy-point h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.privacy-point p {
  font-size: 0.89rem;
  color: var(--text-muted);
}

.privacy-diagram-card {
  background-color: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--surface-border-subtle);
}

.diagram-node {
  background-color: var(--surface-blush-soft);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}

.diagram-node-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
}

.diagram-node-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.diagram-arrow {
  text-align: center;
  padding: 10px 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--love-theme);
}

.diagram-badge-safe {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-predicted);
  font-size: 0.8rem;
  color: var(--text-heading);
  text-align: center;
  font-weight: 600;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--love-theme);
}

.inline-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Section 3: Pricing (Centered Clean Table)
   ========================================================================== */
.plan-table-wrap {
  background-color: var(--surface-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.plan-table th,
.plan-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--surface-border-subtle);
  text-align: center;
}

.plan-table th:first-child,
.plan-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-heading);
}

.plan-table thead th {
  background-color: var(--surface-blush-soft);
  font-weight: 700;
  color: var(--text-heading);
  padding: 18px 16px;
}

.plan-table thead th.is-premium {
  background-color: var(--love-theme);
  color: var(--surface-white);
}

.plan-price-sub {
  display: block;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 2px;
}

.plan-table tbody tr:last-child td {
  border-bottom: none;
}

.plan-check {
  color: var(--love-theme);
  font-weight: 700;
  font-size: 1.05rem;
}

.plan-dash {
  color: var(--period-predicted);
}

.plan-note {
  margin-top: 14px;
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 4: FAQ Accordion
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: var(--surface-white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-question:hover {
  background-color: var(--surface-blush-soft);
}

.faq-plus {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--surface-blush);
  color: var(--love-theme);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.faq-item.is-open .faq-plus {
  transform: rotate(45deg);
  background-color: var(--love-theme);
  color: var(--surface-white);
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ==========================================================================
   Minimal Footer
   ========================================================================== */
.site-footer {
  background-color: var(--surface-white);
  border-top: 1px solid var(--surface-border-subtle);
  padding: 40px 0 32px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--surface-border-subtle);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--love-theme);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Subpage (Privacy Policy / Terms)
   ========================================================================== */
.subpage-hero {
  background-color: var(--surface-blush);
  padding: 48px 0;
  border-bottom: 1px solid var(--surface-border-subtle);
}

.subpage-hero h1 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.subpage-hero p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.legal-content {
  padding: 56px 0 80px;
}

.legal-article {
  max-width: 760px;
}

.legal-article h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--surface-border);
}

.legal-article h2:first-child {
  margin-top: 0;
}

.legal-article p,
.legal-article li {
  font-size: 0.93rem;
  margin-bottom: 12px;
}

.legal-article ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 66px;
  }

  .main-nav {
    display: none;
  }

  .header-mobile-actions,
  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-section {
    padding: 44px 0 56px;
  }

  .section {
    padding: 56px 0;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .preview-calendar-pane {
    border-right: none;
    border-bottom: 1px solid var(--surface-border-subtle);
  }
}

@media (max-width: 520px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
