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

html, body {
    height: 100%;
}

/* 基本設定 */
:root {
    --primary-color: #0066CC;
    --primary-light: #4A90E2;
    --primary-dark: #004499;
    --secondary-color: #FF6B35;
    --accent-color: #FF8C42;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --font-body: 'Noto Sans JP', sans-serif;
    --font-heading: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background: url('../img/background.jpeg') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    font-size: 16px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* メディア要素は親幅にフィット */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* スマホ版のみ表示する改行（PC版では非表示） */
br.sp-br {
    display: none;
}

/* 見出し・ロゴ用フォント */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

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

/* ヘッダー */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 8vh;
    min-height: 80px;
}

.header-logo h1 {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 700;
    white-space: nowrap;
}

.header-logo h1 a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-logo h1 a:hover {
    color: var(--accent-color);
}

.header-logo .license-number {
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
    margin-top: 0px;
    opacity: 0.9;
    white-space: nowrap;
}

.header-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.header-nav .nav-list a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

.header-contact .contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.header-contact .contact-phone:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* モバイルナビはデフォルトで非表示 */
.mobile-nav {
    display: none;
}

    .hamburger-menu span {
    width: 22px;
    height: 2.5px;
    background: var(--white);
    margin: 3.5px 0;
    transition: 0.3s;
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center;
}

/* デフォルト（3本線）の配置を中央基準でずらす */
.hamburger-menu span:nth-child(1) { transform: translate(-50%, calc(-50% - 7px)); }
.hamburger-menu span:nth-child(2) { transform: translate(-50%, -50%); }
.hamburger-menu span:nth-child(3) { transform: translate(-50%, calc(-50% + 7px)); }

.hamburger-menu.active span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ページタイトル */
.page-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 110px 0 30px;
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title .container {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-title p {
    font-size: 1rem;
    opacity: 0.9;
}

/* メインビジュアル */
.hero {
    position: relative;
    overflow: hidden;
    height: 80vh;
    margin-top: 4vh;
    display: flex;
    align-items: center;
    color: #1a365d;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 1200px;
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.hero-title .title-line {
    display: block;
    margin-bottom: 8px;
}

/* デスクトップ版では改行しない */
.mobile-break {
    display: none;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 36px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-line {
    background: #06C755;
    color: var(--white);
    border: 2px solid #06C755;
}

.btn-line:hover {
    background: #05A847;
    color: var(--white);
    border-color: #05A847;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.3);
}

.hero-image {
    text-align: center;
    animation: slideInRight 1s ease-out 0.3s both;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ヒーローコントロール */
.hero-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.hero-prev,
.hero-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-dot.active {
    background: var(--white);
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* アニメーション */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* セクション共通 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* 導入ポイント */
.intro-points {
    padding: 80px 0;
    background: var(--light-gray);
    position: relative;
    z-index: 1;
}

.intro-points .container {
    background: transparent;
    padding: 40px;
}

.points-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.point-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.point-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
}

.point-image {
    width: 200px;
    height: 200px;
    margin: 20px auto 20px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.point-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.point-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.point-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
    text-align: left;
}

/* お悩みセクション */
.trouble-section {
    padding: 80px 0;
    background: #E8E8E8;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.trouble-section .section-title {
    color: var(--text-dark);
}

.trouble-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.trouble-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.trouble-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.trouble-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 8px;
}

.trouble-card p {
    line-height: 1.6;
    color: var(--text-light);
    text-align: left;
    font-size: 16px;
}

/* 解決セクション */
.solution-section {
    padding: 80px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.solution-section .container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.solution-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.solution-text p {
    font-size: 17px;
    margin-bottom: 30px;
    color: var(--text-light);
}

.solution-list {
    list-style: none;
}

.solution-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-dark);
    font-size: 16px;
}

.solution-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.solution-image {
    display: flex;
    align-items: stretch;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* 施工事例 */
.featured-cases {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
    position: relative;
    z-index: 1;
}

.featured-cases .section-title {
    color: var(--white);
}

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


/* 小さめの横長カードレイアウト */
.case-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease;
}

.case-card:hover {
    transform: translateY(-3px);
}

.case-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 0;
}

.case-images {
    width: 100%;
    height: 200px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.case-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content {
    padding: 20px;
    text-align: left;
}

.case-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 右端の丸い矢印は縦型レイアウトでは不要 */
.case-go {
    display: none;
}

.case-content p {
    line-height: 1.6;
    color: var(--text-light);
    margin: 8px 0;
    font-size: 16px;
}

.case-content .case-detail {
    margin-bottom: 8px;
}

.case-content .case-detail strong {
    color: var(--primary-color);
    font-weight: 600;
}

.cases-cta {
    text-align: center;
}

/* サービス（施工事例と同レイアウトの小型カード） */
.featured-services {
    padding: 80px 0;
    background: var(--white);
}

.featured-services .section-title {
    color: var(--primary-color);
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
}

.service-card a {
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 4px;
    padding: 12px 12px;
}

.service-images {
    width: 140px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
}

.service-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    text-align: left;
    min-width: 0;
}

.service-content h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    width: 100%;
    white-space: nowrap;
}

