:root {
    --bg-dark: #16171d;
    --bg-dark-2: #1e2028;
    --bg-soft: #efede8;
    --bg-white: #f8f7f4;
    --line: #d5d1c8;

    --text-main: #171923;
    --text-sub: #596174;
    --text-light: #eff2f7;

    --accent: #d77a2f;
    --accent-soft: #e6a46d;
    --accent-2: #2d8a7b;
    --accent-2-soft: #3ba899;

    --container: 1080px;
    --section-space: 112px;

    --font-body: 'Noto Sans JP', sans-serif;
    --font-display: 'Cormorant Garamond', serif;

    --ease: all 0.45s cubic-bezier(.2, .7, .2, 1);

    /* Golden Ratio System (1:1.618) */
    --ratio: 1.618;
    --space-xs: 8px;
    --space-sm: 13px;  /* 8 * 1.618 */
    --space-md: 21px;  /* 13 * 1.618 */
    --space-lg: 34px;  /* 21 * 1.618 */
    --space-xl: 55px;  /* 34 * 1.618 */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.7;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

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

main {
    overflow: hidden;
}

.u-inline-block {
    display: inline-block;
}

/* ==========================================
   HEADER
   ========================================== */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--ease);
}

.site-header.scrolled {
    background: rgba(22, 23, 29, 0.86);
    backdrop-filter: blur(10px);
}

.header-inner {
    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-light);
}

