/* Astonix株式会社 スタイルシート */

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

:root {
    /* ライトモード：白基調（70%）・黒アクセント（30%） */
    --color-white: #ffffff;
    --color-off-white: #f5f5f5;
    --color-light-bg: #fafafa;
    --color-border: #e0e0e0;
    --color-gray: #6b6b6b;
    --color-dark: #1a1a1a;
    --color-dark-muted: #333333;
    --color-dark-soft: #4a4a4a;

    /* テーマカラー */
    --primary-color: var(--color-dark);
    --accent-color: var(--color-dark-muted);
    --bg-main: var(--color-off-white);
    --bg-card: var(--color-white);
    --bg-section-alt: var(--color-light-bg);
    --text-primary: var(--color-dark);
    --text-secondary: var(--color-dark-soft);
    --text-muted: var(--color-gray);
    --border-color: rgba(0, 0, 0, 0.12);
    --border-accent: rgba(0, 0, 0, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

body.news-body {
    background-color: var(--color-white);
    color: #111111;
}

/* ローディング画面 */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
}

#loading-screen.loaded {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    opacity: 0;
    animation: loadingLogoFadeIn 1s ease forwards;
}

@keyframes loadingLogoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ナビゲーション */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1.9rem 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 220px;
}

.navbar .nav-brand {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.logo-img {
    height: 56px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-img:hover {
    opacity: 0.8;
}

.nav-brand a {
    display: inline-block;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

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

@media (min-width: 769px) {
    .hero {
        padding-top: 120px;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    z-index: 0;
}

/* モダンヒーロー：背景写真 + 薄いオーバーレイ + ノイズ */
.hero-modern .hero-background {
    background: #f5f5f5;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #f8f8f9 0%,
        #f0f0f2 25%,
        #e8e8ec 50%,
        #f2f2f5 75%,
        #fafafb 100%
    );
    z-index: 0;
}

/* モダンヒーローで写真を使うときはグラデーションを薄いオーバーレイに */
.hero-modern .hero-gradient-overlay {
    background: rgba(255, 255, 255, 0.35);
    z-index: 1;
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-top.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(72, 65, 58, 0.45) 0%,
        rgba(58, 52, 48, 0.5) 50%,
        rgba(62, 56, 51, 0.55) 100%
    );
    z-index: 0;
}

.container-hero {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    padding-left: clamp(20px, 6vw, 80px);
    padding-right: clamp(20px, 6vw, 80px);
}

.hero-modern .hero-content {
    text-align: left;
    max-width: 900px;
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* メインコピー：力強いタイポグラフィ */
.hero-heading {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.hero-modern .hero-heading {
    font-size: clamp(2.75rem, 8vw, 5.25rem);
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* サブコピー */
.hero-description-block {
    margin-bottom: 2.5rem;
}

.hero-description-line {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.hero-modern .hero-description-line {
    color: var(--text-secondary);
    max-width: 480px;
}

.hero-description-line:last-child {
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero:not(.hero-modern) .hero-buttons {
    justify-content: center;
}

/* ヒーロー内ボタン（モダン：白基調・黒アクセント） */
.btn-hero.btn-primary {
    background: var(--primary-color);
    color: var(--color-white);
    border: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.btn-hero::before {
    display: none;
}

.btn-hero.btn-primary:hover {
    color: var(--color-white);
    background: #000;
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), 0 0 0 6px rgba(255, 255, 255, 0.16);
}

.btn-hero.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.btn-hero.btn-secondary:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22), 0 0 0 6px rgba(255, 255, 255, 0.14);
}

/* ボタン：スライドで埋まるホバーエフェクト */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--color-white);
    z-index: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(-100%);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary::before {
    background: var(--color-white);
}

.btn-primary:hover {
    color: var(--primary-color);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary::before {
    background: var(--primary-color);
    transform: translateX(-100%);
}

.btn-secondary:hover {
    color: var(--color-white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-secondary:hover::before {
    transform: translateX(0);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.hero .scroll-indicator {
    color: var(--text-muted);
    font-size: 0.75rem;
    z-index: 2;
}

.hero:not(.hero-modern) .scroll-indicator {
    color: rgba(255, 255, 255, 0.8);
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--primary-color);
    animation: scrollLine 2s ease-in-out infinite;
}

.hero:not(.hero-modern) .scroll-line {
    background: rgba(255, 255, 255, 0.7);
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* セクション共通（余白を贅沢に：約2倍） */
section {
    padding: 200px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 3px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* 理念セクション */
.philosophy {
    background: var(--bg-section-alt);
}

.philosophy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.philosophy-card {
    background: var(--bg-card);
    border: none;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
}

.philosophy-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    stroke: currentColor;
}

.philosophy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.philosophy-card p {
    color: var(--text-secondary);
}

/* サービスセクション：モダンカード・非対称グリッド・影のみ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .services-grid .service-card:nth-child(n) {
        margin-top: 0;
    }
}

@media (max-width: 1023px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .services-grid .service-card:nth-child(n) {
        margin-top: 0;
    }
    .service-card {
        min-height: 0;
    }
}

.service-card {
    background: var(--bg-card);
    border: none;
    border-radius: 24px;
    padding: 2.5rem 2.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.1), 0 12px 32px rgba(0, 0, 0, 0.06);
}

.service-card:hover::before {
    opacity: 1;
}

.service-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.85;
    position: relative;
    z-index: 1;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.service-link:hover {
    transform: translateX(6px);
}

/* CTAセクション */
.cta {
    background: var(--primary-color);
    text-align: center;
    color: var(--color-white);
    padding: 160px 0;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--color-white);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.cta .btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f3f3f3 100%);
    color: var(--primary-color);
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.cta .btn-primary::before {
    display: none;
}

.cta .btn-primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #ececec 100%);
    color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.62);
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3), 0 0 0 6px rgba(255, 255, 255, 0.14);
}

/* ========== 下層ページ共通：統一ヒーロー（アクセンチュア風・贅沢な余白・大胆タイポ） ========== */
.subpage-hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 160px 0 120px;
}

.subpage-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        135deg,
        #f8f8f9 0%,
        #f0f0f2 25%,
        #e8e8ec 50%,
        #f2f2f5 75%,
        #fafafb 100%
    );
}

.subpage-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.subpage-hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    padding-left: clamp(20px, 6vw, 60px);
    padding-right: clamp(20px, 6vw, 60px);
}

