/* リセット & ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-base: #FFFFFF;
    --color-section-bg: #F6F7FA;
    --color-accent: #E85C5C;
    --color-accent-hover: #D14A4A;
    --color-text-main: #111827;
    --color-text-sub: #6B7280;
    --color-border: #E5E7EB;
    --color-dark: #1F2937;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    color: var(--color-text-main);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 80px;
}

/* ナビゲーション */
.navbar {
    position: static;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    color: var(--color-text-main);
    text-decoration: none;
}

.logo-text {
    font-family: 'Noto Sans JP', sans-serif;
}

.logo-text-en {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

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

.btn-nav-cta {
    background: var(--color-accent);
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.btn-nav-cta:hover {
    background: var(--color-accent-hover);
    color: white !important;
}

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

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

/* スクロールトップボタン */
.scroll-top {
    position: fixed;
    left: 40px;
    bottom: 40px;
    width: 60px;
    height: 60px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    font-size: 12px;
    color: var(--color-text-sub);
    font-weight: 500;
}

.scroll-top:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.scroll-top.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ファーストビュー */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    background: var(--color-base);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.hero-image-sp {
    display: none;
}

.hero-image-pc {
    display: flex;
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 80px) 0, 100% 80px, 100% 100%, 80px 100%, 0 calc(100% - 80px));
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.hero-image-wrapper:hover {
    transform: rotate(0deg);
}

.hero-image-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% center;
    display: block;
}

.hero-text {
    max-width: 560px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 32px;
    color: var(--color-text-main);
}

.hero-title-line2 {
    display: block;
    margin-top: 8px;
    font-size: 0.9em;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-sub);
    margin-bottom: 16px;
}

.hero-note {
    font-size: 14px;
    color: var(--color-text-sub);
    margin-bottom: 40px;
    opacity: 0.8;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration {
    width: 100%;
    height: 100%;
    max-width: 600px;
    overflow: visible;
}

.hero-illustration svg {
    width: 100%;
    height: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-sub);
    font-size: 12px;
    font-weight: 500;
}

.scroll-arrow {
    width: 2px;
    height: 24px;
    background: var(--color-text-sub);
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-text-sub);
    border-bottom: 2px solid var(--color-text-sub);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* ボタン */
.btn-circle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--color-base);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-circle:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-circle svg {
    transition: transform 0.3s ease;
}

.btn-circle:hover svg {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.section-title-en {
    font-family: 'Inter', sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: var(--color-text-sub);
    opacity: 0.3;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-main);
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

/* Aboutセクション */
.section-about {
    background: var(--color-base);
}

.about-vertical-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    padding: 60px 0;
    min-height: 600px;
    width: 100%;
    flex-wrap: nowrap;
}

.about-vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    min-width: 0;
    max-width: none;
    width: auto;
    flex: 0 0 auto;
    padding: 40px 0;
    white-space: nowrap;
    overflow: visible;
    flex-shrink: 1;
}

.about-vertical-text-second {
    min-width: 0;
    max-width: none;
    width: auto;
    flex: 0 0 auto;
    flex-shrink: 1;
    margin-right: 80px; /* 縦書きの2行分のスペース（左側にスペース） */
}

.about-vertical-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--color-text-main);
    line-height: 2;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.about-vertical-body {
    font-size: 18px;
    line-height: 2.2;
    color: var(--color-text-main);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.about-vertical-body p {
    margin-bottom: 40px;
    white-space: nowrap;
}

.about-vertical-body p:last-child {
    margin-bottom: 0;
}

.about-webcli-intro {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 40px;
    white-space: nowrap;
}

/* 大きな画面での文字サイズ拡大 */
@media (min-width: 1200px) {
    .about-vertical-title {
        font-size: 32px;
        margin-bottom: 80px;
    }

    .about-vertical-body {
        font-size: 20px;
    }

    .about-vertical-body p {
        margin-bottom: 50px;
    }

    .about-webcli-intro {
        font-size: 22px;
        margin-bottom: 50px;
    }

    .about-vertical-content {
        gap: 60px;
    }
}

.highlight-text {
    position: relative;
    color: var(--color-text-main);
    padding: 2px 8px;
    display: inline-block;
    line-height: 1.8;
    letter-spacing: 0.05em;
    z-index: 1;
}

.highlight-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--color-text-main);
    z-index: -1;
    transition: width 0.8s ease;
}

.highlight-text.highlight-active {
    color: white;
}

.highlight-text.highlight-active::before {
    width: 100%;
}

/* 縦書き用のハイライトアニメーション */
.about-vertical-text .highlight-text {
    position: relative;
    color: var(--color-text-main);
    padding: 2px 8px;
    display: inline-block;
    z-index: 1;
}

.about-vertical-text .highlight-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #111827;
    z-index: -1;
    border-radius: 2px;
}

/* 親要素が表示されたら自動的にハイライトを適用 */
.about-vertical-text [data-step].step-visible .highlight-text {
    color: white !important;
}

.about-vertical-text .highlight-text.highlight-active {
    color: white !important;
}