.brand {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.12em;
    font-size: 1.2rem;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    opacity: 0.6;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    font-family: var(--font-body);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a {
    font-size: 0.83rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.site-nav a:hover {
    opacity: 1;
    color: #fff;
}

.site-nav .btn-nav {
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.03em;
}

.site-nav .btn-nav-corp {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.03em;
    transition: border-color 0.2s, color 0.2s;
}

.site-nav .btn-nav-corp:hover {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    opacity: 1;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    background: linear-gradient(145deg, #13151c 0%, #1a2230 50%, #172028 100%);
    min-height: 92vh;
    padding: 130px 0 80px;
    display: grid;
    align-items: center;
}

.hero-shell {
    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto;
    color: var(--text-light);
}


.hero-center {
    text-align: center;
}

.hero-center .eyebrow {
    display: inline-block;
}

.eyebrow {
    display: block;
    font-size: 0.73rem;
    letter-spacing: 0.18em;
    color: #8f9ab0;
    text-transform: uppercase;
    margin-bottom: 18px;
    text-align: center;
}

.hero-center h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.15;  /* Increased from 1.02 for better readability */
    margin-bottom: var(--space-md);
    letter-spacing: 0.03em;
    font-weight: 600;
}

.pc-only {
    display: inline;
}

@media (max-width: 760px) {
    .pc-only {
        display: none;
    }
}

.hero-center p {
    color: #c4cada;
    margin-bottom: var(--space-lg);
    font-size: 1rem;
    line-height: 1.7;
}

.hero-image-container {
    width: min(900px, calc(100% - 80px));
    margin: var(--space-xl) auto 0;
}

.hero-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .45);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.hero-buttons .ghost-link:first-child {
    border-color: var(--accent);
    background: rgba(215, 122, 47, 0.1);
}

.hero-buttons .ghost-link:first-child:hover {
    background: var(--accent);
    color: #fff;
}

.ghost-link-secondary {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   STATS BAR
   ========================================== */

.thumb-rail {
    background: var(--bg-dark);
    padding: var(--space-xl) 0;
    border-top: 2px solid var(--accent-2);
}

.rail-inner {
    width: min(var(--container), calc(100% - 120px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
}

.stat-item {
    text-align: center;
    padding: var(--space-md) 0;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-xs);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: #8f9ab0;
    letter-spacing: 0.08em;
}

/* ==========================================
   SECTION UTILITIES
   ========================================== */

.section-head {
    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1.3;
    letter-spacing: 0.05em;
}

.section-head p {
    margin-top: var(--space-sm);
    color: var(--text-sub);
    font-size: 0.95rem;
}

.works {
    padding: var(--section-space) 0;
    background: #f6f4ef;
}

.bg-soft {
    background: var(--bg-soft);
}

/* ==========================================
   PAIN POINTS SECTION
   ========================================== */

.pain-grid {
    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
}

.pain-footer {
    width: min(var(--container), calc(100% - 80px));
    margin: var(--space-lg) auto 0;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-main);
}

.pain-footer strong {
    color: var(--accent);
    font-weight: 700;
}

.pain-card {
    background: #fff;
    border: 1px solid #e1ddd5;
    border-left: 3px solid var(--accent);
    padding: var(--space-lg) var(--space-xl);  /* Golden ratio: 34px × 55px */
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    transition: var(--ease);
}

.pain-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.pain-card i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.pain-card p {
    font-size: 0.92rem;  /* Reduced from 0.98rem */
    color: var(--text-main);
    line-height: 1.7;
}

/* ==========================================
   SPLIT DARK / SOLUTION SECTIONS
   ========================================== */

.split-dark {
    background: linear-gradient(135deg, #16171d 0%, #1a2228 60%, #16171d 100%);
    color: var(--text-light);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
}

.split-copy {
    padding: clamp(48px, 8vw, 94px) clamp(24px, 5.2vw, 76px) clamp(48px, 8vw, 94px) clamp(40px, 6vw, 80px);
}

.split-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.split-copy p {
    color: #c2cada;
    max-width: 520px;
}

.split-copy .eyebrow {
    text-align: left;
}

.ai-list {
    list-style: none;
    margin: var(--space-lg) 0;
    text-align: left;
    display: inline-block;
}

.ai-list li {
    padding: var(--space-sm) 0;
    color: #c2cada;
    font-size: 0.95rem;
}

.ai-list li i {
    color: var(--accent-2-soft);
    margin-right: var(--space-sm);
}

.ghost-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 11px 18px;
}

.ghost-link:hover {
    border-color: #fff;
}

.split-image img {
    height: 100%;
    min-height: 380px;
}

/* ==========================================
   FEATURE BAND / SOLUTION SECTION
   ========================================== */

.feature-band {
    padding: var(--section-space) 0;
    background: linear-gradient(120deg, #15171f 0%, #1c2530 50%, #1f2335 100%);
    color: var(--text-light);
}

.band-copy,
.band-grid {
    width: min(var(--container), calc(100% - 80px));
    margin-inline: auto;
}

.band-copy {
    text-align: center;
}

.band-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: var(--space-sm);
}

.band-copy p {
    color: #c2cbdb;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.band-grid {
    margin-top: var(--space-lg);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
}

.band-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: var(--space-lg) var(--space-md);  /* Golden ratio: 34px × 21px */
    min-height: 160px;  /* Increased from 145px */
    transition: var(--ease);
}

.band-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.band-card i {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    display: block;
}

.band-card:nth-child(even) i {
    color: var(--accent-2-soft);
}

.band-card h3 {
    color: #f2f4f8;
    margin-bottom: var(--space-xs);
    font-size: 1.05rem;
}

.band-card p {
    color: #adb7cb;
    font-size: 0.9rem;
    line-height: 1.65;
}

.solution-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: var(--space-lg) var(--space-md);
    transition: var(--ease);
}

