/* ============================================================
   PlacePod product & landing pages
   Night-sky theme — matches the sun/moon brass clock icon.
   ============================================================ */
:root {
    --bg: #0b0f17;
    --bg-2: #101624;
    --card: #151c2c;
    --card-edge: #222c42;
    --text: #e8e6e1;
    --text-dim: #9aa3b2;
    --gold: #c9a45c;
    --gold-bright: #e6c47e;
    --navy: #1d2c4f;
    --radius: 18px;
    --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-weight: 600;
    letter-spacing: 0.04em;
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { opacity: 0.85; }

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

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- header ---------- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(11, 15, 23, 0.82);
    border-bottom: 1px solid rgba(201, 164, 92, 0.14);
}
.site-head .inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.site-head img { width: 34px; height: 34px; border-radius: 8px; }
.site-head .name { font-size: 1.05rem; letter-spacing: 0.12em; font-weight: 600; }
.site-head nav { margin-left: auto; display: flex; gap: 22px; font-size: 0.88rem; }
.site-head nav a { color: var(--text-dim); }
.site-head nav a:hover { color: var(--gold-bright); opacity: 1; }
@media (max-width: 640px) {
    .site-head nav { display: none; }
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 72px;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(29, 44, 79, 0.55), transparent 60%),
        radial-gradient(800px 420px at 10% 110%, rgba(201, 164, 92, 0.10), transparent 60%),
        var(--bg);
}
.hero .inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 880px) {
    .hero .inner { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 48px; }
}
.hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.3rem);
    line-height: 1.35;
    margin-bottom: 18px;
}
.hero h1 em {
    font-style: normal;
    color: var(--gold-bright);
}
/* キャッチ下のカテゴリ行 (何のアプリかを明示する) */
.hero h1 .h1-sub {
    display: block;
    margin-top: 10px;
    font-size: 0.52em;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}
.hero .lead {
    color: var(--text-dim);
    font-size: 1.02rem;
    margin-bottom: 34px;
    max-width: 30em;
}
.hero .clockimg {
    border-radius: 24px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(201, 164, 92, 0.18);
}

/* store badges — Apple / Google 公式バッジ画像 (自前ホスト) */
.badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-badge {
    display: inline-block;
    transition: 0.25s ease;
}
.store-badge:hover { transform: translateY(-2px); opacity: 1; }
.store-badge img { height: 52px; width: auto; display: block; }

/* ---------- sections ---------- */
section { padding: 78px 0; }
section.alt { background: var(--bg-2); }
.sec-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 14px;
}
.sec-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 52px;
}
.gold-line {
    width: 54px;
    height: 2px;
    margin: 20px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* features */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 880px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feat {
    background: var(--card);
    border: 1px solid var(--card-edge);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: 0.25s ease;
}
.feat:hover { border-color: rgba(201, 164, 92, 0.5); transform: translateY(-3px); }
.feat .ico { font-size: 1.9rem; margin-bottom: 14px; }
.feat h3 { font-size: 1.06rem; margin-bottom: 10px; color: var(--gold-bright); }
.feat p { font-size: 0.88rem; color: var(--text-dim); }

/* screenshots — auto-cycling crossfade slideshow */
.ss-show {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* soft gold halo pulsing behind the phone — matches the brass clock icon */
.ss-show::before {
    content: "";
    position: absolute;
    top: 46%;
    left: 50%;
    width: 130%;
    max-width: 560px;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(201, 164, 92, 0.20), transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: ssGlow 4s ease-in-out infinite;
}
@keyframes ssGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.ss-stage {
    position: relative;
    z-index: 1;
    width: clamp(248px, 72vw, 320px);
    aspect-ratio: 1125 / 2436;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(201, 164, 92, 0.20);
}
.ss-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.6s ease, transform 0.9s ease;
}
.ss-img.is-active {
    opacity: 1;
    transform: scale(1);
}
.ss-cap {
    margin-top: 18px;
    z-index: 1;
    font-size: 0.9rem;
    color: var(--gold-bright);
    letter-spacing: 0.06em;
    min-height: 1.4em;
}
.ss-dots {
    margin-top: 14px;
    z-index: 1;
    display: flex;
    gap: 10px;
}
.ss-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.22);
    transition: 0.3s ease;
}
.ss-dot:hover { background: rgba(255, 255, 255, 0.45); }
.ss-dot.is-active {
    background: var(--gold-bright);
    transform: scale(1.25);
    box-shadow: 0 0 10px rgba(230, 196, 126, 0.7);
}
@media (prefers-reduced-motion: reduce) {
    .ss-img { transition: opacity 0.3s ease; transform: none; }
    .ss-img.is-active { transform: none; }
    .ss-show::before { animation: none; }
}