.service-go {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.service-go svg {
    width: 40px;
    height: 40px;
    display: block;
}

/* 料金プラン */
.pricing-section {
    padding: 80px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.pricing-section .container {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 3px solid var(--secondary-color);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    white-space: nowrap;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* お客様の声 */
.customer-voice {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.voice-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.voice-card::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 40px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--white);
    z-index: 2;
}

.voice-card::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 40px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--border-color);
    z-index: 1;
}

.voice-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-dark);
    position: relative;
    padding-left: 20px;
}

.voice-content p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2rem;
    color: var(--primary-color);
    font-family: serif;
}

.voice-author {
    color: var(--primary-color);
    font-weight: 700;
    text-align: right;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* お問い合わせセクション */
.contact-section {
    padding: 80px 0;
    background: url('../img/contact_section_background.jpeg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.contact-section .container {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-left {
    margin-left: 0px;
    margin-right: 0px;
    padding-right: 50px;
}

.contact-left h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-left p {
    font-size: 17px;
    margin-bottom: 30px;
    color: var(--text-light);
    text-align: left;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info {
    text-align: center;
    margin-left: 0px;
    transform: none;
    margin-top: 77px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    margin-top: 0;
}

.phone-number {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.8rem;
    background: var(--secondary-color);
    padding: 16px 32px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
    min-width: 280px;
    text-align: center;
}

.phone-number:hover {
    background: #E55A2B;
}

.hours {
    color: var(--text-light);
}

/* フッター */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0 25px;
    position: relative;
    z-index: 1;
    min-height: 80px;
}

.footer-content {
    text-align: center;
    margin-bottom: 25px;
}

.footer-region {
    color: var(--white);
    font-size: 0.8rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-company {
    margin: 15px 0 0 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-company a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-company a:hover {
    color: var(--accent-color);
}

.footer-license {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 2px;
    opacity: 0.8;
    text-align: center;
}

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

.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-nav ul li a:hover {
    color: var(--accent-color);
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.8rem;
}

/* 施工事例ページ */
.filter-section {
    padding: 40px 0;
    background: url('../img/service_works_background.jpeg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.filter-section .container {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

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

.filter-button {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
}

.filter-button.active,
.filter-button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.works-section {
    padding: 0 0 80px 0;
    background: url('../img/service_works_background.jpeg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.works-section .container {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* 施工事例ページのカード見出しの可読性向上 */
.works-section .case-content h3 {
    color: var(--primary-color);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

/* 施工事例ページのカード画像を大きく */
.works-section .case-images {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.works-section .case-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 2枚目と3枚目の画像を上側に表示 */
.works-section .works-grid .case-item:nth-child(2) .case-images img,
.works-section .works-grid .case-item:nth-child(3) .case-images img {
    object-position: top;
}

.case-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
}

.before-after-slider {
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 300px;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-image {
    clip-path: inset(0 50% 0 0);
}

.after-image {
    clip-path: inset(0 0 0 50%);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 100%;
    background: transparent;
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
}

.slider-handle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--white);
    transform: translateX(-50%);
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
}

.detail-item {
    margin-bottom: 15px;
}

.detail-item .label {
    font-weight: 700;
    color: var(--primary-color);
}

/* サービスページ */
.services-section {
    padding: 0 0 80px 0;
    background: url('../img/service_works_background.jpeg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.services-section .container {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.service-item {
    margin-bottom: 80px;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-grid-wrapper.reverse {
    direction: rtl;
}

.service-grid-wrapper.reverse > * {
    direction: ltr;
}

.service-description {
    font-size: 17px;
    margin-bottom: 30px;
    color: var(--text-light);
    width: 100%;
}

.service-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.service-features h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-dark);
    font-size: 16px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.service-price h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.service-image {
    height: 100%;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.set-plan-section {
    padding: 80px 0;
    background: var(--light-gray);
    position: relative;
    z-index: 1;
}

.set-plan-section .container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.set-plan-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-shadow: none;
}

.set-plan-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.set-plan-description {
    font-size: 17px;
    margin-bottom: 30px;
    color: var(--text-light);
    width: 100%;
}

.set-plan-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.set-plan-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.set-plan-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-dark);
    font-size: 16px;
}

.set-plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.set-plan-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.set-plan-image {
    height: 100%;
}

.set-plan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.recommendation-section {
    padding: 80px 0;
    background: url('../img/service_works_background.jpeg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.recommendation-section .container {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.recommendation-card {
    background: var(--light-gray);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-5px);
}

.recommendation-icon {
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommendation-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.recommendation-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.recommendation-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
    text-align: left;
}

.materials-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.material-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.material-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.material-card ul {
    list-style: none;
}

.material-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.material-card li:last-child {
    border-bottom: none;
}

/* 会社概要ページ */
.company-info-section {
    padding: 80px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.company-info-section .container {
    background: rgba(255, 255, 255, 0.8);
    padding: 80px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

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

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

.company-info-table th,
.company-info-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.company-info-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    width: 30%;
}

.company-info-table td {
    background: var(--white);
}

.message-section {
    padding: 80px 0;
    background: var(--white);
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.message-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.message-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.message-text p {
    font-size: 17px;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.message-signature {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-color);
}

.message-signature p {
    font-weight: 700;
    color: var(--primary-color);
}

.message-image {
    max-width: 300px;
    margin: 0 auto;
}

.message-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.service-area-section {
    padding: 80px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.service-area-section .container {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.service-area-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-area-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-area-description {
    font-size: 17px;
    margin-bottom: 30px;
    color: var(--text-light);
    width: 100%;
}

.service-area-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.area-list h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.area-list ul {
    list-style: none;
    margin-bottom: 20px;
}

.area-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-dark);
    font-size: 16px;
}

.area-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.area-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.service-area-image {
    height: 100%;
}

.service-area-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.strengths-section {
    padding: 80px 0;
    background: var(--white);
}

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

.strength-card {
    background: var(--light-gray);
    padding: 0;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.strength-card:hover {
    transform: translateY(-5px);
}

.strength-icon {
    width: 100%;
    height: 200px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strength-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.strength-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 30px;
    padding: 0 30px;
    color: var(--primary-color);
}

.strength-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
    padding: 0 30px 40px;
}

.recruitment-section {
    padding: 80px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.recruitment-section .container {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.recruitment-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.recruitment-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.recruitment-description {
    font-size: 17px;
    margin-bottom: 30px;
    color: var(--text-light);
    width: 100%;
}

.recruitment-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.recruitment-text p {
    font-size: 17px;
    margin-bottom: 30px;
    color: var(--text-light);
}

.recruitment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.recruitment-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.recruitment-item ul {
    list-style: none;
}

.recruitment-item li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-dark);
    font-size: 16px;
}

.recruitment-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.recruitment-cta {
    margin-top: 30px;
}

.recruitment-image {
    max-width: 300px;
    margin: 0 auto;
}

.recruitment-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* FAQページ */
.faq-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.open .faq-answer {
    padding: 20px 30px 30px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
}

/* お問い合わせページ */
.contact-methods-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-method-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.contact-method-card .btn {
    margin-top: auto;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.contact-method-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-method-card .phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.contact-method-card .hours {
    color: var(--text-light);
    margin-bottom: 15px;
}

.contact-method-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.contact-form-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-notice {
    text-align: center;
    background: var(--accent-color);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-gray);
    padding: 40px;
    border-radius: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-dark);
}

.required {
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
    opacity: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

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

.checkbox-label a:hover {
    text-decoration: underline;
}

.checkmark {
    display: none;
}

.checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.form-submit {
    text-align: center;
}

.form-submit .btn {
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
}

.location-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.location-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
}

.company-info-section .location-map {
    margin-top: 40px;
}

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

/* =========================
   レスポンシブデザイン
   ========================= */

/* タブレット・スマートフォン（768px以下） */
@media (max-width: 768px) {
    /* スマホ版で改行を表示 */
    br.sp-br {
        display: inline;
    }

    /* ヒーローのモバイル改行 */
    .mobile-break {
        display: block;
    }

    /* 可変フォントサイズの基本設定 */
    html {
        font-size: clamp(14px, 2vw, 16px);
    }

    /* 本文フォントサイズ（スマホ版） */
    body {
        font-size: clamp(15px, 3vw, 16px);
    }

    p, li {
        font-size: clamp(1rem, 2.8vw, 1.15rem) !important;
    }

    /* 全セクションの上下間隔を統一 */
    .intro-points,
    .trouble-section,
    .solution-section,
    .featured-cases,
    .featured-services,
    .pricing-section,
    .customer-voice,
    .contact-section,
    .filter-section,
    .works-section,
    .services-section,
    .set-plan-section,
    .recommendation-section,
    .materials-section,
    .company-info-section,
    .message-section,
    .service-area-section,
    .strengths-section,
    .recruitment-section,
    .faq-section,
    .contact-methods-section,
    .contact-form-section,
    .location-section {
        padding: 60px 0;
    }

    /* フィルターセクションは少し狭く */
    .filter-section {
        padding: 30px 0;
    }

    /* 角丸背景のcontainerに左右マージンを追加 */
    .page-title .container,
    .intro-points .container,
    .solution-section .container,
    .pricing-section .container,
    .contact-section .container,
    .filter-section .container,
    .works-section .container,
    .services-section .container,
    .recommendation-section .container,
    .set-plan-section .container,
    .company-info-section .container,
    .service-area-section .container,
    .recruitment-section .container {
        margin-left: 15px;
        margin-right: 15px;
    }

    .header-container {
        height: 8vh;
        min-height: 70px;
        padding: 0 10px;
    }

    .header-logo h1 {
        font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    }

    .header-logo .license-number {
        font-size: 12px;
        margin-top: 0px;
    }

    .header-nav {
        display: none;
    }

    .header-contact {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        padding: 12px;
        min-width: 50px;
        min-height: 50px;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    /* モバイルナビゲーション */
    .mobile-nav {
        display: flex;
        position: fixed;
        top: 8vh;
        left: 0;
        width: 100%;
        height: calc(100vh - 8vh);
        background: var(--primary-color);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        flex-direction: column;
        padding: 20px 0;
    }

    .mobile-nav.active {
        transform: translateX(0);
    }

    .mobile-nav .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

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

    .mobile-nav .nav-list a {
        display: block;
        padding: 22px 20px;
        width: 100%;
        text-align: center;
        font-size: 1.2rem;
        color: var(--white);
        text-decoration: none;
        transition: background-color 0.3s ease;
        min-height: 44px;
        line-height: 1.2;
    }

    .mobile-nav .nav-list a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-nav .contact-phone {
        display: block;
        margin: 20px;
        padding: 18px 24px;
        text-align: center;
        background: var(--secondary-color);
        color: var(--white);
        text-decoration: none;
        border-radius: 30px;
        font-weight: 700;
        font-size: 1.2rem;
        min-height: 56px;
        line-height: 1.2;
    }

    .page-title {
        padding: 80px 0 20px;
    }

    .page-title .container {
        padding: 20px;
        border-radius: 12px;
    }

    .page-title h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .page-title p {
        font-size: 0.9rem;
    }

    .hero {
        height: 80vh;
        margin-top: 4vh;
    }

    .hero-slider {
        height: 80vh;
    }

    .hero-container {
        padding: 0 20px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.3rem);
        line-height: 1.4;
    }

    .hero-buttons {
        justify-content: center !important;
        flex-direction: column;
        align-items: center !important;
        gap: 15px;
        text-align: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        padding: 18px 36px;
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        min-height: 56px;
        line-height: 1.2;
    }

    .hero-controls {
        bottom: 15px;
        gap: 15px;
    }

    .hero-prev,
    .hero-next {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

    /* セクションタイトル（大見出し）統一 */
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
        line-height: 1.3;
        margin-bottom: 40px;
        white-space: nowrap !important;
    }

    /* 解決セクションの見出しも統一 */
    .solution-section .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
        white-space: nowrap !important;
        overflow: visible;
    }

    /* セットプランの見出しも統一 */
    .set-plan-section .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
        white-space: nowrap !important;
        overflow: visible;
    }

    /* h2見出し（サービス詳細など）統一 */
    .service-content h2,
    .set-plan-card h3,
    .message-content h3,
    .service-area-content h3,
    .recruitment-content h3 {
        font-size: clamp(1.8rem, 5vw, 2.4rem) !important;
    }

    /* h3見出し（カード見出しなど）統一 */
    .trouble-card h3,
    .case-content h3,
    .pricing-card h3,
    .recommendation-card h3,
    .material-card h3,
    .strength-card h3,
    .contact-method-card h3,
    .faq-question h3 {
        font-size: clamp(1.3rem, 3.5vw, 1.6rem) !important;
    }

    /* 料金表示を見出しと同じサイズに統一 */
    .price,
    .service-price .price,
    .set-plan-price .price {
        font-size: clamp(1.8rem, 5vw, 2.4rem) !important;
    }

    /* 本文テキスト統一 */
    p, li {
        font-size: clamp(1rem, 2.5vw, 1.1rem) !important;
    }

    .points-flow {
        flex-direction: column;
        gap: 60px;
        align-items: center;
    }

    .point-image {
        width: 150px;
        height: 150px;
    }

    .point-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

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

    .solution-section .container {
        background: transparent;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .solution-content {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 20px;
        backdrop-filter: blur(10px);
        margin-left: 15px;
        margin-right: 15px;
    }

    .solution-text h3,
    .solution-text p,
    .solution-list li {
        width: 100%;
        max-width: 100%;
    }

    .trouble-card p {
        font-size: 17px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .case-card a {
        display: block;
        padding: 0;
    }
    .service-card a { grid-template-columns: 120px 1fr 44px; gap: 2px; padding: 10px 12px; }
    .service-images { width: 120px; height: 80px; }
    .service-content h3 { font-size: clamp(1.3rem, 3.5vw, 1.6rem) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .case-images { 
        width: 100%; 
        height: 180px; 
        border-radius: 12px 12px 0 0;
    }
    
    /* 施工事例ページのカード画像を大きく（モバイル） */
    .works-section .case-images {
        height: 225px;
    }
    .case-content { 
        padding: 15px; 
    }
    .case-content h3 { 
        font-size: clamp(1.3rem, 3.5vw, 1.6rem) !important; 
        margin-bottom: 10px;
    }

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

    .pricing-card.featured {
        transform: none;
    }

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

    .contact-content {
        display: block;
        text-align: center !important;
    }

    .contact-left {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        text-align: center !important;
    }

    /* FAQページのお問い合わせテキストのbr非表示 */
    .contact-left p br {
        display: none;
    }

    .contact-buttons {
        display: block;
        text-align: center;
    }

    .contact-buttons .btn {
        display: block;
        margin: 30px auto;
    }

    .footer-nav ul {
        gap: 20px;
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .footer-nav ul li {
        margin-bottom: 5px;
    }

    .footer-license {
        font-size: 0.7rem;
        margin-top: 1px;
    }

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

    /* サービスアイテムの余白調整 */
    .service-item {
        margin-bottom: 50px !important;
    }

    /* サービスコンテンツの順序変更 */
    .service-content {
        display: flex;
        flex-direction: column;
        gap: 12px !important;
    }

    .service-content h2 {
        order: 1;
        margin-bottom: 8px !important;
    }

    .service-content .service-description {
        order: 2;
        margin-bottom: 12px !important;
    }

    .service-content .service-grid-wrapper {
        order: 3;
    }

    .service-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 20px !important;
    }

    /* 画像を先に表示、テキストを後に */
    .service-image {
        order: 1;
    }

    .service-text {
        order: 2;
    }

    .service-grid-wrapper.reverse {
        direction: ltr;
    }

    .service-grid-wrapper.reverse .service-image {
        order: 1;
    }

    .service-grid-wrapper.reverse .service-text {
        order: 2;
    }

    /* セットプランカードの順序変更 */
    .set-plan-card {
        display: flex;
        flex-direction: column;
        gap: 12px !important;
    }

    .set-plan-card h3 {
        order: 1;
        margin-bottom: 8px !important;
    }

    .set-plan-card .set-plan-description {
        order: 2;
        margin-bottom: 12px !important;
    }

    .set-plan-card .set-plan-grid-wrapper {
        order: 3;
    }

    .set-plan-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 20px !important;
    }

    /* 画像を先に表示、コンテンツを後に */
    .set-plan-image {
        order: 1;
    }

    .set-plan-content {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .set-plan-features ul {
        margin-bottom: 15px !important;
    }

    .set-plan-price {
        margin-bottom: 10px;
    }

    .recommendation-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .recommendation-card {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .recommendation-icon {
        width: 100%;
        height: 180px;
        max-width: 300px;
    }

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

    .message-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* サービスエリアの順序変更 */
    .service-area-content {
        display: flex;
        flex-direction: column;
    }

    .service-area-content h3 {
        order: 1;
    }

    .service-area-content .service-area-description {
        order: 3;
    }

    .service-area-content .service-area-grid-wrapper {
        order: 2;
    }

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

    /* 画像を先に表示、テキストを後に */
    .service-area-image {
        order: 1;
    }

    .service-area-text {
        order: 2;
    }

    /* エリアリストを2列に */
    .area-list ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 15px;
    }

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

    /* 会社の強みの改行を削除 */
    .strength-card p br {
        display: none;
    }

    .recruitment-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* 採用情報の画像を非表示 */
    .recruitment-image {
        display: none;
    }

    /* 代表メッセージの画像を小さく */
    .message-image {
        max-width: 180px;
    }

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

    .location-content {
        grid-template-columns: 1fr;
        gap: 40px;
        align-items: stretch;
    }

    .location-map iframe {
        min-height: 300px;
    }

    /* 会社情報テーブルの横幅拡大 */
    .company-info-section .container {
        margin-left: 10px;
        margin-right: 10px;
        padding: 40px 15px;
    }

    .company-info-table {
        width: 100%;
    }

    .company-info-table th,
    .company-info-table td {
        padding: 15px 10px;
        font-size: clamp(0.85rem, 2.5vw, 1rem);
    }

    .company-info-table th {
        width: 35%;
    }

    /* ビューポート幅へ強制フィット */
    html, body {
        overflow-x: hidden;
    }

    /* 長文リンク・リストの折り返し許可 */
    .pricing-features li,
    .footer-nav ul li a {
        white-space: normal;
        word-break: break-word;
    }

    /* 大きめボタンのはみ出し防止 */
    .phone-number {
        width: 100%;
        max-width: 360px;
        min-width: 0;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
    /* 小画面での可変フォントサイズ */
    html {
        font-size: clamp(14px, 2.8vw, 16px);
    }

    /* 本文フォントサイズ（小型スマホ版）統一 */
    body {
        font-size: clamp(14px, 3vw, 16px);
    }

    p, li {
        font-size: clamp(1rem, 2.8vw, 1.1rem) !important;
    }

    /* 全セクションの上下間隔を統一（小型スマホ用） */
    .intro-points,
    .trouble-section,
    .solution-section,
    .featured-cases,
    .featured-services,
    .pricing-section,
    .customer-voice,
    .contact-section,
    .filter-section,
    .works-section,
    .services-section,
    .set-plan-section,
    .recommendation-section,
    .materials-section,
    .company-info-section,
    .message-section,
    .service-area-section,
    .strengths-section,
    .recruitment-section,
    .faq-section,
    .contact-methods-section,
    .contact-form-section,
    .location-section {
        padding: 50px 0;
    }

    /* フィルターセクションは少し狭く */
    .filter-section {
        padding: 25px 0;
    }

    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.3;
        text-align: center;
        /* 折り返しにして画面幅に収める */
        white-space: normal;
    }

    .hero {
        height: 80vh;
        margin-top: 4vh;
    }

    .hero-slider {
        height: 80vh;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 3.5vw, 1.2rem);
        line-height: 1.4;
        text-align: center;
    }

    .btn {
        padding: 16px 32px;
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        min-height: 48px;
        line-height: 1.2;
    }

    /* セクションタイトル（大見出し）統一 */
    .section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
        line-height: 1.3;
        margin-bottom: 30px;
        text-align: center;
        white-space: nowrap !important;
    }

    /* 解決セクションの見出しも統一 */
    .solution-section .section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
        white-space: nowrap !important;
        overflow: visible;
    }

    /* セットプランの見出しも統一 */
    .set-plan-section .section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
        white-space: nowrap !important;
        overflow: visible;
    }

    /* 解決セクションのh3も統一 */
    .solution-text h3 {
        font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
    }

    /* h2見出し（サービス詳細など）統一 */
    .service-content h2,
    .set-plan-card h3,
    .message-content h3,
    .service-area-content h3,
    .recruitment-content h3 {
        font-size: clamp(1.7rem, 5vw, 2.2rem) !important;
    }

    /* h3見出し（カード見出しなど）統一 */
    .trouble-card h3,
    .case-content h3,
    .pricing-card h3,
    .recommendation-card h3,
    .material-card h3,
    .strength-card h3,
    .contact-method-card h3 {
        font-size: clamp(1.2rem, 3.5vw, 1.5rem) !important;
    }

    /* 料金表示を見出しと同じサイズに統一 */
    .price,
    .service-price .price,
    .set-plan-price .price {
        font-size: clamp(1.7rem, 5vw, 2.2rem) !important;
    }

    /* フィルターボタンを二行に配置 */
    .filter-buttons {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        padding: 0 10px;
    }

    .filter-button {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 10px 16px;
    }

    .trouble-card,
    .pricing-card {
        padding: 30px 20px;
    }

    .contact-left h2 {
        font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .phone-number {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
        padding: 18px 36px;
        width: 100%;
        max-width: 320px;
        min-width: 0;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: clamp(1.2rem, 3.5vw, 1.5rem) !important;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
    }

    .hero-controls {
        bottom: 10px;
        gap: 12px;
    }

    .hero-prev,
    .hero-next {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .hero-dot {
        width: 6px;
        height: 6px;
    }

    .header-logo .license-number {
        font-size: 10px;
    }

    .footer-license {
        font-size: 0.6rem;
        margin-top: 0px;
    }

    .location-license {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    /* 採用情報の画像を非表示 */
    .recruitment-image {
        display: none;
    }

    /* 代表メッセージの画像をさらに小さく */
    .message-image {
        max-width: 150px;
    }
}
