/* ========================================
   リセット・基本設定
======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand:       #0c3861;
    --brand-mid:   #1055a0;
    --brand-light: #1a7ad4;
    --brand-pale:  rgba(12, 56, 97, 0.08);
    --dark:        #060f1c;
    --text:        #1a2a3a;
    --text-mid:    #4a6275;
    --text-light:  #7a9ab5;
    --bg:          #ffffff;
    --bg-off:      #f4f7fb;
    --border:      #d6e4f0;
    --shadow:      0 8px 32px rgba(12,56,97,0.10);
    --shadow-lg:   0 24px 60px rgba(12,56,97,0.14);
    --radius:      6px;
    --radius-lg:   12px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }


/* ========================================
   ローディング画面
======================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.loading-screen.is-done {
    pointer-events: none;
}

.loading-inner {
    text-align: center;
    position: relative;
    z-index: 2;
}

.loading-logo-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    opacity: 0;
    transform: scale(0.8);
    animation: loadLogoIn 0.6s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.loading-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.loading-brand-name {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.35em;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: loadFadeIn 0.5s 0.6s ease forwards;
}

.loading-bar-wrap {
    width: 240px;
    height: 2px;
    background: rgba(255,255,255,0.12);
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: loadFadeIn 0.4s 0.9s ease forwards;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--brand-light);
    border-radius: 2px;
    transition: width 0.05s linear;
}

/* スライドアウト用パネル */
.loading-panel {
    position: absolute;
    left: 0;
    right: 0;
    height: 50%;
    background: var(--dark);
    transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 1;
}

.loading-panel--top    { top: 0; }
.loading-panel--bottom { bottom: 0; }

.loading-screen.slide-out .loading-panel--top    { transform: translateY(-100%); }
.loading-screen.slide-out .loading-panel--bottom { transform: translateY(100%); }
.loading-screen.slide-out .loading-inner         { opacity: 0; transition: opacity 0.3s; }

@keyframes loadLogoIn {
    to { opacity: 1; transform: scale(1); }
}
@keyframes loadFadeIn {
    to { opacity: 1; }
}


/* ========================================
   スクロールアニメーション共通
======================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-line {
    display: block;
    overflow: hidden;
    position: relative;
}

.reveal-line::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
}

/* ヒーロー内のreveal-lineは別途JSで制御 */


/* ========================================
   ヘッダー
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9100;
    transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 4px 20px rgba(12,56,97,0.06);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
}

.logo-link { display: flex; align-items: center; }

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

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.03em;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
    position: relative;
    transition: color 0.25s;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-list a:hover {
    color: var(--brand);
}

.nav-list a:hover::after {
    width: 100%;
}

/* ドロップダウン */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger { cursor: pointer; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 260px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.25s;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.65rem 1.5rem;
    font-size: 0.875rem;
    color: var(--text-mid);
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
}

.dropdown-menu a::after { display: none; }

.dropdown-menu a:hover {
    color: var(--brand);
    background: var(--brand-pale);
    padding-left: 1.75rem;
}

/* ナビCTAボタン */
.btn-contact {
    background: var(--brand) !important;
    color: #fff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(12,56,97,0.25);
}

.btn-contact::after { display: none !important; }

.btn-contact:hover {
    background: var(--brand-mid) !important;
    box-shadow: 0 6px 24px rgba(12,56,97,0.35);
    transform: translateY(-2px);
}

/* ハンバーガー */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
    border-radius: 2px;
}


/* ========================================
   ヒーローセクション
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    overflow: hidden;
    padding-top: 80px;
}

/* 背景グリッド */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(12,56,97,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12,56,97,0.18) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
}

/* 縦ラインアニメーション */
.hero-lines {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-around;
    overflow: hidden;
    pointer-events: none;
}

.hero-lines span {
    display: block;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--brand-mid) 50%, transparent 100%);
    animation: lineMove 8s linear infinite;
    opacity: 0;
}