/* security list */
.sec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 820px;
    margin: 0 auto;
}
@media (max-width: 640px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--card-edge);
    border-radius: var(--radius);
    padding: 20px 22px;
}
.sec-item .ico { font-size: 1.4rem; margin-top: 2px; }
.sec-item h4 { font-size: 0.98rem; margin-bottom: 4px; }
.sec-item p { font-size: 0.85rem; color: var(--text-dim); }

/* CTA */
.cta {
    text-align: center;
    padding: 90px 24px;
    background:
        radial-gradient(700px 320px at 50% 120%, rgba(201, 164, 92, 0.13), transparent 70%),
        var(--bg-2);
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 30px; }
.cta .badges { justify-content: center; }

/* footer */
.site-foot {
    border-top: 1px solid rgba(201, 164, 92, 0.14);
    padding: 36px 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}
.site-foot .links { margin-bottom: 12px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.site-foot .links a { color: var(--text-dim); }
.site-foot .links a:hover { color: var(--gold-bright); }

/* ============================================================
   invite / group landing (mobile-first)
   ============================================================ */
.landing {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 20px 64px;
    background:
        radial-gradient(900px 420px at 50% -10%, rgba(29, 44, 79, 0.6), transparent 65%),
        var(--bg);
}
.landing .appmark {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 164, 92, 0.25);
    margin-bottom: 26px;
}
.landing h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 10px;
}
.landing .sub {
    color: var(--text-dim);
    font-size: 0.92rem;
    text-align: center;
    max-width: 30em;
    margin-bottom: 38px;
}
.steps {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.step {
    display: flex;
    gap: 18px;
    background: var(--card);
    border: 1px solid var(--card-edge);
    border-radius: var(--radius);
    padding: 22px;
}
.step.is-key { border-color: var(--gold); box-shadow: 0 0 28px rgba(201, 164, 92, 0.12); }
.step .num {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--gold-bright), var(--gold));
    color: #181308;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step h3 { font-size: 0.99rem; margin-bottom: 6px; font-family: inherit; font-weight: 700; }
.step p { font-size: 0.85rem; color: var(--text-dim); }
.step .badges { margin-top: 14px; }
.step .store-badge img { height: 44px; }
.landing .expiry {
    margin-top: 30px;
    font-size: 0.8rem;
    color: var(--text-dim);
    background: rgba(201, 164, 92, 0.08);
    border: 1px dashed rgba(201, 164, 92, 0.35);
    border-radius: 12px;
    padding: 12px 18px;
    max-width: 460px;
    text-align: center;
}
.landing .foot {
    /* カード (.steps / .expiry) と同じ幅ボックスを基準に中央寄せする。
       shrink-to-fit のままだと行幅がボックス幅になり、カード中心と
       数 px ずれて見えるため width を揃える。 */
    width: 100%;
    max-width: 460px;
    margin-top: 46px;
    font-size: 0.76rem;
    color: var(--text-dim);
    text-align: center;
}
.landing .foot a { color: var(--text-dim); text-decoration: underline; }

/* platform highlight (JS adds .plat-ios / .plat-android to <body>) */
body.plat-ios .store-badge.for-android,
body.plat-android .store-badge.for-ios { opacity: 0.45; }
