/* /public_html/assets/lp.css */

/* 全体の箱モデルを安定させる */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* 目に優しい：黄 + パステルブルー */
    --lp-primary: #F7CF23;
    --lp-primary-hover: #E3B500;
    --lp-primary-soft: #FFF6CC;

    --lp-sub: #8FB5D6;
    /* パステルブルー */
    --lp-sub-strong: #5F7FA7;
    /* 少し濃いめ */

    --lp-text: #1F2937;
    --lp-muted: #6b7280;
    --lp-line: #e6eaf0;

    --lp-radius: 16px;
    --lp-bg: #ffffff;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    background: var(--lp-bg);
    color: var(--lp-text);
}

a {
    text-decoration: none;
}

/* =========================
   Header
========================= */
.lp-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--lp-line);
}

.lp-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    color: var(--lp-text);
}

.lp-brand-logo {
    height: 46px;
    width: auto;
    display: block;
}

.lp-brand-name {
    font-weight: 900;
    letter-spacing: .5px;
}

.lp-nav-desktop {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lp-nav-link {
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--lp-sub-strong);
    font-weight: 800;
}

.lp-nav-link:hover {
    background: var(--lp-primary-soft);
}

.lp-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================
   Buttons
========================= */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--lp-primary);
    color: #1b1b1b;
    border: 1px solid rgba(0, 0, 0, .05);
    font-weight: 900;
    cursor: pointer;
}

.lp-btn:hover {
    background: var(--lp-primary-hover);
}

.lp-btn-outline {
    background: transparent;
    color: var(--lp-sub-strong);
    border-color: rgba(95, 127, 167, .45);
}

.lp-btn-outline:hover {
    background: rgba(255, 246, 204, .7);
}

.lp-btn.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* =========================
   Hamburger + Mobile panel
========================= */
.lp-hamburger {
    display: none;
    background: var(--lp-primary-soft);
    border: 1px solid var(--lp-line);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
}

.lp-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--lp-sub-strong);
    margin: 5px 0;
    border-radius: 2px;
}

/* スマホ用メニュー（lp.jsで is-open が付く前提） */
.lp-nav.lp-nav-panel {
    display: none;
}

/* =========================
   Layout container
========================= */
.lp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
}

/* =========================
   Hero (CSS Aurora)
========================= */
.lp-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, .04);
    background: #fff;
}

.lp-hero::before {
    content: "";
    position: absolute;
    inset: -30%;
    z-index: 0;
    background:
        radial-gradient(60% 50% at 20% 30%, rgba(247, 207, 35, 0.30), transparent 60%),
        radial-gradient(55% 55% at 75% 25%, rgba(143, 181, 214, 0.28), transparent 60%),
        radial-gradient(55% 55% at 70% 75%, rgba(255, 246, 204, 0.55), transparent 65%),
        radial-gradient(50% 50% at 25% 80%, rgba(95, 127, 167, 0.16), transparent 60%);
    filter: blur(18px);
    transform: translate3d(0, 0, 0);
    animation: lpAuroraMove 18s ease-in-out infinite alternate;
    opacity: 0.95;
}

.lp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .45), transparent 35%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .30), transparent 35%),
        radial-gradient(circle at 30% 85%, rgba(255, 255, 255, .35), transparent 40%);
    opacity: .35;
    pointer-events: none;
}

@keyframes lpAuroraMove {
    0% {
        transform: translate(-2%, -2%) scale(1.02) rotate(0deg);
    }

    50% {
        transform: translate(2%, 1%) scale(1.05) rotate(1deg);
    }

    100% {
        transform: translate(1%, 3%) scale(1.04) rotate(0deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-hero::before {
        animation: none;
    }
}

.lp-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 34px 16px 22px;
    position: relative;
    z-index: 1;
}

.lp-hero-left {
    flex: 1;
    min-width: 260px;
}

.lp-hero-title {
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 10px;
    letter-spacing: .2px;
}

.lp-hero-sub {
    margin: 0 0 16px;
    color: var(--lp-text);
    opacity: .85;
}

.lp-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lp-hero-right {
    width: 420px;
    max-width: 44%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.lp-hero-illust {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(17, 24, 39, 0.12));
    border-radius: 18px;
}

/* =========================
   Features (3 cards)
========================= */
.lp-features {
    margin: 18px 0 8px;
}

.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.lp-feature-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 18px;
    padding: 16px 16px 14px;
    box-shadow: 0 10px 22px rgba(10, 20, 30, .06);
    overflow: hidden;
}