.hero-lines span:nth-child(1) { animation-delay: 0s;   animation-duration: 7s;  opacity: 0.3; }
.hero-lines span:nth-child(2) { animation-delay: 1.5s; animation-duration: 9s;  opacity: 0.2; }
.hero-lines span:nth-child(3) { animation-delay: 3s;   animation-duration: 6s;  opacity: 0.35; }
.hero-lines span:nth-child(4) { animation-delay: 4.5s; animation-duration: 10s; opacity: 0.2; }
.hero-lines span:nth-child(5) { animation-delay: 2s;   animation-duration: 8s;  opacity: 0.25; }

@keyframes lineMove {
    0%   { transform: translateY(-100%); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* グラデーション発光 */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(12,56,97,0.55) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(26,122,212,0.2) 0%, transparent 65%);
    pointer-events: none;
}

/* ヒーローコンテンツレイアウト */
.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    color: #fff;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--brand-light);
    margin-bottom: 1.75rem;
    text-transform: uppercase;
}

.hero-label-line {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--brand-light);
    flex-shrink: 0;
}

/* テキストリビール */
.reveal-line {
    display: block;
    overflow: hidden;
}

.reveal-line-inner {
    display: block;
    transform: translateY(110%);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-line.line-visible .reveal-line-inner {
    transform: translateY(0);
}

.hero-title {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 1.75rem;
    /* 各行を nowrap にして日本語の中途半端な折り返しを防ぐ */
}

.hero-title .reveal-line {
    white-space: nowrap;
}

.hero-title-accent .reveal-line-inner {
    color: var(--brand-light);
}

.hero-sub {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ヒーロービジュアル枠 */
.hero-visual {
    position: relative;
}

.hero-visual-inner {
    position: relative;
}

.hero-img {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

/* バッジ */
.hero-badge {
    position: absolute;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.25rem;
    color: #fff;
    text-align: center;
    min-width: 110px;
    animation: badgeFloat 4s ease-in-out infinite;
}

.hero-badge--tl {
    top: -20px;
    left: -20px;
    animation-delay: 0s;
}

.hero-badge--br {
    bottom: -20px;
    right: -20px;
    animation-delay: 2s;
}

.badge-num {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.badge-num small {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
}

.badge-label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    writing-mode: vertical-rl;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%       { opacity: 1; transform: scaleY(1.1); }
}


/* ========================================
   共通ボタン
======================================== */
.btn-primary {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
    box-shadow: 0 4px 20px rgba(12,56,97,0.35);
}

.btn-primary:hover {
    background: var(--brand-mid);
    box-shadow: 0 8px 32px rgba(12,56,97,0.45);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-block;
    color: rgba(255,255,255,0.8);
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.25);
    transition: color 0.25s, border-color 0.25s, transform 0.2s;
}

.btn-ghost:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    color: var(--brand);
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--brand);
    transition: background 0.25s, color 0.25s, transform 0.2s;
}

.btn-outline:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}


/* ========================================
   セクション共通
======================================== */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-en {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--brand-light);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
}


/* ========================================
   事業内容
======================================== */
.services {
    background: var(--bg-off);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.25s;
    position: relative;
    border-radius: var(--radius);
}

.service-item:first-child {
    border-top: 1px solid var(--border);
}

.service-item:hover {
    background: rgba(12,56,97,0.04);
}

.service-item-num {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand);
    opacity: 0.4;
    min-width: 40px;
    line-height: 1;
    transition: opacity 0.25s;
}

.service-item:hover .service-item-num {
    opacity: 1;
}

.service-item-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.service-item-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--brand);
    background: var(--brand-pale);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s;
}

.service-item-icon svg {
    width: 22px;
    height: 22px;
}

.service-item:hover .service-item-icon {
    background: var(--brand);
    color: #fff;
}

.service-item-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
    transition: color 0.25s;
}

.service-item:hover .service-item-text h3 {
    color: var(--brand);
}

.service-item-text p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

.service-item-arrow {
    font-size: 1.2rem;
    color: var(--brand-light);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s, transform 0.25s;
    flex-shrink: 0;
}

.service-item:hover .service-item-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* ========================================
   実績セクション
======================================== */
.achievement {
    background: var(--brand);
    color: #fff;
}

.achievement .section-en {
    color: rgba(255,255,255,0.55);
}

.achievement .section-title {
    color: #fff;
}

