/**
 * MEDCRU Custom Styles
 *
 * Design Language:
 *   Navy:      #2B4C7E (primary)
 *   Rose Gold: #C4826E (accent)
 *   Light Blue:#B8C9D9 (secondary)
 *   Navy Dark: #1A2744 (backgrounds)
 *   Surface:   #FAFAFA
 *   Text:      #1A1A1A
 *   Muted:     #6B7280
 *   Border:    #E5E7EB
 *
 * Fonts:
 *   Body:           "Noto Sans JP", sans-serif
 *   English Heading: "Cormorant Garamond", serif
 *
 * @package medcru-theme
 * @version 1.0.0
 */

/* ========================================
   Reset & Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #1A1A1A;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Override WordPress block gap on front-page and custom sections */
.medcru-front-page.is-layout-flow > *,
.medcru-service-page.is-layout-flow > *,
.medcru-about-page.is-layout-flow > *,
.medcru-contact-page.is-layout-flow > * {
    margin-block-start: 0 !important;
}

.medcru-front-page.is-layout-flow > :first-child,
.medcru-service-page.is-layout-flow > :first-child,
.medcru-about-page.is-layout-flow > :first-child,
.medcru-contact-page.is-layout-flow > :first-child {
    margin-block-start: 0 !important;
}

.wp-site-blocks > .medcru-header-wrapper {
    margin-block-start: 0 !important;
}

.wp-site-blocks > * + * {
    margin-block-start: 0 !important;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
    z-index: 999999;
}

/* ========================================
   Scroll Animation
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for children */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ========================================
   Container
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ========================================
   Header
   ======================================== */
.medcru-header-wrapper {
    padding-top: 80px;
}

.medcru-header {
    width: 100vw;
    margin-left: 0;
    background-color: #FFFFFF;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 80px;
    transition: box-shadow 0.3s ease;
}

.medcru-header.is-scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.medcru-header-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 40px;
}

.medcru-logo {
    height: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.medcru-logo img {
    max-height: 36px;
    width: auto;
}

.medcru-right-group {
    display: flex;
    align-items: center;
    gap: 32px;
}

.medcru-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.medcru-nav-link {
    color: #1A1A1A;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.medcru-nav-link:hover {
    color: #2B4C7E;
}

.medcru-nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2B4C7E;
    transition: width 0.3s ease;
}

.medcru-nav-link:hover::after {
    width: 100%;
}

.medcru-cta-btn {
    display: inline-block;
    background-color: #C4826E;
    color: #FFFFFF;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: "Noto Sans JP", sans-serif;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.medcru-cta-btn:hover {
    background-color: #b3735f;
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* Hamburger */
.medcru-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1100;
}

.medcru-hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1A1A1A;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.medcru-hamburger-line + .medcru-hamburger-line {
    margin-top: 6px;
}

.medcru-hamburger.is-active .medcru-hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.medcru-hamburger.is-active .medcru-hamburger-line:nth-child(2) {
    opacity: 0;
}