.lp-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 60% at 15% 20%, rgba(255, 246, 204, .75), transparent 60%),
        radial-gradient(70% 60% at 85% 10%, rgba(143, 181, 214, .22), transparent 60%);
    opacity: .55;
    pointer-events: none;
}

.lp-feature-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, rgba(247, 207, 35, .95), rgba(143, 181, 214, .65));
    opacity: .9;
}

.lp-feature-title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    color: var(--lp-sub-strong);
    font-size: 16px;
    margin-top: 4px;
}

.lp-feature-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--lp-primary);
    box-shadow: 0 0 0 3px rgba(247, 207, 35, .25);
}

.lp-feature-text {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    color: var(--lp-text);
    opacity: .85;
    line-height: 1.55;
    font-size: 13px;
}

/* =========================
   Search card
========================= */
.lp-search-card {
    max-width: 900px;
    margin: 14px auto 0;
    /* ★ 特徴セクションがあるのでマイナスはやめる */
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(10, 20, 30, .08);
}

.lp-search-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.lp-search-title {
    font-weight: 900;
    font-size: 18px;
}

.lp-search-note {
    color: var(--lp-muted);
    font-size: 12px;
}

/* 入力 */
.lp-input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--lp-line);
    background: #fff;
}

/* ✅ 検索フォーム（スマホ巨大化対策込み） */
.lp-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.lp-search-input {
    flex: 1 1 320px;
    min-width: 240px;
    min-height: 48px;
    font-size: 16px;
    /* iOSズーム防止 */
}

.lp-search-btn {
    flex: 0 0 auto;
    min-height: 48px;
    min-width: 96px;
    white-space: nowrap;
}

.lp-search-btn.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.lp-search-agree {
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--lp-muted);
    font-size: 12px;
}

.lp-search-agree a {
    color: var(--lp-sub-strong);
    text-decoration: underline;
}

/* 罫線 */
.lp-hr {
    border: 0;
    border-top: 1px solid var(--lp-line);
    margin: 14px 0;
}

/* 結果 */
.lp-result {
    display: grid;
    gap: 8px;
}

.lp-result-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: center;
}

.lp-result-row span {
    color: var(--lp-muted);
    font-size: 12px;
}

.lp-result-foot {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: var(--lp-muted);
    font-size: 12px;
}

.lp-help {
    color: var(--lp-muted);
    font-size: 12px;
}

/* 状態ピル */
.lp-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--lp-primary-soft);
    border: 1px solid var(--lp-line);
    font-weight: 900;
}

/* アラート */
.lp-alert {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 12px;
}

