@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ============================================
   THEMES
   ============================================ */
.theme-camble {
  --bg: #f7f6f2; --fg: #111; --muted: #6b6b6b;
  --line: rgba(0,0,0,0.08); --hover: rgba(0,0,0,0.05);
  --header-bg: rgba(247,246,242,0.82); --panel: #fff;
  --accent: #111; --brand-dot: #FF6B6B;
}
.theme-toppod {
  --bg: #000; --fg: #fff; --muted: #a1a1aa;
  --line: rgba(255,255,255,0.1); --hover: rgba(255,255,255,0.07);
  --header-bg: rgba(0,0,0,0.72); --panel: #111114;
  --accent: #8B5CF6; --brand-dot: #8B5CF6;
}
.theme-left {
  --bg: #14121f; --fg: #fff; --muted: #b3a9d1;
  --line: rgba(255,255,255,0.1); --hover: rgba(255,255,255,0.07);
  --header-bg: rgba(20,18,31,0.72); --panel: #1d1930;
  --accent: #FFA36B; --brand-dot: #FFA36B;
  background: linear-gradient(160deg, #14121f 0%, #211c3a 55%, #2c1f4a 100%) fixed;
}
.theme-tellmee {
  --bg: #fff; --fg: #000; --muted: #777;
  --line: rgba(0,0,0,0.08); --hover: rgba(0,0,0,0.05);
  --header-bg: rgba(255,255,255,0.82); --panel: #fff;
  --accent: #000; --brand-dot: #000;
}
.theme-timeline {
  --bg: #000; --fg: #fff; --muted: #999;
  --line: rgba(255,255,255,0.1); --hover: rgba(255,255,255,0.07);
  --header-bg: rgba(0,0,0,0.72); --panel: #111;
  --accent: #fff; --brand-dot: #fff;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-decoration: none;
  color: var(--fg);
}
.brand .dot { color: var(--brand-dot); }

.nav { display: flex; align-items: center; gap: 0.25rem; }

.nav-link {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover,
.nav-link.current,
.nav-link[aria-expanded="true"] {
  color: var(--fg);
  background: var(--hover);
}

.caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
}
.nav-link[aria-expanded="true"] .caret { transform: translateY(1px) rotate(225deg); }

/* Apps dropdown */
.apps-menu { position: relative; }

.apps-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 340px;
  padding: 0.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.apps-menu.open .apps-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.dd-item:hover, .dd-item.current { background: var(--hover); }
.dd-item strong { display: block; font-size: 1rem; font-weight: 700; color: var(--fg); line-height: 1.3; }
.dd-item small { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.3; }

.dd-all {
  display: block;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.dd-all:hover { color: var(--fg); }

/* App icons (shared by dropdown and cards) */
/* App icon images (500x500 PNGs, scaled down). Corner radius ≈ iOS app icon. */
.app-icon {
  flex-shrink: 0;
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 22.5%;
  object-fit: cover;
  /* hairline edge so white or black icons don't melt into the background */
  outline: 1px solid rgba(128, 128, 128, 0.22);
  outline-offset: -1px;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.app-icon-xl {
  width: 88px;
  height: 88px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.theme-toppod .app-icon-xl { box-shadow: 0 10px 40px rgba(139,92,246,0.35); }
.theme-left .app-icon-xl   { box-shadow: 0 10px 40px rgba(255,140,90,0.3); }
.theme-tellmee .app-icon-xl { box-shadow: 0 10px 30px rgba(0,0,0,0.12); }

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 1.05rem 2.4rem;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: scale(0.96); }

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left 0.5s ease;
}
.btn:hover::before { left: 100%; }

.btn-primary { background: #111; color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,0.18); }
.btn-ghost   { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }

.btn-purple { background: #8B5CF6; color: #fff; box-shadow: 0 0 30px rgba(139,92,246,0.35); }
.btn-accent { background: linear-gradient(120deg, #FF6B6B, #FFA36B); color: #14121f; box-shadow: 0 0 30px rgba(255,140,90,0.35); }
.btn-dark   { background: #000; color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.btn-light  { background: #fff; color: #000; box-shadow: 0 0 30px rgba(255,255,255,0.15); }

/* ============================================
   SHARED SECTION BITS
   ============================================ */
main { flex: 1; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-head { text-align: center; margin-bottom: 3.5rem; }
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.section-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.15;
}
.section-sub { font-size: 1.2rem; color: var(--muted); margin-top: 0.8rem; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================
   INDEX: HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.05) 1px, transparent 0);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-copy { max-width: 560px; }

.hero-title {
  font-size: 5.2rem;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -3px;
  margin-bottom: 1.6rem;
}
.hero-title .soft { color: #b5b2a8; }

.hero-sub {
  font-size: 1.3rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Fanned phones */
.hero-visual {
  position: relative;
  width: 480px;
  height: 520px;
  flex-shrink: 0;
}
.fan-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 400px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.22), 0 0 0 6px #111;
  background: #000;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}
.fan-phone img { width: 100%; height: 100%; object-fit: cover; }
.fan-phone:nth-child(1) { transform: translate(-50%, -50%) translateX(-150px) rotate(-14deg); z-index: 1; }
.fan-phone:nth-child(2) { transform: translate(-50%, -50%) translateX(-52px)  rotate(-5deg)  translateY(-18px); z-index: 2; }
.fan-phone:nth-child(3) { transform: translate(-50%, -50%) translateX(52px)   rotate(5deg)   translateY(-18px); z-index: 3; background: #fff; }
.fan-phone:nth-child(4) { transform: translate(-50%, -50%) translateX(150px)  rotate(14deg); z-index: 4; }

/* Hover: the whole fan opens gently; no phone jumps to the front */
@media (hover: hover) and (min-width: 769px) {
  .hero-visual:hover .fan-phone:nth-child(1) { transform: translate(-50%, -50%) translateX(-185px) rotate(-18deg) translateY(6px); }
  .hero-visual:hover .fan-phone:nth-child(2) { transform: translate(-50%, -50%) translateX(-64px)  rotate(-6.5deg) translateY(-26px); }
  .hero-visual:hover .fan-phone:nth-child(3) { transform: translate(-50%, -50%) translateX(64px)   rotate(6.5deg)  translateY(-26px); }
  .hero-visual:hover .fan-phone:nth-child(4) { transform: translate(-50%, -50%) translateX(185px)  rotate(18deg)  translateY(6px); }
}

/* ============================================
   INDEX: APP CARDS
   ============================================ */
.apps-section { padding: 7rem 0; scroll-margin-top: 68px; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.app-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  min-height: 340px;
  padding: 2.4rem;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.app-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,0.16); }

.card-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: 55%;
}
.card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  opacity: 0.7;
}
.card-text h3 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.card-text p { font-size: 1.05rem; line-height: 1.6; opacity: 0.75; }
.card-link {
  margin-top: auto;
  padding-top: 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.card-link .arrow { display: inline-block; transition: transform 0.3s ease; }
.app-card:hover .card-link .arrow { transform: translateX(5px); }

.card-shot {
  position: absolute;
  right: 2rem;
  bottom: -90px;
  width: 170px;
  height: 360px;
  border-radius: 26px;
  overflow: hidden;
  transform: rotate(6deg);
  transition: transform 0.5s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.card-shot img { width: 100%; height: 100%; object-fit: cover; }
.app-card:hover .card-shot { transform: rotate(3deg) translateY(-24px); }

.card-toppod   { background: #000; color: #fff; }
.card-toppod .card-tag, .card-toppod .card-link { color: #8B5CF6; opacity: 1; }
.card-toppod .card-shot { box-shadow: 0 0 0 4px #1a1a1f, 0 20px 50px rgba(139,92,246,0.35); }

.card-left     { background: linear-gradient(160deg, #14121f 0%, #211c3a 55%, #2c1f4a 100%); color: #fff; }
.card-left .card-tag, .card-left .card-link { color: #FFA36B; opacity: 1; }
.card-left .card-shot { box-shadow: 0 0 0 4px #2a2442, 0 20px 50px rgba(255,140,90,0.25); }

.card-tellmee  { background: #fff; color: #000; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.card-tellmee .card-shot { box-shadow: 0 0 0 4px #eee, 0 20px 40px rgba(0,0,0,0.12); background: #fff; }

.card-timeline { background: #111; color: #fff; }
.card-timeline .card-shot { box-shadow: 0 0 0 4px #222, 0 20px 40px rgba(0,0,0,0.4); }

/* ============================================
   INDEX: VALUES
   ============================================ */
.values-section {
  padding: 7rem 0;
  border-top: 1px solid var(--line);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.value-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-dot);
  margin-bottom: 1rem;
}
.value h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}
.value p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }

/* ============================================
   APP DETAIL PAGE
   ============================================ */
.app-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
}
.bg-pattern {
  position: absolute;
  inset: -50px;
  background-size: 50px 50px;
  background-image: radial-gradient(circle at 1px 1px, var(--pattern, rgba(255,255,255,0.06)) 1px, transparent 0);
  animation: patternMove 80s linear infinite;
  pointer-events: none;
}
.theme-toppod   { --pattern: rgba(139,92,246,0.14); }
.theme-left     { --pattern: rgba(255,255,255,0.07); }
.theme-tellmee  { --pattern: rgba(0,0,0,0.04); }
.theme-timeline { --pattern: rgba(255,255,255,0.06); }

@keyframes patternMove {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.app-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6rem;
}

.concept-section { flex: 1; max-width: 540px; }

.app-name {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}
.theme-toppod .app-name   { text-shadow: 0 0 40px rgba(139,92,246,0.45); }
.theme-toppod .app-name .accent { color: #8B5CF6; }
.theme-left .app-name     { text-shadow: 0 0 40px rgba(255,140,90,0.35); }
.theme-timeline .app-name { text-shadow: 0 0 40px rgba(255,255,255,0.2); }

.app-tagline {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0.9rem 0 2.5rem;
  color: var(--accent);
}
.theme-left .app-tagline     { color: #b9a8ff; }
.theme-tellmee .app-tagline,
.theme-timeline .app-tagline { color: var(--muted); }

.concept-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}
.concept-description {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* Phone mockup & carousel */
.app-showcase {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-mockup {
  width: 280px;
  height: 570px;
  padding: 12px;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}
.app-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-screen.active { opacity: 1; transform: scale(1); }
.app-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 32px;
}

.image-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.control-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--dot, rgba(255,255,255,0.25));
  transition: all 0.3s ease;
}
.control-dot.active { transform: scale(1.3); background: var(--dot-active, #fff); }
.theme-toppod   { --dot-active: #8B5CF6; }
.theme-left     { --dot-active: #FFA36B; }
.theme-tellmee  { --dot: rgba(0,0,0,0.15); --dot-active: rgba(0,0,0,0.7); }
.theme-timeline { --dot-active: rgba(255,255,255,0.85); }

/* More apps strip */
.more-apps {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--line);
}
.more-apps h2 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.more-grid .dd-item {
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
}

/* ============================================
   LEGAL PAGE (info.html)
   ============================================ */
.legal-page { padding-top: 4.5rem; padding-bottom: 6rem; }
.legal-hero, .page-hero { text-align: center; margin-bottom: 2.5rem; }

.app-tabs {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
}
.app-tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.app-tabs-inner::-webkit-scrollbar { display: none; }

.app-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem 0.4rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  transition: all 0.2s ease;
}
.app-tab .app-icon { width: 30px; height: 30px; }
.app-tab:hover { color: var(--fg); border-color: rgba(0,0,0,0.2); }
.app-tab.active { color: #fff; background: #111; border-color: #111; }

.legal-apps { max-width: 880px; }
.legal-app { scroll-margin-top: 165px; }
.legal-app + .legal-app { margin-top: 5rem; }
.js-tabs .legal-app:not(.active) { display: none; }
.js-tabs .legal-app + .legal-app { margin-top: 0; }
.js-tabs .legal-app.active { animation: legalIn 0.45s ease; }
@keyframes legalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.legal-toppod   { --app-accent: #8B5CF6; }
.legal-left     { --app-accent: #FF8A65; }
.legal-tellmee  { --app-accent: #111; }
.legal-timeline { --app-accent: #666; }

.legal-app-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.legal-app-head .app-icon { width: 56px; height: 56px; }
.legal-app-head h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; }
.legal-app-head p { color: var(--muted); font-size: 0.95rem; }
.legal-app-link {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.legal-app-link:hover { color: var(--fg); }

.legal-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.legal-toc a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.legal-toc a:hover { border-color: var(--app-accent); color: var(--app-accent); }

.legal-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.6rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: 165px;
}
.legal-title { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; line-height: 1.25; }
.legal-section .legal-updated { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 1.6rem; }
.legal-heading {
  position: relative;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.1rem 0 0.9rem;
  padding-left: 1rem;
}
.legal-heading::before {
  content: '';
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 3px;
  border-radius: 2px;
  background: var(--app-accent);
}
.legal-section p,
.legal-section li { font-size: 1rem; line-height: 1.8; color: #444; }
.legal-section p { margin-bottom: 1rem; }
.legal-section ul { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.legal-section li { margin-bottom: 0.4rem; }
.legal-section li::marker { color: var(--app-accent); }
.legal-section strong { color: var(--fg); font-weight: 700; }

.legal-contact {
  margin-top: 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.legal-contact a { color: var(--fg); font-weight: 600; }

/* ============================================
   NEWS PAGE (news.html)
   ============================================ */
.app-tab-text { padding: 0.55rem 1.3rem; }

.news-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem 2.3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: legalIn 0.45s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.06); }
.news-card[hidden] { display: none; }

.news-card[data-app="toppod"]   { --app-accent: #8B5CF6; }
.news-card[data-app="left"]     { --app-accent: #FF8A65; }
.news-card[data-app="tellmee"]  { --app-accent: #111; }
.news-card[data-app="timeline"] { --app-accent: #111; }
.news-card.featured { border: 1.5px solid var(--app-accent); }

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.news-meta .app-icon { width: 28px; height: 28px; }
.news-app { font-weight: 700; color: var(--fg); text-decoration: none; }
.news-app:hover { text-decoration: underline; }
.news-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--app-accent);
  color: #fff;
}
.news-meta time { margin-left: auto; white-space: nowrap; }

.news-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 0.6rem;
}
.news-body { color: #555; font-size: 1rem; line-height: 1.9; }

.news-empty {
  text-align: center;
  color: var(--muted);
  padding: 4rem 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--fg); }
.copyright { font-size: 0.85rem; color: var(--muted); opacity: 0.8; }

/* ============================================
   JAPANESE TYPOGRAPHY
   ============================================ */
html[lang="ja"] body {
  line-height: 1.8;
  font-feature-settings: "palt";
  word-break: auto-phrase; /* break Japanese at natural phrase boundaries */
}
html[lang="ja"] .hero-title {
  font-size: 4rem;
  line-height: 1.25;
  letter-spacing: -1px;
}
html[lang="ja"] .section-title { font-size: 2.6rem; letter-spacing: 0; line-height: 1.35; }
html[lang="ja"] .concept-title { font-size: 2.6rem; letter-spacing: 0; line-height: 1.4; }
html[lang="ja"] .concept-description,
html[lang="ja"] .hero-sub { line-height: 1.9; }
html[lang="ja"] .app-tagline { text-transform: none; letter-spacing: 0.15em; }
html[lang="ja"] .card-text h3 { letter-spacing: -0.5px; }
html[lang="ja"] .card-text p { line-height: 1.75; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 2rem; }
  .hero-copy { max-width: 640px; }
  .hero-actions { justify-content: center; }
  .hero-title { font-size: 4rem; }
  .hero-visual { width: 100%; max-width: 440px; height: 440px; }
  .fan-phone { width: 160px; height: 340px; }

  .app-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }

  .app-hero-inner { flex-direction: column; gap: 3rem; text-align: center; }
  .concept-section { max-width: 600px; }
  .app-title-row { justify-content: center; }
  .phone-mockup { width: 240px; height: 490px; }
  .concept-title { font-size: 2.5rem; }
  .more-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 1rem; height: 60px; }
  .brand { font-size: 1.35rem; }
  .nav-link { font-size: 0.85rem; padding: 0.45rem 0.65rem; }
  .apps-menu { position: static; }
  .apps-dropdown {
    position: fixed;
    top: 68px;
    left: 1rem;
    right: 1rem;
    width: auto;
    transform: translateY(-6px);
  }
  .apps-menu.open .apps-dropdown { transform: none; }

  .container { padding: 0 1.25rem; }
  .hero, .app-hero { min-height: auto; }
  .hero-inner, .app-hero-inner { padding: 3rem 1.25rem; }
  .hero-title { font-size: 3rem; letter-spacing: -1.5px; }
  .hero-sub { font-size: 1.1rem; }
  .hero-visual { height: 340px; }
  .fan-phone { width: 120px; height: 255px; border-radius: 22px; box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 0 4px #111; }
  .fan-phone:nth-child(1) { transform: translate(-50%, -50%) translateX(-105px) rotate(-14deg); }
  .fan-phone:nth-child(2) { transform: translate(-50%, -50%) translateX(-36px) rotate(-5deg) translateY(-12px); }
  .fan-phone:nth-child(3) { transform: translate(-50%, -50%) translateX(36px) rotate(5deg) translateY(-12px); }
  .fan-phone:nth-child(4) { transform: translate(-50%, -50%) translateX(105px) rotate(14deg); }

  .section-title { font-size: 2.2rem; }
  .apps-section, .values-section { padding: 4.5rem 0; }
  .app-card { min-height: 300px; padding: 1.8rem; }
  .card-text { max-width: 58%; }
  .card-text h3 { font-size: 1.9rem; }
  .card-shot { width: 130px; height: 280px; right: 1.2rem; bottom: -70px; }

  .app-name { font-size: 3.2rem; }
  .app-icon-xl { width: 64px; height: 64px; }
  .app-title-row { gap: 0.9rem; }
  .card-icon { width: 46px; height: 46px; }
  .app-tagline { font-size: 0.95rem; letter-spacing: 2px; }
  .concept-title { font-size: 2rem; }
  .concept-description { font-size: 1.15rem; }
  .phone-mockup { width: 210px; height: 430px; padding: 10px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .app-tabs { top: 60px; margin-bottom: 2rem; }
  .app-tabs-inner { justify-content: flex-start; padding: 0.7rem 1.25rem; }
  .legal-page { padding-top: 3rem; }
  .legal-app-head h2 { font-size: 1.6rem; }
  .legal-app-link { display: none; }
  .legal-section { padding: 1.6rem 1.4rem; border-radius: 20px; }
  .legal-title { font-size: 1.5rem; }
  .news-card { padding: 1.5rem 1.4rem; border-radius: 20px; }
  .news-title { font-size: 1.2rem; }

  html[lang="ja"] .hero-title { font-size: 2.4rem; letter-spacing: 0; }
  html[lang="ja"] .section-title { font-size: 1.8rem; }
  html[lang="ja"] .concept-title { font-size: 1.75rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  html[lang="ja"] .hero-title { font-size: 3.2rem; }
}