/* =====================================================
   site.css — 公開サイト専用（app/ と merge.html は style.css のまま）
   ===================================================== */

@font-face {
  font-family: 'Great Vibes';
  src: url('/fonts/GreatVibes-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'ZT Nature';
  src: url('/fonts/ZTNature-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #33384f;
  --ink-soft: #5d6380;
  --ink-mute: #8a8fa8;
  --stone: #515891;
  --stone-2: #68769d;
  --lav: #7f86d6;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --line: rgba(255, 255, 255, 0.9);
  --shadow: 0 10px 40px rgba(81, 88, 145, 0.12);
  --radius: 28px;
  --grad: linear-gradient(120deg, #ffb3ad 0%, #d9a8ee 35%, #a8b8ff 65%, #8fdcec 100%);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
  font-family: "Zen Maru Gothic", -apple-system, BlinkMacSystemFont, "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  color: var(--ink);
  line-height: 1.85;
  letter-spacing: 0.03em;
  background: #f8f6fc;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 背景：アプリと同じパステルオーロラ */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -2;
  background:
    radial-gradient(40% 35% at 8% 10%,  rgba(255, 196, 190, 0.75), transparent 70%),
    radial-gradient(45% 40% at 85% 5%,  rgba(214, 196, 250, 0.80), transparent 70%),
    radial-gradient(50% 45% at 90% 60%, rgba(190, 228, 250, 0.80), transparent 70%),
    radial-gradient(45% 40% at 15% 75%, rgba(255, 238, 200, 0.75), transparent 70%),
    radial-gradient(40% 40% at 55% 100%, rgba(196, 240, 222, 0.75), transparent 70%);
  filter: blur(10px);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.35), transparent 60%);
}

canvas#mesh { display: none; }

a { color: var(--stone); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--stone-2); }

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

/* ---------- レイアウト ---------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}
.container .container { padding: 0; }
.inner-frame { width: 100%; }

section {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.5; }

/* セクション見出し上の筆記体アクセント */
.card h2::before,
.screenshot h2::before,
.reviews h2::before,
.pc-only > section h2::before,
.news-wrapper h1::before {
  display: table;
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 1.5em;
  line-height: 1.5;
  padding: 0.1em 0.3em 0.15em;
  margin: -0.2em auto 0;
  letter-spacing: 0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card h2::before          { content: "Attract Happiness"; }
.screenshot h2::before    { content: "Design"; }
.reviews h2::before       { content: "Our Promise"; }
.pc-only > section h2::before { content: "Let's Begin"; }
.news-wrapper h1::before  { content: "News"; }
html[lang="en"] .card h2::before { content: "About"; }

/* ---------- ヒーロー ---------- */
header {
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0 60px;
  position: relative;
}
header::before {
  content: "scroll";
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: var(--stone-2);
  opacity: 0.75;
}
header::after {
  content: "";
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 2px;
  height: 60px;
  margin-left: -1px;
  border-radius: 2px;
  background:
    linear-gradient(to bottom, transparent 0%, #d9a8ee 35%, #8fa8ff 55%, transparent 80%) 0 -60px / 100% 60px no-repeat,
    rgba(104, 118, 157, 0.18);
  animation: scrollHint 2.2s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes scrollHint {
  0%   { background-position: 0 -60px, 0 0; }
  100% { background-position: 0 60px, 0 0; }
}

.logo {
  width: min(440px, 78vw);
  margin: 0 auto 36px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(127, 134, 214, 0.25));
  animation: floatIn 1.2s cubic-bezier(.2,.7,.2,1) both;
}
header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.9;
  animation: floatIn 1.2s .15s cubic-bezier(.2,.7,.2,1) both;
}
header p + p {
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--ink-mute);
  letter-spacing: 0.2em;
  margin-top: 6px;
}
header .pc-only { animation: floatIn 1.2s .3s cubic-bezier(.2,.7,.2,1) both; }