.achievement .section-title::after {
    background: rgba(255,255,255,0.4);
}

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

.achievement-img-wrap {
    position: relative;
}

.achievement-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 32px 64px rgba(0,0,0,0.3);
}

.achievement-img-label {
    position: absolute;
    bottom: -1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
}

.achievement-lead {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.achievement-lead strong {
    position: relative;
    display: inline;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 100%);
    padding: 0 4px;
}

.achievement-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.85;
    margin-bottom: 3rem;
}

.achievement-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.25rem;
}

.stat-num {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1;
    display: inline;
    letter-spacing: -0.03em;
}

.stat-item small {
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 500;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.4rem;
}


/* ========================================
   CTAバナー
======================================== */
.cta-banner {
    background: var(--dark);
    padding: 80px 0;
}

.cta-banner-inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-banner-badge {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.cta-banner-title {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.cta-banner-title em {
    font-style: normal;
    color: var(--brand-light);
}

.cta-banner-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 2rem;
}


/* ========================================
   会社概要
======================================== */
.about {
    background: var(--bg);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.about-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.about-tagline {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 800;
    color: var(--brand);
    line-height: 1.5;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.about-desc {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 2rem;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    vertical-align: top;
    line-height: 1.7;
}

.company-table th {
    width: 120px;
    font-weight: 700;
    color: var(--text);
    padding-right: 1.5rem;
    white-space: nowrap;
}

.company-table td {
    color: var(--text-mid);
}


/* ========================================
   お問い合わせ
======================================== */
.contact {
    background: var(--bg-off);
}

.contact-inner {
    max-width: 700px;
}

.contact-text {
    font-size: 0.95rem;
    color: var(--text-mid);
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.required {
    color: #e53e3e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(12,56,97,0.1);
}

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

.btn-submit {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(12,56,97,0.25);
    align-self: flex-start;
}

.btn-submit:hover {
    background: var(--brand-mid);
    box-shadow: 0 8px 28px rgba(12,56,97,0.35);
    transform: translateY(-2px);
}

.contact-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.7;
}

.contact-note a {
    color: var(--brand);
    text-decoration: underline;
}


/* ========================================
   フッター
======================================== */
.footer {
    background: var(--dark);
    padding: 3rem 0 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.25s;
}

.footer-nav a:hover {
    color: rgba(255,255,255,0.9);
}

.footer-bottom {
    padding: 1.25rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    font-family: 'Inter', sans-serif;
}


/* ========================================
   無料相談固定バー
======================================== */
.promo-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 800;
    background: var(--brand);
    color: #fff;
    transform: translateY(110%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 -4px 24px rgba(12,56,97,0.3);
}

.promo-bar.is-visible {
    transform: translateY(0);
}

.promo-bar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.promo-bar-badge {
    background: rgba(255,255,255,0.2);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.promo-bar-text {
    font-size: 0.875rem;
    flex: 1;
    min-width: 200px;
    color: rgba(255,255,255,0.9);
}

.promo-bar-text strong { font-weight: 700; }

.promo-bar-btn {
    background: #fff;
    color: var(--brand);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

.promo-bar-btn:hover {
    background: rgba(255,255,255,0.85);
    transform: translateY(-1px);
}

.promo-bar-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s;
    padding: 4px;
}

.promo-bar-close:hover {
    color: #fff;
}


/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding-top: 2rem;
        padding-bottom: 4rem;
    }

    .hero-label { justify-content: center; }
    .hero-actions { justify-content: center; }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .achievement-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav ul {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    section { padding: 72px 0; }

    /* モバイルナビ */
    .hamburger {
        display: flex;
        position: relative;
        z-index: 9200; /* nav(9000)より上に常に表示 */
    }

    /* 暗い背景上ではスパンを白に */
    .hamburger span { background: #fff; }
    /* スクロール後（ヘッダーが白くなった時）は暗色に */
    .header.scrolled .hamburger:not(.active) span { background: var(--text); }

    /* メニューOpen時はヘッダーも暗く統一 */
    .header.menu-open {
        background: rgba(6,15,28,0.97) !important;
        backdrop-filter: blur(10px);
        box-shadow: none;
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* iOS Safari で bottom:0 が効かない場合の保険 */
        height: 100vh;
        height: 100dvh;
        background: rgba(6,15,28,0.97);
        backdrop-filter: blur(10px);
        z-index: 9000;
        overflow-y: auto;
        overscroll-behavior: contain;
        align-items: center;
        justify-content: center;
    }

    .nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .nav-list > li {
        border-bottom: 1px solid rgba(255,255,255,0.08);
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 1.1rem 2rem;
        font-size: 1.1rem;
        color: rgba(255,255,255,0.8) !important;
        background: none !important;
    }

    .nav-list a::after { display: none; }

    .btn-contact {
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.04);
        border-radius: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
        color: rgba(255,255,255,0.55) !important;
    }

    .dropdown-menu a:hover {
        padding-left: 2.25rem !important;
        background: transparent !important;
    }

    /* ハンバーガー（白バージョン - active時） */
    .hamburger.active span { background: #fff; }

    .achievement-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-num { font-size: 2rem; }

    .promo-bar-inner { gap: 0.75rem; }
    .promo-bar-text { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.9rem; }
    .hero-title .reveal-line { white-space: normal; }

    .achievement-stats { grid-template-columns: 1fr; }

    .hero-badge {
        padding: 0.5rem 0.85rem;
        min-width: 88px;
        border-radius: 10px;
    }
    .hero-badge--tl { top: -10px; left: -8px; }
    .hero-badge--br { bottom: -10px; right: -8px; }
    .badge-num { font-size: 1.3rem; }
    .badge-label { font-size: 0.6rem; }

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

    .btn-submit { width: 100%; text-align: center; }
}


/* ========================================
   fade-in（サービスページ共通クラス）
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================
   ページヒーロー（下層ページ共通）
======================================== */
.page-hero {
    position: relative;
    background: var(--dark);
    padding: 120px 0 80px;
    overflow: hidden;
}

.page-hero .hero-lines {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
}

.page-hero .hero-lines span {
    display: block;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, #1055a0 50%, transparent 100%);
    animation: lineMove 8s linear infinite;
    opacity: 0;
}

.page-hero .hero-lines span:nth-child(1) { animation-delay: 0s;   opacity: 0.3; }
.page-hero .hero-lines span:nth-child(2) { animation-delay: 1.5s; opacity: 0.2; }
.page-hero .hero-lines span:nth-child(3) { animation-delay: 3s;   opacity: 0.35; }
.page-hero .hero-lines span:nth-child(4) { animation-delay: 4.5s; opacity: 0.2; }
.page-hero .hero-lines span:nth-child(5) { animation-delay: 2s;   opacity: 0.25; }

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(12,56,97,0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(26,122,212,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero-content { max-width: 720px; }

.page-hero-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #1a7ad4;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: phFadeUp 0.7s ease 0.15s both;
}

.page-hero-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: #1a7ad4;
    flex-shrink: 0;
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    animation: phFadeUp 0.75s ease 0.35s both;
}

.page-hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: rgba(255,255,255,0.65);
    line-height: 1.9;
    animation: phFadeUp 0.75s ease 0.55s both;
}

@keyframes phFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ========================================
   サービス概要
======================================== */
.service-overview { background: var(--bg); padding: 96px 0; }
.service-overview-content { max-width: 800px; }
.service-overview-text {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 2.1;
    margin-top: 1.75rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--brand-light);
}


/* ========================================
   課題カード
======================================== */
.service-problems { background: var(--bg-off); padding: 96px 0; }

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.problem-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: border-left-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.problem-card:hover {
    border-left-color: var(--brand-light);
    box-shadow: var(--shadow);
    transform: translateX(3px);
}

.problem-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--brand-pale);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

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

.problem-card:hover .problem-icon {
    background: var(--brand);
    color: #fff;
    transform: scale(1.1);
}

.problem-card p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin: 0;
}