.subpage-hero-inner {
    text-align: left;
}

.subpage-hero-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.subpage-hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.subpage-hero-desc {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 560px;
}

@media (max-width: 768px) {
    .subpage-hero {
        min-height: 40vh;
        padding: 140px 0 80px;
    }
}

/* NEWSページ（抽象的背景画像＋薄いフィルター） */
.news-hero {
    padding: 160px 0 100px;
    min-height: 52vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.news-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #f5f5f5;
}

.news-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.72);
    pointer-events: none;
}

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

.news-hero-inner {
    max-width: 720px;
}

.news-label {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.news-title em {
    font-style: italic;
}

.news-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.news-list-section {
    background-color: #f5f5f7;
    padding: 140px 0 180px;
}

.news-list {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.news-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.05);
}

.news-item a {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.news-date {
    min-width: 110px;
    font-size: 0.9rem;
    color: #666666;
}

.news-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    background-color: #000000;
    color: #ffffff;
}

.news-title-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
}

.news-item:hover .news-title-text {
    text-decoration: underline;
}

/* フッター */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .navbar .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar .nav-brand {
        left: 12px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
        margin-right: 0;
    }

    .hero-title {
        flex-direction: column;
        gap: 0.5rem;
    }

    .plus {
        font-size: 0.4em;
    }

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

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

/* ========== 画像プレースホルダー共通（ホバーでうっすら拡大） ========== */
.img-placeholder {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-placeholder:hover {
    transform: scale(1.03);
}

.img-placeholder-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* 画像プレースホルダー内の img タグ（差し替え用） */
.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== ABOUT ページ（ヒーロー画像エリア・2カラム・影・余白） ========== */
/* ヒーロー：全幅画像エリア（50vh）＋見出しオーバーレイ */
.about-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.about-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    min-height: 320px;
    z-index: 0;
    overflow: hidden;
}

.about-hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.15) 35%,
        transparent 65%
    );
    pointer-events: none;
}

.about-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    padding: 0 clamp(20px, 6vw, 60px) clamp(48px, 8vw, 80px);
}

.about-hero-inner {
    text-align: left;
}

.about-hero-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.about-hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.about-hero-desc {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
    max-width: 560px;
}

/* ========== 共通：タイトル背景に写真を入れられるヒーロー（about同様） ========== */
.page-hero-with-photo {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.page-hero-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    min-height: 320px;
    z-index: 0;
    overflow: hidden;
}

.page-hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-photo-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.15) 35%,
        transparent 65%
    );
    pointer-events: none;
}

.page-hero-photo-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    padding: 0 clamp(20px, 6vw, 60px) clamp(48px, 8vw, 80px);
}

.page-hero-photo-inner {
    text-align: left;
}

.page-hero-photo-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.page-hero-photo-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.page-hero-photo-desc {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
    max-width: 560px;
}