.medcru-hamburger.is-active .medcru-hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Overlay */
.medcru-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(26, 39, 68, 0.97);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.medcru-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.medcru-mobile-overlay a {
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.medcru-mobile-overlay a:hover {
    color: #C4826E;
}

/* ========================================
   Hero Section (TOP page)
   ======================================== */
.hero-section {
    min-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 39, 68, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #FFFFFF;
    padding-top: calc(80px + 120px);
    padding-bottom: 120px;
    padding-left: 24px;
    padding-right: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.hero-subtitle {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta-btn {
    display: inline-block;
    background-color: #C4826E;
    color: #FFFFFF;
    padding: 14px 40px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    font-family: "Noto Sans JP", sans-serif;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.hero-cta-btn:hover {
    background-color: #b3735f;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(196, 130, 110, 0.4);
}

/* Page Hero (Subpages) */
.page-hero {
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

.page-hero .hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 39, 68, 0.6);
    z-index: 1;
}

.page-hero-en {
    position: relative;
    z-index: 2;
    font-family: "Cormorant Garamond", serif;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: #FFFFFF;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.page-hero-jp {
    position: relative;
    z-index: 2;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 2px;
}

/* ========================================
   Section Base
   ======================================== */
.section {
    padding: 100px 0;
}

.section-bg-surface {
    background-color: #FAFAFA;
}

.section-bg-white {
    background-color: #FFFFFF;
}

.section-bg-navy {
    background-color: #1A2744;
    color: #FFFFFF;
}

/* ========================================
   Section Title
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-en {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: #2B4C7E;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-bg-navy .section-title-en {
    color: #B8C9D9;
}

.section-title-jp {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1A1A1A;
}

.section-bg-navy .section-title-jp {
    color: #FFFFFF;
}

/* Alternative: left-aligned with blue left border */
.section-header-left {
    text-align: left;
    margin-bottom: 40px;
    border-left: 4px solid #2B4C7E;
    padding-left: 16px;
}

.section-header-left .section-title-en {
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.section-header-left .section-title-jp {
    font-size: 1rem;
}

/* ========================================
   Stat Cards (Pain Point Numbers)
   ======================================== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat-card {
    text-align: center;
    padding: 40px;
}

.stat-number {
    font-family: "Cormorant Garamond", serif;
    font-size: 4rem;
    font-weight: 700;
    color: #C4826E;
    line-height: 1.1;
}

.stat-unit {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #C4826E;
}

.stat-label {
    font-size: 0.9375rem;
    color: #6B7280;
    margin-top: 12px;
    line-height: 1.6;
}

/* ========================================
   Card Grid
   ======================================== */
.card-grid {
    display: grid;
    gap: 32px;
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    color: #2B4C7E;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.card-icon img,
.card-icon svg {
    width: 48px;
    height: 48px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1A1A1A;
    line-height: 1.5;
}

.card-description {
    font-size: 0.9375rem;
    color: #6B7280;
    line-height: 1.7;
}

/* ========================================
   PRISM Axis Cards
   ======================================== */
.prism-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.prism-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 28px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.prism-axis-label {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2B4C7E;
    margin-bottom: 4px;
}

.prism-axis-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
    color: #1A1A1A;
}

.prism-axis-bar {
    display: flex;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.prism-axis-left {
    background-color: #B8C9D9;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1A1A1A;
}

.prism-axis-right {
    background-color: #C4826E;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: #FFFFFF;
}

.prism-axis-divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.prism-axis-description {
    font-size: 0.8125rem;
    color: #6B7280;
    margin-top: 12px;
    line-height: 1.5;
}

/* ========================================
   Phase Flow
   ======================================== */
.phase-flow {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.phase-card {
    flex: 1;
    position: relative;
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Connector arrow between cards */
.phase-card:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #B8C9D9;
    z-index: 2;
}

.phase-number {
    font-family: "Cormorant Garamond", serif;
    font-size: 3rem;
    font-weight: 600;
    color: #B8C9D9;
    line-height: 1;
    margin-bottom: 4px;
}

.phase-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 8px 0;
}

.phase-subtitle {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #C4826E;
}

.phase-description {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 12px;
    line-height: 1.6;
}

/* ========================================
   Timeline (Vertical Steps)
   ======================================== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #B8C9D9;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 32px;
    height: 32px;
    background-color: #2B4C7E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.timeline-content {
    padding-left: 16px;
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.timeline-description {
    font-size: 0.9375rem;
    color: #6B7280;
    line-height: 1.7;
}

/* ========================================
   SYNC RATE Cards
   ======================================== */
.sync-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sync-card {
    text-align: center;
    padding: 24px;
    border-radius: 8px;
    border-top: 4px solid;
}

.sync-card-s {
    border-color: #2B4C7E;
    background-color: rgba(43, 76, 126, 0.05);
}

.sync-card-a {
    border-color: #C4826E;
    background-color: rgba(196, 130, 110, 0.05);
}

.sync-card-b {
    border-color: #B8C9D9;
    background-color: rgba(184, 201, 217, 0.05);
}

.sync-card-c {
    border-color: #6B7280;
    background-color: rgba(107, 114, 128, 0.05);
}

.sync-rank {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
}

.sync-card-s .sync-rank { color: #2B4C7E; }
.sync-card-a .sync-rank { color: #C4826E; }
.sync-card-b .sync-rank { color: #7a9ab8; }
.sync-card-c .sync-rank { color: #6B7280; }

.sync-label {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
}

.sync-description {
    font-size: 0.8125rem;
    color: #6B7280;
    margin-top: 8px;
    line-height: 1.5;
}

/* ========================================
   Checklist
   ======================================== */
.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-item {
    padding: 16px 0;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-icon {
    color: #C4826E;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.checklist-icon svg {
    width: 20px;
    height: 20px;
}

.checklist-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #1A1A1A;
}

/* ========================================
   CEO Message Section
   ======================================== */
.ceo-section {
    background: linear-gradient(135deg, #1A2744, #2B4C7E);
    color: #FFFFFF;
    padding: 100px 0;
}

.ceo-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.ceo-photo {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ceo-quote {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.6;
    color: #FFFFFF;
}

.ceo-message {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.85);
}

.ceo-name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #FFFFFF;
}

.ceo-title {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* ========================================
   MVV Section (Mission / Vision / Values)
   ======================================== */
.mvv-item {
    text-align: center;
    margin-bottom: 60px;
}

.mvv-item:last-child {
    margin-bottom: 0;
}

.mvv-label {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #C4826E;
    letter-spacing: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.mvv-text {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.6;
    color: #1A1A1A;
}

.section-bg-navy .mvv-text {
    color: #FFFFFF;
}

.mvv-description {
    font-size: 0.9375rem;
    color: #6B7280;
    margin-top: 12px;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-bg-navy .mvv-description {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Company Info Table
   ======================================== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 800px;
    margin: 0 auto;
}

.info-table th {
    text-align: left;
    padding: 16px 24px;
    background-color: #FAFAFA;
    border-bottom: 1px solid #E5E7EB;
    font-weight: 600;
    width: 160px;
    font-size: 0.9375rem;
    color: #1A1A1A;
    vertical-align: top;
}

.info-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #E5E7EB;
    font-size: 0.9375rem;
    color: #1A1A1A;
    line-height: 1.7;
}

/* ========================================
   Value Proposition Cards
   ======================================== */
.value-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #2B4C7E;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.value-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.value-card .card-icon {
    color: #2B4C7E;
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing-box {
    text-align: center;
    padding: 60px;
    background-color: #FAFAFA;
    border-radius: 8px;
    border: 2px dashed #B8C9D9;
}

.pricing-model {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2B4C7E;
    margin-bottom: 8px;
}

.pricing-detail {
    font-size: 1.125rem;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.pricing-note {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 12px;
    line-height: 1.6;
}

/* ========================================
   CTA Section
   ======================================== */
.medcru-cta-section {
    background: linear-gradient(135deg, #C4826E, #d4997f);
    padding: 80px 0;
    text-align: center;
}

.medcru-cta-heading {
    color: #FFFFFF;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.medcru-cta-subtext {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.medcru-cta-button {
    display: inline-block;
    background-color: #FFFFFF;
    color: #C4826E;
    padding: 14px 48px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    font-family: "Noto Sans JP", sans-serif;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.medcru-cta-button:hover {
    color: #C4826E;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* ========================================
   Contact Form
   ======================================== */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label,
.contact-form-wrapper label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9375rem;
    color: #1A1A1A;
}

.form-required {
    color: #C4826E;
    font-size: 0.75rem;
    margin-left: 4px;
}

.form-input,
.form-textarea,
.form-select,
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper input[type="url"],
.contact-form-wrapper textarea,
.contact-form-wrapper select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 1rem;
    font-family: "Noto Sans JP", sans-serif;
    color: #1A1A1A;
    background-color: #FFFFFF;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus,
.contact-form-wrapper select:focus {
    border-color: #2B4C7E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 76, 126, 0.1);
}

.form-textarea,
.contact-form-wrapper textarea {
    min-height: 160px;
    resize: vertical;
}

.form-submit,
.contact-form-wrapper input[type="submit"] {
    display: block;
    width: 100%;
    background-color: #C4826E;
    color: #FFFFFF;
    padding: 14px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Noto Sans JP", sans-serif;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-submit:hover,
.contact-form-wrapper input[type="submit"]:hover {
    background-color: #b3735f;
    transform: translateY(-1px);
}

/* Contact Form 7 (CF7) compatibility */
.wpcf7 {
    max-width: 700px;
    margin: 0 auto;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-top: 4px;
}

.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-url,
.wpcf7-textarea,
.wpcf7-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 1rem;
    font-family: "Noto Sans JP", sans-serif;
    color: #1A1A1A;
    background-color: #FFFFFF;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-tel:focus,
.wpcf7-url:focus,
.wpcf7-textarea:focus,
.wpcf7-select:focus {
    border-color: #2B4C7E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 76, 126, 0.1);
}

.wpcf7-textarea {
    min-height: 160px;
    resize: vertical;
}

.wpcf7-submit {
    display: block;
    width: 100%;
    background-color: #C4826E;
    color: #FFFFFF;
    padding: 14px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Noto Sans JP", sans-serif;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 16px;
}

.wpcf7-submit:hover {
    background-color: #b3735f;
    transform: translateY(-1px);
}

.wpcf7-response-output {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
}

.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: 4px;
}

/* ========================================
   Footer
   ======================================== */
.medcru-footer {
    background-color: #1A2744;
    color: #FFFFFF;
    padding: 60px 0 20px;
}

.medcru-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.medcru-footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.medcru-footer-logo img {
    max-height: 32px;
    width: auto;
    margin-bottom: 16px;
}

.medcru-footer-tagline {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.medcru-footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-content: start;
}

.medcru-footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.medcru-footer-nav a:hover {
    color: #FFFFFF;
}

.medcru-footer-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

.medcru-footer-company {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    line-height: 1.6;
}

.medcru-footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 12px;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-navy { color: #2B4C7E; }
.text-rose { color: #C4826E; }
.text-muted { color: #6B7280; }
.text-white { color: #FFFFFF; }

.font-heading-en {
    font-family: "Cormorant Garamond", serif;
}

.mb-0  { margin-bottom: 0; }
.mb-12 { margin-bottom: 12px; }
.mb-24 { margin-bottom: 24px; }
.mb-36 { margin-bottom: 36px; }
.mb-48 { margin-bottom: 48px; }
.mb-60 { margin-bottom: 60px; }

.mt-0  { margin-top: 0; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mt-36 { margin-top: 36px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Responsive: Tablet (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    /* Header */
    .medcru-header-container {
        padding: 0 24px;
    }

    .medcru-nav {
        gap: 20px;
    }

    /* Hero */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content {
        padding-top: calc(80px + 80px);
        padding-bottom: 80px;
    }

    .page-hero-en {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    /* Section */
    .section {
        padding: 80px 0;
    }

    .section-title-en {
        font-size: 1.75rem;
    }

    /* Stat grid */
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 3rem;
    }

    /* Card grid */
    .card-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    /* PRISM */
    .prism-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Phase detail */
    .phase-detail-list {
        gap: 36px;
    }

    .phase-detail-item {
        gap: 24px;
    }

    /* Section intro */
    .section-intro {
        margin-bottom: 36px;
    }

    /* Phase flow */
    .phase-flow {
        flex-wrap: wrap;
    }

    .phase-card {
        flex: 1 1 calc(50% - 12px);
        min-width: 200px;
    }

    .phase-card:not(:last-child)::after {
        display: none;
    }

    /* CEO */
    .ceo-grid {
        grid-template-columns: 240px 1fr;
        gap: 40px;
    }

    /* SYNC grid */
    .sync-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .medcru-footer-grid {
        gap: 24px;
    }
}

/* ========================================
   Responsive: Mobile (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Header */
    .medcru-header {
        height: 64px;
    }

    .medcru-header-container {
        height: 64px;
        padding: 0 16px;
    }

    .medcru-header-wrapper {
        padding-top: 64px;
    }

    .medcru-logo img {
        max-height: 28px;
    }

    .medcru-nav,
    .medcru-right-group > .medcru-cta-btn {
        display: none;
    }

    .medcru-hamburger {
        display: flex;
    }

    /* Hero */
    .hero-section {
        min-height: 70vh;
    }

    .hero-content {
        padding-top: calc(64px + 60px);
        padding-bottom: 60px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-title {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .hero-cta-btn {
        padding: 12px 32px;
        font-size: 0.9375rem;
    }

    /* Page Hero */
    .page-hero {
        height: 220px;
    }

    .page-hero-en {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .page-hero-jp {
        font-size: 0.875rem;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title-en {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .section-title-jp {
        font-size: 1rem;
    }

    /* Stat grid */
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 24px;
    }

    .stat-number {
        font-size: 3rem;
    }

    /* Card grid */
    .card-grid-3,
    .card-grid-5 {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 24px;
    }

    /* PRISM */
    .prism-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .prism-card {
        padding: 24px 16px;
    }

    /* Section intro */
    .section-intro {
        margin: -12px auto 32px;
        font-size: 0.875rem;
    }

    /* Phase flow */
    .phase-flow {
        flex-direction: column;
        gap: 16px;
    }

    .phase-card {
        flex: none;
        width: 100%;
    }

    .phase-card:not(:last-child)::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -12px;
        transform: translateX(-50%) rotate(90deg);
    }

    .phase-number {
        font-size: 2.5rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 32px;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-dot {
        left: -26px;
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .timeline-content {
        padding-left: 12px;
    }

    .timeline-title {
        font-size: 1rem;
    }

    .timeline-description {
        font-size: 0.875rem;
    }

    /* SYNC grid */
    .sync-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sync-card {
        padding: 16px;
    }

    .sync-rank {
        font-size: 2rem;
    }

    /* Checklist */
    .checklist-item {
        padding: 12px 0;
    }

    .checklist-text {
        font-size: 0.9375rem;
    }

    /* CEO */
    .ceo-section {
        padding: 60px 0;
    }

    .ceo-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .ceo-photo {
        max-width: 200px;
        margin: 0 auto;
    }

    .ceo-quote {
        font-size: 1.25rem;
    }

    .ceo-message {
        text-align: left;
    }

    /* MVV */
    .mvv-item {
        margin-bottom: 40px;
    }

    .mvv-text {
        font-size: 1.25rem;
    }

    /* Company Info Table */
    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 8px 16px;
    }

    .info-table th {
        padding-bottom: 0;
        border-bottom: none;
    }

    .info-table td {
        padding-top: 4px;
    }

    /* Pricing */
    .pricing-box {
        padding: 32px 24px;
    }

    .pricing-model {
        font-size: 1.25rem;
    }

    /* CTA Section */
    .medcru-cta-section {
        padding: 60px 0;
    }

    .medcru-cta-heading {
        font-size: 1.375rem;
    }

    .medcru-cta-subtext {
        font-size: 0.9375rem;
        margin-bottom: 24px;
    }

    .medcru-cta-button {
        padding: 12px 36px;
        font-size: 0.9375rem;
    }

    /* Contact Form */
    .contact-form-wrapper {
        padding: 24px 0;
    }

    /* Footer */
    .medcru-footer {
        padding: 40px 0 16px;
    }

    .medcru-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .medcru-footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .medcru-footer-company {
        font-size: 0.75rem;
    }
}

/* ========================================
   Responsive: Small Mobile (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .page-hero {
        height: 180px;
    }

    .page-hero-en {
        font-size: 1.75rem;
        letter-spacing: 2px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-unit {
        font-size: 1.25rem;
    }

    /* PRISM on small mobile: single column */
    .prism-grid {
        grid-template-columns: 1fr;
    }

    .sync-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .sync-rank {
        font-size: 1.75rem;
    }

    /* Phase detail on small mobile */
    .phase-detail-list {
        gap: 32px;
    }

    /* CEO quote on small mobile */
    .ceo-quote {
        font-size: 1.125rem;
    }

    /* Section intro on small mobile */
    .section-intro {
        font-size: 0.8125rem;
        margin-bottom: 24px;
    }

    /* Contact form fine-tuning */
    .contact-form-wrapper {
        padding: 16px 0;
    }

    .medcru-footer-nav {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Phase Detail (Service Page)
   ======================================== */
.phase-detail-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.phase-detail-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 32px;
    align-items: start;
}

.phase-detail-number-block {
    text-align: center;
}

.phase-detail-number {
    font-family: "Cormorant Garamond", serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: #B8C9D9;
    line-height: 1;
}

.phase-detail-en {
    font-family: "Cormorant Garamond", serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #C4826E;
    letter-spacing: 1px;
    margin-top: 4px;
}

.phase-detail-content {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #2B4C7E;
}

.phase-detail-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 16px;
}

.phase-detail-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.phase-detail-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9375rem;
    color: #6B7280;
    line-height: 1.7;
}

.phase-detail-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #B8C9D9;
}

.phase-detail-bullets li:last-child {
    margin-bottom: 0;
}

.phase-detail-highlight {
    color: #2B4C7E;
    font-weight: 500;
}

/* Connector line between phase items */
.phase-detail-item:not(:last-child) .phase-detail-number-block::after {
    content: "";
    display: block;
    width: 2px;
    height: 48px;
    background-color: #B8C9D9;
    margin: 8px auto 0;
}

/* Section intro text */
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: -20px auto 48px;
    font-size: 0.9375rem;
    color: #6B7280;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .phase-detail-item {
        grid-template-columns: 64px 1fr;
        gap: 16px;
    }

    .phase-detail-number {
        font-size: 2.5rem;
    }

    .phase-detail-content {
        padding: 24px 20px;
    }

    .phase-detail-title {
        font-size: 1.125rem;
    }

    .phase-detail-item:not(:last-child) .phase-detail-number-block::after {
        height: 48px;
    }
}

@media (max-width: 480px) {
    .phase-detail-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .phase-detail-number-block {
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 12px;
    }

    .phase-detail-item:not(:last-child) .phase-detail-number-block::after {
        display: none;
    }
}
