/* FRENVOX */

:root {
    --bg: #111;
    --bg-dark: #0a0a0a;
    --surface: #1a1a1a;
    --border: #222;
    --text: #ccc;
    --text-dim: #888;
    --text-muted: #555;
    --white: #fff;
    --accent: #c8a24e;
    --font: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;
    --nav-h: 64px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 640px; }

/* ---- Tag / Label ---- */
.tag {
    font-family: var(--font-en);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.tag-center { text-align: center; }

/* ---- Section ---- */
.section { padding: 120px 0; }
.section-dark { background: var(--bg-dark); }

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 48px;
    letter-spacing: 0.02em;
}
.section-title-center { text-align: center; }
.section-lead {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 48px;
}

/* ---- Button ---- */
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    border: 1px solid var(--accent);
    color: var(--accent);
    transition: background 0.3s, color 0.3s;
}
.btn:hover {
    background: var(--accent);
    color: var(--bg);
}
.btn-fill {
    background: var(--accent);
    color: var(--bg);
}
.btn-fill:hover {
    background: #dbb86e;
    border-color: #dbb86e;
}
.btn-full { width: 100%; text-align: center; }

.link-arrow {
    font-size: 0.85rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}
.link-arrow::after { content: '→'; }
.link-arrow:hover { gap: 12px; }


/* ================================================
   NAV
   ================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    transition: background 0.4s;
}
.nav.scrolled {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--white);
}
.nav-menu { display: flex; gap: 36px; }
.nav-link {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.75);
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav.scrolled .nav-link { color: var(--text-dim); }
.nav.scrolled .nav-link:hover, .nav.scrolled .nav-link.active { color: var(--white); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 24px; }
.nav-toggle span {
    height: 1.5px;
    background: var(--white);
    transition: 0.3s;
    transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ================================================
   HERO
   ================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    padding: 0 0 96px;
    background: url('../images/hero-medical.jpg') center / cover no-repeat;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(17,17,17, 0.95) 0%,
        rgba(17,17,17, 0.65) 40%,
        rgba(17,17,17, 0.45) 100%
    );
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
    width: 100%;
}
.hero-tag {
    font-family: var(--font-en);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 20px;
}
.hero-lead {
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    color: var(--text-dim);
    line-height: 2;
    margin-bottom: 36px;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* ================================================
   ABOUT
   ================================================ */
.about {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 64px;
    align-items: center;
}
.about-photo {
    overflow: hidden;
    border-radius: 4px;
}
.about-photo img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.about-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}
.about-name-en {
    font-family: var(--font-en);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.about-role {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 28px;
}
.about-text {
    margin-bottom: 28px;
}
.about-text p {
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 14px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-credentials {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.about-credentials span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent);
    padding: 4px 12px;
    border: 1px solid rgba(200,162,78,0.3);
}
.about-sig {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}


/* ================================================
   RESULTS / BEFORE-AFTER
   ================================================ */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    margin-bottom: 48px;
}
.result-card {
    padding: 36px 28px;
    background: var(--bg-dark);
    text-align: center;
}
.result-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}
.result-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}
.result-before .result-num {
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: line-through;
}
.result-after .result-num {
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
}
.result-unit {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
}
.result-arrow {
    font-size: 1.2rem;
    color: var(--accent);
}
.result-note {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.6;
}
.results-cta {
    text-align: center;
}
.results-cta p {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 16px;
}

/* ================================================
   SERVICES
   ================================================ */
.service-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 48px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.service-featured-img {
    overflow: hidden;
}
.service-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}
.service-featured:hover .service-featured-img img {
    transform: scale(1.05);
}
.service-featured-body {
    padding: 48px 40px;
    background: var(--surface);
}
.service-featured-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}
.service-featured-body p {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 20px;
}
.service-featured-body ul {
    margin-bottom: 24px;
}
.service-featured-body ul li {
    font-size: 0.85rem;
    color: var(--text-dim);
    padding: 4px 0 4px 16px;
    position: relative;
}
.service-featured-body ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.7rem;
}

.service-cat {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.service-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}
.service-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}
.service-item {
    padding: 40px 32px;
    background: var(--bg-dark);
}
.service-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.service-item p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.8;
}
.service-item .service-price {
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.service-item-free {
    border-left: 2px solid var(--accent);
}
.service-subsidy {
    font-size: 0.78rem;
    color: var(--accent);
    margin-bottom: 20px;
    padding: 8px 12px;
    background: rgba(200, 162, 78, 0.08);
    border-left: 2px solid var(--accent);
}


/* ================================================
   FLOW
   ================================================ */
.flow-list {
    max-width: 720px;
    margin: 0 auto;
}
.flow-step {
    display: flex;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}
.flow-step:first-child { border-top: 1px solid var(--border); }
.flow-num {
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.4;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
}
.flow-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}
.flow-body p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.8;
}