@keyframes floatIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- CTA ---------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 16px 38px;
  border-radius: 999px;
  background: linear-gradient(120deg, #515891, #7f86d6);
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 28px rgba(81, 88, 145, 0.35), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .25s, box-shadow .25s;
}
.cta-button::before {
  content: "";
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.6c0-2.6 2.1-3.8 2.2-3.9-1.2-1.8-3.1-2-3.7-2-1.6-.2-3.1.9-3.9.9-.8 0-2-.9-3.4-.9-1.7 0-3.3 1-4.2 2.6-1.8 3.1-.5 7.7 1.3 10.2.9 1.2 1.9 2.6 3.2 2.6 1.3-.1 1.8-.8 3.3-.8 1.6 0 2 .8 3.4.8 1.4 0 2.3-1.3 3.1-2.5 1-1.4 1.4-2.8 1.4-2.9 0 0-2.7-1-2.7-4.1zM13.9 4.9c.7-.9 1.2-2 1-3.2-1 0-2.3.7-3 1.6-.7.8-1.2 2-1.1 3.1 1.2.1 2.3-.6 3.1-1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.6c0-2.6 2.1-3.8 2.2-3.9-1.2-1.8-3.1-2-3.7-2-1.6-.2-3.1.9-3.9.9-.8 0-2-.9-3.4-.9-1.7 0-3.3 1-4.2 2.6-1.8 3.1-.5 7.7 1.3 10.2.9 1.2 1.9 2.6 3.2 2.6 1.3-.1 1.8-.8 3.3-.8 1.6 0 2 .8 3.4.8 1.4 0 2.3-1.3 3.1-2.5 1-1.4 1.4-2.8 1.4-2.9 0 0-2.7-1-2.7-4.1zM13.9 4.9c.7-.9 1.2-2 1-3.2-1 0-2.3.7-3 1.6-.7.8-1.2 2-1.1 3.1 1.2.1 2.3-.6 3.1-1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.cta-button:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(81, 88, 145, 0.42), inset 0 1px 0 rgba(255,255,255,.3);
}

/* ---------- ガラスカード共通 ---------- */
.card,
.screenshot,
.reviews,
.news-wrapper {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
}

/* ---------- 紹介 ---------- */
.card {
  padding: 72px 40px;
  margin-bottom: 40px;
}
.card h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 32px; }
.card-text {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 2.1;
}
.lucky-text { color: var(--stone-2); }
.lucky-text.greatvibes {
  font-family: 'Great Vibes', cursive;
  font-size: 34px;
  letter-spacing: 0.04em;
  color: var(--lav);
}
.lucky-text.zt {
  font-family: 'ZT Nature', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--lav);
}

/* ---------- お知らせ（TOP埋め込み & news.html） ---------- */
.replace { margin-bottom: 40px; }
.inner-container { text-align: left; }
.news-wrapper {
  padding: 56px 48px;
  text-align: center;
}
.news-wrapper h1 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin: 0 0 32px;
  color: var(--ink);
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
}
.news-item {
  position: relative;
  background: var(--glass-strong);
  border-radius: 20px;
  padding: 22px 28px 22px 32px;
  overflow: hidden;
}
.news-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--grad);
}
.news-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--stone-2);
  margin-bottom: 4px;
}
.news-headline { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.news-body { font-size: 14px; color: var(--ink-soft); line-height: 1.9; }

/* ---------- 特徴 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  counter-reset: feat;
}
.feature {
  counter-increment: feat;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  padding: 40px 28px 36px;
  text-align: center;
  transition: transform .3s;
}
.feature:hover { transform: translateY(-4px); }
.feature::before {
  content: "0" counter(feat);
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: 'ZT Nature', sans-serif;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(168, 184, 255, 0.5);
}
.feature h3 { font-size: 19px; margin: 0 0 14px; color: var(--stone); }
.feature p { font-size: 14px; color: var(--ink); margin: 0 0 14px; line-height: 1.9; font-weight: 500; }
.feature p2 {
  display: block;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.9;
  padding-top: 14px;
  border-top: 1px dashed rgba(104, 118, 157, 0.25);
}

/* ---------- スクリーンショット ---------- */
.screenshot { padding: 72px 40px; margin-bottom: 40px; }
.screenshot h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 16px; }
.screenshot p { color: var(--ink-soft); font-size: 15px; margin: 0 0 40px; line-height: 2; }
.screenshots-wrapper { display: flex; justify-content: center; }
.screenshot-item {
  width: 100%;
  max-width: 920px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(81, 88, 145, 0.22);
}
.screenshot-item img { display: block; width: 100%; }