.problem-card p strong { color: var(--text); font-weight: 700; }


/* ========================================
   サービス詳細カード
======================================== */
.service-details { background: var(--bg); padding: 96px 0; }

.section-intro {
    font-size: 0.95rem;
    color: var(--text-mid);
    margin-top: 0.75rem;
    max-width: 640px;
}

.service-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.service-details-grid--2col { grid-template-columns: repeat(2, 1fr); }

.service-detail-card {
    background: var(--bg-off);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-mid), var(--brand-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-detail-card:hover {
    border-color: rgba(12,56,97,0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-detail-card:hover::before {
    transform: scaleX(1);
}

.service-detail-number {
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--brand);
    opacity: 0.12;
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.04em;
}

.service-detail-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.service-detail-card p {
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.service-detail-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.service-detail-list li {
    font-size: 0.85rem;
    color: var(--text-mid);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
}

.service-detail-list li::before {
    content: '\2014';
    position: absolute;
    left: 0;
    color: #1a7ad4;
    font-size: 0.75rem;
}

/* ----------------------------------------
   01 フル幅カード（画像つき）
---------------------------------------- */
.service-detail-card--wide {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.card-with-image {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 1.25rem;
}

.card-body .stats-list {
    max-width: 360px;
}

.card-image img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-image-caption {
    font-size: 0.72rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
}

.card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-body p {
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.stats-list .stat-item {
    border-top: none;
    padding-top: 0;
}

.detail-sub-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin: 1rem 0 0.5rem;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.stats-list .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.stats-list .stat-label { color: var(--text-light); }
.stats-list .stat-value { font-weight: 700; color: var(--brand); }
.stats-list .stat-note { font-size: 0.75rem; color: var(--text-light); }


/* ========================================
   実績ショーケース
======================================== */
.achievement-showcase {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--bg-off);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.achievement-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.achievement-image-caption {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
}

.showcase-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.showcase-body p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

/* showcase-body 内の数字をバッジ風に表示 */
.showcase-body .service-detail-number {
    font-size: 0.72rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    color: var(--brand);
    opacity: 1;
    background: var(--brand-pale);
    border: 1px solid rgba(12,56,97,0.18);
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    line-height: 1.5;
}


/* ========================================
   プランカード
======================================== */
.service-plans { background: var(--bg-off); padding: 96px 0; }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

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

.plan-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
}

.plan-card:hover {
    border-color: rgba(12,56,97,0.35);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.plan-badge {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.plan-badge-secondary { background: var(--text-mid); }

.plan-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.plan-type { font-size: 0.8rem; color: #1a7ad4; font-weight: 600; margin-bottom: 0.75rem; }

.plan-desc {
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}


/* ========================================
   フロー
======================================== */
.service-flow { background: var(--dark); color: #fff; padding: 96px 0; }
.service-flow .section-title { color: #fff; }
.service-flow .section-title::after { background: rgba(255,255,255,0.3); }

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 3.5rem;
    position: relative;
}

.flow-steps::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, #1055a0, #1a7ad4);
    z-index: 0;
}

.flow-steps.flow-steps--5::before {
    left: 10%;
    right: 10%;
}

.flow-step {
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.flow-step-number {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--brand-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow: 0 0 0 6px rgba(16,85,160,0.25);
    flex-shrink: 0;
}

.flow-step-body h3,
.flow-step h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.flow-step-body p,
.flow-step p {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

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


/* ========================================
   強みカード
======================================== */
.service-strengths { background: var(--bg-off); padding: 96px 0; }

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.strength-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.strength-card:hover {
    border-color: rgba(12,56,97,0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.strength-icon {
    width: 56px;
    height: 56px;
    background: var(--brand-pale);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    margin-bottom: 1.5rem;
    transition: background 0.35s, color 0.35s, transform 0.35s;
    border: 1px solid rgba(12,56,97,0.12);
}

.strength-icon svg { width: 24px; height: 24px; }

.strength-card:hover .strength-icon {
    background: var(--brand);
    color: #fff;
    transform: scale(1.08) rotate(-5deg);
    border-color: transparent;
}

.strength-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.strength-card p {
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.75;
}

.strength-features { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1rem; }

.strength-features li {
    font-size: 0.83rem;
    color: var(--text-mid);
    padding-left: 1.2rem;
    position: relative;
}

.strength-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #1a7ad4;
    font-size: 0.75rem;
}


/* ========================================
   プロモバナー
======================================== */
.promo-banner { background: var(--brand); padding: 72px 0; color: #fff; }

.promo-banner-inner { text-align: center; max-width: 680px; margin: 0 auto; }

.promo-banner-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.promo-banner h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.promo-banner h2 span {
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.4);
}

.promo-banner p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.85;
    margin-bottom: 2rem;
}

.promo-banner-note { display: block; font-size: 0.8rem; margin-top: 0.5rem; opacity: 0.7; }

.promo-banner .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.promo-banner .btn-primary:hover { background: rgba(255,255,255,0.9); }


/* ========================================
   サービスCTA
======================================== */
.service-cta { background: var(--bg); padding: 80px 0; }

.service-cta-content { text-align: center; max-width: 560px; margin: 0 auto; }

.service-cta-content h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.service-cta-content p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 2rem;
}


/* ========================================
   会社概要テーブル（aboutページ）
======================================== */
.about-detail { background: var(--bg-off); }

.about-table-wrap { margin-top: 2.5rem; max-width: 760px; }

.about-table { width: 100%; border-collapse: collapse; }

.about-table th,
.about-table td {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    vertical-align: top;
    line-height: 1.7;
}

.about-table th {
    width: 140px;
    font-weight: 700;
    color: var(--text);
    padding-right: 2rem;
    white-space: nowrap;
}

.about-table td { color: var(--text-mid); }


/* ========================================
   執筆ジャンル（writingページ）
======================================== */
.service-genres { background: var(--bg); }

.genres-intro { font-size: 0.95rem; color: var(--text-mid); margin-top: 1rem; max-width: 600px; }

.genres-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.genre-block {
    background: var(--bg-off);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.genre-block-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }

.genre-label {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.genre-label-btob { background: var(--text-mid); }
.genre-block-header h3 { font-size: 1rem; font-weight: 700; color: var(--text); }

.genre-block-desc {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.genre-category { margin-bottom: 1rem; }

.genre-category h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.genre-category ul { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }

.genre-category li {
    font-size: 0.83rem;
    color: var(--text-mid);
    padding-left: 1rem;
    position: relative;
}

.genre-category li::before {
    content: '\00B7';
    position: absolute;
    left: 0;
    color: #1a7ad4;
    font-size: 1.4rem;
    line-height: 1;
}


/* ========================================
   制作環境タグ（editingページ）
======================================== */
.service-env { background: var(--bg-off); }

.env-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.env-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.env-block-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }

.env-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.env-tag {
    display: inline-block;
    background: var(--brand-pale);
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(12,56,97,0.15);
}


/* ========================================
   お問い合わせページ
======================================== */
.contact-page { background: var(--bg-off); padding: 80px 0; }

.contact-page-inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: start;
}

.contact-intro { grid-column: 1 / -1; }

.contact-intro p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.8; }
.contact-intro strong { color: var(--text); }
.contact-form--page { grid-column: 1; }
.contact-info { grid-column: 2; display: flex; flex-direction: column; gap: 1.5rem; }

.contact-info-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.contact-info-block h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.contact-info-block p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.75; }
.contact-info-block a { color: var(--brand); text-decoration: underline; }
.contact-info-note { display: block; font-size: 0.8rem; color: var(--text-light); margin-top: 0.25rem; }


/* ========================================
   送信完了ページ
======================================== */
.thanks-section { background: var(--bg); padding: 80px 0; }

.thanks-inner { text-align: center; max-width: 560px; margin: 0 auto; }

.thanks-icon {
    width: 72px;
    height: 72px;
    background: var(--brand-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    margin: 0 auto 2rem;
}

.thanks-icon svg { width: 34px; height: 34px; }

.thanks-inner h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.thanks-inner p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 1rem; }
.thanks-inner strong { color: var(--text); font-weight: 700; }
.thanks-note { font-size: 0.85rem; color: var(--text-light); margin-bottom: 2.5rem; }
.thanks-note a { color: var(--brand); text-decoration: underline; }


/* ========================================
   レスポンシブ（ページ共通追加）
======================================== */
@media (max-width: 900px) {
    .service-details-grid { grid-template-columns: repeat(2, 1fr); }
    .service-details-grid--2col { grid-template-columns: 1fr; }
    .card-with-image { grid-template-columns: 1fr; }
    .plans-grid--3col { grid-template-columns: repeat(2, 1fr); }
    .strengths-grid { grid-template-columns: repeat(2, 1fr); }
    .flow-steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .flow-steps::before { display: none; }
    .achievement-showcase { grid-template-columns: 1fr; }
    .contact-page-inner { grid-template-columns: 1fr; }
    .contact-form--page { grid-column: 1; }
    .contact-info { grid-column: 1; }
    .genres-grid { grid-template-columns: 1fr; }
    .env-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .page-hero { padding: 100px 0 60px; }
    .problems-grid { grid-template-columns: 1fr; }
    .service-details-grid { grid-template-columns: 1fr; }
    .plans-grid,
    .plans-grid--3col { grid-template-columns: 1fr; }
    .strengths-grid { grid-template-columns: 1fr; }
    .flow-steps { grid-template-columns: 1fr; }
}


/* ========================================
   事業紹介ギャラリー (services.html)
======================================== */
.services-gallery {
    background: var(--dark);
    padding: 80px 0 100px;
}

.sg-intro {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    line-height: 2;
    max-width: 720px;
    margin: 0 auto 4rem;
    text-align: center;
}

.services-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

/* 上段: 2枚（大） */
.sg-card:nth-child(1),
.sg-card:nth-child(2) { grid-column: span 3; }

/* 下段: 3枚（中） */
.sg-card:nth-child(3),
.sg-card:nth-child(4),
.sg-card:nth-child(5) { grid-column: span 2; }

.sg-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

.sg-card-bg {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* 上段カード: 横長 */
.sg-card:nth-child(1) .sg-card-bg,
.sg-card:nth-child(2) .sg-card-bg { aspect-ratio: 16/10; }

/* 下段カード: 正方形寄り */
.sg-card:nth-child(3) .sg-card-bg,
.sg-card:nth-child(4) .sg-card-bg,
.sg-card:nth-child(5) .sg-card-bg { aspect-ratio: 4/3; }

.sg-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.sg-card:hover .sg-card-bg img {
    transform: scale(1.06);
}

/* プレースホルダー */
.sg-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.sg-placeholder svg {
    width: 52px;
    height: 52px;
    color: rgba(255,255,255,0.18);
}

.sg-placeholder-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.15);
}

/* 背景グラデーション（カード別） */
.sg-bg--01 { background: linear-gradient(145deg, #081e38 0%, #0c3861 100%); }
.sg-bg--02 { background: linear-gradient(145deg, #0c3055 0%, #0e4478 100%); }
.sg-bg--03 { background: linear-gradient(145deg, #0a2d5a 0%, #1055a0 100%); }
.sg-bg--04 { background: linear-gradient(145deg, #0b2e52 0%, #0f4070 100%); }
.sg-bg--05 { background: linear-gradient(145deg, #0d3870 0%, #1055a0 100%); }

/* オーバーレイ */
.sg-card-over {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(6,15,28,0.92) 0%,
        rgba(6,15,28,0.45) 50%,
        transparent 100%
    );
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.4s;
}

.sg-card:hover .sg-card-over {
    background: linear-gradient(
        to top,
        rgba(12,56,97,0.93) 0%,
        rgba(12,56,97,0.55) 60%,
        rgba(12,56,97,0.1) 100%
    );
}

.sg-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.sg-num {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--brand-light);
    background: rgba(26,122,212,0.2);
    border: 1px solid rgba(26,122,212,0.4);
    padding: 0.18rem 0.6rem;
    border-radius: 50px;
}

.sg-en {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
}

.sg-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.sg-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    margin-bottom: 0.9rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.35s ease;
}

.sg-card:hover .sg-desc {
    max-height: 80px;
    opacity: 1;
}

/* 上段カード（大）は常にdesc表示 */
.sg-card:nth-child(1) .sg-desc,
.sg-card:nth-child(2) .sg-desc {
    max-height: 80px;
    opacity: 1;
}

.sg-more {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.25s, gap 0.25s;
}

.sg-card:hover .sg-more {
    color: #fff;
    gap: 0.75rem;
}

/* ----------------------------------------
   nav-active
---------------------------------------- */
.nav-active { color: var(--brand-light) !important; }

/* ----------------------------------------
   Responsive: services-gallery
---------------------------------------- */
@media (max-width: 1024px) {
    .sg-title { font-size: 1.05rem; }
}

@media (max-width: 768px) {
    .services-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .sg-card:nth-child(1),
    .sg-card:nth-child(2),
    .sg-card:nth-child(3),
    .sg-card:nth-child(4),
    .sg-card:nth-child(5) { grid-column: span 1; }

    .sg-card:nth-child(1) .sg-card-bg,
    .sg-card:nth-child(2) .sg-card-bg,
    .sg-card:nth-child(3) .sg-card-bg,
    .sg-card:nth-child(4) .sg-card-bg,
    .sg-card:nth-child(5) .sg-card-bg { aspect-ratio: 16/9; }

    .sg-desc { max-height: 80px; opacity: 1; }
}


/* ========================================
   事業内容 ジグザグレイアウト (index.html)
======================================== */
.services-zigzag {
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

.sz-row {
    display: flex;
    align-items: stretch;
    min-height: 420px;
    border-bottom: 1px solid var(--border);
}

.sz-row--rev { flex-direction: row-reverse; }

/* 画像カラム */
.sz-img {
    flex: 0 0 50%;
    overflow: hidden;
    position: relative;
}

.sz-img-bg {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.sz-img-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.sz-row:hover .sz-img-bg img {
    transform: scale(1.04);
}

/* プレースホルダー */
.sz-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sz-placeholder svg {
    width: 64px;
    height: 64px;
    color: rgba(255,255,255,0.14);
}

/* 背景グラデーション */
.sz-bg--01 { background: linear-gradient(145deg, #081e38 0%, #0c3861 100%); }
.sz-bg--02 { background: linear-gradient(145deg, #0c3055 0%, #0e4478 100%); }
.sz-bg--03 { background: linear-gradient(145deg, #0a2d5a 0%, #1055a0 100%); }
.sz-bg--04 { background: linear-gradient(145deg, #0b2e52 0%, #114a8c 100%); }
.sz-bg--05 { background: linear-gradient(145deg, #0d3870 0%, #1055a0 100%); }

/* テキストカラム */
.sz-text {
    flex: 1;
    background: var(--bg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 3.5rem 4rem;
}

.sz-row--rev .sz-text { background: var(--bg-off); }

/* 大きい英語の背景ウォーターマーク */
.sz-en {
    position: absolute;
    bottom: -0.15em;
    right: -0.05em;
    font-family: 'Inter', sans-serif;
    font-size: clamp(4.5rem, 8vw, 9rem);
    font-weight: 900;
    line-height: 1.0;
    color: var(--brand);
    opacity: 0.1;
    letter-spacing: -0.04em;
    pointer-events: none;
    text-align: right;
}

.sz-row--rev .sz-en {
    right: auto;
    left: -0.05em;
    text-align: left;
}

/* コンテンツ */
.sz-content {
    position: relative;
    z-index: 1;
    max-width: 440px;
}

.sz-row--rev .sz-content { margin-right: auto; }

.sz-num {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--brand);
    opacity: 0.18;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.sz-num::before {
    display: none;
}

.sz-title {
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
    font-weight: 900;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 1.1rem;
    letter-spacing: -0.02em;
}

.sz-desc {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 1.75rem;
}

.sz-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--brand-light);
    padding-bottom: 0.2rem;
    transition: gap 0.25s, color 0.25s;
}

.sz-link:hover {
    gap: 0.9rem;
    color: var(--brand-light);
}

/* ----------------------------------------
   Responsive: zigzag
---------------------------------------- */
@media (max-width: 900px) {
    .sz-row,
    .sz-row--rev {
        flex-direction: column;
    }
    .sz-img { flex: none; width: 100%; }
    .sz-img-bg { aspect-ratio: 16/9; height: auto; }
    .sz-text { padding: 2.5rem 2rem; }
    .sz-en { font-size: clamp(3.5rem, 12vw, 6rem); opacity: 0.1; }
}