/* ================================================
   WHY
   ================================================ */
.why-list {
    max-width: 720px;
    margin: 0 auto;
}
.why-item {
    display: flex;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}
.why-item:first-child {
    border-top: 1px solid var(--border);
}
.why-num {
    font-family: var(--font-en);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    flex-shrink: 0;
    width: 56px;
}
.why-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.why-body p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.9;
}


/* ================================================
   FAQ
   ================================================ */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--white);
    cursor: pointer;
    list-style: none;
    transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.3s;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.9;
    padding: 0 0 20px;
}

/* ================================================
   CTA BANNER
   ================================================ */
.cta-banner {
    padding: 64px 0;
    background: var(--accent);
    text-align: center;
}
.cta-banner h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: var(--bg);
    margin-bottom: 8px;
}
.cta-banner p {
    font-size: 0.85rem;
    color: rgba(17,17,17,0.6);
    margin-bottom: 24px;
}
.cta-banner .btn {
    background: var(--bg);
    color: var(--white);
    border-color: var(--bg);
}
.cta-banner .btn:hover {
    background: transparent;
    color: var(--bg);
    border-color: var(--bg);
}

/* ================================================
   YOUTUBE
   ================================================ */
.youtube-wrap {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
.youtube-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.youtube-thumb img {
    width: 100%;
    transition: transform 0.6s ease;
}
.youtube-thumb:hover img { transform: scale(1.03); }
.youtube-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    color: var(--white);
    transition: background 0.3s;
}
.youtube-thumb:hover .youtube-play { background: rgba(0,0,0,0.15); }
.youtube-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 16px;
}

/* ================================================
   CONTACT
   ================================================ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 6px;
}
.form-group label span { color: var(--accent); }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }


/* ================================================
   FOOTER
   ================================================ */
.footer {
    padding: 48px 0 28px;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 32px;
}
.footer-logo {
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--white);
}
.footer-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color 0.3s;
}
.footer-nav a:hover { color: var(--text); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: color 0.3s;
}
.footer-legal a:hover { color: var(--text); }
.footer-copy {
    font-family: var(--font-en);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}


/* ================================================
   LEGAL PAGES
   ================================================ */
.legal-page {
    padding: calc(var(--nav-h) + 48px) 0 80px;
    min-height: 100vh;
}
.legal-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.legal-page h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 32px;
    margin-bottom: 12px;
}
.legal-page p, .legal-page li {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.9;
}
.legal-page ul {
    padding-left: 20px;
    list-style: disc;
    margin-bottom: 12px;
}
.legal-page li { margin-bottom: 4px; }
.legal-updated {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.legal-page table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}
.legal-page th, .legal-page td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    text-align: left;
    vertical-align: top;
}
.legal-page th {
    color: var(--text-dim);
    font-weight: 500;
    width: 160px;
    white-space: nowrap;
}
.legal-page td { color: var(--text); }
.legal-back {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 24px;
    transition: opacity 0.3s;
}
.legal-back:hover { opacity: 0.7; }

/* ================================================
   ANIMATION
   ================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: none;
}

.hero-inner > * {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.8s ease forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.25s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.4s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeUp {
    to { opacity: 1; transform: none; }
}


/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
    .about { grid-template-columns: 240px 1fr; gap: 40px; }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .service-featured { grid-template-columns: 1fr; }
    .service-featured-img { height: 240px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-item-free { border-left: none; border-top: 2px solid var(--accent); }
}

@media (max-width: 680px) {
    .section { padding: 80px 0; }
    .container { padding: 0 20px; }

    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: var(--nav-h); left: 0; right: 0; bottom: 0;
        background: rgba(17,17,17,0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    .nav-menu.open { opacity: 1; visibility: visible; }
    .nav-link { font-size: 1rem; }

    .hero { padding-bottom: 64px; }
    .hero-lead br { display: none; }

    .about {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .about-photo { max-width: 220px; margin: 0 auto; }
    .about-credentials { justify-content: center; flex-wrap: wrap; }
    .about-sig { text-align: center; }

    .results-grid { grid-template-columns: 1fr; }

    .flow-step { flex-direction: column; gap: 8px; }
    .flow-num { font-size: 1.4rem; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; }

    .service-featured-body { padding: 32px 24px; }
    .service-item { padding: 32px 24px; }

    .why-item { flex-direction: column; gap: 12px; }
    .why-num { font-size: 1.6rem; }

    .form-row { grid-template-columns: 1fr; }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-nav, .footer-legal { flex-wrap: wrap; justify-content: center; }
}