.solution-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.solution-card .icon {
    font-size: 2.2rem;  /* Reduced from 2.5rem */
    margin-bottom: var(--space-md);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services-grid {
    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
}

.service-card {
    background: #fff;
    border: 1px solid #e1ddd5;
    padding: var(--space-xl) var(--space-lg);  /* Golden ratio: 55px × 34px */
    text-align: center;
    transition: var(--ease);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.service-card:nth-child(even):hover {
    border-color: var(--accent-2);
}

.service-card:nth-child(even) .icon {
    color: var(--accent-2);
}

.service-card .icon {
    font-size: 2.4rem;  /* Reduced from 2.8rem */
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;  /* Reduced from 1.5rem */
    margin-bottom: var(--space-sm);
    color: var(--text-main);
}

.service-card p {
    font-size: 0.88rem;  /* Reduced from 0.92rem */
    color: var(--text-sub);
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.service-card .price,
.service-card .service-price {
    font-family: var(--font-display);
    font-size: 1.2rem;  /* Reduced from 1.3rem */
    font-weight: 600;
    color: var(--accent);
    margin-top: var(--space-sm);
}

.service-card .service-link {
    display: inline-block;
    margin-top: var(--space-xs);
    color: var(--accent);
    font-size: 0.85rem;
    text-decoration: underline;
    transition: var(--ease);
}

.service-card .service-link:hover {
    color: var(--accent-soft);
}

.service-card .cta-link {
    display: inline-block;
    margin-top: var(--space-sm);
    color: var(--accent);
    font-size: 0.85rem;
    text-decoration: underline;
    transition: var(--ease);
}

.service-card .cta-link:hover {
    color: var(--accent-soft);
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */

.media-section {
    margin-bottom: var(--space-xl);
}

.media-section-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    color: var(--text-main);
}

.media-note,
.client-note {
    text-align: center;
    color: var(--text-sub);
    font-size: 0.9rem;
    margin-top: var(--space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.media-grid {
    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
}

.media-item {
    background: #fff;
    border: 1px solid #e1ddd5;
    padding: var(--space-md);
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: var(--ease);
}

.media-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.media-item img {
    height: 180px;
    object-fit: cover;
    margin-bottom: var(--space-sm);
    border-radius: 2px;
}

.media-item h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.media-item p {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.5;
}

/* Client Portfolio */
.client-portfolio {
    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
}

.client-item {
    background: #fff;
    border: 1px solid #e1ddd5;
    overflow: hidden;
    transition: var(--ease);
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.client-item img {
    height: 200px;  /* Reduced from 220px */
    object-fit: cover;
}

.client-body {
    padding: var(--space-md);
}

.client-body .tag {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--text-sub);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: var(--space-xs);
}

.client-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;  /* Reduced from 1.3rem */
    margin-bottom: var(--space-xs);
    color: var(--text-main);
}

.client-body p {
    font-size: 0.87rem;  /* Reduced from 0.9rem */
    color: var(--text-sub);
    line-height: 1.65;
}

/* ==========================================
   PRICING SECTION
   ========================================== */

.pricing-grid {
    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
}

.pricing-card {
    background: #fff;
    border: 2px solid #e1ddd5;
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    transition: var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(215, 122, 47, 0.15);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 999px;
}

.pricing-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;  /* Reduced from 1.6rem */
    margin-bottom: var(--space-sm);
    color: var(--text-main);
}

.pricing-card .price,
.pricing-card .plan-price {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-xs);
    display: block;
}

.pricing-card .plan-price span {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-left: var(--space-xs);
}

.pricing-card .price-note {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: var(--space-md);
}

.pricing-card ul,
.pricing-card .plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-lg);
    flex: 1;
}

.pricing-card ul li,
.pricing-card .plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.88rem;
    color: var(--text-main);
}

.pricing-card ul li:last-child,
.pricing-card .plan-features li:last-child {
    border-bottom: none;
}

.pricing-card ul li i,
.pricing-card .plan-features li i {
    color: var(--accent);
    margin-right: var(--space-xs);
}

.plan-btn {
    width: 100%;
    justify-content: center;
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
    margin-top: auto;
}

.plan-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
}

/* Pricing Note */
.pricing-note {
    width: min(var(--container), calc(100% - 80px));
    margin: var(--space-lg) auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.8;
}

.pricing-note .service-link {
    color: var(--accent);
}

/* Maintenance Option */
.maintenance-option {
    width: min(920px, calc(100% - 80px));
    margin: var(--space-xl) auto 0;
    background: linear-gradient(135deg, #1a1c24 0%, #232735 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--accent-2);
    border-radius: 4px;
    padding: var(--space-xl) var(--space-lg);
    text-align: left;
    color: var(--text-light);
}

.maintenance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.option-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: var(--space-xs);
}

.maintenance-option h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-light);
}

.maintenance-option h3 i {
    color: var(--accent);
    margin-right: var(--space-xs);
}

.maintenance-price {
    text-align: right;
}

.maintenance-price > span {
    font-size: 0.75rem;
    color: #8f9ab0;
    letter-spacing: 0.06em;
}

.maintenance-price > div {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.2;
}

