/* MyPhys Astra Child v1.0 - Front LP */

body.myphys-front-lp .site-content,
body.myphys-front-lp .ast-container,
body.myphys-front-lp #primary,
body.myphys-front-lp .content-area {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.myphys-front-lp .entry-header,
body.myphys-front-lp .entry-title,
body.myphys-front-lp .comments-area,
body.myphys-front-lp .post-navigation {
    display: none !important;
}

.myphys-lp {
    --myphys-bg: #f5f8fb;
    --myphys-card: #ffffff;
    --myphys-muted: #64748b;
    --myphys-border: rgba(23, 105, 170, 0.14);
    --myphys-shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
    background: var(--myphys-bg);
    color: var(--myphys-ink, #1f2937);
    font-family: inherit;
    overflow: hidden;
}

.myphys-lp *,
.myphys-lp *::before,
.myphys-lp *::after {
    box-sizing: border-box;
}

.myphys-lp a {
    color: inherit;
    text-decoration: none;
}

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

.myphys-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.myphys-hero {
    position: relative;
    padding: clamp(56px, 7vw, 104px) 0 clamp(36px, 5vw, 78px);
    background:
        radial-gradient(circle at 10% 10%, rgba(18, 168, 138, 0.18), transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(23, 105, 170, 0.18), transparent 38%),
        linear-gradient(135deg, #f8fbff 0%, #edf7f6 100%);
}

.myphys-bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.4;
    pointer-events: none;
}

.myphys-bg-orb-1 {
    right: -80px;
    top: 90px;
    width: 220px;
    height: 220px;
    background: rgba(23, 105, 170, 0.18);
}

.myphys-bg-orb-2 {
    left: -100px;
    bottom: 10px;
    width: 260px;
    height: 260px;
    background: rgba(18, 168, 138, 0.16);
}

.myphys-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.myphys-badge,
.myphys-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 8px 14px;
    border: 1px solid rgba(23, 105, 170, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--myphys-primary, #1769aa);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.myphys-badge::before,
.myphys-section-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--myphys-accent, #12a88a);
    box-shadow: 0 0 0 5px rgba(18, 168, 138, 0.12);
}

.myphys-hero h1 {
    margin: 0;
    color: var(--myphys-ink, #1f2937);
    font-size: clamp(2.05rem, 5vw, 4.35rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.myphys-hero-lead {
    max-width: 670px;
    margin: 22px 0 0;
    color: #475569;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.9;
}

.myphys-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.myphys-btn,
.myphys-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.myphys-btn:hover,
.myphys-search-submit:hover {
    transform: translateY(-2px);
}

.myphys-btn-primary,
.myphys-search-submit {
    background: linear-gradient(135deg, var(--myphys-primary, #1769aa), #0f4f83);
    color: #fff !important;
    box-shadow: 0 14px 34px rgba(23, 105, 170, 0.26);
}

.myphys-btn-ghost {
    background: rgba(255, 255, 255, 0.88);
    color: var(--myphys-primary, #1769aa) !important;
    border: 1px solid rgba(23, 105, 170, 0.18);
}

.myphys-btn-light {
    background: #fff;
    color: var(--myphys-primary, #1769aa) !important;
}

.myphys-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.myphys-trust-row span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
}

.myphys-trust-row span::before {
    content: "✓";
    margin-right: 6px;
    color: var(--myphys-accent, #12a88a);
    font-weight: 900;
}

.myphys-search-panel {
    border: 1px solid rgba(23, 105, 170, 0.14);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: var(--myphys-shadow);
    backdrop-filter: blur(14px);
    padding: clamp(22px, 3vw, 32px);
}

.myphys-search-panel-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.myphys-search-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 16px;
    background: rgba(23, 105, 170, 0.10);
    font-size: 1.35rem;
}

.myphys-search-panel h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.myphys-search-panel p {
    margin: 4px 0 0;
    color: var(--myphys-muted);
    line-height: 1.7;
}

.myphys-search-form {
    display: grid;
    gap: 14px;
}

.myphys-field {
    display: grid;
    gap: 7px;
}

.myphys-field span {
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
}

.myphys-field input,
.myphys-field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.46);
    border-radius: 14px;
    background: #fff;
    color: var(--myphys-ink, #1f2937);
    font-size: 1rem;
    outline: none;
}

.myphys-field input:focus,
.myphys-field select:focus {
    border-color: var(--myphys-primary, #1769aa);
    box-shadow: 0 0 0 4px rgba(23, 105, 170, 0.10);
}

.myphys-search-note {
    margin-top: 15px !important;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    font-size: 0.84rem;
}

.myphys-metrics {
    margin-top: -24px;
    position: relative;
    z-index: 2;
}

.myphys-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.myphys-metric-card {
    border: 1px solid var(--myphys-border);
    border-radius: 22px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.myphys-metric-card strong {
    display: block;
    color: var(--myphys-primary, #1769aa);
    font-size: clamp(1.55rem, 2.7vw, 2.35rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.myphys-metric-card span {
    display: block;
    margin-top: 8px;
    color: var(--myphys-muted);
    font-weight: 700;
}

.myphys-section {
    padding: clamp(52px, 7vw, 88px) 0;
}

.myphys-section-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.myphys-section-head-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    max-width: none;
}

.myphys-section-head h2,
.myphys-keyword-copy h2,
.myphys-stat-card h2,
.myphys-bottom-cta h2 {
    margin: 0;
    color: var(--myphys-ink, #1f2937);
    font-size: clamp(1.55rem, 3vw, 2.55rem);
    line-height: 1.22;
    letter-spacing: -0.04em;
}

.myphys-section-head p:not(.myphys-section-kicker),
.myphys-keyword-copy p,
.myphys-stat-card p,
.myphys-bottom-cta p {
    margin: 12px 0 0;
    color: var(--myphys-muted);
    line-height: 1.85;
}

.myphys-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--myphys-primary, #1769aa) !important;
    font-weight: 900;
    white-space: nowrap;
}

.myphys-text-link::after {
    content: "→";
}

.myphys-quick-grid,
.myphys-type-grid,
.myphys-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.myphys-type-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.myphys-quick-card,
.myphys-type-card,
.myphys-related-card,
.myphys-post-card,
.myphys-empty-card {
    border: 1px solid var(--myphys-border);
    border-radius: 26px;
    background: var(--myphys-card);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.myphys-quick-card,
.myphys-type-card,
.myphys-related-card {
    display: block;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.myphys-quick-card:hover,
.myphys-type-card:hover,
.myphys-related-card:hover,
.myphys-pref-card:hover,
.myphys-post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(23, 105, 170, 0.32);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.10);
}

.myphys-quick-card > span,
.myphys-related-card > span,
.myphys-type-icon {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(23, 105, 170, 0.12), rgba(18, 168, 138, 0.16));
    color: var(--myphys-primary, #1769aa);
    font-size: 1.45rem;
    font-weight: 900;
}

.myphys-quick-card h3,
.myphys-type-card h3,
.myphys-related-card h3 {
    margin: 18px 0 0;
    color: var(--myphys-ink, #1f2937);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.myphys-quick-card p,
.myphys-type-card p,
.myphys-related-card p {
    margin: 9px 0 0;
    color: var(--myphys-muted);
    font-size: 0.94rem;
    line-height: 1.75;
}

.myphys-prefectures {
    background: #fff;
}

.myphys-pref-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.myphys-pref-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid rgba(23, 105, 170, 0.14);
    border-radius: 16px;
    background: #f8fbff;
    color: #334155 !important;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.myphys-facility-types {
    background: linear-gradient(180deg, #f5f8fb 0%, #eef8f6 100%);
}

.myphys-type-card {
    min-height: 210px;
}

.myphys-keywords {
    background: #fff;
}

.myphys-keyword-layout {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: clamp(26px, 5vw, 60px);
    align-items: center;
}

.myphys-keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.myphys-keyword-cloud a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid rgba(23, 105, 170, 0.16);
    border-radius: 999px;
    background: #f8fbff;
    color: var(--myphys-primary, #1769aa) !important;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.myphys-keyword-cloud a:hover {
    background: rgba(23, 105, 170, 0.08);
    transform: translateY(-2px);
}

.myphys-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.myphys-post-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.myphys-post-thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(23, 105, 170, 0.14), rgba(18, 168, 138, 0.18));
    color: var(--myphys-primary, #1769aa) !important;
    font-size: 2.4rem;
    font-weight: 900;
}

.myphys-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.myphys-post-body {
    padding: 20px;
}

.myphys-post-body time {
    display: block;
    margin-bottom: 9px;
    color: var(--myphys-accent, #12a88a);
    font-size: 0.82rem;
    font-weight: 900;
}

.myphys-post-body h3 {
    margin: 0;
    color: var(--myphys-ink, #1f2937);
    font-size: 1.08rem;
    line-height: 1.45;
}

.myphys-post-body h3 a:hover {
    color: var(--myphys-primary, #1769aa) !important;
}

.myphys-post-body p {
    margin: 10px 0 0;
    color: var(--myphys-muted);
    font-size: 0.93rem;
    line-height: 1.75;
}

.myphys-empty-card {
    padding: 26px;
    color: var(--myphys-muted);
}

.myphys-stat {
    padding-top: 0;
}

.myphys-stat-card {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    border-radius: 32px;
    background:
        radial-gradient(circle at 80% 20%, rgba(18, 168, 138, 0.22), transparent 34%),
        linear-gradient(135deg, #123f6b 0%, var(--myphys-primary, #1769aa) 100%);
    color: #fff;
    padding: clamp(28px, 5vw, 48px);
    box-shadow: var(--myphys-shadow);
}

.myphys-stat-card .myphys-section-kicker {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.myphys-stat-card h2,
.myphys-stat-card p {
    color: #fff;
}

.myphys-stat-card p {
    opacity: 0.88;
}

.myphys-related {
    background: #fff;
}

.myphys-bottom-cta {
    padding: clamp(38px, 6vw, 58px) 0;
    background: linear-gradient(135deg, var(--myphys-accent, #12a88a), #0d8b75);
    color: #fff;
}

.myphys-bottom-cta-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.myphys-bottom-cta h2,
.myphys-bottom-cta p {
    color: #fff;
}

.myphys-bottom-cta p {
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .myphys-hero-grid,
    .myphys-keyword-layout {
        grid-template-columns: 1fr;
    }

    .myphys-type-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .myphys-pref-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .myphys-container {
        width: min(100% - 28px, 1180px);
    }

    .myphys-hero {
        padding-top: 42px;
    }

    .myphys-hero-grid {
        gap: 24px;
    }

    .myphys-hero-actions,
    .myphys-bottom-cta-inner,
    .myphys-stat-card,
    .myphys-section-head-row {
        align-items: stretch;
        flex-direction: column;
    }

    .myphys-btn,
    .myphys-search-submit {
        width: 100%;
    }

    .myphys-metrics {
        margin-top: 0;
        padding-top: 14px;
        background: #fff;
    }

    .myphys-metrics-grid,
    .myphys-quick-grid,
    .myphys-type-grid,
    .myphys-post-grid,
    .myphys-related-grid {
        grid-template-columns: 1fr;
    }

    .myphys-pref-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .myphys-search-panel {
        border-radius: 24px;
    }

    .myphys-section {
        padding: 46px 0;
    }
}

@media (max-width: 420px) {
    .myphys-pref-grid {
        grid-template-columns: 1fr;
    }

    .myphys-trust-row span {
        width: 100%;
    }
}