/* highlight-target-2用の赤系ハイライト */
.about-vertical-text .highlight-text.highlight-target-2::before {
    background: #E85C5C;
}

.about-vertical-text .highlight-text.highlight-target-2.highlight-active {
    color: white !important;
}

/* 親要素が表示されたら自動的にhighlight-target-2もアクティブ */
.about-vertical-text [data-step].step-visible .highlight-text.highlight-target-2 {
    color: white !important;
}

/* スクロール演出用の初期状態 */
[data-step] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

[data-step].step-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 縦書き用の初期状態 */
.about-vertical-text [data-step] {
    transform: translateX(-20px);
}

.about-vertical-text [data-step].step-visible {
    transform: translateX(0);
}

/* スクロール固定用 */
body.scroll-locked {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

#aboutScrollSection {
    position: relative;
}


/* サービスセクション */
.section-services {
    background: var(--color-section-bg);
}


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

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-item-left {
    grid-template-columns: 1fr 1fr;
}

.service-item-right {
    grid-template-columns: 1fr 1fr;
}

.service-item-right .service-text {
    order: 1;
}

.service-item-right .service-image {
    order: 2;
}

.service-image {
    width: 100%;
    height: 500px;
    position: relative;
}

.service-image-sp {
    display: none;
}

.service-image-pc {
    display: block;
}

.service-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-section-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-mockup {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.service-mockup-single {
    gap: 0;
    justify-content: center;
}

.mockup-desktop {
    width: 400px;
    height: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 16px;
    position: relative;
    z-index: 2;
}

.mockup-desktop-large {
    width: 100%;
    max-width: 600px;
    height: 400px;
}

.mockup-desktop-service1 {
    width: 500px;
    height: 350px;
}

.mockup-mobile-service1 {
    width: 200px;
    height: 350px;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: var(--color-section-bg);
    border-radius: 8px;
    overflow: hidden;
}

.mockup-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E5E7EB 0%, #F3F4F6 100%);
    position: relative;
}

.mockup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mockup-mobile {
    width: 160px;
    height: 280px;
    background: var(--color-dark);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.mockup-mobile .mockup-screen {
    background: white;
    border-radius: 16px;
}

.service-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-text h3 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--color-text-main);
    line-height: 1.4;
}

.service-text > p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-sub);
    margin-bottom: 32px;
}

.service-text .service-features {
    margin-top: 0;
}

.service-text .service-features li {
    font-size: 16px;
    margin-bottom: 16px;
    padding-left: 28px;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--color-base);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text-main);
    line-height: 1.4;
}

.service-card > p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-sub);
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
}

.service-features li {
    font-size: 15px;
    color: var(--color-text-main);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.service-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 20px;
}

/* 採用セクション */
.section-recruit {
    background: var(--color-base);
}

.recruit-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--color-text-main);
    line-height: 1.4;
}

.recruit-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-sub);
    margin-bottom: 16px;
}

.recruit-note {
    font-size: 14px;
    color: var(--color-text-sub);
    margin-bottom: 32px;
    opacity: 0.8;
}

.recruit-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.recruit-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.recruit-photos-sp {
    display: none;
}

.recruit-photos-pc {
    display: grid;
}

.photo-card {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E5E7EB 0%, #F3F4F6 100%);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 80px;
}

.job-card {
    background: var(--color-section-bg);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.job-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.job-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.job-type {
    font-size: 14px;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 16px;
}

.job-card > p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-sub);
    margin-bottom: 20px;
}

.job-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.job-link:hover {
    color: var(--color-accent-hover);
}

/* ニュースセクション */
.section-news {
    background: var(--color-section-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.news-card {
    background: var(--color-base);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.news-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--color-accent);
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    margin: 24px 24px 0;
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-top: 16px;
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E5E7EB 0%, #F3F4F6 100%);
}

.news-image-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 24px;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text-main);
    line-height: 1.4;
}

.news-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-sub);
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.news-date {
    font-size: 13px;
    color: var(--color-text-sub);
}

.news-category {
    font-size: 12px;
    padding: 4px 8px;
    background: var(--color-section-bg);
    border-radius: 4px;
    color: var(--color-text-sub);
}

.news-footer {
    display: flex;
    justify-content: flex-end;
}

/* お問い合わせセクション */
.section-contact {
    background: var(--color-dark);
    color: white;
}

.section-contact .section-title-en {
    color: white;
}

.section-contact .section-subtitle {
    color: white;
}

.contact-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.contact-visual {
    position: relative;
    height: 400px;
}

.contact-illustration {
    width: 100%;
    height: 100%;
    max-width: 500px;
}

.contact-illustration svg {
    width: 100%;
    height: 100%;
}

.contact-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 80px;
}

.company-info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.company-info-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: white;
}

.info-list {
    display: block;
}

.info-list dt {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    margin-top: 0;
}

.info-list dd {
    display: block;
    font-size: 16px;
    color: white;
    line-height: 1.6;
    margin-left: 0;
    margin-bottom: 20px;
    margin-top: 0;
}

.info-list dd:last-child {
    margin-bottom: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: 500;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.15);
}

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