.maintenance-price > div span {
    font-size: 0.8rem;
    color: #8f9ab0;
    margin-left: 4px;
}

.maintenance-option > p {
    font-size: 0.88rem;
    color: #b0b8cc;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-md);
}

.maintenance-option ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.maintenance-option ul li {
    font-size: 0.87rem;
    color: var(--text-sub);
}

.maintenance-option ul li i {
    color: var(--accent);
    margin-right: var(--space-xs);
}

/* ==========================================
   FLOW SECTION
   ========================================== */

.flow-section {
    padding: var(--section-space) 0;
    background: linear-gradient(145deg, #13151c 0%, #1a2530 50%, #171a24 100%);
    color: var(--text-light);
}

.flow-section .section-head h2 {
    color: var(--text-light);
}

.flow-section .section-head p {
    color: #8f9ab0;
}

.flow-section .eyebrow {
    color: #8f9ab0;
}

.flow-steps {
    width: min(780px, calc(100% - 80px));
    margin: 0 auto;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    position: relative;
}

.flow-step:not(:last-child) {
    padding-bottom: var(--space-lg);
}

.flow-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 2;
}

.flow-step:nth-child(even) .flow-number {
    background: var(--accent-2);
}

.flow-connector {
    position: absolute;
    left: 22px;
    top: 44px;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.flow-step:last-child .flow-connector {
    display: none;
}

.flow-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: var(--space-md) var(--space-lg);
}

.flow-content h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.flow-content p {
    font-size: 0.88rem;
    color: #9aa3b8;
    line-height: 1.6;
}

.flow-duration {
    display: inline-block;
    margin-top: var(--space-xs);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.flow-note {
    width: min(780px, calc(100% - 80px));
    margin: var(--space-xl) auto 0;
    text-align: center;
    font-size: 0.88rem;
    color: #8f9ab0;
    letter-spacing: 0.04em;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */

.testimonials-grid {
    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: #fff;
    border: 1px solid #e1ddd5;
    border-top: 3px solid var(--accent-2);
    padding: var(--space-xl) var(--space-lg);  /* Golden ratio: 55px × 34px */
    transition: var(--ease);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1.05rem;
    margin-bottom: var(--space-md);
}

.testimonial-card blockquote {
    font-size: 0.9rem;  /* Reduced from 0.95rem */
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: var(--space-md);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 2px solid var(--accent);
}

.testimonial-info {
    text-align: left;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.testimonial-company {
    font-size: 0.78rem;
    color: var(--text-sub);
}

.testimonial-note {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.82rem;
    color: #999;
}

/* ==========================================
   FAQ SECTION
   ========================================== */

.faq-list {
    width: min(920px, calc(100% - 80px));
    margin: 0 auto;
    border: 1px solid #ddd8cf;
    background: #fff;
}

.faq-item {
    border-bottom: 1px solid #ece8e1;
}

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

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--space-md) var(--space-lg);  /* Golden ratio */
    text-align: left;
    font-size: 1rem;  /* Reduced from 1.05rem */
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--ease);
}

.faq-question:hover {
    background: #f9f7f4;
    color: var(--accent);
}

.faq-item.active .faq-question {
    color: var(--accent-2);
}

.faq-question i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner,
.faq-answer p {
    padding: 0 var(--space-lg) var(--space-md);
    color: var(--text-sub);
    line-height: 1.8;
    font-size: 0.9rem;
}

/* ==========================================
   CONTACT CTA & FORM
   ========================================== */

