/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 📱 aboutセクション見出し（philosophy-title）を2行に収める微調整 */
@media (max-width: 768px) {
  .about-section .philosophy-title {
    font-size: clamp(1.15rem, 5.2vw, 1.35rem) !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }
}
@media (max-width: 480px) {
  .about-section .philosophy-title {
    font-size: clamp(1.2rem, 5vw, 1.25rem) !important;
  }
}

/* 基本設定 */
:root {
    --primary-blue: #1e90ff;
    --light-blue: #87cefa;
    --accent-blue: #007bff;
    --accent-orange: #ff7f1e;
    --light-orange: #ffa366;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --text-gray: #666666;
    --shadow: 0 4px 20px rgba(30, 144, 255, 0.1);
    --shadow-hover: 0 8px 30px rgba(30, 144, 255, 0.2);
    --shadow-orange: 0 4px 20px rgba(255, 127, 30, 0.2);
    --shadow-orange-hover: 0 8px 30px rgba(255, 127, 30, 0.3);
    --gradient-primary: linear-gradient(135deg, #1e90ff, #87cefa);
    --gradient-orange: linear-gradient(135deg, #ff7f1e, #ffa366);
    --gradient-overlay: linear-gradient(
        45deg,
        rgba(30, 144, 255, 0.9),
        rgba(135, 206, 250, 0.8)
    );
    --navbar-height: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
    padding-top: var(--navbar-height); /* Add padding to account for fixed navbar */
}

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

/* ナビゲーション */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 9999 !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(30, 144, 255, 0.1);
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow) !important;
}

/* ヘッダーが消えないようにする */
.navbar.hidden {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 40px;
    width: auto;
}

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

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 0;
}

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

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

.nav-link:hover {
    color: var(--primary-blue);
}

/* アクティブ状態の強化 */
.nav-link.active {
    color: var(--primary-blue) !important;
    font-weight: 700;
    position: relative;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    margin: 3px 0;
    transition: transform 0.2s ease;
    transform-origin: center !important;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    color: white;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    display: block;
}

.title-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    white-space: nowrap;
}

.title-line.accent {
    color: var(--light-blue);
    text-shadow: 0 0 20px rgba(135, 206, 250, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
    min-height: 60px;
    line-height: 1.2;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.hero-image {
    position: relative;
}

.floating-image {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: white;
    position: relative;
}

.scroll-arrow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -5px;
    width: 12px;
    height: 12px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

/* 課題提起セクション */
.problems-section,
.problems-content,
.problems-text h2,
.problems-text h2 .accent,
.problems-list,
.problem-item,
.problem-icon,
.problem-item p,
.problems-images img {
    display: none;
}

/* 特徴セクション */
.features-section {
    padding: 8rem 0;
    position: relative;
    background: #f8f9fa;
}

.strength-background {
    display: block;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.05);
    font-weight: bold;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    white-space: nowrap;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.feature-card {
    background: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    transition: background 0.3s ease;
    z-index: 1;
}

.feature-card:hover::before {
    background: rgba(255, 255, 255, 0.75);
}

.feature-number {
    font-size: 3rem;
    font-weight: bold;
    color: rgba(30, 144, 255, 0.1);
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.feature-icon {
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10rem;
    color: var(--primary-blue);
    opacity: 0.15;
    z-index: 2;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-50%) scale(1.1);
    opacity: 0.2;
}

.feature-content {
    position: relative;
    z-index: 2;
    padding-left: 3rem;
    padding-right: 4rem;
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.feature-content p {
    color: var(--text-gray);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .strength-background {
        font-size: 3rem;
    }

    .feature-content {
        padding-left: 1rem;
    }

    .feature-icon {
        font-size: 8rem;
        right: -1rem;
    }
}

/* サービスセクション */
.services-section {
    padding: 6rem 0;
    overflow: hidden;
    padding-bottom: 5rem;
}

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

/* 新しいサービス縦並びレイアウト */
.services-list {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.service-image-section {
    flex: 1;
    max-width: 500px;
}

.service-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.service-row:hover .service-image {
    transform: scale(1.02);
}

.service-content-section {
    flex: 1;
    max-width: 600px;
}

.service-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* コンパクト行用（タイトル先頭に番号を配置し高さを抑える） */
.service-number.inline {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    margin: 0 0.6rem 0 0;
}

.service-row--compact .service-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.service-row--compact .service-description {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.service-row--compact .service-features {
    margin-bottom: 1rem;
}

.service-row--compact .service-features li {
    padding: 0.4rem 0;
    font-size: 0.98rem;
}

.service-row--compact .service-link {
    margin-top: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 1rem;
}

/* モバイル時に番号とタイトルを同一行・左揃えで維持 */
@media (max-width: 768px) {
    .service-row--compact .service-content-section {
        text-align: left !important;
    }
    .service-row--compact .service-title {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    .service-row--compact .service-number.inline {
        margin: 0 0.6rem 0 0 !important;
        display: inline-flex;
    }
}

.service-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.service-description {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.8rem 0;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.service-features i {
    color: var(--primary-blue);
    font-size: 1rem;
    width: 16px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    background: transparent;
}

.service-link:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateX(5px);
}

.service-link i {
    transition: transform 0.3s ease;
}

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

/* 左右配置の統一（HTMLの構造で制御） */
.service-row-left,
.service-row-right {
    flex-direction: row;
}

.service-content-section {
    text-align: left;
}

.service-features {
    text-align: left;
}

.service-features li {
    justify-content: flex-start;
    flex-direction: row;
}

.service-number {
    margin-left: 0;
    margin-right: 0;
}

/* サービスセクションのボタン中央揃え */
.services-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 4rem;
    padding: 2rem 0;
}

.services-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 300px;
    justify-content: center;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.services-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
}

.services-cta .btn-primary i {
    font-size: 1.2rem;
}

.section-background {
    font-size: 5rem;
    font-weight: 700;
    color: rgba(30, 144, 255, 0.1);
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    white-space: nowrap;
}

.service-item {
    position: relative;
    height: 45vh;
    min-height: 350px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

.service-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item:hover .service-bg-image {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 2rem;
}

/* 偶数番目（2番目、4番目...）は左下に配置 */
.service-item:nth-child(even) .service-overlay {
    justify-content: flex-start !important;
}

.service-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.service-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.service-content p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link-box-text {
    color: #ff6b35;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-link-box-text a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-link-box-text a:hover {
    color: #e55a2b;
    transform: translateX(2px);
}

.service-link-box-text i {
    transition: transform 0.3s ease;
}

.service-item:hover .service-link-box-text i {
    transform: translateX(5px);
}

.service-link-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    cursor: pointer;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .service-content {
        padding: 2rem;
        max-width: 350px;
    }
}

@media (max-width: 992px) {
    .service-overlay {
        justify-content: center !important;
        align-items: center;
        padding: 1.5rem;
    }
    
    .service-content {
        max-width: 500px;
        width: 100%;
    }
}

@media (max-width: 1200px) {
    .service-item {
        height: 50vh;
        min-height: 380px;
    }
}

@media (max-width: 992px) {
    .service-item {
        height: 45vh;
        min-height: 350px;
    }
    
    .service-overlay {
        align-items: flex-end;
        padding: 1.5rem;
    }
    
    /* タブレットでも右左交互を維持 */
    .service-item:nth-child(odd) .service-overlay {
        justify-content: flex-end !important;
    }
    
    .service-item:nth-child(even) .service-overlay {
        justify-content: flex-start !important;
    }
    
    .service-content {
        max-width: 400px;
        width: auto;
    }
}

@media (max-width: 768px) {
    .service-item {
        height: 40vh;
        min-height: 320px;
    }
    
    .service-overlay {
        padding: 1rem;
        align-items: flex-end;
    }
    
    /* モバイルでも右左交互を維持 */
    .service-item:nth-child(odd) .service-overlay {
        justify-content: flex-end !important;
    }
    
    .service-item:nth-child(even) .service-overlay {
        justify-content: flex-start !important;
    }
    
    .service-content {
        padding: 1.5rem;
        max-width: 80%;
        width: auto;
    }
    
    .service-content h3 {
        font-size: 1.5rem;
    }
    
    .service-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .service-item {
        height: 35vh;
        min-height: 280px;
    }
    
    .service-overlay {
        padding: 0.8rem;
        align-items: flex-end;
    }
    
    /* 小さい画面でも右左交互を維持 */
    .service-item:nth-child(odd) .service-overlay {
        justify-content: flex-end !important;
    }
    
    .service-item:nth-child(even) .service-overlay {
        justify-content: flex-start !important;
    }
    
    .service-content {
        padding: 1.2rem;
        max-width: 75%;
        width: auto;
    }
    
    .service-content h3 {
        font-size: 1.3rem;
    }
    
    .service-content p {
        font-size: 0.85rem;
    }

    /* 📱 極小画面フォーム最適化 */
    .contact-form {
        padding: 1.25rem !important;
    }
    .contact-form .form-row {
        gap: 0.875rem !important;
        margin-bottom: 1.25rem !important;
    }

    /* 📱 極小画面：ナビゲーション項目の余白をさらに縮小 */
    .nav-menu {
        width: 85% !important; /* 画面占有を少し減らす */
    }
    .nav-link {
        padding: 0.6rem 0.9rem !important;
        font-size: 0.9rem !important;
        min-height: 44px !important; /* タップ領域は維持 */
    }
}

/* 企業理念セクション */
.about-section {
    padding: 8rem 0;
    background: #000000 !important;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.philosophy-background {
    position: absolute;
    font-size: 5rem;
    font-weight: 700;
    opacity: 0.1;
    color: #ffffff;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    white-space: nowrap;
}

.about-section .section-title {
    color: #ffffff !important;
    margin-bottom: 4rem;
}

.about-section .accent {
    color: var(--light-blue) !important;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.vision-content,
.mission-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.section-label {
    font-size: 1.8rem;
    color: var(--light-blue) !important;
    font-weight: 500;
    margin-bottom: 2rem;
    font-family: "Times New Roman", serif;
}

.philosophy-title {
    font-size: 2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: #ffffff !important;
}

.philosophy-description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 2rem;
}

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

.mission-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8) !important;
}

.mission-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    background: var(--light-blue) !important;
    border-radius: 50%;
}

.mission-list li strong {
    display: block;
    color: #ffffff !important;
    margin-bottom: 0.5rem;
}

.mission-image {
    margin-top: auto;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mission-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.mission-image:hover img {
    transform: scale(1.05);
}

/* 不要なスタイルを非表示 */
.about-images,
.about-background,
.mission-card,
.values-grid,
.about-img-1,
.about-img-2,
.about-img-3 {
    display: none !important;
}

.strengths-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(30, 144, 255, 0.1);
}

.strengths-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

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

.strength-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.strength-item:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.strength-item h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.strength-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* 実績セクション */
.achievements-section {
    padding: 8rem 0;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.achievement-background {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(30, 144, 255, 0.1);
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    white-space: nowrap;
}

.works-slider {
    max-width: 1000px;
    margin: 4rem auto 0;
    position: relative;
    padding: 0 2rem;
}

.slider-container {
    overflow: hidden;
    position: relative;
    border-radius: 15px;
}

.slide {
    display: none;
    width: 100%;
    transition: all 0.3s ease;
}

.slide.active {
    display: block;
}

.achievement-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.achievement-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.grayscale-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.achievement-card:hover .grayscale-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.achievement-content {
    padding: 2rem;
}

.achievement-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--light-blue);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.achievement-content h3 {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.achievement-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.detail-item i {
    color: var(--primary-blue);
}

.achievement-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.achievement-points li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.achievement-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 2rem;
}

.prev-slide,
.next-slide {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prev-slide:hover,
.next-slide:hover {
    background: var(--accent-blue);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

.cta-buttons.center {
    text-align: center;
    margin: 3rem auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    padding: 0 20px;
}

.cta-buttons.center .btn {
    flex: 0 0 auto;
}

.btn-form-submit {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
    box-shadow: var(--shadow);
}

.btn-form-submit:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 768px) {
    .achievement-image {
        height: 450px;
    }

    .achievement-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .works-slider {
        padding: 0 1rem;
    }

    .achievement-background {
        font-size: 3rem;
    }
}

/* お問い合わせセクション */
#contact {
    padding: 6rem 0;
    background: var(--light-gray);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    text-align: center;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.1);
    outline: none;
}