@media (max-width: 768px) {
    .page-hero-with-photo {
        min-height: 0;
    }
    .page-hero-photo {
        height: 45vh;
        min-height: 260px;
    }
    .page-hero-photo-container {
        padding-bottom: clamp(32px, 6vw, 48px);
    }
}

.about-section {
    padding: 180px 0;
}

.about-section:nth-child(even) {
    background: var(--bg-section-alt);
}

/* ミッション・ビジョン：2カラム（左画像・右テキスト） */
.about-two-col {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.2fr);
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-two-col-media {
    position: relative;
}

.about-img-square {
    width: 100%;
    aspect-ratio: 1;
    max-width: 420px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
}

.about-two-col-content.mission-content,
.about-two-col-content.vision-content {
    max-width: none;
    margin: 0;
    text-align: left;
}

.mission-content p,
.vision-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.about-two-col-content .vision-statement {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.vision-statement {
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin: 2.5rem 0;
    padding: 2.25rem 2.5rem;
    border-left: none;
    background: var(--bg-card);
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.vision-statement:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 6px 20px rgba(0, 0, 0, 0.04);
}

.company-table-wrap {
    overflow-x: auto;
    margin-top: 2.5rem;
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.company-table th,
.company-table td {
    padding: 1.25rem 1.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.company-table th {
    width: 28%;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-section-alt);
}

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

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.ceo-section .container {
    max-width: 900px;
}

.ceo-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
    background: var(--bg-card);
    border: none;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ceo-inner:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.ceo-photo {
    aspect-ratio: 1;
    background: var(--bg-section-alt);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.ceo-body h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.ceo-body .ceo-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.ceo-body .ceo-message {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .ceo-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }
    .ceo-photo {
        max-width: 160px;
        margin: 0 auto;
    }
    .company-table th { width: 36%; padding: 1rem 1.25rem; }
    .company-table td { padding: 1rem 1.25rem; font-size: 0.95rem; }
}

/* ========== SERVICES 下層ページ（カード・影・余白） ========== */
.services-list {
    padding: 160px 0 200px;
}

.service-row {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 20px;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-row-card {
    display: grid;
    grid-template-columns: minmax(280px, 560px) 1fr;
    gap: 0;
    align-items: stretch;
    background: var(--bg-card);
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.service-row-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.1), 0 12px 32px rgba(0, 0, 0, 0.06);
}

.service-row-card .service-body {
    padding: 3rem 3rem 3rem 2.5rem;
}

/* ジグザグ：2行目はテキスト左・画像右 */
.service-row-card--reverse {
    direction: rtl;
}

.service-row-card--reverse > * {
    direction: ltr;
}

.service-row-card--reverse .service-body {
    text-align: right;
}

@media (max-width: 1024px) {
    .service-row-card--reverse {
        direction: ltr;
    }
    .service-row-card--reverse .service-body {
        text-align: left;
    }
    .service-row-card {
        grid-template-columns: 1fr;
    }
    .service-row-card .service-body {
        padding: 2.5rem;
        order: 2;
    }
    .service-row-card .service-img-wrap {
        order: 1;
        max-height: 280px;
    }
}

.service-img-wrap {
    width: 100%;
    min-height: 320px;
    aspect-ratio: 560 / 380;
    position: relative;
    overflow: hidden;
}

.service-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-row-card:hover .service-img-wrap img {
    transform: scale(1.04);
}

.service-img-wrap .img-placeholder-caption {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.service-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.service-body p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .service-row {
        margin-bottom: 5rem;
    }
    .service-img-wrap {
        max-width: 100%;
    }
}

/* ========== お問い合わせページ（統一ヒーロー・余白・フォーム高級感） ========== */
.contact-hero {
    position: relative;
    min-height: 52vh;
    padding: 160px 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #f5f5f5;
}

.contact-hero-background img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.52);
    pointer-events: none;
}

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

.contact-hero-content {
    text-align: left;
    max-width: 640px;
}

.contact-hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.contact-hero-title {
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-hero-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
}

/* お問い合わせフォームセクション（贅沢な余白・影） */
.contact-form-section {
    padding: 160px 0 200px;
    background: var(--bg-main);
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 2.25rem;
}

.contact-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-badge {
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.35rem;
}

.form-badge.required {
    color: #0d9488;
}

.form-badge.optional {
    color: #0d9488;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background-color: var(--color-white);
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, background-color 0.2s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    background-color: var(--color-white);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

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

/* カテゴリー チェックボックス（影ベース） */
.category-checkbox-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem 1.5rem;
    padding: 1.5rem 1.75rem;
    background: var(--color-white);
    border-radius: 16px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.03);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