.lp-alert-ok {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

/* =========================
   Footer
========================= */
.lp-footer {
    border-top: 1px solid var(--lp-line);
    background: #fff;
    margin-top: 24px;
}

.lp-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 16px;
    color: var(--lp-muted);
    font-size: 12px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 840px) {
    .lp-nav-desktop {
        display: none;
    }

    .lp-auth-btn {
        display: none;
    }

    .lp-hamburger {
        display: block;
    }

    .lp-nav.lp-nav-panel {
        position: fixed;
        top: 58px;
        right: 12px;
        left: 12px;
        background: #fff;
        border: 1px solid rgba(95, 127, 167, .22);
        border-radius: 16px;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        display: none;
        box-shadow: 0 18px 40px rgba(17, 24, 39, .10);
    }

    .lp-nav.is-open {
        display: flex;
    }

    .lp-nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .lp-nav-link {
        background: var(--lp-primary-soft);
    }

    .lp-nav-actions {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .lp-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .lp-hero-right {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
    }

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

/* ✅ ここが重要：スマホ縦積み時に flex-basis が“高さ”にならないようにする */
@media (max-width: 600px) {
    .lp-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .lp-search-input {
        flex: 0 1 auto;
        min-height: 48px;
    }

    .lp-search-btn {
        width: 100%;
    }

    .lp-features-grid {
        grid-template-columns: 1fr;
    }

    .lp-result-row {
        grid-template-columns: 110px 1fr;
    }
}

/* ===== TOP: mobile hero image hide + move search into hero ===== */
.lp-only-mobile {
    display: none;
}

.lp-only-desktop {
    display: block;
}

@media (max-width: 840px) {
    .lp-only-mobile {
        display: block;
    }

    .lp-only-desktop {
        display: none;
    }

    /* スマホ：Hero右の画像は表示しない */
    .lp-hero-right {
        display: none;
    }

    /* スマホ：Hero内検索の見た目調整 */
    .lp-hero-inner {
        padding-bottom: 18px;
    }

    .lp-hero-search .lp-search-card {
        margin: 14px 0 0;
        max-width: 100%;
    }
}

/* ===== /TOP ===== */

/* ===== LP header mobile fix ===== */
.lp-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lp-nav-desktop {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.lp-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    white-space: nowrap;
}

.lp-brand {
    min-width: auto;
}

.lp-brand-name {
    display: none;
}

/* タイトル文字は出さない */

@media (max-width: 840px) {
    .lp-nav-desktop {
        display: none;
    }

    .lp-header-right {
        display: none;
    }

    /* スマホは全部ハンバーガー内 */
    .lp-hamburger {
        display: block;
        margin-left: auto;
    }

    .lp-nav {
        position: fixed;
        top: 58px;
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        gap: 12px;
        background: #fff;
        border: 1px solid rgba(95, 127, 167, .22);
        border-radius: 16px;
        padding: 12px;
        box-shadow: 0 18px 40px rgba(17, 24, 39, .10);
        max-height: calc(100vh - 80px);
        overflow: auto;
        z-index: 60;
    }

    .lp-nav.is-open {
        display: flex;
    }

    .lp-nav-sep {
        height: 1px;
        background: var(--lp-line);
    }

    /* 女の人画像はスマホで非表示 */
    .lp-hero-right {
        display: none !important;
    }
}

/* ===== /LP ===== */

/* ===== Mobile hero text tuning (変数で調整できる) ===== */
:root {
    /* PC/通常 */
    --lp-hero-title-size: 34px;
    --lp-hero-title-line: 1.15;

    /* スマホ専用（ここを調整すればOK） */
    --lp-hero-title-size-sp: 26px;
    /* ← 好みで 24〜28px */
    --lp-hero-title-line-sp: 1.18;
    /* ← 好みで 1.15〜1.25 */
    --lp-hero-sub-size-sp: 13px;
    /* サブ文 */
}

/* 既存を上書き */
.lp-hero-title {
    font-size: var(--lp-hero-title-size);
    line-height: var(--lp-hero-title-line);
    word-break: keep-all;
}

@media (max-width: 840px) {
    .lp-hero-title {
        font-size: var(--lp-hero-title-size-sp);
        line-height: var(--lp-hero-title-line-sp);
        letter-spacing: 0;
    }

    .lp-hero-sub {
        font-size: var(--lp-hero-sub-size-sp);
        line-height: 1.6;
    }
}

/* ===== /Mobile hero text tuning ===== */

/* ===== FIX: PCでモバイルメニュー(lp-nav)が出ないようにする ===== */

/* PC/通常はモバイルメニューを非表示（開いても出さない） */
#lpNav {
    display: none;
}

/* PCはハンバーガーも非表示（既存と競合してもこれで安定） */
.lp-hamburger {
    display: none;
}

/* PC用エリア */
.lp-nav-desktop {
    display: flex;
}

.lp-header-right {
    display: flex;
}

@media (max-width: 840px) {

    /* スマホはPC用を隠す */
    .lp-nav-desktop {
        display: none !important;
    }

    .lp-header-right {
        display: none !important;
    }

    /* スマホはハンバーガー表示 */
    .lp-hamburger {
        display: block !important;
        margin-left: auto;
    }

    /* スマホはメニューを開閉 */
    #lpNav {
        display: none;
    }

    #lpNav.is-open {
        display: flex;
    }
}

/* ===== /FIX ===== */