.contact-cta {
    background: linear-gradient(135deg, #12141a 0%, #162028 50%, #1a1820 100%);
    padding: var(--section-space) 0;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(45, 138, 123, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.contact-cta::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(215, 122, 47, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-diagnosis-inner {
    width: min(1000px, calc(100% - 80px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-diagnosis-copy {
    color: var(--text-light);
}

.cta-diagnosis-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.cta-diagnosis-copy p {
    color: #bbc4d6;
    margin-bottom: var(--space-lg);
    font-size: 0.96rem;
    line-height: 1.8;
}

.cta-diagnosis-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-2);
    color: #fff;
    border-radius: 4px;
    padding: 14px 28px;
    font-size: 0.92rem;
    font-weight: 700;
    transition: var(--ease);
    text-decoration: none;
}

.cta-diagnosis-btn:hover {
    background: var(--accent-2-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 138, 123, 0.35);
}

.cta-diagnosis-points {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.diag-point {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--accent-2);
    border-radius: 4px;
    padding: var(--space-md) var(--space-lg);
    transition: var(--ease);
}

.diag-point:hover {
    background: rgba(255, 255, 255, 0.07);
    border-left-color: var(--accent-2-soft);
}

.diag-point > i {
    font-size: 1.4rem;
    color: var(--accent-2-soft);
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.diag-point div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.diag-point strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-light);
}

.diag-point span {
    font-size: 0.8rem;
    color: #8f9ab0;
}

.cta-badge {
    display: inline-block;
    background: rgba(45, 138, 123, 0.15);
    color: var(--accent-2-soft);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: var(--space-md);
    letter-spacing: 0.04em;
}

.cta-badge i {
    margin-right: 4px;
}

/* Legacy cta-links (kept for other uses) */
.cta-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.cta-links a {
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 0.88rem;
    color: var(--text-light);
}

.cta-links a:hover {
    border-color: var(--accent-2-soft);
    background: rgba(45, 138, 123, 0.08);
    color: var(--accent-2-soft);
}

/* Contact Form */
.contact-form {
    width: min(720px, calc(100% - 80px));
    margin: 0 auto;
}

.form-success {
    width: min(720px, calc(100% - 80px));
    margin: 0 auto;
    padding: var(--space-xl);
    background: #f4faf8;
    border: 1px solid var(--accent-2);
    border-left: 4px solid var(--accent-2);
    text-align: center;
    color: var(--text-main);
    line-height: 1.8;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-main);
    font-size: 0.92rem;
}

.form-group .required {
    color: var(--accent);
    font-size: 0.82rem;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);  /* Golden ratio */
    border: 1px solid #ddd8cf;
    border-radius: 4px;
    font-size: 0.92rem;
    font-family: var(--font-body);
    transition: var(--ease);
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(215, 122, 47, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.privacy-check {
    margin-top: var(--space-lg);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.88rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    padding: var(--space-md) var(--space-lg);  /* Golden ratio */
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    margin-top: var(--space-sm);
    justify-content: center;
    border-radius: 4px;
    transition: var(--ease);
}

.form-submit:hover {
    background: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(215, 122, 47, 0.3);
}

/* ==========================================
   NEWS SECTION (Legacy)
   ========================================== */

.news {
    padding: var(--section-space) 0;
    background: #fbfaf7;
}

.news-list {
    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto;
    border: 1px solid #ddd8cf;
    background: #fff;
}

.news-list li {
    display: grid;
    grid-template-columns: 120px 1fr 22px;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid #ece8e1;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list span {
    font-size: 0.8rem;
    color: #7f8798;
}

.news-list a {
    color: #22293a;
}

.news-list i {
    color: var(--accent);
}

/* ==========================================
   WORK ROW (Legacy)
   ========================================== */

.work-row {
    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto 28px;
    background: #fff;
    border: 1px solid #e1ddd5;
    display: grid;
    grid-template-columns: 45% 55%;
}

.work-row.reverse {
    grid-template-columns: 55% 45%;
}

.work-row.reverse img {
    order: 2;
}

.work-row img {
    height: 345px;
}

.work-body {
    padding: var(--space-lg) var(--space-xl);  /* Golden ratio */
}

.work-body h3 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.8vw, 2.1rem);  /* Reduced from 2.3rem */
    margin-bottom: var(--space-sm);
}

.work-body p {
    color: var(--text-sub);
    margin-bottom: var(--space-sm);
}

.work-body ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.work-body li {
    border: 1px solid #d8d3ca;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    color: #4d576c;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    background: #181a21;
    color: #d0d7e7;
    padding: var(--space-xl) 0 0;
    border-top: 2px solid var(--accent);
}

.footer-inner {
    width: min(var(--container), calc(100% - 80px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.footer-brand-col {
    flex-shrink: 0;
    max-width: 240px;
}

.footer-tagline {
    font-size: 0.78rem;
    color: #8f9ab0;
    letter-spacing: 0.06em;
    margin-top: var(--space-xs);
    margin-bottom: var(--space-md);
}

.footer-desc {
    font-size: 0.83rem;
    color: #8f9ab0;
    line-height: 1.8;
}

.footer-nav-cols {
    display: flex;
    gap: var(--space-xl);
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 120px;
}

.footer-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-md) 0;
    text-align: center;
}

.footer-bottom small {
    font-size: 0.78rem;
    color: #5a6070;
    letter-spacing: 0.04em;
}

.site-footer .brand {
    font-family: var(--font-display);
    font-size: 1.5rem;  /* Reduced from 1.55rem */
    color: #fff;
    letter-spacing: .08em;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.site-footer .brand .brand-sub {
    display: block;
    margin-top: 8px;
    font-size: 0.70rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #a8b1c4;
    text-transform: uppercase;
}

.site-footer p,
.site-footer a {
    color: #afb9cd;
    font-size: 0.87rem;
}

.footer-nav-col a {
    color: #8f9ab0;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.25s;
    line-height: 1.5;
}

.footer-nav-col a:hover {
    color: var(--accent-soft);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .75s ease, transform .75s ease;
}

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

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    .hero-shell {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }



    .rail-inner,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-inline: auto;
    }

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

    .cta-diagnosis-inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .flow-steps {
        width: min(680px, calc(100% - 80px));
    }

    .work-row,
    .work-row.reverse {
        grid-template-columns: 1fr;
    }

    .work-row.reverse img {
        order: 0;
    }

    .maintenance-option ul {
        grid-template-columns: 1fr;
    }
}

/* Mobile (760px) */
@media (max-width: 760px) {
    :root {
        --section-space: 84px;
    }

    .site-nav {
        position: fixed;
        top: 76px;
        left: 24px;
        right: 24px;
        background: rgba(21, 24, 32, 0.97);
        border: 1px solid rgba(255, 255, 255, 0.15);
        padding: var(--space-md);
        flex-direction: column;
        align-items: flex-start;
        transform: translateY(-14px);
        opacity: 0;
        pointer-events: none;
        transition: var(--ease);
        border-radius: 8px;
    }

    .site-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px; /* Reduced from 118px */
    }

    .hero-image {
        height: 240px;
    }

    .hero-image-container {
        margin-top: var(--space-lg);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px; /* Set specific gap for mobile vertical layout */
    }

    .hero-buttons .ghost-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .rail-inner,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

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

    .split-dark {
        grid-template-columns: 1fr;
    }

    .split-image img {
        min-height: 260px;
        max-height: 360px;
    }

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

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

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

    .client-portfolio {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        width: calc(100% - 48px);
    }

    .flow-content {
        padding: var(--space-sm) var(--space-md);
    }

    .news-list li {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }

    .footer-inner {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .footer-brand-col {
        max-width: 100%;
    }

    .footer-nav-cols {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .footer-nav-col {
        min-width: calc(50% - var(--space-lg));
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    :root {
        --section-space: 64px;
    }

    .hero-center h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .section-head h2 {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    /* フッターナビ: 超小型スマホで1列に */
    .footer-nav-cols {
        flex-direction: column;
    }

    .footer-nav-col {
        min-width: 100%;
    }

    /* フォーム完了メッセージ: パディング調整 */
    .form-success {
        padding: var(--space-lg) var(--space-md);
    }

    /* フロー・ステップ: テキスト圧縮防止 */
    .flow-content h4 {
        font-size: 1rem;
    }

    .flow-content p {
        font-size: 0.82rem;
    }
}

/* モバイルメニュー内ボタン調整 */
@media (max-width: 760px) {
    .site-nav .btn-nav,
    .site-nav .btn-nav-corp {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .site-nav .btn-nav-corp {
        border-color: rgba(255, 255, 255, 0.35);
        color: rgba(255, 255, 255, 0.75);
        padding: 12px 16px;
    }
}

/* ==========================================
   Page Top Button
   ========================================== */
.page-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    z-index: 900;
}

.page-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-top:hover {
    background: #c06a20;
}

@media (max-width: 600px) {
    .page-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }
}