/* 同意チェック */
.form-group-checkbox {
    margin-bottom: 2rem;
}

.privacy-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500 !important;
    cursor: pointer;
}

.privacy-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.privacy-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600;
}

.privacy-link:hover {
    color: #1d4ed8;
}

/* 送信ボタン */
.form-submit {
    text-align: center;
}

.btn-contact-submit {
    display: inline-block;
    width: 100%;
    max-width: 400px;
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    background: var(--primary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.btn-contact-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    z-index: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(-100%);
}

.btn-contact-submit:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.btn-contact-submit:hover::before {
    transform: translateX(0);
}

/* お問い合わせフォーム・下層ヒーロー レスポンシブ */
@media (max-width: 768px) {
    .contact-hero,
    .careers-hero {
        min-height: 40vh;
        padding: 140px 0 80px;
    }

    .news-hero {
        padding: 140px 0 80px;
    }

    .category-checkbox-box {
        grid-template-columns: 1fr;
    }

    .portfolio-hero {
        min-height: 40vh;
        padding: 140px 0 80px;
    }

    .portfolio-section {
        padding: 100px 0 140px;
    }

    .about-section {
        padding: 120px 0;
    }

    .about-hero {
        min-height: 0;
        align-items: flex-end;
    }

    .about-hero-image {
        height: 45vh;
        min-height: 260px;
    }

    .about-hero-container {
        padding-bottom: clamp(32px, 6vw, 48px);
    }

    .about-two-col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-two-col-media {
        order: 1;
    }

    .about-two-col-content {
        order: 2;
    }

    .about-img-square {
        max-width: 100%;
    }

    .careers-message,
    .careers-benefits,
    .careers-positions {
        padding: 120px 0;
    }
}

/* ========== ポートフォリオページ（統一ヒーロー・余白・カード影） ========== */
.portfolio-hero {
    position: relative;
    min-height: 52vh;
    padding: 160px 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f8f9 0%, #f0f0f2 50%, #fafafb 100%);
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.portfolio-hero .container {
    position: relative;
    z-index: 1;
}

.portfolio-hero-content {
    text-align: left;
    max-width: 640px;
}

.portfolio-hero-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.portfolio-hero-title {
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.portfolio-hero-message {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.portfolio-section {
    padding: 160px 0 200px;
    background: var(--bg-main);
}

.portfolio-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.portfolio-section-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.portfolio-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-section-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

.portfolio-gallery {
    margin-top: 3rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    background: var(--bg-card);
    border-radius: 24px;
    border: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
    transition:
        transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-card-media {
    position: relative;
    padding-top: 62%;
    background: #f5f5f5;
    overflow: hidden;
}

.portfolio-card-image {
    position: absolute;
    inset: 0;
    background: #f5f5f5;
    transform-origin: center;
    overflow: hidden;
}

.portfolio-card-image.img-placeholder:hover {
    transform: none;
}

.portfolio-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.08);
}

.portfolio-card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 999px;
    background: #000000;
    color: #ffffff;
}

.portfolio-card-body {
    padding: 1.75rem 1.75rem 1.9rem;
}

.portfolio-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.portfolio-card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.portfolio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.1), 0 12px 32px rgba(0, 0, 0, 0.06);
}

/* ========== CAREERS ページ（ヒーロー背景画像＋パートナー特徴に画像） ========== */
.careers-hero {
    position: relative;
    min-height: 52vh;
    padding: 160px 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.careers-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #f5f5f5;
}

.careers-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.careers-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.52);
    pointer-events: none;
}

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

.careers-hero-inner {
    text-align: left;
    max-width: 640px;
}

.careers-hero-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.careers-hero-title {
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1rem;
}

.careers-hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
}

.careers-message,
.careers-benefits,
.careers-positions {
    padding: 180px 0;
}

.careers-message-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.careers-message-content p {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-secondary);
}

.careers-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.careers-benefit-card {
    background: var(--bg-card);
    border: none;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.careers-benefit-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.1), 0 12px 32px rgba(0, 0, 0, 0.06);
}

.careers-benefit-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.careers-benefit-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.careers-benefit-card:hover .careers-benefit-img img {
    transform: scale(1.04);
}

.careers-benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.careers-benefit-card p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.careers-positions-list {
    display: grid;
    gap: 1.5rem;
    max-width: 820px;
    margin: 0 auto;
}

.careers-position-card {
    display: block;
    background: var(--bg-card);
    border: none;
    border-radius: 24px;
    padding: 2.25rem 2.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.careers-position-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.05);
}

