/* ================================================
   WORK COMIC - コーポレートサイト
   参考: manga-factory.net 風デザイン
================================================ */

/* ================================================
   CSS Variables (カラーシステム)
================================================ */
:root {
    /* カラーパレット */
    --primary-color: #E63946;
    --primary-dark: #C1121F;
    --secondary-color: #2C3E50;
    --accent-yellow: #F39C12;
    --accent-green: #27AE60;
    
    /* 背景色 */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #2C3E50;
    
    /* テキスト色 */
    --text-dark: #2C3E50;
    --text-gray: #7F8C8D;
    --text-light: #95A5A6;
    
    /* その他 */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background: var(--bg-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

/* ================================================
   Typography
================================================ */
h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

h2 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
}

h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
}

h4 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
}

p {
    font-size: 16px;
    margin-bottom: 12px;
}

/* スマホサイズで改行 */
.br-mobile {
    display: none;
}

@media (max-width: 767px) {
    .br-mobile::before {
        content: "\A";
        white-space: pre;
    }
    
    /* 改行を含む見出しの行間を狭く */
    .section-title {
        line-height: 1.3;
    }
    
    h3 {
        line-height: 1.4;
    }
}

/* スマホサイズで改行を挿入 */
.br-mobile {
    display: none;
}

@media (max-width: 767px) {
    .br-mobile {
        display: block;
    }
}

/* ================================================
   Container
================================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-wide {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ================================================
   Section
================================================ */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.section-title-en {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ================================================
   Header & Navigation
================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.site-logo img {
    height: 60px;
    width: auto;
}

.logo-tagline {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    line-height: 1.4;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    gap: 40px;
    align-items: center;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

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

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

.nav-cta {
    background: var(--primary-color);
    color: var(--bg-white) !important;
    padding: 12px 24px !important;
    border-radius: 50px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.nav-cta::after {
    display: none;
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: transparent;
    border: none;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    display: block;
}

/* ハンバーガーメニューアクティブ時のアニメーション */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* モバイルメニュー非表示時 */
.main-nav {
    transition: var(--transition);
}

/* モバイルメニュー表示時 */
@media (max-width: 767px) {
    .main-nav {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
        z-index: 999;
        max-height: calc(100vh - 50px);
        overflow-y: auto;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0s;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--bg-light);
    }
    
    .main-nav a {
        display: block;
        padding: 18px 40px;
        font-size: 16px;
        font-weight: 600;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    .nav-cta {
        margin: 10px 40px;
        text-align: center;
        display: block;
        border-radius: 50px;
    }
}

/* ================================================
   Hero Section (ファーストビュー)
================================================ */

/* スマホ版専用動画セクション：デフォルトは非表示 */
.mobile-video-section {
    display: none;
    padding: 60px 0;
    background: #f8f9fa;
}

.mobile-video-wrapper {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    background: #1a1a2e;
    min-height: 300px;
    position: relative;
}

.mobile-video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    min-height: 300px;
    object-fit: cover;
    background: #1a1a2e;
}

/* PC版：ヒーロー背景（左右2分割） */
.hero-video-container {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #1a1a2e;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-image-container {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero {
    position: relative;
    height: 70vh;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    overflow: hidden;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex; /* PC版：左右2分割 */
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    /* オーバーレイを削除 */
    display: none;
}

/* スマホ画像（中央より左寄り配置） */
/* ヒーローセクションのスタイルは css/hero-section-clean.css に移行しました */
/*
.hero-smartphone-center {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 550px;
    max-width: 90%;
}
*/

.hero-smartphone-center img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

/* 手書き風テキスト（縦書き） */
.hero-handwritten {
    position: absolute;
    z-index: 3;
    font-family: 'Zen Antique', 'Zen Kaku Gothic Antique', serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.12em;
    color: #E74C3C;
    background: white;
    padding: 18px 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* ヒーローセクションのスタイルは css/hero-section-clean.css に移行しました */
/*
.hero-handwritten-right {
    top: 20%;
    left: calc(30% + 355px);
}

.hero-handwritten-left {
    top: 50%;
    bottom: auto;
    left: calc(30% + 475px);
}
*/

/* スマホモックアップ */
.hero-smartphone {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 300px;
    height: auto;
}

.smartphone-device {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.smartphone-screen {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 30px;
    overflow: hidden;
}

.content-in-phone {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 40px;
    margin-top: 600px;
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 35px;
    color: white;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================
   Buttons
================================================ */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-outline:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

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

.btn-white:hover {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 18px 36px;
    font-size: 20px;
}

/* ================================================
   フローティングCTAボタン
================================================ */
.floating-cta {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.floating-cta .btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff4757 100%);
    color: var(--bg-white);
    box-shadow: 0 10px 40px rgba(230, 57, 70, 0.6);
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: 50px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(230, 57, 70, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(230, 57, 70, 0.8);
    }
}

.floating-cta .btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 50px rgba(230, 57, 70, 0.9);
    animation: none;
}

/* ================================================
   Cards
================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 100%;
}

/* サービスページ用：PC版では3カラム */
@media (min-width: 768px) {
    section .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* PC版ではスマホ専用改行を非表示 */
    .mobile-only {
        display: none !important;
    }
}

/* 4つの強み専用グリッド */
.strengths-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    max-width: 1000px;
    margin: 0 auto;
}

/* プラン・料金専用グリッド */
.pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    max-width: 100%;
    margin: 0 auto;
}

.pricing-grid .card {
    width: 100%;
    max-width: 100%;
}

.card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    max-width: 100%;
}

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

.card-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition);
}

.card-image .image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    text-align: center;
    border: 2px dashed #ddd;
    padding: 40px 20px;
}

.card-image .image-placeholder i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.card-image .image-placeholder p {
    font-size: 15px;
    line-height: 1.8;
}

.card-image .image-placeholder strong {
    font-size: 18px;
    color: var(--text-dark);
    display: block;
    margin-bottom: 8px;
}

.card-content {
    padding: 25px;
}

@media (max-width: 767px) {
    .card-content {
        padding: 18px 20px;
    }
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.card-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ================================================
   Footer
================================================ */
.site-footer {
    background: var(--bg-dark);
    color: var(--bg-white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.footer-company {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    height: 80px;
    width: auto;
    display: block;
}

.footer-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--bg-white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: var(--text-light);
}

/* ================================================
   漫画コマ割り風セクション（PC版：1カラムレイアウト）
================================================ */
.manga-reasons-section {
    background: #F8F9FA;
    padding: 100px 0;
}

.manga-reasons-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.manga-layout {
    display: block;
}

/* 左カラム：削除済み */
.manga-panels-container {
    display: none;
}

/* 理由リスト（センター配置） */
.manga-reasons-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.reason-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #E8E8E8;
}

.reason-item:first-child {
    padding-top: 0;
}

.reason-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.reason-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.reason-text {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.8;
    color: var(--text-dark);
    padding-top: 12px;
}

/* ================================================
   採用課題セクション（サービスラインナップ風）
================================================ */
}

/* ================================================
   採用課題セクション（サービスラインナップ風）
================================================ */
.problems-section {
    background: var(--bg-white);
    padding: 40px 0;
}