.required {
    color: #ff4444;
    margin-left: 0.2rem;
}

.submit-button {
    background: var(--primary-blue);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-button:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem;
    }

    .contact-title {
        font-size: 2rem;
    }
}

/* フッター */
.footer {
    background: var(--dark-gray);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
    background: white;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-logo p {
    opacity: 0.9;
    line-height: 1.6;
    color: white;
    font-weight: 500;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--light-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--light-blue);
}

.social-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-radius: 25px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.social-links a:hover {
    background: linear-gradient(45deg, #bc1888 0%, #cc2366 25%, #dc2743 50%, #e6683c 75%, #f09433 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}

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

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes highlightText {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(30, 144, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(30, 144, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(30, 144, 255, 0.5);
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* 📱 スマホ版専用：右から左展開メニュー（768px以下） */
    .nav-menu {
        position: fixed !important;
        right: -100% !important; /* 右から展開 */
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 80% !important; /* 画面の80%幅 */
        max-width: 320px !important;
        text-align: center;
        transition: right 0.3s ease !important; /* 右から左へのアニメーション */
        box-shadow: none !important; /* シンプルに影削除 */
        padding: 1.5rem 0 !important; /* パディング調整 */
        border-left: 2px solid #f0f0f0 !important; /* 左ボーダー */
        z-index: 10000 !important;
    }

    .nav-menu.active {
        right: 0 !important; /* 右から展開完了 */
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .problems-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .service-cards-right {
        grid-template-rows: repeat(3, 200px);
    }

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

    .feature-card.offset {
        transform: none;
    }

    .works-stats {
        gap: 2rem;
    }

    .gallery-item.large {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }

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

    .testimonial-item {
        min-width: auto;
    }

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

    /* 📱 スマホ版フォーム修正：1カラム化と幅100% */
    .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.5rem !important;
        box-sizing: border-box !important;
        border-radius: 12px !important;
    }

    .contact-form .form-row {
        display: grid !important;
        grid-template-columns: 1fr !important; /* 1カラム */
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .contact-form .form-group {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }

    .contact-form .form-label {
        display: block !important;
        margin-bottom: 0.5rem !important;
        font-size: 1rem !important;
    }

    .contact-form .form-input,
    .contact-form .form-textarea,
    .contact-form select {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important; /* iOSズーム防止 */
    }

    .contact-form .form-textarea {
        min-height: 140px !important;
    }

    .contact-form .btn,
    .contact-form .btn-primary,
    .contact-form button[type="submit"] {
        width: 100% !important;
        min-height: 48px !important;
        font-size: 16px !important;
        padding: 1rem 1.25rem !important;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-card {
        height: 250px;
    }

    .service-card.main {
        height: 300px;
    }

    .hero-text {
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .title-line {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-content,
    .nav-container {
        padding: 0 1rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

/* パフォーマンス最適化 */
.hero-bg-image,
.feature-image img,
.service-image img,
.about-img-1,
.about-img-2,
.about-img-3,
.gallery-item img {
    will-change: transform;
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* アイコンスタイル - よりすっきりしたデザイン */
.icon-phone::before {
    content: "☎";
}
.icon-mail::before {
    content: "✉";
}
.icon-chat::before {
    content: "💬";
}
.icon-form::before {
    content: "📄";
}
.icon-handshake::before {
    content: "🤝";
}
.icon-speed::before {
    content: "⚡";
}
.icon-quality::before {
    content: "✓";
}
.icon-target::before {
    content: "●";
}
.icon-tools::before {
    content: "⚙";
}
.icon-worker::before {
    content: "👤";
}
.icon-design::before {
    content: "✏";
}
.icon-management::before {
    content: "📊";
}
.icon-eco::before {
    content: "♻";
}
.icon-community::before {
    content: "🏘";
}
.icon-education::before {
    content: "📚";
}
.icon-smile::before {
    content: "☺";
}
.icon-construction::before {
    content: "🏗";
}
.icon-star::before {
    content: "★";
}
.icon-globe::before {
    content: "🌐";
}
.icon-checklist::before {
    content: "☑";
}
.icon-camera::before {
    content: "📷";
}
.icon-alert::before {
    content: "⚠";
}

/* アイコン共通スタイル */
[class*="icon-"] {
    font-style: normal;
    font-size: inherit;
    display: inline-block;
}

/* 特定のアイコンサイズ調整 */
.feature-icon [class*="icon-"],
.value-icon [class*="icon-"],
.method-icon [class*="icon-"],
.stat-icon [class*="icon-"],
.card-icon [class*="icon-"],
.comparison-icon [class*="icon-"],
.strength-icon [class*="icon-"],
.contribution-icon [class*="icon-"],
.step-icon [class*="icon-"],
.emergency-icon [class*="icon-"] {
    font-size: 2rem;
}

.social-icon [class*="icon-"] {
    font-size: 1.2rem;
}

.phone-icon [class*="icon-"] {
    font-size: 1rem;
    margin-right: 0.5rem;
}

.section-background {
    display: block;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.05);
    font-weight: bold;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    white-space: nowrap;
    z-index: 0;
}

.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
    z-index: 1;
}

/* セクション固有の背景色 */
.services-section {
    background: #f8f9fa;
    padding: 8rem 0;
    position: relative;
}

.about-section {
    background: #ffffff;
    padding: 8rem 0;
    position: relative;
}

.works-section {
    background: #e0e0e0;
    padding: 8rem 0;
    position: relative;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .section-background {
        font-size: 3.5rem;
    }
    
    /* モバイル用ナビゲーションアクティブ状態 */
    .nav-link.active {
        font-size: 1.1rem;
    }
    
    /* モバイル用ボタンスタイル */
    .hero-buttons .btn {
        padding: 1.2rem 2.5rem;
        font-size: 1rem;
        min-height: 56px;
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn-contact {
        padding: 1.4rem 3rem;
        font-size: 1.1rem;
        min-height: 64px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    /* サービス縦並びレイアウトのモバイル対応 */
    .service-row {
        flex-direction: column !important;
        gap: 2rem;
        margin-bottom: 3rem;
        padding: 2rem 0;
        text-align: center;
    }
    
    .service-image-section {
        max-width: 100%;
        order: 1;
    }
    
    .service-content-section {
        max-width: 100%;
        order: 2;
        text-align: center !important;
    }
    
    .service-features {
        text-align: left !important;
    }
    
    .service-features li {
        justify-content: flex-start !important;
        flex-direction: row !important;
    }
    
    .service-number {
        margin: 0 auto 1rem !important;
    }
    
    .service-image {
        height: 250px;
    }
    
    .service-title {
        font-size: 1.5rem;
    }
    
    .service-description {
        font-size: 1rem;
        text-align: left;
    }
    
    .service-features {
        text-align: left;
        margin-bottom: 1.5rem;
    }
    
    .service-features li {
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }
    
    .service-link {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    
    /* サービスCTAボタンのモバイル対応 */
    .services-cta {
        margin-top: 3rem;
        padding: 1.5rem 0;
    }
    
    .services-cta .btn-primary {
        min-width: 280px;
        font-size: 1rem;
        padding: 1rem 2rem;
    }
    
    /* ナビゲーションのモバイル固定表示 */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 1024px) {
    .service-row {
        gap: 3rem;
        margin-bottom: 4rem;
        padding: 2.5rem 0;
    }
    
    .service-image {
        height: 300px;
    }
    
    .service-title {
        font-size: 1.8rem;
    }
    
    .service-description {
        font-size: 1.05rem;
    }
}

/* 小さい画面サイズ対応 */
@media (max-width: 480px) {
    .hero-buttons .btn {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        min-height: 52px;
    }
    
    .hero-buttons .btn-contact {
        padding: 1.2rem 2.5rem;
        font-size: 1rem;
        min-height: 60px;
    }
    
    /* サービス縦並びレイアウトの小画面対応 */
    .service-row {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
        padding: 1.5rem 0;
    }
    
    .service-image {
        height: 200px;
    }
    
    .service-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .service-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .service-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .service-features li {
        padding: 0.4rem 0;
        font-size: 0.9rem;
    }
    
    .service-link {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }
}

/* お問い合わせボタンスタイル */
.btn-contact {
    background: var(--gradient-orange);
    color: white;
    box-shadow: var(--shadow-orange);
    transform-origin: center;
    animation: pulse 2s infinite;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1.8rem 3.5rem;
    min-height: 70px;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange-hover);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ナビゲーション更新 */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.contact-btn {
    background: var(--primary-blue) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 4px !important;
    transition: all 0.3s ease;
    font-weight: 600 !important;
}

.contact-btn:hover {
    background: var(--accent-blue) !important;
    transform: translateY(-2px);
}

/* ナビゲーション内のcontact-btnの強化 */
.nav-menu .contact-btn {
    background: var(--primary-blue) !important;
    color: var(--white) !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

/* アクティブ状態のcontact-btnの強化 */
.nav-menu .contact-btn.active {
    background: var(--accent-blue) !important;
    color: var(--white) !important;
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* 企業向けヒーローセクション更新 */
.company-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    display: inline-block;
}

.stat-label {
    font-size: 1.5rem;
    color: var(--light-blue);
    margin-left: 0.25rem;
}

.stat-item p {
    font-size: 1rem;
    color: var(--white);
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .company-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .company-name {
        display: none;
    }
    
    /* フッターのモバイル対応 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-logo img {
        height: 35px;
        padding: 6px;
    }
    
    .social-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* 実績セクション */
.achievements-section {
    padding: 6rem 0;
    background: var(--light-gray);
}

.achievement-background {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(30, 144, 255, 0.1);
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    white-space: nowrap;
}

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

.achievement-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.achievement-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.achievement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-image img {
    transform: scale(1.05);
}

.achievement-content {
    padding: 2rem;
}

.achievement-content h3 {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.achievement-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.achievement-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.achievement-points li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.achievement-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.cta-button.center {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .achievement-background {
        font-size: 3rem;
        top: -1.5rem;
    }

    .achievement-image {
        height: 200px;
    }
}

/* 実績セクション更新 */
.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-description p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.achievement-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    padding: 2rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.1),
        inset 0 -2px 6px rgba(255, 255, 255, 0.7),
        inset 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 144, 255, 0.2),
        inset 0 -2px 6px rgba(255, 255, 255, 0.8),
        inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-plus,
.stat-percent {
    font-size: 1rem;
    line-height: 1;
}

.stat-box p {
    font-size: 0.8rem;
    margin: 0.25rem 0 0 0; /* 下側の余白をなくし、上だけ最小に */
    line-height: 1.3;
}

.achievement-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--light-blue);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.achievement-details {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.detail-item i {
    color: var(--primary-blue);
}

.achievements-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 強みカードのグリッド（PC→3列、SP→1列） */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }
}

/* 保証サービスの2カラム → SPで縦積み */
.warranty-columns {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

@media (max-width: 768px) {
    .warranty-columns {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    .warranty-columns > div {
        max-width: none !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .achievement-stats {
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        padding: 0 !important;
    }

    .stat-box {
        width: calc((100% - 1rem) / 3) !important;
        height: 120px !important;
        padding: 0.6rem !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .stat-number {
        font-size: 1.6rem !important;
        line-height: 1 !important;
    }

    .stat-plus,
    .stat-percent {
        font-size: 1rem !important;
        line-height: 1 !important;
    }

    .stat-box p {
        font-size: 0.8rem !important;
        margin-top: 0.4rem !important;
    }
}

/* 企業理念セクション レスポンシブ対応 */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 4rem !important;
        padding: 0 2rem;
    }

    .section-label {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .philosophy-title {
        font-size: 1.8rem !important;
        margin-bottom: 2rem !important;
    }

    .philosophy-description {
        font-size: 0.9rem !important;
    }

    .mission-list li {
        font-size: 0.9rem !important;
        margin-bottom: 1.2rem !important;
    }

    .mission-image {
        margin-top: 1.5rem;
    }
}

.company-exterior {
    margin-top: auto;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.company-exterior img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.company-exterior:hover img {
    transform: scale(1.05);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .company-exterior {
        margin-top: 2rem;
    }
}

/* QAセクション */
.qa-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0;
}

.qa-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.qa-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.qa-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.qa-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.qa-question:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.qa-question-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 1rem;
}

.qa-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196f3 0%, #e3f2fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-orange);
}

.qa-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.qa-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.qa-toggle i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.qa-item.active .qa-toggle {
    background: var(--accent-blue);
    transform: rotate(180deg);
}

.qa-item.active .qa-toggle i {
    transform: rotate(180deg);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-left: 4px solid var(--primary-blue);
}

.qa-item.active .qa-answer {
    max-height: 200px;
}

.qa-answer-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
}

.qa-answer-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    margin-top: 0.2rem;
}

.qa-answer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 500;
}

/* QAセクション レスポンシブ対応 */
@media (max-width: 768px) {
    .qa-section {
        padding: 4rem 0;
    }
    
    .qa-container {
        padding: 0 1rem;
    }
    
    .qa-question {
        padding: 1.5rem;
    }
    
    .qa-question-content {
        gap: 0.8rem;
    }
    
    .qa-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .qa-question h3 {
        font-size: 1.1rem;
    }
    
    .qa-answer-content {
        padding: 1.5rem;
        gap: 0.8rem;
    }
    
    .qa-answer-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .qa-answer p {
        font-size: 0.95rem;
    }
}

.service-link-box {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s, transform 0.3s;
    box-shadow: 0 2px 16px rgba(30,144,255,0.08);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.service-link-box:hover {
    box-shadow: 0 8px 32px rgba(30,144,255,0.18);
    transform: translateY(-4px) scale(1.02);
    background: #f0f8ff;
    cursor: pointer;
}

.service-link-box-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: color 0.3s;
}

.service-link-box:hover .service-link-box-text {
    color: var(--accent-orange);
}

.service-link-box-text i {
    font-size: 1rem;
    transition: transform 0.3s;
}

.service-link-box:hover .service-link-box-text i {
    transform: translateX(5px);
}

.main-service-card {
    scroll-margin-top: 160px;
}

.anchor-offset {
    scroll-margin-top: 160px;
    height: 0;
}

/* ヒーロースライダー */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s;
  z-index: 0;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}
@media (max-width: 768px) {
  .hero-slider, .hero-slide {
    height: 100%;
    min-height: 300px;
  }
}

/* オレンジボタン */
.btn-orange {
  background: linear-gradient(90deg, #ff9800 0%, #ffc107 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}
.btn-orange:hover {
  background: linear-gradient(90deg, #fb8c00 0%, #ffa000 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

/* 代表紹介セクションのスタイル */
.ceo-intro {
    position: relative;
    z-index: 1;
}

.ceo-name {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    color: transparent;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.background-story {
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.highlight-text {
    display: inline-block;
    position: relative;
    color: var(--accent-blue);
    font-weight: 700;
    padding: 0 5px;
    background: linear-gradient(120deg, transparent 0%, transparent 50%, rgba(30, 144, 255, 0.2) 50%, rgba(30, 144, 255, 0.2) 100%);
    background-size: 200% 100%;
    animation: highlightText 1s ease-out forwards;
}

.mission-statement {
    position: relative;
    overflow: hidden;
    animation: slideInLeft 1s ease-out 0.4s backwards;
}

.mission-statement::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulseGlow 3s infinite;
}

.key-point {
    display: inline-block;
    color: #ffeb3b;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.3);
    position: relative;
    padding: 0 5px;
}

.key-point::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffeb3b;
    transform: scaleX(0);
    transform-origin: left;
    animation: slideInLeft 0.5s ease-out 1s forwards;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .ceo-intro {
        font-size: 1rem;
    }
    
    .background-story {
        padding: 1.5rem;
    }
    
    .mission-statement {
        padding: 1.2rem;
    }
}

/* ===============================================
   📱 スマホ最適化専用CSS（768px以下のみ）
   パソコン版（769px以上）には一切影響なし
   ============================================== */

@media screen and (max-width: 768px) {
    /* 🔧 基本設定 */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    body {
        padding-top: 60px !important;
    }
    
    .container {
        padding: 0 1rem !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 📱 ハンバーガーメニュー */
    .navbar {
        height: 60px !important;
        padding: 0 !important;
    }
    
    .nav-container {
        padding: 1rem !important;
        height: 60px !important;
        align-items: center !important;
    }
    
    .logo {
        height: 35px !important;
    }
    
    .hamburger {
        display: flex !important;
        flex-direction: column !important;
        width: 30px !important;
        height: 30px !important;
        justify-content: space-around !important;
        cursor: pointer !important;
        z-index: 10001 !important;
    }
    
    .hamburger span {
        width: 30px !important;
        height: 3px !important;
        background: var(--dark-gray) !important;
        transition: all 0.3s ease !important;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px) !important;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px) !important;
    }
    
    /* 📱 スマホ版専用：シンプルな右から左展開メニュー */
    .nav-menu {
        position: fixed !important;
        top: 60px !important;
        right: -100% !important; /* 右から展開 */
        width: 80% !important; /* 画面の80%幅 */
        max-width: 320px !important; /* 最大幅制限 */
        height: calc(100vh - 60px) !important;
        background: #ffffff !important; /* シンプルな白背景 */
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important; /* 左揃え */
        padding: 0.5rem 0 !important; /* 余白を縮小 */
        transition: right 0.3s ease !important; /* 右から左へのアニメーション */
        z-index: 10000 !important;
        overflow-y: auto !important;
        border-left: 2px solid #f0f0f0 !important; /* シンプルな左ボーダー */
    }
    
    .nav-menu.active {
        right: 0 !important; /* 右から展開完了 */
    }
    
    /* 📱 シンプルなメニュー項目 */
    .nav-menu li {
        margin: 0 !important;
        width: 100% !important;
        border-bottom: 1px solid #f5f5f5 !important; /* 薄いボーダー */
    }
    
    .nav-menu li:last-child {
        border-bottom: none !important;
    }
    
    .nav-link {
        display: block !important;
        padding: 0.75rem 1rem !important; /* 余白を縮小（44px基準は維持） */
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        color: #333333 !important; /* シンプルな濃いグレー */
        text-decoration: none !important;
        transition: background-color 0.2s ease !important; /* シンプルなホバー */
        min-height: 44px !important; /* 十分なタップ領域 */
    }
    
    .nav-link:hover,
    .nav-link:focus {
        background: #f8f8f8 !important; /* 薄いグレー背景のみ */
        color: #1E90FF !important; /* アクセントカラー */
    }
    
    /* 📱 お問い合わせボタンもシンプルに */
    .contact-btn {
        background: #1E90FF !important; /* フラットなブルー */
        color: white !important;
        padding: 1rem 1.5rem !important;
        margin: 0.5rem 1.5rem !important; /* 左右にマージン */
        border-radius: 4px !important; /* 角丸控えめ */
        font-weight: 500 !important;
        text-align: center !important;
        transition: background-color 0.2s ease !important;
    }
    
    .contact-btn:hover,
    .contact-btn:focus {
        background: #0066CC !important; /* 少し濃いブルー */
        color: white !important;
    }
    
    /* 🎯 ヒーローセクション */
    .hero {
        min-height: 70vh !important;
        height: auto !important;
        padding: 2rem 0 !important;
    }
    
    /* 🚫 スマホ版でスクロール矢印を非表示 */
    .scroll-indicator {
        display: none !important;
    }
    
    /* 📱 改行制御用クラス */
    br.sp-only { display: inline !important; }
    @media (min-width: 769px) { br.sp-only { display: none !important; } }

    /* 📱 スマホ版専用：内装技術説明文（2行表示・文字小さめ） */
    .features-grid .feature-card:first-child .feature-content p {
        color: inherit !important;
        margin-bottom: 0.6rem !important;
        font-size: 0.85rem !important; /* さらに小さく（約3文字分の余裕） */
        line-height: 1.6 !important;
        word-break: keep-all !important;
    }
    .features-grid .feature-card:first-child .feature-content p::after { content: none !important; }

    /* 📱 スマホ版専用：ワンストップソリューションの文字サイズ/行間（順序変更に強い指定） */
    .features-grid .feature-card .feature-content h3.ws-title + p,
    .features-grid .feature-card .feature-content h3.ws-title ~ p {
        color: inherit !important;
        margin-bottom: 0.5rem !important; /* 他カードと同じ下余白に統一 */
        font-size: 0.85rem !important; /* さらに小さく（約3文字分の余裕） */
        line-height: 1.6 !important;
        word-break: keep-all !important;
    }
    .features-grid .feature-card .feature-content h3.ws-title + p::after { content: none !important; }
    
    /* 📸 スマホ版ヒーロー画像の表示改善 */
    .hero-slider {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 0 !important;
        overflow: hidden !important;
    }
    
    .hero-slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        opacity: 0 !important;
        transition: opacity 1s ease !important;
        z-index: 0 !important;
    }
    
    .hero-slide.active {
        opacity: 1 !important;
        z-index: 1 !important;
    }
    
    /* 📱 横長画像の完全表示保証 */
    .hero-background {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: -2 !important;
        overflow: hidden !important;
    }
    
    /* 🎨 オーバーレイの調整 */
    .hero-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%) !important;
        z-index: 2 !important;
        pointer-events: none !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
        padding: 0 1rem !important;
    }
    
    .hero-text {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important; /* より詰めた行間 */
        margin-bottom: 1.2rem !important;
    }
    
    .title-line {
        white-space: normal !important;
        display: block !important;
        margin-bottom: 0 !important; /* 行間の余白を削除 */
        line-height: 1.2 !important; /* 各行の行間も調整 */
    }
    
    /* 📱 スマホ版専用：<br>タグを非表示にして余白を完全削除 */
    .hero-title br {
        display: none !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.5 !important;
    }
    
    /* 📱 スマホ版専用：サブタイトルの改行調整 */
    .hero-subtitle {
        position: relative !important;
        color: transparent !important; /* 元テキストを透明に */
    }
    
    .hero-subtitle::after {
        content: "小規模から大規模まで、\A スピード・品質・対応力を備えた\A 安心のパートナー。" !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        white-space: pre-line !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
        align-items: center !important;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        max-width: 320px !important;
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .btn-contact {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        min-height: 60px !important;
        padding: 1.5rem 2rem !important;
    }
    
    /* 📋 セクション全般 */
    .section-title {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 2rem !important;
        text-align: center !important;
    }
    
    .section-title .accent {
        display: block !important;
        margin-top: 0.5rem !important;
    }

    /* 📱 スマホ版：サービス見出しを一行に固定 */
    .section-title {
        white-space: nowrap !important;
    }
    .section-title .accent {
        display: inline !important;
        margin-top: 0 !important;
        margin-left: 0.25rem !important;
    }
    
    /* 📱 セクションサブタイトル：一行表示＆少し縮小 */
    .section-subtitle {
        white-space: nowrap !important;
        font-size: 0.95rem !important; /* 少しだけ小さく */
        line-height: 1.35 !important;
    }

    /* 📱 品質説明テキストを左揃えに */
    .quality-description {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 📱 サービス紹介のリッチテキスト最適化 */
    .content-wrapper {
        padding: 1rem !important;
        text-align: left !important;
    }
    .highlight-text {
        font-size: clamp(0.95rem, 3.2vw, 1.15rem) !important; /* さらに控えめに */
        line-height: 1.35 !important;
        margin-bottom: 0.6rem !important;
        letter-spacing: 0.01em !important;
        word-break: keep-all !important;
        white-space: nowrap !important; /* 一行固定 */
        overflow: hidden !important;     /* はみ出し防止 */
        text-overflow: clip !important;  /* 省略せず端でカット */
        width: 100% !important;
    }
    .highlight-text span { display: inline !important; }
    
    .service-description {
        font-size: clamp(0.9rem, 3.4vw, 1rem) !important;
        line-height: 1.6 !important;
        margin: 0.6rem 0 !important;
        display: block !important;
        white-space: nowrap !important;  /* 一行固定 */
        word-break: keep-all !important;
        overflow: hidden !important;
    }
    .service-description span { margin: 0 0.2rem !important; display: inline !important; }
    
    .mission-statement {
        font-size: clamp(1rem, 3.6vw, 1.15rem) !important;
        line-height: 1.6 !important;
        margin-top: 1rem !important;
        text-align: left !important;
        white-space: normal !important; /* 改行を許可 */
    }

    /* 📱 ミッション文を2行に分割（安定した中央揃え） */
    .mission-statement {
        display: block !important; /* ブロック化して幅100%で中央揃え */
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .mission-statement br.mobile-break { display: inline !important; }

    /* 📱 デザイン装飾はスマホで非表示 */
    .design-elements {
        display: none !important;
    }

    /* 📱 ミッション装飾の疑似要素を無効化 */
    .mission-statement::before,
    .mission-statement::after {
        content: none !important;
        display: none !important;
        animation: none !important;
        background: none !important;
    }

    /* 📱 このブロックを中央揃えに */
    .content-wrapper,
    .highlight-text,
    .service-description,
    .mission-statement {
        text-align: center !important;
    }
    /* 語句の並びを中央寄せに */
    .service-description {
        display: inline-block !important;
    }
    
    .section-background {
        font-size: 3rem !important;
        opacity: 0.03 !important;
    }
    
    section {
        padding: 4rem 0 !important;
    }
    
    /* ✨ 特徴セクション */
    .features-section {
        padding: 4rem 0 !important;
    }
    
    /* 📱 特徴カード（services features）スマホ最適化 */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .features-grid .feature-card {
        display: flex !important;
        flex-direction: column !important; /* 縦並びで重なり回避 */
        align-items: stretch !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
        border: 1px solid #eeeeee !important; /* 影禁止のため枠線で区切り */
        border-radius: 8px !important;
        background: #ffffff !important;
    }
    .features-grid .feature-content {
        width: 100% !important;
    }
    
    .features-grid .feature-number {
        font-size: 1.25rem !important;
        line-height: 1 !important;
        min-width: 2.5rem !important;
        text-align: center !important;
        margin-right: 0.25rem !important;
    }
    
    .features-grid .feature-content h3 {
        font-size: 1.1rem !important;
        margin: 0 0 0.25rem 0 !important;
    }
    
    .features-grid .feature-content p {
        font-size: 0.95rem !important;
        margin: 0 0 0.5rem 0 !important;
        color: #555555 !important;
    }
    
    .features-grid .service-list {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* 2列で省スペース化 */
        gap: 0.5rem 0.75rem !important;
        padding-left: 1rem !important; /* 箇条書きのインデント */
        margin: 0 !important;
        list-style: disc !important;
        list-style-position: outside !important;
    }
    
    .features-grid .service-list li {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .features-grid .feature-icon {
        align-self: flex-end !important;
        font-size: 1.25rem !important; /* アイコン小さめに */
        color: var(--primary-blue) !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-top: 2rem !important;
    }
    
    .feature-card {
        padding: 2rem 1.5rem !important;
        margin: 0 !important;
        text-align: left !important;
    }
    
    .feature-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .feature-content h3 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .feature-content p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .feature-number {
        font-size: 2rem !important;
        top: 1rem !important;
        left: 1rem !important;
    }
    
    .feature-icon {
        font-size: 6rem !important;
        right: -1rem !important;
        opacity: 0.1 !important;
    }
    
    /* 🔧 サービスセクション */
    .services-section {
        padding: 4rem 0 !important;
    }
    
    .service-row {
        flex-direction: column !important;
        gap: 2rem !important;
        margin-bottom: 3rem !important;
        padding: 2rem 0 !important;
        text-align: center !important;
    }
    
    .service-image-section {
        order: 1 !important;
        max-width: 100% !important;
    }
    
    .service-content-section {
        order: 2 !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    
    .service-image {
        height: 200px !important;
        border-radius: 8px !important;
        width: 100% !important;
    }
    
    .service-title {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    
    .service-number.inline {
        margin: 0 0.5rem 0 0 !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9rem !important;
    }
    
    .service-description {
        font-size: 1rem !important;
        text-align: left !important;
        margin-bottom: 1.5rem !important;
    }
    
    .service-features {
        text-align: left !important;
        margin-bottom: 1.5rem !important;
    }
    
    .service-features li {
        font-size: 0.95rem !important;
        padding: 0.5rem 0 !important;
    }
    
    .service-link {
        font-size: 1rem !important;
        padding: 0.8rem 1.5rem !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .services-cta {
        margin-top: 3rem !important;
        padding: 2rem 0 !important;
    }
    
    .services-cta .btn-primary {
        width: 100% !important;
        max-width: 300px !important;
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 50px !important;
    }
    
    /* 🖼️ ギャラリーセクション */
    .latest-works-gallery {
        padding: 4rem 0 !important;
    }
    
    .gallery-main {
        margin: 2rem 0 1rem !important;
    }
    
    .gallery-slides {
        height: 300px !important;
        border-radius: 8px !important;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
        margin: 1rem 0 !important;
    }
    
    .gallery-thumbs .thumb {
        height: 60px !important;
        border-radius: 4px !important;
    }
    
    /* 🏢 企業理念セクション */
    .about-section {
        padding: 4rem 0 !important;
    }
    
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: left !important;
    }
    
    .philosophy-title {
        font-size: 1.6rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .section-label {
        font-size: 1.4rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .philosophy-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .mission-list li {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.2rem !important;
        padding-left: 1.5rem !important;
    }
    
    /* 📊 実績セクション */
    .achievements-section {
        padding: 4rem 0 !important;
    }
    
    .achievement-stats {
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        padding: 0 !important;
    }
    
    .stat-box {
        width: calc((100% - 1rem) / 3) !important;
        height: 120px !important;
        padding: 0.6rem !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .stat-number {
        font-size: 1.6rem !important;
        line-height: 1 !important;
    }
    
    .stat-plus,
    .stat-percent {
        font-size: 1rem !important;
        line-height: 1 !important;
    }
    
    .stat-box p {
        font-size: 0.8rem !important;
        margin-top: 0.4rem !important;
    }
    
    .works-slider {
        padding: 0 1rem !important;
        margin-top: 2rem !important;
    }
    
    .achievement-image {
        height: 250px !important;
    }
    
    .achievement-content {
        padding: 1.5rem !important;
    }
    
    .achievement-content h3 {
        font-size: 1.3rem !important;
    }
    
    .achievement-details {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: flex-start !important;
    }
    
    /* ❓ Q&Aセクション */
    .qa-section {
        padding: 4rem 0 !important;
    }
    
    .qa-container {
        padding: 0 1rem !important;
    }
    
    .qa-question {
        padding: 1.5rem !important;
        min-height: 44px !important;
    }
    
    .qa-question h3 {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }
    
    .qa-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }
    
    .qa-toggle {
        width: 25px !important;
        height: 25px !important;
        min-width: 25px !important;
    }
    
    .qa-answer-content {
        padding: 1.5rem !important;
    }
    
    .qa-answer p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    .qa-item.active .qa-answer {
        max-height: 300px !important;
    }
    
    /* 🦶 フッター */
    .footer {
        padding: 3rem 0 2rem !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .footer-links {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .footer-section h4 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .footer-logo img {
        height: 30px !important;
        padding: 6px !important;
    }
    
    .social-links a {
        padding: 0.6rem 1.2rem !important;
        font-size: 1rem !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* 🎨 タイポグラフィ */
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.6rem !important; }
    h3 { font-size: 1.3rem !important; }
    h4 { font-size: 1.1rem !important; }
    
    /* 📝 フォームとボタン */
    .btn, button, a[role="button"] {
        min-height: 44px !important;
        min-width: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    input, textarea, select {
        min-height: 44px !important;
        padding: 0.8rem !important;
        font-size: 16px !important; /* iOS zoom防止 */
    }
    
    /* 🖼️ 画像の調整 */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ===============================================
   📱 小画面対応（480px以下）
   ============================================== */

@media screen and (max-width: 480px) {
    .container {
        padding: 0 0.8rem !important;
    }
    
    .nav-container {
        padding: 0.8rem !important;
    }
    
    /* ヒーローセクション */
    .hero {
        min-height: 60vh !important;
        padding: 1.5rem 0 !important;
    }
    
    /* 📸 極小画面での画像表示強化 */
    .hero-slider {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 0 !important;
        overflow: hidden !important;
    }
    
    .hero-slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        opacity: 0 !important;
        transition: opacity 1s ease !important;
        z-index: 0 !important;
        /* 📱 横長画像の完全カバレッジ保証 */
        min-width: 100% !important;
        min-height: 100% !important;
    }
    
    .hero-slide.active {
        opacity: 1 !important;
        z-index: 1 !important;
    }
    
    /* 📱 背景とオーバーレイの最適化 */
    .hero-background {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: -2 !important;
        overflow: hidden !important;
    }
    
    .hero-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%) !important;
        z-index: 2 !important;
        pointer-events: none !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .title-line {
        margin-bottom: 0 !important; /* 極小画面でも行間の余白を削除 */
        line-height: 1.2 !important;
    }
    
    /* 📱 極小画面でも<br>タグを非表示 */
    .hero-title br {
        display: none !important;
    }
    
    /* 📱 極小画面専用：内装技術説明文の改行調整（3行化） */
    .features-grid .feature-card:first-child .feature-content p::after {
        font-size: 0.9rem !important; /* 極小画面用のフォントサイズ */
        line-height: 1.5 !important;
    }

    /* 📱 極小画面専用：ワンストップソリューション説明文の改行調整（3行化） */
    .features-grid .feature-card:nth-child(2) .feature-content p::after {
        font-size: 0.9rem !important; /* 極小画面用のフォントサイズ */
        line-height: 1.5 !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    /* 📱 極小画面専用：サブタイトルの改行調整 */
    .hero-subtitle::after {
        font-size: 1rem !important; /* 極小画面用のフォントサイズ */
    }
    
    .hero-buttons .btn {
        max-width: 280px !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        min-height: 48px !important;
    }
    
    .btn-contact {
        font-size: 1.1rem !important;
        padding: 1.3rem 1.8rem !important;
        min-height: 56px !important;
    }
    
    /* セクションタイトル */
    .section-title {
        font-size: 1.6rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .section-background {
        font-size: 2.5rem !important;
    }
    
    /* セクション余白調整 */
    section {
        padding: 2.5rem 0 !important;
    }
    
    /* 特徴セクション */
    .feature-card {
        padding: 1.5rem 1rem !important;
    }
    
    .feature-content h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .feature-content p {
        font-size: 0.95rem !important;
    }
    
    /* サービスセクション */
    .service-row {
        gap: 1.5rem !important;
        margin-bottom: 2.5rem !important;
        padding: 1.5rem 0 !important;
    }
    
    .service-image {
        height: 180px !important;
    }
    
    .service-title {
        font-size: 1.3rem !important;
    }
    
    .service-description {
        font-size: 0.95rem !important;
    }
    
    .service-features li {
        font-size: 0.9rem !important;
    }
    
    .service-link {
        font-size: 0.95rem !important;
        padding: 0.7rem 1.3rem !important;
    }
    
    /* ギャラリー */
    .gallery-slides {
        height: 250px !important;
    }
    
    .gallery-thumbs {
        gap: 0.3rem !important;
    }
    
    .gallery-thumbs .thumb {
        height: 50px !important;
    }
    
    /* 実績セクション */
    .stat-box {
        width: 140px !important;
        height: 140px !important;
        padding: 1.2rem !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    /* Q&A */
    .qa-question {
        padding: 1.2rem !important;
    }
    
    .qa-question h3 {
        font-size: 1rem !important;
    }
    
    .qa-answer-content {
        padding: 1.2rem !important;
    }
    
    .qa-answer p {
        font-size: 0.95rem !important;
    }
    
    /* フッター */
    .footer {
        padding: 2.5rem 0 1.5rem !important;
    }
    
    .footer-logo img {
        height: 25px !important;
    }
    
    .social-links a {
        padding: 0.5rem 1rem !important;
        font-size: 0.95rem !important;
    }
    
    /* ナビゲーション（余白圧縮版） */
    .nav-menu {
        padding: 0.25rem 0 !important; /* 全体の内側余白を最小化 */
    }
    
    .nav-menu li {
        margin: 0 !important; /* 項目間マージン無し */
    }
    
    .nav-link {
        padding: 0.6rem 0.9rem !important; /* 44pxのタップ領域を維持しつつ圧縮 */
        font-size: 0.95rem !important;
        min-height: 44px !important;
    }
    
    /* メニュー内のお問い合わせボタンも圧縮 */
    .nav-menu .contact-btn {
        padding: 0.8rem 1rem !important;
        margin: 0.5rem 1rem !important;
        font-size: 0.95rem !important;
        width: calc(100% - 2rem) !important; /* 画面内に収める */
        box-sizing: border-box !important;
    }
    
    /* タイポグラフィ */
    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.4rem !important; }
    h3 { font-size: 1.2rem !important; }
    h4 { font-size: 1rem !important; }
}

@media (max-width: 768px) {
    /* 📱 フッタークイックナビ（ハンバーガーメニューと同項目） */
    .footer-quick-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    .footer-quick-nav a {
        display: block;
        padding: 0.8rem 0.6rem;
        text-align: center;
        text-decoration: none;
        color: #fff;
        background: #1E90FF;
        border-radius: 6px;
        font-size: 0.95rem;
        min-height: 44px;
    }
    .footer-quick-nav a:active { opacity: 0.9; }
}

/* スマホ版：ワンストップソリューション（全ページのタイトル共通）を一行に収める */
@media (max-width: 768px) {
    .ws-title {
        white-space: nowrap !important; /* 1行固定 */
        font-size: clamp(0.9rem, 4.2vw, 1.0rem) !important; /* モバイルで収まるサイズに調整 */
        line-height: 1.2 !important;
        letter-spacing: 0.01em !important;
    }
}

/* 極小端末向けにさらに微調整 */
@media (max-width: 480px) {
    .ws-title {
        font-size: clamp(0.85rem, 4vw, 0.95rem) !important;
    }
}

@media (min-width: 769px) {
    .footer-quick-nav { display: none; }
}

@media (max-width: 768px) {
    /* 📱 フッター モバイル用リンク（縦並び・見出し風） */
    .footer-mobile-links { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 0.75rem; }
    .footer-mobile-links ul { list-style: none; padding: 0; margin: 0; }
    .footer-mobile-links li { margin: 0.75rem 0; }
    .footer-mobile-links a {
        display: block;
        color: rgba(255,255,255,0.9);
        text-decoration: none;
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    /* Instagram アイコン（モバイル） */
    .footer-mobile-links .social-links { margin-top: 0; text-align: right; justify-self: end; }
    .footer-mobile-links .social-links a { display: inline-flex; width: auto; max-width: none; padding: 0; }
    .footer-mobile-links .ig-icon { width: 32px; height: 32px; font-size: 16px; }
}
@media (min-width: 769px) {
    .footer-mobile-links { display: none; }
}

@media (max-width: 768px) {
    /* モバイルでは従来のフッターリンク群を非表示にし、モバイル用リンクのみ表示 */
    .footer-links { display: none !important; }
    /* works.html型（footer-section直下構造）を隠す */
    .footer-content > .footer-section { display: none !important; }
}
@media (min-width: 769px) {
    /* デスクトップではモバイル用リンクを非表示（既存定義の補強） */
    .footer-mobile-links { display: none !important; }
}

@media (min-width: 769px) {
    .footer-links { display: block !important; }
}

@media (max-width: 768px) {
    .footer-links { display: none !important; }
}

@media (min-width: 769px) {
    /* デスクトップ用のフッターを元のレイアウトに復元 */
    .footer-content { display: grid !important; grid-template-columns: 1fr 2fr !important; gap: 3rem !important; text-align: left !important; }
    .footer-links { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 2rem !important; text-align: left !important; }
    .footer-mobile-links { display: none !important; }
}

@media (max-width: 768px) {
    /* モバイルでは従来フッターリンクを非表示 */
    .footer-links { display: none !important; }
}

@media (max-width: 768px) {
    /* Instagram アイコン（モバイル） */
    .footer-mobile-links .ig-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        color: #fff;
        font-size: 22px;
        text-decoration: none;
    }
}

@media (max-width: 768px) {
    /* 📱 シンプル版ハンバーガーメニュー（全画面オーバーレイ｜右から展開） */
    .nav-menu {
        position: fixed !important;
        inset: 0 !important; /* top/right/bottom/left:0 */
        width: 100% !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.92) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.6rem !important;
        transform: translateX(100%) !important; /* 右からスライドイン */
        transition: transform 0.3s ease !important;
        padding: 0 1.5rem !important;
        z-index: 10000 !important;
    }
    .nav-menu.active { transform: translateX(0) !important; }

    .nav-menu li { width: 100% !important; margin: 0 !important; border: none !important; }

    /* すべて同一スタイル（リンク/ボタン） */
    .nav-link,
    .contact-btn {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        color: #ffffff !important;
        font-size: 1.4rem !important;
        font-weight: 600 !important;
        padding: 0.9rem 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        text-decoration: none !important;
    }
    .nav-link:hover,
    .nav-link:focus,
    .contact-btn:hover { color: #ffffff !important; background: transparent !important; }

    /* ハンバーガーは最前面に */
    .hamburger { z-index: 10001 !important; }
}

@media (max-width: 768px) {
    /* 📱 シンプル版ハンバーガー（右側ドロワー：50%幅） */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 50% !important;      /* 右半分 */
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.92) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.6rem !important;
        transform: translateX(105%) !important; /* 完全に隠す */
        transition: transform 0.3s ease !important;
        padding: 0 1rem !important;
        z-index: 10000 !important;
        overflow-y: auto !important;
    }
    .nav-menu.active { transform: translateX(0) !important; }

    .nav-menu li { width: 100% !important; margin: 0 !important; border: none !important; }

    /* すべて同一スタイル */
    .nav-link,
    .contact-btn {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        color: #ffffff !important;
        font-size: 1.4rem !important;
        font-weight: 600 !important;
        padding: 0.9rem 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        text-decoration: none !important;
    }
    .nav-link:hover,
    .nav-link:focus,
    .contact-btn:hover { color: #ffffff !important; background: transparent !important; }

    .hamburger { z-index: 10001 !important; }
}

@media (max-width: 768px) {
    /* 右側ドロワー: 装飾・フォーカス枠を無効化 */
    .nav-menu .nav-link,
    .nav-menu .contact-btn { outline: none !important; border: none !important; box-shadow: none !important; }
    .nav-menu .nav-link:focus,
    .nav-menu .nav-link:active,
    .nav-menu .nav-link:focus-visible { outline: none !important; box-shadow: none !important; }
    .nav-menu .nav-link::after { content: none !important; display: none !important; }
    .nav-menu .nav-link.active { background: transparent !important; border: none !important; }
}

@media (max-width: 768px) {
    /* ハンバーガー（閉じるX）が切れないよう固定配置＆余白付与 */
    .navbar { overflow: visible !important; }
    .hamburger {
        position: fixed !important;
        top: 12px !important;
        right: 12px !important;
        width: 44px !important;
        height: 44px !important;
        padding: 6px !important;
        background: transparent !important;
        z-index: 10001 !important;
        display: flex !important;              /* ← 明示的に表示 */
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        cursor: pointer !important;
    }
    .hamburger span {
        width: 28px !important;
        height: 2.5px !important;
        background: #ffffff !important;
    }
}

@media (max-width: 768px) {
    /* 位置を安全域込みで右上に固定 */
    .hamburger {
        right: calc(env(safe-area-inset-right, 0px) + 12px) !important;
        top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
    }
    /* 閉じている時は濃色、開いている時は白でコントラスト確保 */
    .hamburger:not(.active) span { background: #1a1a1a !important; }
    .hamburger.active span { background: #ffffff !important; }
}

@media (max-width: 768px) {
    /* ハンバーガー位置（安全域考慮） */
    .hamburger {
        right: calc(env(safe-area-inset-right, 0px) + 16px) !important;
        top: calc(env(safe-area-inset-top, 0px) + 16px) !important;
        width: 48px !important;
        height: 48px !important;
    }
    /* バーを中央に重ねて制御（インラインtransformを上書き） */
    .hamburger span {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        width: 24px !important;          /* 少し短くしてはみ出し防止 */
        height: 2.5px !important;
        transform-origin: center !important;
        transform: translate(-50%, -50%) rotate(0deg) !important;
        background: #ffffff !important;
    }
    /* 閉じている時（3本ライン） */
    .hamburger:not(.active) span:nth-child(1) { top: calc(50% - 8px) !important; }
    .hamburger:not(.active) span:nth-child(2) { top: 50% !important; }
    .hamburger:not(.active) span:nth-child(3) { top: calc(50% + 8px) !important; }

    /* 開いている時（X） */
    .hamburger.active span:nth-child(1) {
        top: 50% !important;
        transform: translate(-50%, -50%) rotate(45deg) !important;
    }
    .hamburger.active span:nth-child(2) { opacity: 0 !important; }
    .hamburger.active span:nth-child(3) {
        top: 50% !important;
        transform: translate(-50%, -50%) rotate(-45deg) !important;
    }
}

@media (max-width: 768px) {
    /* ナビ高(60px)にアイコンを垂直センター合わせ */
    .hamburger {
        top: 0 !important;                       /* ナビの先頭に揃える */
        height: 60px !important;                 /* .nav-container と同じ高さ */
        right: calc(env(safe-area-inset-right, 0px) + 12px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    /* about: メイン画像グリッドを縦積み */
    .about-hero-grid { display: block !important; }
    .about-hero-main { height: 260px !important; }
    .about-hero-side { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 2px !important; }
    .about-hero-side > div { height: 140px !important; }

    /* 代表メッセージ: 1カラム化 */
    .message-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .ceo-image, .ceo-message { order: unset !important; }

    /* 企業概要テーブル: 行をスタック */
    .company-table > div { grid-template-columns: 1fr !important; }
    .company-table > div > div:first-child { width: 100% !important; }
}

@media (max-width: 768px) {
    /* about: メッセージセクションの右はみ出し防止 */
    .message-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; padding: 0 1rem !important; }
    .message-grid p, .message-grid span { white-space: normal !important; overflow-wrap: break-word !important; word-break: break-word !important; }
    .message-grid .ceo-message p { padding-left: 1rem !important; font-size: 1.05rem !important; }
    .message-grid .ceo-message { overflow: hidden !important; }
}

@media (max-width: 768px) {
    /* about: 企業理念カードの外側余白を削除 */
    .philosophy-grid { gap: 0 !important; justify-content: stretch !important; }
    .philosophy-card { flex: 1 1 100% !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; }
}

/* 会社概要テーブル（デスクトップ：シンプル版） */
.company-table { background: transparent !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; }
.company-row { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid #e6eef8; }
.company-row:first-child { border-top: 1px solid #e6eef8; }
.company-label { padding: 1.25rem 1.5rem; font-weight: 700; color: #1e3a8a; background: transparent !important; }
.company-value { padding: 1.25rem 1.5rem; color: #374151; }
.company-value a { color: #1E90FF; text-decoration: none; }

@media (max-width: 768px) {
    /* 会社概要テーブル（スマホ） */
    .company-table { border-radius: 0 !important; }
    .company-row { grid-template-columns: 1fr !important; }
    .company-label { border-bottom: 1px solid #e6eef8; }
    .company-label, .company-value { padding: 1rem 1rem; }
}

/* 会社概要テーブルの中央寄せと左右均等余白 */
.company-table { width: min(900px, calc(100% - 2rem)) !important; margin: 4rem auto 0 !important; }

@media (max-width: 480px) {
    .company-table { width: calc(100% - 1.5rem) !important; margin-left: auto !important; margin-right: auto !important; }
}

/* 会社概要テーブルの中央寄せ（強制） */
.container .company-table { max-width: 900px !important; width: min(900px, calc(100% - 4rem)) !important; display: block !important; margin-inline: auto !important; }

@media (max-width: 768px) {
    /* about: ヒーロータイトル（スマホは一行に収める） */
    .about-hero-title { line-height: 1.25 !important; }
    .about-hero-title-main { font-size: clamp(1rem, 5vw, 1.2rem) !important; white-space: nowrap !important; }
    .about-hero-title-sub { font-size: clamp(0.9rem, 4.2vw, 1rem) !important; white-space: nowrap !important; }
}

/* スマホ時の内装工事ヒーロー画像の下余白解消 */
@media (max-width: 768px) {
    .about-hero-main {
        overflow: hidden !important;
        line-height: 0 !important; /* imgのベースライン余白を無効化 */
    }
    .about-hero-main img {
        display: block !important;  /* インライン由来の下余白を解消 */
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* スマホ版：代表メッセージの不自然な改行を抑制 */
@media (max-width: 768px) {
    .ceo-message br { display: none !important; }
    .ceo-message p { white-space: normal !important; line-height: 1.8 !important; }
}

/* スマホ版：aboutヒーローのテキストオーバーレイを上揃えに */
@media (max-width: 768px) {
    .about-hero-main > div {
        top: 0 !important;
        bottom: auto !important;
        background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent) !important;
        padding: 1.25rem !important;
    }
}

/* スマホ版：特徴見出しの個別縮小指定を撤廃（順序変更に強い） */
/* 以前のnth-child(3)の縮小指定は削除し、全カード共通サイズに委譲 */

/* スマホ版：QAセクションCTAボタンの中央寄せ・幅調整 */
@media (max-width: 768px) {
    .qa-section .btn.btn-orange {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        max-width: 340px !important;
    }
}

/* スマホ版：フッターをシンプルな2行レイアウトに（上：リンク一覧／下：連絡先＋SNS右寄せ） */
@media (max-width: 768px) {
    .footer-mobile-links {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas: "links links" "contact sns" !important;
        align-items: center !important;
        row-gap: 0.75rem !important;
        margin-top: 1.25rem !important;
    }
    .footer-mobile-links ul { grid-area: links !important; list-style: none !important; padding: 0 !important; margin: 0 !important; }
    .footer-mobile-links li { margin: 0.75rem 0 !important; }
    .footer-mobile-links a { display: block !important; color: rgba(255,255,255,0.9) !important; text-decoration: none !important; font-size: 1rem !important; padding: 0.5rem 0 !important; }
    .footer-mobile-contact { grid-area: contact !important; margin: 0 !important; color: rgba(255,255,255,0.92) !important; font-size: 0.95rem !important; line-height: 1.6 !important; }
    .footer-mobile-contact i { margin-right: 0.4rem !important; }
    .footer-mobile-links .social-links { grid-area: sns !important; justify-self: end !important; align-self: center !important; margin: 0 !important; }
    .footer-mobile-links .ig-icon { width: 26px !important; height: 26px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; vertical-align: middle !important; }
}

/* 📱 QAセクション：CTAボタンを質問カードに合わせて右寄せ（追加） */
@media (max-width: 768px) {
  .qa-section .text-center { display: flex !important; justify-content: center !important; padding-right: 0 !important; }
  .qa-section .btn.btn-orange { width: auto !important; margin: 0 auto !important; }
}

/* 📱 提供サービス説明文：スマホでは折返しを許可してはみ出し防止（幅縛りは削除） */
@media (max-width: 768px) {
  .services-section .service-description,
  .service-description {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: initial !important;
    word-break: normal !important;      /* 日本語の通常改行 */
    overflow-wrap: normal !important;   /* 行頭に句読点が来ないよう通常処理 */
    line-break: strict !important;      /* 禁則処理を強める */
    -webkit-line-break: strict !important;
    display: block !important;          /* inline-blockの影響を打ち消す */
    text-align: left !important;        /* 左揃えで安定 */
  }
  /* サービス説明内の手動改行を強制適用 */
  .services-section .service-description br.sp-only,
  .service-description br.sp-only {
    display: block !important;
  }
}

