/* ============================
   Variables & Reset
   ============================ */
:root {
    --navy: #0D1F3C;
    --navy-mid: #1B365D;
    --navy-light: #2E5077;
    --crimson: #C8003E;
    --crimson-light: #e0004a;
    --white: #FFFFFF;
    --off-white: #F7F9FC;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --shadow-sm: 0 2px 12px rgba(13, 31, 60, 0.08);
    --shadow-md: 0 8px 32px rgba(13, 31, 60, 0.14);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.75;
    font-size: 16px;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================
   Header
   ============================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(13, 31, 60, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.logo-badge {
    width: 40px;
    height: 40px;
    background: var(--crimson);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-badge svg {
    display: block;
}

.logo-text {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.logo-text small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.65;
    letter-spacing: 0.06em;
}

.header-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.header-link:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

/* ============================
   Hero
   ============================ */
.hero {
    background: var(--navy);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    padding: 5rem 2rem;
    max-width: 1080px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--crimson);
    border: 1px solid var(--crimson);
    padding: 0.3rem 0.9rem;
    border-radius: 2rem;
    margin-bottom: 1.75rem;
}

.hero-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: normal;
    color: var(--crimson);
}

.hero-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.85;
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--crimson);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--crimson);
}

.hero-cta:hover {
    background: transparent;
    color: var(--crimson);
}

/* Vital-sign SVG visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vs-display {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(6px);
}

.vs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.vs-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.vs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

.vs-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vs-metric {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.85rem 0.75rem;
    text-align: center;
}

.vs-metric-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.vs-metric-value {
    font-family: 'Outfit', monospace;
    font-size: 1.9rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.vs-metric-unit {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.2rem;
}

.vs-metric.hr .vs-metric-value {
    color: #ff6b6b;
}

.vs-metric.bp .vs-metric-value {
    color: #74b9ff;
}

.vs-metric.spo2 .vs-metric-value {
    color: #a29bfe;
}

.vs-waveform {
    width: 100%;
    height: 70px;
    overflow: hidden;
}

.vs-waveform svg {
    width: 100%;
    height: 100%;
}

.ecg-line {
    fill: none;
    stroke: #ff6b6b;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: ecg-scroll 3s linear infinite;
}

@keyframes ecg-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 840px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        margin: 0 auto;
    }

    .hero-visual {
        margin-top: 2rem;
    }
}

/* ============================
   Mission
   ============================ */
.mission {
    background: var(--white);
    padding: 6rem 0;
    position: relative;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--crimson), var(--navy));
}

.mission-text {
    max-width: 740px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 2;
}

/* ============================
   Goals
   ============================ */
.goals {
    background: var(--navy);
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 3rem;
}

.section-title.light {
    color: var(--white);
}

.section-title.dark {
    color: var(--navy);
}

.section-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: var(--crimson);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .goals-grid {
        grid-template-columns: 1fr;
    }
}

.goal-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.goal-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--crimson);
    transform: translateY(-4px);
}

.goal-icon {
    width: 52px;
    height: 52px;
    background: var(--crimson);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
    font-size: 1.4rem;
}

.goal-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.75;
}

/* ============================
   三者間メソッド
   ============================ */
.three-method {
    background: var(--off-white);
    padding: 6rem 0;
}

.three-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .three-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.three-desc p {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 0.95rem;
}

/* SVG Diagram */
.diagram-wrap {
    display: flex;
    justify-content: center;
}

.vsd-node {
    cursor: default;
    transition: var(--transition);
}

.vsd-node:hover circle:last-of-type {
    transform: scale(1.08);
    transform-origin: center;
}

/* ============================
   YouTube
   ============================ */
.youtube-section {
    background: var(--navy);
    padding: 2.5rem 2rem;
    text-align: center;
}

.yt-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.yt-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.1rem 2.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: none;
}

.yt-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.yt-icon {
    width: 38px;
    height: 28px;
    background: #FF0000;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-icon::after {
    content: '';
    border-style: solid;
    border-width: 7px 0 7px 14px;
    border-color: transparent transparent transparent white;
}

.yt-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

/* ============================
   Contact
   ============================ */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(150deg, #e9edf6 0%, #ede9f5 60%, #e7eef7 100%);
}

.contact-inner {
    max-width: 680px;
    margin: 0 auto;
}

.contact-lead {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.form-field label .req {
    color: var(--crimson);
    font-size: 0.7rem;
    margin-left: 0.3rem;
    font-weight: 400;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: white;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--navy-mid);
    box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

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

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.radio-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text);
}

.radio-group input[type="radio"] {
    accent-color: var(--navy);
    width: 16px;
    height: 16px;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 2rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.04em;
}

.submit-btn:hover {
    background: var(--navy-light);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#form-message {
    padding: 0.9rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: none;
}

#form-message.success {
    background: #dcfce7;
    color: #166534;
}

#form-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================
   Footer
   ============================ */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 2rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.footer-divider {
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0.5rem auto;
}

.footer-address {
    font-size: 0.85rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.6);
}

.footer-parent {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.82rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    text-align: center;
}

/* ============================
   Reveal animation
   ============================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}