/* ---------- こだわり ---------- */
.reviews {
  padding: 72px 48px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  text-align: left;
}
.reviews h2 {
  grid-column: 1 / -1;
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 28px;
}
.reviews > br { display: none; }
.review {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--glass-strong);
  border-radius: 18px;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}
.review::before {
  content: "";
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat,
    var(--grad);
}
/* 「積極的なバージョンアップを予定しています」はHPでは非表示（アプリ内は表示のまま） */
.callout { display: none !important; }
.callout {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 24px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid rgba(127, 134, 214, 0.4);
  color: var(--stone);
  font-weight: 700;
  font-size: 14px;
  background: rgba(255,255,255,0.5);
}

/* ---------- 最終CTA ---------- */
.pc-only > section {
  padding: 80px 20px;
  margin-bottom: 20px;
}
.pc-only > section h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 8px; }
.pc-only > section p { color: var(--ink-soft); margin: 0; }
.pc-only > section .cta-button { margin-top: 28px; }

/* ---------- フッター ---------- */
footer, .footer {
  text-align: center;
  padding: 40px 20px 48px;
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.08em;
}
footer p, .footer p { margin: 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-bottom: 18px;
}
.footer-links a { color: var(--ink-soft); font-size: 13px; }
.footer-links a:hover { color: var(--stone); }

/* =====================================================
   下層ページ（利用規約・プライバシー・お知らせ・お問い合わせ）
   ===================================================== */
.back-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px 8px 14px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(81, 88, 145, 0.12);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  color: var(--stone) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.back-btn::before { content: "←"; font-weight: 400; }
.back-btn:hover { transform: translateY(-1px); }

.container-term {
  width: min(860px, calc(100% - 32px));
  margin: 88px auto 0;
  padding: 56px 56px 64px;
  text-align: left;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
}
.container-term .inner-container > h1 {
  text-align: center;
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 40px;
  padding-bottom: 24px;
  position: relative;
}
.container-term .inner-container > h1::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 48px; height: 3px;
  margin-left: -24px;
  border-radius: 3px;
  background: var(--grad);
}
.container-term h2 {
  font-size: 16px;
  margin: 40px 0 10px;
  padding-left: 14px;
  border-left: 3px solid #a8b8ff;
  color: var(--stone);
}
.container-term p,
.container-term li { font-size: 14px; color: var(--ink-soft); line-height: 2; }
.container-term ul { padding-left: 1.3em; }
.container-term li { margin-bottom: 4px; }
.container-term li::marker { color: #a8b8ff; }
.container-term a { text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.container-term small { display: block; text-align: right; color: var(--ink-mute); }

/* news.html はカードを二重にしない */
.container-term .news-wrapper {
  background: none; border: 0; box-shadow: none; padding: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* お問い合わせ */
body > h2 {
  text-align: center;
  font-size: clamp(22px, 3vw, 28px);
  margin: 96px 0 32px;
}
body > h2::before {
  content: "Contact";
  display: table;
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 1.5em;
  line-height: 1.5;
  padding: 0.1em 0.3em 0.15em;
  margin: -0.2em auto 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.form-container {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.iframe-wrapper { border-radius: 20px; overflow: hidden; background: #fff; }
.iframe-wrapper iframe { display: block; width: 100%; height: 100vh; border: 0; }

/* =====================================================
   レスポンシブ
   ===================================================== */
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  header { padding: 64px 0 56px; min-height: 86vh; min-height: 86svh; }
  .logo { margin-bottom: 28px; }
  .card, .screenshot { padding: 52px 22px; }
  .card-text { font-size: 14px; }
  .lucky-text.greatvibes { font-size: 23px; letter-spacing: 0; }
  .lucky-text.zt { font-size: 17px; }
  .news-wrapper { padding: 48px 18px; }
  .news-item { padding: 18px 18px 18px 22px; }
  .feature { padding: 32px 22px; }
  .screenshot p br { display: none; }
  .reviews { padding: 52px 18px; }
  .review { font-size: 14px; padding: 14px 16px; }
  .container-term { padding: 40px 22px 48px; margin-top: 76px; }
  .cta-button { padding: 15px 30px; }
  .card, .screenshot, .reviews, .replace, .features { margin-bottom: 24px; }
}
