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

body {
  font-family: 'Noto Sans JP', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(120deg, #0ea5e9, #2563eb, #7c3aed);
  background-size: 200% 200%;
  animation: bg-shift 12s ease infinite;
  color: #0f172a;
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}

@keyframes bg-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.shell {
  width: 100%;
  max-width: 980px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: #e2e8f0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: calc(1rem + 2pt);
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.25);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.brand-badge img { width: 100%; height: 100%; display: block; object-fit: contain; }

.lang-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.lang-toggle button {
  appearance: none;
  background: transparent;
  color: #e2e8f0;
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  font-size: calc(0.85rem - 2pt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-toggle button.active {
  background: #fff;
  color: #0f172a;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 18px;
}

.panel {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(2,6,23,0.25);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  animation: float-in 600ms ease both;
}

.panel:nth-child(1) { animation-delay: 80ms; }
.panel:nth-child(2) { animation-delay: 160ms; }

@keyframes float-in {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.panel-content { padding: 24px; }
.hero .panel:first-child { background: linear-gradient(135deg, #ffffff, #f8fafc); border: 1px solid #e6edf8; box-shadow: 0 12px 28px rgba(2,6,23,0.10); border-left: 6px solid #2563eb; }
.hero .panel:first-child .panel-content { padding: 10px 18px 12px; }
.hero .panel:first-child .subtitle { margin-bottom: 2px; }

h1.page-title {
  margin: 0 0 6px;
  font-size: clamp(2.2rem, 5vw, 3rem);
  text-align: center;
  font-family: 'Noto Sans JP', 'Noto Sans', 'Space Grotesk', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #0f172a 0%, #0b1220 40%, #1e293b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle { color: #475569; margin-bottom: 6px; text-align: center; }

/* Emphasis in copy */
.lead-strong {
  display: inline-block;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.9;
  margin-top: 8px; /* 上に少し余白 */
  color: #2d3748; /* 日本語本文色に統一 */
}

/* Kotokata の強調（見出しと同じグラデ色） */
.title-accent {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent; /* Safari対策 */
  font-weight: 800;
}

h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  border-bottom: 2px solid #4a90e2;
  padding-bottom: 5px;
  text-align: center;
  font-family: 'Space Grotesk', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
 /* 見出しは全言語で同じ青系グラデーションを適用（個別色指定はしない） */
.section h2 span {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subcard .lang-en strong { color: #0b1220; }
.section > h2:first-child { margin-top: 2px; }

.section { background: white; border-radius: 12px; padding: 24px; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(2,6,23,0.10); border: 1px solid #e2e8f0; }

/* Accordion */
.accordion summary { cursor: pointer; outline: none; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion[open] { box-shadow: 0 12px 26px rgba(2,6,23,0.12); }
.accordion summary h2 { margin: 0; }

.lang {
  margin-bottom: 15px;
}

.lang-en {
  color: #2d3748;      /* 日本語本文と同じ色に統一 */
  font-size: 1rem;     /* 日本語本文と同サイズに統一 */
  font-weight: 500;    /* 日本語本文と同じ太さに統一 */
  margin-bottom: 8px;
}

.lang-ja {
  color: #2d3748;
  font-weight: 500;
}

/* インドネシア語本文も日本語に合わせる */
.lang-id {
  color: #2d3748;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

ol {
  margin-left: 20px;
  margin-top: 10px;
}

li {
  margin-bottom: 10px;
}

.link-button { display: inline-flex; align-items: center; gap: 8px; background: #2563eb; color: #fff; padding: 10px 16px; text-decoration: none; border-radius: 10px; font-weight: 600; margin: 6px 0; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 8px 20px rgba(37,99,235,.35); }

.link-button:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(37,99,235,.45); }
a.link-chip, .link-chip { display: inline-flex; align-items: center; gap: 6px; background-color: #ffffff !important; background: #ffffff !important; color: #0f172a !important; padding: 4px 10px; text-decoration: none; border-radius: 999px; font-weight: 700; box-shadow: 0 6px 14px rgba(0,0,0,.15); border: 1px solid #e2e8f0; letter-spacing: normal; }
a.link-chip:hover, .link-chip:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(66,133,244,.40); background-color: #ffffff !important; background: #ffffff !important; }

/* store buttons */
.store-buttons { display: flex; justify-content: center; align-items: center; gap: 2px; margin: 8px 0 18px; flex-wrap: wrap; }
.link-button .icon { width: 22px; height: 22px; display: inline-block; }
.link-button.disabled { background: #94a3b8; cursor: not-allowed; pointer-events: none; box-shadow: none; }
.link-button.image { background: transparent; padding: 0; box-shadow: none; }
.link-button.image:hover { transform: none; box-shadow: none; }
.link-button.image picture { display: block; line-height: 0; width: 280px; height: auto; }
.link-button.image img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 8px; }
.link-button.image { color: #0f172a; }
/* Apple badge: small white frame */
.appstore-badge {
  display: block;
  width: fit-content;
  margin: 12px auto 20px;
  line-height: 0;
}
.appstore-badge img {
  display: block;
  width: 160px;  /* 小さめ（デフォルト） */
  height: auto;
  border-radius: 6px;
}
.store-buttons .appstore-badge { margin: 12px 0 20px; height: 44px; display: block; aspect-ratio: 180 / 44; width: auto; }
.store-buttons .appstore-badge img { width: 100%; height: 100%; object-fit: contain; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* download card */
.download-badge { display: inline-block; width: 180px; line-height: 0; }
.download-badge img { display: block; width: 100%; height: auto; border-radius: 8px; }

.mockup {
  position: relative;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border-left: 12px solid #2563eb;
  height: 280px;
  display: grid;
  place-items: center;
}

.mockup .note { color: #475569; text-align: center; }

/* carousel */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.carousel img {
  position: absolute;
  max-height: 92%;
  max-width: 92%;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(2,6,23,0.2);
  opacity: .35;               /* 非アクティブも見える */
  transform: translateX(0) scale(.85);
  transition: opacity .25s ease, transform .25s ease, z-index .25s ease;
  z-index: 1;
}
.carousel img.active { opacity: 1; transform: translateX(0) scale(1); z-index: 3; }
.carousel .nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
}
.carousel button {
  pointer-events: auto;
  appearance: none;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15,23,42,.65);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.carousel button:hover { transform: translateY(-1px); background: rgba(15,23,42,.8); }

.contact {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin: 18px 0;
  color: inherit;
  box-shadow: 0 10px 24px rgba(2,6,23,0.10);
}

.contact p { margin: 6px 0; }

.contact a { color: #2563eb; text-decoration: none; font-weight: 600; }

.contact a:hover { text-decoration: underline; }

hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 30px 0;
}

.footer {
  text-align: center;
  color: #718096;
  font-size: 0.9rem;
  margin-top: 30px;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Introduction images */
.intro-images {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 18px;
}

.intro-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(2,6,23,0.15);
}

/* Subcards */
.subcards { display: grid; gap: 12px; }
.subcard { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 16px 18px; box-shadow: 0 8px 18px rgba(2,6,23,0.08); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease; will-change: opacity, transform; }
.subcards.visible .subcard, .subcard.visible { opacity: 1; transform: none; animation: float-in .6s ease both; animation-delay: calc(var(--i, 0) * 90ms); }
.subcard:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(2,6,23,0.12); }
.subcard .lang-en { color: #0f172a; }
.subcard .lang strong {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.subcard-title { margin-bottom: 6px; font-size: clamp(1.05rem, 2.2vw, 1.25rem); font-weight: 800; color: #0f172a; display: block; }
.subcard-title.lang-en { font-family: 'Space Grotesk', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; letter-spacing: .2px; }
.subcard-title.lang-en { font-family: 'Noto Sans', 'Noto Sans JP', 'Space Grotesk', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; letter-spacing: .2px; }
@media (prefers-reduced-motion: reduce) {
  .subcard { transition: none; transform: none; opacity: 1; }
  .subcard:hover { transform: none; box-shadow: 0 8px 18px rgba(2,6,23,0.08); }
}

/* Full-bleed video */
.full-bleed { position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; margin-top: 8px; margin-bottom: 28px; }
.full-bleed video { display: block; width: 100%; max-width: 100vw; height: auto; border-radius: 0; box-shadow: none; pointer-events: none; -webkit-user-select: none; user-select: none; }
@media (min-width: 901px) {
  .full-bleed { left: 0; right: 0; margin-left: 0; margin-right: 0; width: 100%; }
  .full-bleed video { max-width: 100%; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .nav { flex-direction: row; gap: 12px; align-items: center; }
  .lang-toggle { margin-left: auto; }
}
@media (max-width: 480px) {
  body { padding: 16px; }
  h1.page-title { font-size: 1.6rem; }
  .section { padding: 16px; }
  .mockup { height: 220px; }
  .link-button { width: 100%; justify-content: center; }
}

/* Language visibility */
[data-lang="en"] .lang-en { display: block; }
[data-lang="en"] .lang-ja { display: none; }
    [data-lang="en"] .lang-id { display: none; }
[data-lang="ja"] .lang-en { display: none; }
[data-lang="ja"] .lang-ja { display: block; }
    [data-lang="ja"] .lang-id { display: none; }
    [data-lang="id"] .lang-id { display: block; }
    [data-lang="id"] .lang-en { display: none; }
    [data-lang="id"] .lang-ja { display: none; }

/* Ensure store buttons stay side-by-side on small screens */
@media (max-width: 480px) {
  .store-buttons { flex-wrap: nowrap; gap: 0px; justify-content: center; }
  .store-buttons .appstore-badge { flex: 1 1 0; height: 40px; margin: 8px 0 16px; min-width: 0; max-width: 180px; }
  /* バッジ間をさらに20px詰める（重なりはしない視覚調整） */
  .store-buttons .appstore-badge + .appstore-badge { margin-left: -30px; }
  .store-buttons .appstore-badge img { width: 100%; height: 100%; }
}