/* フッター */
.footer {
    background: var(--color-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 18px;
}

.footer-brand .logo-text {
    font-size: 18px;
    font-weight: 700;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    font-family: 'Inter', sans-serif;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

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

.footer-info {
    margin-top: 20px;
}

.company-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.company-address {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-image-sp {
        display: flex;
        order: 1;
        height: 400px;
    }

    .hero-image-pc {
        display: none;
    }

    .hero-text {
        order: 2;
    }

    .hero-image-wrapper {
        clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
        transform: rotate(0deg);
    }

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

    .contact-info-section {
        grid-template-columns: 1fr;
    }

    .section-title-en {
        font-size: 56px;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-image-sp {
        display: block;
        order: 1;
    }

    .service-image-pc {
        display: none;
    }

    .service-item-right .service-text {
        order: 2;
    }

    .service-image {
        height: 400px;
    }

    .service-text h3 {
        font-size: 28px;
    }

    .mockup-desktop {
        width: 100%;
        max-width: 400px;
        height: 250px;
    }

    .mockup-desktop-large {
        max-width: 100%;
        height: 300px;
    }

    .mockup-mobile {
        width: 120px;
        height: 200px;
    }

    .mockup-desktop-service1 {
        width: 100%;
        max-width: 400px;
        height: 280px;
    }

    .mockup-mobile-service1 {
        width: 150px;
        height: 250px;
    }

    .about-vertical-content {
        gap: 15px;
        padding: 40px 0;
        flex-wrap: nowrap;
    }

    .about-vertical-text {
        padding: 20px 0;
        white-space: nowrap;
        flex-shrink: 1;
    }

    .about-vertical-title {
        font-size: 16px;
        margin-bottom: 30px;
        white-space: nowrap;
    }

    .about-vertical-body {
        font-size: 12px;
        white-space: nowrap;
    }

    .about-vertical-text-second {
        flex-shrink: 1;
    }

    .about-webcli-intro {
        font-size: 14px;
        margin-bottom: 20px;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 32px 0;
        gap: 24px;
    }

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

    .hamburger {
        display: flex;
    }

    .hero-image-sp {
        display: flex;
        order: 1;
        height: 400px;
    }

    .hero-image-pc {
        display: none;
    }

    .hero-text {
        order: 2;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title-en {
        font-size: 48px;
    }

    .section {
        padding: 80px 0;
    }

    .scroll-top {
        left: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }

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

    /* Aboutセクション：スマホ表示で横書きに変更 */
    .about-vertical-content {
        flex-direction: column;
        gap: 40px;
        padding: 40px 0;
        align-items: stretch;
    }

    .about-vertical-text {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        width: 100%;
        padding: 0;
        white-space: normal;
        flex-shrink: 0;
        order: 1; /* スマホ表示で最初に表示 */
        margin-bottom: 60px; /* 横書きの2行分のスペース */
    }

    .about-vertical-text-second {
        width: 100%;
        flex-shrink: 0;
        margin-right: 0;
        margin-top: 0;
        order: 2; /* スマホ表示で2番目に表示 */
    }

    .about-vertical-title {
        font-size: 24px;
        margin-bottom: 24px;
        line-height: 1.6;
        letter-spacing: 0.05em;
        white-space: normal;
    }

    .about-vertical-body {
        font-size: 16px;
        line-height: 1.8;
        letter-spacing: 0.02em;
        white-space: normal;
    }

    .about-vertical-body p {
        margin-bottom: 24px;
        white-space: normal;
    }

    .about-webcli-intro {
        font-size: 18px;
        margin-bottom: 24px;
        white-space: normal;
        line-height: 1.8;
    }

    /* スマホ用：縦書き用のtranslateXをtranslateYに上書き */
    .about-vertical-text [data-step] {
        transform: translateY(20px);
    }

    .about-vertical-text [data-step].step-visible {
        transform: translateY(0);
    }

    /* スマホ用：ハイライトアニメーションも横書き用に調整 */
    .about-vertical-text .highlight-text {
        padding: 2px 8px;
        line-height: 1.8;
        letter-spacing: 0.02em;
    }

    .about-vertical-text .highlight-text::before {
        width: 0;
        height: 100%;
        transition: width 0.8s ease;
    }

    .about-vertical-text .highlight-text.highlight-active::before {
        width: 100%;
    }

    .service-image-sp {
        display: block;
        order: 1;
    }

    .service-image-pc {
        display: none;
    }

    .service-item-right .service-text {
        order: 2;
    }

    .recruit-photos-sp {
        display: grid;
        margin-bottom: 32px;
    }

    .recruit-photos-pc {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .about-vertical-title {
        font-size: 20px;
    }

    .about-vertical-body {
        font-size: 14px;
    }

    .about-webcli-intro {
        font-size: 16px;
    }

    .section-title-en {
        font-size: 36px;
    }

    .recruit-title {
        font-size: 24px;
    }

    .recruit-photos-sp {
        display: grid;
        margin-bottom: 32px;
    }

    .recruit-photos-pc {
        display: none;
    }
}