.careers-position-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--color-white);
    margin-bottom: 1rem;
}

.careers-position-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.careers-position-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.careers-position-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.careers-position-card:hover .careers-position-link {
    text-decoration: underline;
}

/* ========== CAREERS / PARTNERS ページ ========== */
.careers-hero {
    padding: 140px 0 100px;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-light-bg) 100%);
    border-bottom: 1px solid var(--border-color);
}

.careers-hero-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.careers-hero-label {
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.careers-hero-title {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.careers-hero-copy {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.9;
    letter-spacing: 0.04em;
}

/* パートナーシップの特徴 */
.careers-features {
    padding: 100px 0;
    background: var(--bg-main);
}

.careers-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.careers-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
}

.careers-feature-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.careers-feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.careers-feature-icon svg {
    width: 100%;
    height: 100%;
}

.careers-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.careers-feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 募集ポジション */
.careers-positions {
    padding: 100px 0;
    background: var(--bg-section-alt);
}

.careers-positions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.careers-position-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.35s ease,
                border-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.careers-position-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--border-accent);
}

.careers-position-label {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.careers-position-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.careers-position-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 募集要項テーブル */
.careers-requirements {
    padding: 100px 0;
    background: var(--bg-main);
}

.careers-table-wrap {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

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

.careers-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.2s ease;
}

.careers-table tbody tr:last-child {
    border-bottom: none;
}

.careers-table tbody tr:hover {
    background: var(--color-light-bg);
}

.careers-table th {
    width: 140px;
    padding: 1.25rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    vertical-align: top;
}

.careers-table td {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* エントリー CTA */
.careers-cta {
    padding: 100px 0 120px;
    background: var(--bg-section-alt);
}

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

.careers-cta-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.btn-careers-entry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.15rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-white);
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-careers-entry:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.btn-careers-entry-arrow {
    transition: transform 0.3s ease;
}

.btn-careers-entry:hover .btn-careers-entry-arrow {
    transform: translateX(4px);
}

/* CAREERS ページ レスポンシブ */
@media (max-width: 768px) {
    .careers-hero {
        padding: 120px 0 80px;
    }

    .careers-hero-title {
        letter-spacing: 0.1em;
    }

    .careers-features-grid,
    .careers-positions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .careers-feature-card,
    .careers-position-card {
        padding: 2rem 1.5rem;
    }

    .careers-table th {
        width: 100%;
        display: block;
        padding-bottom: 0.5rem;
        border-bottom: none;
    }

    .careers-table td {
        display: block;
        padding-top: 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-bottom: 1.25rem;
    }

    .careers-table tbody tr {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
}

/* お問い合わせ送信完了モーダル */
.contact-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-success-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.contact-success-modal {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 90vw;
}

.contact-success-modal img {
    display: block;
    max-width: 640px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Unified subpage hero styles */
:root {
    --subpage-header-height: 108px;
}

.about-hero,
.page-hero-with-photo,
.contact-hero,
.careers-hero,
.news-hero {
    position: relative;
    min-height: calc(100vh - var(--subpage-header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--subpage-header-height);
    padding: 0;
}

.about-hero-image,
.page-hero-photo,
.contact-hero-background,
.careers-hero-bg,
.news-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.about-hero-image img,
.page-hero-photo img,
.contact-hero-background img,
.careers-hero-bg img,
.news-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-hero-overlay,
.page-hero-photo-overlay,
.contact-hero-overlay,
.careers-hero-overlay,
.news-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.about-hero-container,
.page-hero-photo-container,
.contact-hero .container,
.careers-hero .container,
.news-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    padding: 0 clamp(20px, 6vw, 60px);
}

.about-hero-inner,
.page-hero-photo-inner,
.contact-hero-content,
.careers-hero-inner,
.news-hero-inner {
    text-align: left;
    max-width: 680px;
}

.about-hero-label,
.page-hero-photo-label,
.contact-hero-subtitle,
.careers-hero-label,
.news-label {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.about-hero-title,
.page-hero-photo-title,
.contact-hero-title,
.careers-hero-title,
.news-title {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.about-hero-desc,
.page-hero-photo-desc,
.contact-hero-message,
.careers-hero-desc,
.news-description {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    font-weight: 400;
    font-size: clamp(0.92rem, 1.2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
    max-width: 640px;
}

@media (max-width: 768px) {
    :root {
        --subpage-header-height: 78px;
    }

    .about-hero,
    .page-hero-with-photo,
    .contact-hero,
    .careers-hero,
    .news-hero {
        min-height: calc(100vh - var(--subpage-header-height));
        margin-top: var(--subpage-header-height);
    }
}