.service-lineup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card-header {
    background: linear-gradient(135deg, #E63946 0%, #C1121F 100%);
    color: white;
    font-size: 26px;
    font-weight: 900;
    text-align: center;
    padding: 30px 25px;
    border-bottom: 5px solid #FFD700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
}

.service-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.service-card-body {
    padding: 30px 25px;
}

.service-card-list {
    list-style: none;
    margin-bottom: 25px;
}

.service-card-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dark);
}

.service-card-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--text-dark);
    font-weight: 700;
}

.service-card-list .highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.service-card-image {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-card-image .image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 14px;
    text-align: center;
    border: 2px dashed #ddd;
}

.service-card-image .image-placeholder i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-card-image .image-placeholder p {
    line-height: 1.6;
}

.service-card-footer {
    display: none !important;
}

.service-card-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    padding: 18px 20px;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.service-card-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

/* ================================================
   Responsive
================================================ */

/* PC版（769px以上）：左右2分割を確実に適用 */
@media (min-width: 769px) {
    .hero-background {
        display: flex !important;
        background-image: none !important;
    }
    
    .hero-video-container,
    .hero-image-container {
        display: block !important;
    }
    
    .mobile-video-section {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    /* タブレット：動画セクションは非表示 */
    .mobile-video-section {
        display: none !important;
    }
    
    .container, .header-container {
        padding: 0 30px;
    }
    
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .service-lineup-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 600px;
    }
    
    .manga-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .manga-panels-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }
    
    /* スマホ版：動画セクションを表示 */
    .mobile-video-section {
        display: block !important;
        padding: 50px 0 0 0 !important;
        background: transparent !important;
    }

    .mobile-video-section .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .mobile-video-wrapper {
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        min-height: auto !important;
        background: transparent !important;
    }

    .mobile-video-wrapper video {
        width: 100% !important;
        height: 590px !important;
        min-height: auto !important;
        object-fit: cover !important;
        object-position: center top !important;
        aspect-ratio: unset !important;
    }
    
    /* スマホ版：ヒーロー背景を漫画コマ割り一面に */
    .hero-background {
        display: block !important;
        background-image: url('../images/hero-storyboard-new.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        opacity: 1 !important;
    }
    
    /* スマホ版：PC用の左右分割を非表示 */
    .hero-video-container,
    .hero-image-container {
        display: none !important;
    }
    
    /* ヒーローセクションのスマホ対応 */
    .hero {
        min-height: 550px;
        height: 70vh;
        padding: 20px 0 60px;
        margin-top: 70px;
        position: relative;
    }
    
    .hero-background {
        z-index: 0 !important;
    }
    
    .hero-smartphone-center,
    .hero-handwritten {
        position: relative !important;
        z-index: 2 !important;
    }
        padding: 20px 0 60px;
        margin-top: 70px;
    }
    
    /* 各ページの赤い帯状ヒーローをスマホで狭く */
    section.hero[style*="60vh"] {
        height: 30vh !important;
        min-height: 200px !important;
    }
    
    section.hero[style*="60vh"] h1 {
        font-size: 28px !important;
    }
    
    .hero-smartphone-center {
        width: 280px;
        position: absolute;
        top: 15%;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
    
    /* 手書き風テキストをスマホでも左右配置・縦書きに変更 */
    .hero-handwritten {
        position: absolute;
        writing-mode: vertical-rl;
        text-orientation: upright;
        font-size: 16px;
        padding: 12px 8px;
        display: block;
        width: auto;
        line-height: 1.8;
        letter-spacing: 0.1em;
        z-index: 3;
        white-space: nowrap;
    }
    
    /* 右側のテキスト */
    .hero-handwritten-right {
        top: 18%;
        left: auto;
        right: 5%;
        bottom: auto;
    }
    
    /* 左側のテキスト（右側と同じ高さで開始） */
    .hero-handwritten-left {
        top: 18%;
        left: 5%;
        bottom: auto;
        right: auto;
    }
    
    .hero-content {
        margin-top: 400px;
        padding: 0 20px;
        position: relative;
        z-index: 10;
    }
    
    /* ヒーローのボタンをスマホで非表示 */
    .hero-buttons {
        display: none;
    }
    
    /* フローティングCTAボタンをスマホで小さく・中央下に */
    .floating-cta {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .floating-cta .btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 50px;
        box-shadow: 0 4px 20px rgba(230, 57, 70, 0.35);
        min-width: auto;
    }
    
    .floating-cta .btn i {
        font-size: 13px;
    }
    
    .floating-cta .btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 6px 25px rgba(230, 57, 70, 0.45);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .floating-cta {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .floating-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .logo-tagline {
        display: none;
    }
    
    .service-lineup-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-card-header {
        font-size: 16px;
        padding: 18px 12px;
    }
    
    .service-card-body {
        padding: 25px 20px;
    }
    
    .service-card-list li {
        font-size: 13px;
    }
    
    .service-card-footer {
        padding: 0 20px 25px;
    }
    
    .service-card-btn {
        font-size: 15px;
        padding: 16px 18px;
    }
    
    .manga-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .manga-panels-container {
        max-width: 100%;
    }
    
    .reason-item {
        padding: 18px 0;
    }
    
    .reason-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .reason-text {
        font-size: 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .card-content {
        padding: 25px 20px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .card-description {
        font-size: 14px;
    }
    
    /* スマホ：本文フォントサイズ統一 */
    body { font-size: 16px; }
    h1 { font-size: 28px; line-height: 1.4; }
    h2 { font-size: 24px; line-height: 1.4; }
    
    /* スマホ：横はみ出し防止 */
    img { max-width: 100%; height: auto; }
}

/* ===== バナーPC版デフォルトサイズ ===== */
.sp-banner-section .banner-text {
    font-size: 24px;
}
.sp-banner-section .banner-num {
    font-size: 28px;
}
.sp-banner-section .banner-btn {
    font-size: 14px;
    padding: 8px 24px;
    box-shadow: 0 4px 20px rgba(230, 0, 50, 0.4);
}

/* ===== バナー・Heroセクション SP対応 ===== */
@media (max-width: 767px) {
    /* REASONカードタイトルのmarginを0に */
    .reason-card-title {
        margin: 0 !important;
    }
    .reason-title-row {
        align-items: center;
    }
    .sp-banner-section {
        padding: 0 12px !important;
        height: 56px !important;
        display: flex !important;
        align-items: center !important;
        margin-top: 50px !important;
        overflow: hidden !important;
    }
    .sp-banner-section .container {
        width: 100%;
        overflow: hidden;
        padding: 0 !important;
    }
    .sp-banner-section > .container > div {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        overflow: hidden;
    }
    .sp-banner-section .banner-text {
        font-size: 15px !important;
        white-space: nowrap !important;
        flex-shrink: 1;
        min-width: 0;
        line-height: 1.2 !important;
        margin-bottom: 0 !important;
        letter-spacing: 0.05em !important;
    }
    .sp-banner-section .banner-num {
        font-size: 18px !important;
    }
    .sp-banner-section a,
    .sp-banner-section .banner-btn {
        font-size: 12px !important;
        padding: 5px 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0;
        box-shadow: none !important;
    }
    .sp-banner-section .banner-btn i {
        margin-right: 4px !important;
        font-size: 12px !important;
    }
    /* Hero SP対応 */
    .sp-hero-section {
        height: 130px !important;
        margin-top: 0 !important;
        position: relative !important;
    }
    .sp-hero-section [style*="position: relative"][style*="z-index: 1"] {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 100%;
        text-align: center;
        z-index: 2 !important;
    }
    .sp-hero-section h1 {
        font-size: 26px !important;
        text-align: center !important;
        margin: 0 !important;
    }
}

/* ================================================
   会社概要ページ
================================================ */

/* 代表メッセージ */
.message-container {
    max-width: 900px;
    margin: 0 auto;
}

.message-content {
    background: white;
    padding: 60px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.message-subtitle {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.message-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.9;
}

.message-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.message-signature {
    margin-top: 40px;
    text-align: right;
    font-size: 18px;
    color: var(--text-dark);
}

.message-signature strong {
    font-size: 22px;
    color: var(--secondary-color);
}

/* 会社情報テーブル */
.company-info-container {
    max-width: 900px;
    margin: 0 auto;
}

.company-info-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.company-info-table tbody tr {
    border-bottom: 1px solid #E8E8E8;
}

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

.company-info-table th,
.company-info-table td {
    padding: 24px 30px;
    text-align: left;
    vertical-align: top;
}

.company-info-table th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--secondary-color);
    width: 200px;
    white-space: nowrap;
}

.company-info-table td {
    background: white;
    line-height: 1.8;
}

/* ミッション・ビジョン */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.mission-vision-card {
    background: white;
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.mission-vision-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.mission-vision-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    color: white;
    font-size: 36px;
}

.mission-vision-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.mission-vision-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* アクセス */
.access-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.access-info {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.access-office-name {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.access-address {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 30px;
}

.access-transportation h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.access-transportation ul {
    list-style: disc;
    padding-left: 20px;
}

.access-transportation li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.access-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.access-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ================================================
   お問い合わせページ
================================================ */

/* お問い合わせ導入 */
.contact-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.contact-intro-text {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 30px;
}

.contact-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
}

.contact-benefit-item i {
    color: var(--accent-green);
    font-size: 20px;
}

/* お問い合わせフォーム */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

.form-label {
    display: block;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 15px;
}

.form-required {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

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

.form-help-text {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 8px;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

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

.form-submit {
    text-align: center;
    margin-top: 40px;
}

/* その他のお問い合わせ方法 */
.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-method-card {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-method-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-method-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    color: white;
    font-size: 36px;
}

.contact-method-title {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-method-number,
.contact-method-email {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-method-time {
    font-size: 14px;
    color: var(--text-gray);
}

/* プライバシーポリシー */
.privacy-policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    line-height: 1.9;
}

.privacy-policy-content h3 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.privacy-policy-content h4 {
    color: var(--secondary-color);
    margin-top: 35px;
    margin-bottom: 15px;
}

.privacy-policy-content p {
    margin-bottom: 20px;
}

.privacy-policy-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.privacy-policy-content li {
    margin-bottom: 8px;
}

/* ================================================
   会社概要・お問い合わせページのレスポンシブ
================================================ */
@media (max-width: 1024px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .access-container {
        grid-template-columns: 1fr;
    }
    
    .contact-methods-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .message-content {
        padding: 40px 30px;
    }
    
    .message-subtitle {
        font-size: 20px;
    }
    
    .company-info-table th,
    .company-info-table td {
        padding: 18px 20px;
    }
    
    .company-info-table th {
        width: 120px;
        font-size: 14px;
    }
    
    .company-info-table td {
        font-size: 14px;
    }
    
    .access-info {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 40px 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .privacy-policy-content {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .company-info-table {
        font-size: 13px;
    }
    
    .company-info-table th {
        display: block;
        width: 100%;
        background: var(--primary-color);
        color: white;
        padding: 12px 20px;
    }
    
    .company-info-table td {
        display: block;
        width: 100%;
        padding: 15px 20px 25px;
        border-bottom: 3px solid var(--bg-light);
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .hero-smartphone-center {
        width: 240px;
    }
    
    .hero-content {
        margin-top: 350px;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
}

/* ================================================
   追加レスポンシブ対応
   - ヘッダーロゴの調整
   - CTA吹き出しの調整
   - カードグリッドの最適化
================================================ */

/* タブレット対応の強化 */
@media (min-width: 768px) and (max-width: 1023px) {
    .site-logo img {
        height: 50px;
    }
    
    .logo-tagline {
        font-size: 11px;
        padding-left: 15px;
    }
    
    .main-nav ul {
        gap: 25px;
    }
    
    .main-nav a {
        font-size: 14px;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .card-grid,
    .service-lineup-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .strengths-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* ================================================
   PC対応（1024px以上1599px未満）
   2カラム固定レイアウト
================================================ */
@media (min-width: 1024px) and (max-width: 1599px) {
    .card-grid,
    .strengths-grid,
    .pricing-grid,
    .service-lineup-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* ヒーローセクションのスタイルは css/hero-section-clean.css に移行しました */
    /*
    .hero-smartphone-center {
        width: 550px !important;
        left: 30% !important;
    }
    
    .hero-handwritten-right {
        top: 20% !important;
        left: calc(30% + 355px) !important;
        right: auto !important;
    }
    
    .hero-handwritten-left {
        top: 50% !important;
        left: calc(30% + 475px) !important;
        right: auto !important;
        bottom: auto !important;
    }
    */
}

/* スマートフォン対応の強化 */
@media (max-width: 767px) {
    .site-logo img {
        height: 36px;
    }
    
    .header-container {
        height: 50px;
        padding: 0 20px;
    }
    
    .hero {
        margin-top: 50px;
        min-height: 500px;
    }
    
    /* 各ページ（サービス紹介、料金プラン、制作の流れ、お問い合わせ）の赤いヒーロー部分をスマホで狭く */
    section.hero[style*="60vh"] {
        height: 30vh !important;
        min-height: 200px !important;
    }
    
    section.hero[style*="60vh"] h1 {
        font-size: 22px !important;
    }
    
    .container,
    .container-wide {
        padding: 0 20px;
    }
    
    section {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 17px;
        line-height: 1.4;
    }
    
    h4 {
        font-size: 13px;
        line-height: 1.4;
    }
    
    p {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 35px;
        line-height: 1.3;
    }
    
    .section-title-en {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    /* カードのレスポンシブ */
    .card-grid,
    .strengths-grid,
    .pricing-grid,
    .service-lineup-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 漫画レイアウトもスマホでは縦並び */
    .manga-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .manga-panels-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .card-image {
        max-height: none;
        height: auto;
    }
    
    .card-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-description {
        font-size: 14px;
    }
    
    /* ボタンのレスポンシブ */
    .btn {
        padding: 14px 30px;
        font-size: 15px;
    }
    
    .btn-large {
        padding: 16px 30px;
        font-size: 22px;
        font-weight: 900;
    }
    
    /* 料金プランページのスマホ対応 */
    .plan-description {
        font-size: 14px !important;
    }
    
    .price-text {
        font-size: 18px !important;
        white-space: nowrap;
    }
    
    .price-text span {
        font-size: 13px !important;
    }
    
    .option-price {
        font-size: 22px !important;
    }
    
    .option-price span {
        font-size: 14px !important;
    }
    
    /* オプションカードを縦並びに */
    .options-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    /* 納品物セクションのカードグリッドを上下配置に */
    section[style*="DELIVERABLES"] + section .card-grid,
    section:has(h2 .section-title-en:contains("DELIVERABLES")) .card-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* pricing.html の納品物セクションのカードグリッドを明示的に指定 */
    .card-grid[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* URLデータ活用セクションの3カラムを縦並びに */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    /* flow.html の制作期間の目安セクションを縦並びに */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

/* 極小スクリーン対応 (iPhone SE等) */
@media (max-width: 374px) {
    .site-logo img {
        height: 70px;
    }
    
    .header-container {
        height: 65px;
    }
    
    .hero {
        margin-top: 65px;
        min-height: 500px;
        padding: 20px 0 50px;
    }
    
    .hero-smartphone-center {
        width: 220px;
        top: 12%;
    }
    
    .hero-handwritten {
        font-size: 12px;
        padding: 8px 5px;
        writing-mode: vertical-rl;
        text-orientation: upright;
        line-height: 1.8;
        letter-spacing: 0.1em;
        white-space: nowrap;
    }
    
    /* 左側のテキスト → スマホ右側へ移動 */
    .hero-handwritten-left {
        top: 15%;
        left: calc(50% + 110px + 40px); /* スマホ右端 + 間隔 */
        right: auto;
        bottom: auto;
    }
    
    /* 右側のテキスト → さらに右へ */
    .hero-handwritten-right {
        top: 15%;
        left: calc(50% + 110px + 95px); /* 左側テキストの右隣 */
        right: auto;
        bottom: auto;
    }
    
    .hero-content {
        margin-top: 350px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .container,
    .container-wide {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    /* フローティングCTAボタンをさらに小さく */
    .floating-cta {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-cta .btn {
        padding: 10px 16px;
        font-size: 13px;
        box-shadow: 0 3px 15px rgba(230, 57, 70, 0.3);
    }
    
    .floating-cta .btn i {
        font-size: 12px;
    }
    
    /* 各ページの赤いヒーロー部分を極小画面でさらに狭く */
    section.hero[style*="60vh"] {
        height: 25vh !important;
        min-height: 180px !important;
    }
    
    section.hero[style*="60vh"] h1 {
        font-size: 24px !important;
    }
    
    /* 料金プランページの価格表示をさらに小さく */
    .price-text {
        font-size: 16px !important;
    }
    
    .price-text span {
        font-size: 12px !important;
    }
    
    .option-price {
        font-size: 20px !important;
    }
    
    .option-price span {
        font-size: 13px !important;
    }
}

/* 中サイズスマホ対応（480px〜767px） */
@media (min-width: 480px) and (max-width: 767px) {
    .hero-smartphone-center {
        width: 300px;
    }
    
    .hero-handwritten {
        font-size: 14px;
        padding: 10px 6px;
        writing-mode: vertical-rl;
        text-orientation: upright;
        line-height: 1.8;
        letter-spacing: 0.1em;
        white-space: nowrap;
    }
    
    /* 左側のテキスト → スマホ右側へ移動 */
    .hero-handwritten-left {
        top: 16%;
        left: calc(50% + 150px + 50px); /* スマホ右端 + 間隔 */
        right: auto;
        bottom: auto;
    }
    
    /* 右側のテキスト → さらに右へ */
    .hero-handwritten-right {
        top: 16%;
        left: calc(50% + 150px + 110px); /* 左側テキストの右隣 */
        right: auto;
        bottom: auto;
    }
    
    .hero-content {
        margin-top: 420px;
    }
}

/* ================================================
   デジタル強み用スタイル（インライン置き換え）
================================================ */

/* バッジスタイル */
.badge-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    z-index: 1;
}

/* カードボーダー強調 */
.card-border-primary {
    border: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

/* アイコン大 */
.icon-large {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* 強調テキスト */
.text-emphasis {
    color: var(--primary-color);
    font-size: 22px;
    display: block;
    margin-bottom: 20px;
    font-weight: 700;
}

/* チェックリストボックス */
.checklist-box {
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
    font-size: 17px;
    font-weight: 600;
    line-height: 2;
    text-align: left;
}

.checklist-box i {
    color: var(--primary-color);
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .hero {
        height: 150px !important;
        min-height: unset !important;
    }

    .badge-top-right {
        top: 15px;
        right: 15px;
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .icon-large {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .text-emphasis {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .checklist-box {
        padding: 12px 15px;
        font-size: 15px;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .icon-large {
        font-size: 32px;
    }
    
    .text-emphasis {
        font-size: 16px;
    }
    
    .checklist-box {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* ================================================
   CTAセクション - スタッフ写真
================================================ */

.cta-section {
    background: linear-gradient(135deg, #FFD700, #FFC000);
    padding: 70px 0;
    color: #000000;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/cta-storyboard-background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
}

.cta-staff {
    position: absolute;
    bottom: 0;
    z-index: 2;
    max-width: 250px;
}

.cta-staff-left {
    left: 5%;
}

.cta-staff-right {
    right: 5%;
}

.cta-staff-bubble {
    display: none !important;
}

.cta-staff-bubble::after {
    display: none !important;
}

.cta-staff-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #000000;
}

.cta-description {
    font-size: 18px;
    margin-bottom: 40px;
    color: #000000;
    opacity: 0.95;
}

/* タブレット対応 */
@media (max-width: 1023px) {
    .cta-staff {
        max-width: 200px;
    }
    
    .cta-staff-left {
        left: 3%;
    }
    
    .cta-staff-right {
        right: 3%;
    }
    
    .cta-staff-bubble {
        top: -70px;
        font-size: 14px;
        padding: 12px 16px;
        white-space: normal;
        max-width: 180px;
    }
    
    .cta-title {
        font-size: 36px;
    }
    
    .cta-description {
        font-size: 18px;
    }
    
    .cta-section {
        padding: 80px 0;
    }
}

/* スマートフォン対応 */
@media (max-width: 767px) {
    /* 無料サンプルバナー */
    section[style*="linear-gradient(135deg, #1a1a2e, #16213e)"] {
        padding: 30px 0 !important;
    }
    
    section[style*="linear-gradient(135deg, #1a1a2e, #16213e)"] h2 {
        font-size: 26px !important;
        margin-bottom: 18px !important;
    }
    
    section[style*="linear-gradient(135deg, #1a1a2e, #16213e)"] h2 span {
        font-size: 32px !important;
    }
    
    section[style*="linear-gradient(135deg, #1a1a2e, #16213e)"] a {
        font-size: 15px !important;
        padding: 12px 28px !important;
    }
    
    /* sample.html用：無料シナリオ提案CTAセクション */
    section div[style*="linear-gradient(135deg, var(--primary-color), var(--primary-dark))"] {
        padding: 35px 25px !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }
    
    section div[style*="linear-gradient(135deg, var(--primary-color), var(--primary-dark))"] div[style*="font-size: 48px"] {
        font-size: 36px !important;
        margin-bottom: 12px !important;
    }
    
    section div[style*="linear-gradient(135deg, var(--primary-color), var(--primary-dark))"] h3 {
        font-size: 20px !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
    }
    
    section div[style*="linear-gradient(135deg, var(--primary-color), var(--primary-dark))"] p {
        font-size: 14px !important;
        line-height: 1.7 !important;
        margin-bottom: 25px !important;
    }
    
    section div[style*="linear-gradient(135deg, var(--primary-color), var(--primary-dark))"] a {
        font-size: 14px !important;
        padding: 14px 28px !important;
    }
    
    .cta-staff {
        display: none; /* スマホでは非表示 */
    }
    
    .cta-title {
        font-size: 22px !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
    }
    
    .cta-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    /* フッター全体：縦積み */
    .site-footer > div > div[style*="display:flex"],
    .site-footer > div > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 16px !important;
        align-items: center !important;
    }
    .site-footer .footer-logo {
        text-align: center !important;
    }
    .site-footer .footer-logo img {
        height: 50px !important;
    }
    .site-footer nav {
        width: 100% !important;
    }
    .site-footer nav ul {
        flex-wrap: wrap !important;
        gap: 12px 16px !important;
        justify-content: center !important;
        padding: 0 16px !important;
    }
    .site-footer nav ul li a {
        font-size: 13px !important;
        white-space: nowrap !important;
    }
    
    /* 漫画理由セクション - 上段・下段画像を非表示 */
    .manga-panel-top,
    .manga-panel-bottom {
        display: none !important;
    }
    
    /* 漫画理由セクション - 余白を縮小 */
    .manga-reasons-section {
        padding: 20px 0 !important;
    }
    
    .manga-layout {
        gap: 20px !important;
        margin-top: 0 !important;
        display: block !important;
    }
    
    .manga-panels-container {
        display: none !important;
    }
    
    /* 漫画理由リスト - スマホ版調整 */
    .manga-reasons-list {
        padding: 20px 15px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .reason-item {
        padding: 18px 0 !important;
        gap: 15px !important;
        flex-wrap: nowrap !important;
    }
    
    .reason-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        flex-shrink: 0 !important;
    }
    
    .reason-text {
        flex: 1 !important;
        font-size: 14px !important;
        line-height: 1.7 !important;
        padding-top: 8px !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        min-width: 0 !important;
    }
    
    /* サービスページ - 3つのカードを縦並びに */
    .card-grid {
        grid-template-columns: 1fr !important;
    }
    
    section .card-grid[style*="repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* 比較表 - フォントサイズを縮小 */
    table thead th {
        font-size: 12px !important;
        padding: 12px 8px !important;
        white-space: nowrap !important;
    }
    
    table tbody td {
        font-size: 11px !important;
        padding: 12px 8px !important;
    }
    
    table tbody tr td:first-child {
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    
    /* 導入事例ページ - ヘッダー部分のフォントサイズ調整 */
    section div[style*="text-align: center"] h2 {
        font-size: 24px !important;
        line-height: 1.5 !important;
    }
    
    section div[style*="text-align: center"] p {
        font-size: 15px !important;
    }
    
    section div[style*="inline-block"] p {
        font-size: 12px !important;
    }
    
    /* 導入事例ページ - 事例カードのコンパクト化 */
    /* Case Header */
    section div[style*="linear-gradient(135deg, #00b894"],
    section div[style*="linear-gradient(135deg, #00bcd4"] {
        padding: 25px 20px !important;
    }
    
    section div[style*="linear-gradient(135deg, #e67e22"] {
        padding: 25px 20px !important;
    }
    
    section div[style*="linear-gradient(135deg, #00b894"] h2,
    section div[style*="linear-gradient(135deg, #00bcd4"] h2,
    section div[style*="linear-gradient(135deg, #e67e22"] h2 {
        font-size: 22px !important;
    }
    
    section div[style*="linear-gradient(135deg, #00b894"] p,
    section div[style*="linear-gradient(135deg, #00bcd4"] p,
    section div[style*="linear-gradient(135deg, #e67e22"] p {
        font-size: 14px !important;
    }
    
    section div[style*="linear-gradient(135deg, #00b894"] span,
    section div[style*="linear-gradient(135deg, #00bcd4"] span,
    section div[style*="linear-gradient(135deg, #e67e22"] span {
        font-size: 12px !important;
        padding: 6px 15px !important;
    }
    
    section div[style*="linear-gradient(135deg, #00b894"] > div > div,
    section div[style*="linear-gradient(135deg, #00bcd4"] > div > div,
    section div[style*="linear-gradient(135deg, #e67e22"] > div > div {
        padding: 8px 15px !important;
        font-size: 13px !important;
    }
    
    /* 事例2のタイトル「アンダー・ザ・ダクト」と副題を調整 */
    section div[style*="linear-gradient(135deg, #00bcd4"] h2 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        word-break: keep-all !important;
    }
    
    section div[style*="linear-gradient(135deg, #00bcd4"] p[style*="italic"] {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin-top: 8px !important;
    }
    
    /* 事例1のタイトルも同様に調整 */
    section div[style*="linear-gradient(135deg, #00b894"] h2 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        word-break: keep-all !important;
    }
    
    section div[style*="linear-gradient(135deg, #00b894"] p[style*="italic"] {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin-top: 8px !important;
    }
    
    /* 企業タイプと職種のタグ部分 */
    section div[style*="linear-gradient(135deg, #00bcd4"] > div[style*="margin-top"] {
        margin-top: 20px !important;
        gap: 10px !important;
    }
    
    section div[style*="linear-gradient(135deg, #00b894"] > div[style*="margin-top"] {
        margin-top: 20px !important;
        gap: 10px !important;
    }
    
    /* 課題セクション */
    section div[style*="background: white"] h3 {
        font-size: 18px !important;
        padding: 15px !important;
    }
    
    section div[style*="background: white"] ul li {
        font-size: 13px !important;
        padding: 10px 15px !important;
    }
    
    /* シナリオポイントセクション */
    section div[style*="background: #f8f9fa"] h3 {
        font-size: 18px !important;
        padding-left: 15px !important;
        margin-bottom: 20px !important;
    }
    
    section div[style*="background: #f8f9fa"] div[style*="display: grid"] div {
        padding: 15px !important;
    }
    
    section div[style*="background: #f8f9fa"] div[style*="display: grid"] strong {
        font-size: 13px !important;
    }
    
    section div[style*="background: #f8f9fa"] div[style*="display: grid"] p {
        font-size: 12px !important;
    }
    
    /* 事例1と事例2のシナリオ設計カードを統一（グラデーション背景のもの） */
    section div[style*="display: grid"][style*="gap: 20px"] {
        display: block !important;
        gap: 15px !important;
    }
    
    section div[style*="display: grid"][style*="gap: 20px"] > div {
        padding: 15px !important;
        margin-bottom: 15px !important;
        border-radius: 8px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* グラデーション背景のボックス全般 */
    div[style*="linear-gradient(135deg, #fff5f5"],
    div[style*="linear-gradient(135deg, #f0f8ff"],
    div[style*="linear-gradient(135deg, #f0fff4"] {
        padding: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 8px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    section div[style*="display: grid"][style*="gap: 20px"] > div h4 {
        font-size: 15px !important;
        margin-bottom: 8px !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
    }
    
    section div[style*="display: grid"][style*="gap: 20px"] > div p {
        font-size: 13px !important;
        line-height: 1.6 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
    }
    
    /* セクション全体のパディングを調整 */
    section[style*="padding: 100px 0"] {
        padding: 40px 0 !important;
    }
    
    /* 白背景コンテンツエリアの調整 */
    div[style*="background: white"][style*="padding: 50px"] {
        padding: 25px 20px !important;
    }
    
    div[style*="background: white"][style*="padding: 50px"] h3 {
        font-size: 18px !important;
        padding-left: 15px !important;
        margin-bottom: 15px !important;
    }
    
    div[style*="background: white"][style*="padding: 50px"] p {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }
    
    div[style*="background: white"][style*="padding: 50px"] ul li {
        font-size: 14px !important;
        padding: 10px 0 10px 30px !important;
    }
    
    div[style*="background: white"][style*="padding: 50px"] ul li i {
        top: 12px !important;
    }
    
    /* グレー背景の説明テキスト */
    div[style*="background: white"][style*="padding: 50px"] p[style*="background: #f8f9fa"] {
        font-size: 14px !important;
        padding: 15px !important;
        margin-top: 15px !important;
    }
    
    /* 実際のシナリオ画像エリア */
    div[style*="margin-bottom: 50px"] img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    div[style*="text-align: center"][style*="font-size: 12px"] {
        font-size: 11px !important;
        margin-top: 10px !important;
    }
    
    /* ===== 全ページ共通：文字サイズと改行の最適化 ===== */
    
    /* スマホ専用改行クラス */
    .mobile-only {
        display: inline !important;
    }
    
    /* 基本のテキスト要素 */
    body {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }
    
    /* 見出しの最適化 */
    h1 {
        font-size: 22px !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        margin-bottom: 15px !important;
    }
    
    h2 {
        font-size: 20px !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        margin-bottom: 15px !important;
    }
    
    h3 {
        font-size: 17px !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        margin-bottom: 12px !important;
    }
    
    h4 {
        font-size: 13px !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
        margin-bottom: 10px !important;
    }
    
    /* 本文とリストの最適化 */
    p {
        font-size: 12px !important;
        line-height: 1.8 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        margin-bottom: 15px !important;
    }
    
    li {
        font-size: 12px !important;
        line-height: 1.7 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
    }
    
    /* 強調テキスト */
    strong, b {
        word-break: keep-all !important;
    }
    
    /* リンクとボタン */
    a {
        word-break: keep-all !important;
    }
    
    .btn, button {
        font-size: 11px !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
        white-space: nowrap !important;
    }
    
    /* セクションタイトル */
    .section-title {
        font-size: 20px !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
        margin-bottom: 20px !important;
    }
    
    .section-title-en {
        font-size: 12px !important;
        letter-spacing: 0.1em !important;
        word-break: keep-all !important;
    }
    
    /* カード内のテキスト */
    .card h3, .card h4 {
        font-size: 18px !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
        margin-bottom: 10px !important;
    }
    
    .card p {
        font-size: 14px !important;
        line-height: 1.7 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
    }
    
    /* テーブルの最適化 */
    table {
        font-size: 13px !important;
    }
    
    table th, table td {
        font-size: 13px !important;
        line-height: 1.5 !important;
        word-break: keep-all !important;
        padding: 10px 8px !important;
    }
    
    /* インライン要素の不自然な改行を防ぐ */
    span {
        word-break: keep-all !important;
    }
    
    /* 日本語の長い単語の改行を改善 */
    div, section, article {
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
    }
    
    /* ===== サンプルページ専用：文面とフォントサイズの調整 ===== */
    
    /* メインの見出し */
    section[style*="padding: 100px 0"] h2 {
        font-size: 26px !important;
        line-height: 1.5 !important;
        word-break: keep-all !important;
        margin-bottom: 20px !important;
    }
    
    section[style*="padding: 100px 0"] h2 span {
        font-size: 32px !important;
    }
    
    /* 本文 */
    section[style*="padding: 100px 0"] p {
        font-size: 15px !important;
        line-height: 1.8 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
    }
    
    /* 黄色の注意書きボックス */
    div[style*="background: #fff3cd"] p {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }
    
    div[style*="background: #fff3cd"] span {
        font-size: 13px !important;
    }
    
    /* グレー背景のセクション */
    div[style*="background: #f8f9fa"][style*="padding: 50px"] h3 {
        font-size: 22px !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
        margin-bottom: 20px !important;
    }
    
    div[style*="background: #f8f9fa"][style*="padding: 50px"] p {
        font-size: 14px !important;
        line-height: 1.8 !important;
        word-break: keep-all !important;
    }
    
    div[style*="background: #f8f9fa"][style*="padding: 50px"] ul li {
        font-size: 13px !important;
        line-height: 1.7 !important;
    }
    
    /* プラン比較ボックス */
    div[style*="background: white"][style*="box-shadow: 0 2px 8px"] {
        padding: 15px !important;
    }
    
    div[style*="background: white"][style*="box-shadow: 0 2px 8px"] div {
        font-size: 13px !important;
    }
    
    div[style*="background: white"][style*="box-shadow: 0 2px 8px"] ul li {
        font-size: 13px !important;
        line-height: 1.7 !important;
    }
    
    /* 赤グラデーションCTAセクション */
    div[style*="linear-gradient(135deg, var(--primary-color), var(--primary-dark))"] h3 {
        font-size: 20px !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
    }
    
    div[style*="linear-gradient(135deg, var(--primary-color), var(--primary-dark))"] p {
        font-size: 14px !important;
        line-height: 1.7 !important;
        word-break: keep-all !important;
    }
    
    /* 金色のバッジ */
    div[style*="linear-gradient(135deg, #FFD700, #FFA500)"] {
        font-size: 14px !important;
        padding: 10px 25px !important;
    }
    
    /* ===== サンプルページ専用調整ここまで ===== */
    
    /* サービスページ：チェックマークアイコンのサイズを小さく */
    div[style*="width: 60px"][style*="height: 60px"][style*="border-radius: 50%"] {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
    
    /* 無料サンプルページ：「同じビルメンテナンス業界でも」の見出しを最適化 */
    section:nth-child(3) h3[style*="font-size: 28px"] {
        font-size: 18px !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        margin-bottom: 20px !important;
    }
    
    /* お問い合わせページ：FAQアコーディオンの最適化 */
    .faq-accordion-item {
        margin-bottom: 15px !important;
        overflow: hidden !important;
    }
    
    .faq-question {
        padding: 12px 10px !important;
        align-items: flex-start !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        gap: 10px !important;
        justify-content: space-between !important;
    }
    
    .faq-question > span:first-child {
        display: flex !important;
        align-items: flex-start !important;
        flex-wrap: nowrap !important;
        flex: 1 !important;
        min-width: 0 !important;
        gap: 6px !important;
        margin-right: 10px !important;
    }
    
    .faq-question span span:first-child {
        flex-shrink: 0 !important;
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
    
    .faq-question span span:last-child {
        font-size: 11px !important;
        line-height: 1.6 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .faq-question > i.fa-plus {
        font-size: 13px !important;
        flex-shrink: 0 !important;
        margin-top: 3px !important;
        width: 13px !important;
        text-align: center !important;
    }
    
    .faq-answer div {
        padding: 0 15px 15px 15px !important;
        max-width: 100% !important;
    }
    
    .faq-answer p {
        font-size: 13px !important;
        line-height: 1.9 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        white-space: normal !important;
        margin-bottom: 10px !important;
    }
    
    /* FAQ回答テキストのインラインスタイルを強制上書き */
    .faq-answer p[style*="padding-left"] {
        padding-left: 0 !important;
    }
    
    .faq-answer ul {
        padding-left: 20px !important;
        margin-bottom: 10px !important;
    }
    
    .faq-answer ul li {
        font-size: 13px !important;
        line-height: 1.8 !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        margin-bottom: 6px !important;
    }
    
    .faq-answer strong {
        font-size: 13px !important;
        word-break: normal !important;
    }
    
    /* 料金プランページ：プラン全体をスマホ画面に収める */
    .pricing-grid {
        display: block !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 30px !important;
    }
    
    .pricing-grid .card {
        max-width: 100% !important;
        width: 100% !important;
        overflow: visible !important;
        position: relative !important;
        box-sizing: border-box !important;
        margin: 0 0 30px 0 !important;
        padding: 0 !important;
        border-width: 2px !important;
    }
    
    .pricing-grid .card-image {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .pricing-grid .card-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .pricing-grid .card-content {
        padding: 20px 15px !important;
    }
    
    /* プランタイトル */
    .pricing-grid .card-title {
        font-size: 22px !important;
    }
    
    /* 料金表示 */
    .pricing-grid .price-text {
        font-size: 20px !important;
    }
    
    /* プラン説明 */
    .pricing-grid .plan-description {
        font-size: 14px !important;
    }
    
    /* 「おすすめ」バッジをスマホでも表示 */
    div[style*="position: absolute"][style*="top: -15px"] {
        top: -10px !important;
        right: 10px !important;
        font-size: 11px !important;
        padding: 5px 12px !important;
        z-index: 20 !important;
    }
}

@media (max-width: 480px) {
    /* 小型スマホ用：さらにコンパクトに */
    section div[style*="linear-gradient(135deg, var(--primary-color), var(--primary-dark))"] {
        padding: 30px 20px !important;
    }
    
    section div[style*="linear-gradient(135deg, var(--primary-color), var(--primary-dark))"] div[style*="font-size: 48px"] {
        font-size: 32px !important;
    }
    
    section div[style*="linear-gradient(135deg, var(--primary-color), var(--primary-dark))"] h3 {
        font-size: 18px !important;
    }
    
    section div[style*="linear-gradient(135deg, var(--primary-color), var(--primary-dark))"] p {
        font-size: 13px !important;
    }
    
    section div[style*="linear-gradient(135deg, var(--primary-color), var(--primary-dark))"] a {
        font-size: 13px !important;
        padding: 12px 24px !important;
    }
    
    .cta-title {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    
    .cta-description {
        font-size: 15px;
    }
    
    /* フッターナビゲーション - 小型スマホ */
    .site-footer nav ul {
        gap: 10px !important;
    }
    
    .site-footer nav ul li a {
        font-size: 12px !important;
    }
    .flow-container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    /* CTAセクションSP対応 */
    .cta-section { padding: 60px 20px !important; }
    .cta-title {
        font-size: 22px !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
        white-space: normal !important;
        padding: 0 8px !important;
    }
    .cta-description {
        font-size: 14px !important;
        line-height: 1.7 !important;
        word-break: break-word !important;
        white-space: normal !important;
        padding: 0 8px !important;
    }
    .cta-content { padding: 0 8px !important; }
    .cta-content > div {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .cta-content .btn {
        width: 90% !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: normal !important;
        font-size: 15px !important;
        padding: 14px 20px !important;
    }
}

/* ================================================
   大画面対応（1600px以上）- 無効化
   1599px以下と同じスタイルを維持
================================================ */
/*
@media (min-width: 1600px) {
    コンテナをさらに制限
    .container {
        max-width: 1000px !important;
    }
    
    .container-wide {
        max-width: 1200px !important;
    }
    
    フォントサイズを固定（これ以上大きくしない）
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 32px !important;
    }
    
    h2 {
        font-size: 24px !important;
    }
    
    h3 {
        font-size: 18px !important;
    }
    
    .section-title {
        font-size: 28px !important;
    }
    
    ヒーローセクションの高さを固定
    .hero {
        height: 50vh !important;
        max-height: 500px !important;
    }
    
    カードグリッドを2列に固定
    .card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    強み・料金・サービスグリッドは2列のまま
    .strengths-grid,
    .pricing-grid,
    .service-lineup-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    セクション余白を固定
    section {
        padding: 40px 0 !important;
    }
    
    CTAセクションも固定
    .cta-section {
        padding: 50px 0 !important;
    }
    
    .cta-title {
        font-size: 32px !important;
    }
    
    .cta-description {
        font-size: 16px !important;
    }
    
    ヒーローセクションのスタイルは css/hero-section-clean.css に移行しました
    
    .hero-smartphone-center {
        width: 550px !important;
        left: 30% !important;
    }
    
    .hero-handwritten-right {
        top: 20% !important;
        left: calc(30% + 355px) !important;
        right: auto !important;
    }
    
    .hero-handwritten-left {
        top: 50% !important;
        left: calc(30% + 475px) !important;
        right: auto !important;
        bottom: auto !important;
    }
    
*/

/* ================================================
   超大画面対応（2000px以上）- 無効化
   1599px以下と同じスタイルを維持
================================================ */
/*
@media (min-width: 2000px) {
    コンテナを完全に固定
    .container {
        max-width: 1000px !important;
    }
    
    .container-wide {
        max-width: 1200px !important;
    }
    
    カードグリッドも2列に固定
    .card-grid,
    .service-lineup-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    ヒーローセクションのスタイルは css/hero-section-clean.css に移行しました
    
    .hero-smartphone-center {
        width: 550px !important;
        left: 30% !important;
    }
    
    .hero-handwritten-right {
        top: 20% !important;
        left: calc(30% + 355px) !important;
        right: auto !important;
    }
    
    .hero-handwritten-left {
        top: 50% !important;
        left: calc(30% + 475px) !important;
        right: auto !important;
        bottom: auto !important;
    }
    
}
*/

/* ================================================
   PC版固定CTAボタン（右側縦）
================================================ */
.pc-fixed-cta {
    display: none;
}

@media (min-width: 1024px) {
    .pc-fixed-cta {
        display: block;
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9000;
    }
    .pc-fixed-cta a {
        display: block;
    }
    .pc-fixed-cta img {
        width: 80px;
        height: auto;
        display: block;
        filter: drop-shadow(-3px 3px 8px rgba(0,0,0,0.25));
        transition: transform 0.2s ease;
    }
    .pc-fixed-cta img:hover {
        transform: scale(1.05);
    }
}

.sp-br { display: none; }

/* ================================================
   SP共通レスポンシブ対応（767px以下）
================================================ */
@media (max-width: 767px) {
    html, body { overflow-x: hidden !important; }
    * { box-sizing: border-box !important; word-break: break-word !important; }
    [style*="white-space: nowrap"] { white-space: normal !important; }
    section { padding-top: 40px !important; padding-bottom: 40px !important; overflow-x: hidden !important; }
    .container { max-width: 100% !important; padding: 0 16px !important; overflow-x: hidden !important; }
    .section-title { font-size: 22px !important; }
    .section-title-en { font-size: 10px !important; letter-spacing: 0.05em !important; }

    /* STEPインジケーター非表示 */
    .sp-hide-step { display: none !important; }

    /* アイコン非表示 */
    .sp-hide-icon { display: none !important; }

    /* pricing：横並び→縦積み */
    .pricing-main-outer { flex-direction: column !important; }
    .pricing-cost-block { flex: none !important; width: 100% !important; min-width: 0 !important; }
    .pricing-cost-block > div { padding: 20px 16px !important; }
    .pricing-plus-block { flex: none !important; width: 100% !important; padding: 6px 0 !important; justify-content: center !important; flex-direction: row !important; }
    .pricing-usage-block { flex: none !important; width: 100% !important; }
    .pricing-ab-grid { grid-template-columns: 1fr !important; }
    .pricing-or-wrapper { position: static !important; transform: none !important; flex-direction: row !important; justify-content: center !important; padding: 12px 0 !important; gap: 8px !important; }
    .pricing-or-line { width: 40px !important; height: 1px !important; }

    /* カード内padding縮小 */
    .pricing-ab-grid > div { padding: 20px 16px !important; }

    /* 比較表：横スクロール */
    .pricing-compare-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    table { font-size: 12px !important; }
    table th, table td { padding: 10px 8px !important; font-size: 12px !important; }

    /* フロー */
    .pricing-flow-grid { grid-template-columns: 1fr !important; gap: 6px !important; }
    .pricing-flow-arrow { transform: rotate(90deg) !important; display: flex !important; justify-content: center !important; }
    .pricing-flow-choices { grid-template-columns: 1fr !important; }
    .pricing-flow-choices > div { border-right: none !important; border-bottom: 1px solid #f0ede8 !important; }

    /* 活用アイコン */
    .pricing-usage-icons { grid-template-columns: repeat(2, 1fr) !important; }

    /* オプション */
    .pricing-option-inner { flex-direction: column !important; text-align: center !important; padding: 24px 16px !important; gap: 16px !important; }

    /* sample：フォーム */
    #form-section form { padding: 20px 14px !important; border-radius: 12px !important; }
    .form-grid-2col { grid-template-columns: 1fr !important; }
    #form-section h3 { font-size: 16px !important; }
    #form-section input, #form-section textarea, #form-section select { font-size: 16px !important; }
    #btn-prev, #btn-next { padding: 12px 20px !important; font-size: 15px !important; }
    button[type="submit"] { width: 100% !important; font-size: 17px !important; padding: 16px !important; justify-content: center !important; }

    /* シナリオセクション */
    .scenario-layout-sp,
    .scenario-index-layout { grid-template-columns: 1fr !important; gap: 20px !important; }
    .scenario-index-layout > div:first-child { padding-right: 0 !important; }

    /* index：料金STEPカード */
    .pricing-steps-sp { flex-direction: column !important; width: 100% !important; gap: 6px !important; }
    .pricing-step-card-sp { width: 100% !important; padding: 14px 16px !important; }
    .pricing-step-card-sp p { white-space: normal !important; font-size: 16px !important; }

    /* 採用マンガの魅力 */
    .sp-reasons .reason-card { padding: 16px !important; }
    .sp-reasons .reason-card-title { font-size: 15px !important; }
    .sp-reasons .reason-card-desc { font-size: 13px !important; }

    /* STEPラベル・ライン非表示 */
    .sp-hide-step-label { display: none !important; }

    /* シナリオindex縦積み */
    .scenario-index-layout { grid-template-columns: 1fr !important; gap: 20px !important; }

    /* SP専用改行 */
    .sp-br { display: inline !important; }

    /* シナリオセクション：SP中央配置 */
    .scenario-index-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        text-align: center !important;
    }
    .scenario-index-layout > div:first-child {
        padding-right: 0 !important;
        justify-content: center !important;
        flex-direction: row !important;
    }
    .scenario-index-layout > div:first-child > div {
        max-width: 120px !important;
        transform: none !important;
    }
    .scenario-text-block {
        text-align: center !important;
    }

    /* 採用マンガ魅力見出し：SP 2px小さく */
    .manga-reasons-section .section-title {
        font-size: 20px !important;
    }

    /* シナリオ提案：SP傾き除去・中央配置 */
    .scenario-index-layout > div:first-child > div {
        transform: none !important;
        max-width: 130px !important;
    }
    .scenario-index-layout {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 16px !important;
    }
    .scenario-index-layout > div:first-child {
        padding-right: 0 !important;
        justify-content: center !important;
        align-items: flex-end !important;
    }
    .scenario-text-block {
        text-align: center !important;
    }
    .scenario-text-block a {
        max-width: 100% !important;
        width: 80% !important;
        margin: 0 auto !important;
    }

    /* pricing：説明文1行・行間詰め */
    .pricing-cost-block p,
    .pricing-ab-grid p {
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
        white-space: normal !important;
    }

    /* pricing：金額フォント縮小 */
    [style*="font-size: 56px"] { font-size: 36px !important; }
    [style*="font-size: 52px"] { font-size: 34px !important; }
    [style*="font-size: 40px"] { font-size: 26px !important; }

    /* pricing：OR位置（A列右端→中央に） */
    .pricing-or-wrapper {
        position: static !important;
        transform: none !important;
        flex-direction: row !important;
        justify-content: center !important;
        padding: 10px 0 !important;
        gap: 8px !important;
    }
    .pricing-or-line {
        width: 50px !important;
        height: 1px !important;
    }

    /* pricing：フローカード上下余白さらに詰める */
    [style*="border-radius: 10px"][style*="padding: 14px"] {
        padding: 10px 12px !important;
    }
    .pricing-flow-choices > div {
        padding: 8px 10px !important;
    }

    /* sample：フォーム項目間隔さらに詰める */
    #form-section .form-step > div {
        margin-bottom: 12px !important;
    }
    #form-section [style*="margin-bottom: 16px"] {
        margin-bottom: 10px !important;
    }
    #form-section [style*="margin-bottom: 20px"] {
        margin-bottom: 12px !important;
    }

    /* pricing：比較表 font縮小 */
    #pricing-compare-table { font-size: 11px !important; }
    #pricing-compare-table th,
    #pricing-compare-table td { padding: 8px 6px !important; font-size: 11px !important; }

    /* pricing：⑤3択縦 */
    .pricing-flow-choices > div { padding: 10px 12px !important; }

}

/* ========== sample.html ラジオ・チェックbox修正 ========== */
@media (max-width: 767px) {
    #sample-form label[style*="border: 1px solid"] {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 10px !important;
        padding: 10px 12px !important;
    }
    #sample-form label[style*="border: 1px solid"] input[type="radio"],
    #sample-form label[style*="border: 1px solid"] input[type="checkbox"] {
        flex-shrink: 0 !important;
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
        order: -1 !important;
    }
}
