/* ========================================
   リセット & 基本設定
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========================================
   共通クラス
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* ロゴ */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: #2c3e50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.25rem;
    border-radius: 50%;
    border: 3px solid #333;
}

/* ロゴ画像 */
.logo-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 50%;
}

.footer-logo-image {
    width: 50px;
    height: 50px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-company {
    font-size: 0.75rem;
    color: #666;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: #2c3e50;
}

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

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #2c3e50;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* ナビゲーション（モバイル） */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding-top: 80px;
    z-index: 999;
}

.nav.active {
    right: 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
}

.nav-link {
    display: block;
    padding: 1.2rem 2rem;
    color: #2c3e50;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #f1f8f4;
    color: #4caf50;
}

.nav-link-contact {
    background-color: #4caf50;
    color: #fff;
    margin: 1rem;
    border-radius: 8px;
    text-align: center;
    border: none;
}

.nav-link-contact:hover {
    background-color: #43a047;
}

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

/* 背景のズームイン効果 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg-sp.jpg');
    background-size: cover;
    background-position: center;
    animation: heroZoomIn 1.5s ease-out forwards;
    z-index: 0;
}

@keyframes heroZoomIn {
    from {
        transform: scale(1.1);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* タブレット以上：PC用横長背景 */
@media screen and (min-width: 768px) {
    .hero::before {
        background-image: url('../images/hero-bg.jpg');
        background-attachment: fixed;
    }

    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 20px;
    }

    .hero-message {
        position: static;
        transform: none;
        width: 100%;
        max-width: 1000px;
    }
}

/* 仮の背景グラデーション（画像がない場合） */
/* 画像が配置されたので不要 - コメントアウト */
/*
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: 0;
}
*/

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(76, 175, 80, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
}

/* ヒーロータイトル */
.hero-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(76, 175, 80, 0.3);
    line-height: 1.6;
}

.hero-title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    transition: all 0.3s ease;
    cursor: default;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.hero-title-line:nth-child(2) {
    animation-delay: 0.6s;
}

.hero-title-line:nth-child(3) {
    animation-delay: 0.9s;
}

.hero-title-line:hover {
    transform: translateY(-3px) scale(1.02);
    text-shadow: 
        3px 3px 12px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(76, 175, 80, 0.5);
}

/* フェードインアップアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 特徴ボックス - 非表示にして背景を目立たせる */
.feature-box {
    display: none;
}

.feature-icon {
    display: flex;
    justify-content: center;
}

.character-icon {
    width: 100px;
    height: 100px;
    background-color: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.character-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.feature-badge {
    background: linear-gradient(135deg, #aed581, #9ccc65);
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 900;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-heading {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-highlight {
    color: #d32f2f;
    font-weight: 900;
}

.feature-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.company-highlight {
    color: #2c3e50;
    font-weight: 900;
    font-size: 1.3rem;
}

/* ========================================
   固定TELボタン（丸型）
   ======================================== */
.fixed-tel-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
}

.fixed-tel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

/* 旧CTA用（互換性維持） */
.cta-text-small {
    font-size: 0.9rem;
}

.cta-text-large {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.cta-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.cta-tel {
    background-color: #4caf50;
    color: #fff;
}

.cta-mail {
    background-color: #ff9800;
    color: #fff;
}

.cta-line {
    background-color: #00c300;
    color: #fff;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.cta-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.cta-label {
    font-size: 0.75rem;
}

/* ========================================
   サービス紹介セクション
   ======================================== */
.service-intro {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

/* サービススライダー */
.service-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 60px;
}

.service-slider-track-wrapper {
    overflow: hidden;
    border-radius: 16px;
}

.service-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.service-card {
    flex: 0 0 100%;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 0.5rem;
    box-sizing: border-box;
}

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

.service-image {
    width: 100%;
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    overflow: hidden;
}

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

.service-image img:hover {
    transform: scale(1.1);
}

.service-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 1.5rem 1.5rem 0.5rem;
    color: #2c3e50;
}

.service-card-text {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    line-height: 1.7;
}

/* 矢印ボタン */
.service-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
}

.service-slider-arrow:hover {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.service-slider-prev { left: 0; }
.service-slider-next { right: 0; }

/* ドットナビゲーション */
.service-slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.75rem;
}

.service-slider-dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.service-slider-dot.active {
    background-color: #4caf50;
    transform: scale(1.2);
}

/* スマホ専用：サービススライダーを横一杯に表示 */
@media screen and (max-width: 767px) {
    .service-intro {
        padding: 3rem 0;
    }

    .service-slider {
        padding: 1.5rem 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .service-slider-track-wrapper {
        border-radius: 0;
        width: 100%;
    }

    .service-card {
        margin: 0;
        border-radius: 0;
        flex: 0 0 100%;
    }

    .service-image {
        height: 200px;
        border-radius: 0;
    }

    .service-card-title {
        font-size: 1.3rem;
        padding: 1.2rem 1.5rem 0.5rem;
        text-align: center;
    }

    .service-card-text {
        padding: 0 1.5rem 1.5rem;
        font-size: 0.95rem;
        text-align: center;
        line-height: 1.8;
    }

    /* 矢印ボタンを画像の右端に目立たないように配置 */
    .service-slider-arrow {
        position: absolute;
        top: 100px;
        transform: translateY(-50%);
        width: 36px;
        height: 60px;
        font-size: 1.5rem;
        background: rgba(0, 0, 0, 0.25);
        color: rgba(255, 255, 255, 0.6);
        border: none;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: blur(3px);
        transition: all 0.3s ease;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .service-slider-arrow:hover {
        background: rgba(0, 0, 0, 0.4);
        color: rgba(255, 255, 255, 0.9);
        transform: translateY(-50%);
    }

    .service-slider-prev { 
        left: 0;
        border-radius: 0 8px 8px 0;
        padding-right: 2px;
    }
    
    .service-slider-next { 
        right: 0;
        border-radius: 8px 0 0 8px;
        padding-left: 2px;
    }

    /* ドットナビゲーション */
    .service-slider-dots {
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
        gap: 0.75rem;
    }
}

/* ========================================
   塗り替えのサインセクション
   ======================================== */
.repaint-signs {
    padding: 4rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f1f8f4 100%);
}

/* ヘッダー部分 */
.repaint-header {
    text-align: center;
    margin-bottom: 3rem;
}

.repaint-character {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.character-mascot {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-emoji {
    font-size: 3.5rem;
}

/* キャラクター画像 */
.character-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.repaint-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.repaint-title-line {
    display: inline;
}

.repaint-subtitle {
    font-size: 1.1rem;
    color: #4caf50;
    font-weight: 700;
    font-style: italic;
}

/* ========================================
   塗り替えサイン スライダー
   ======================================== */

.signs-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 60px;
    padding-top: 3rem;
    overflow: hidden;
}

/* トラックラッパー */
.slider-track-wrapper {
    overflow: visible;
    border-radius: 16px;
    padding: 15px 0;
}

/* スライドトラック */
.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* スライドカード */
.slide-card {
    flex: 0 0 100%;
    padding: 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
    border: 3px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.slide-card:hover {
    border-color: #4caf50;
    transform: translateY(-5px);
}

/* カード画像 */
.slide-card-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f0f0f0;
}

.slide-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.slide-card:hover .slide-card-image img {
    transform: scale(1.1);
}

/* アイコン（互換性用） */
.slide-card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

/* タイトル */
.slide-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3653;
    margin: 0 0 1rem;
}

/* 説明 */
.slide-card-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5b6b;
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
}

/* 矢印ボタン */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: #43a047;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

/* インジケーター（ドット） */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

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

.slider-dot:hover {
    background: #aaa;
}

.slider-dot.active {
    background: #4caf50;
    transform: scale(1.2);
}

/* スマホ専用：塗り替えサインスライダーを横一杯に表示 */
@media screen and (max-width: 767px) {
    .repaint-signs {
        padding: 3rem 0;
    }

    .repaint-title {
        font-size: 1.4rem;
        line-height: 1.7;
        padding: 0 1rem;
    }

    .repaint-title-line {
        display: block;
        margin-bottom: 0.4rem;
    }

    .repaint-title-line:last-child {
        margin-bottom: 0;
    }

    .signs-slider {
        padding: 1.5rem 0;
        max-width: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .slider-track-wrapper {
        border-radius: 0;
        padding: 0;
        overflow: hidden;
        width: 100%;
    }

    .slide-card {
        margin: 0;
        border-radius: 0;
        flex: 0 0 100%;
        padding: 0;
        border: none;
    }

    .slide-card:hover {
        transform: none;
        border-color: transparent;
    }

    .slide-card-image {
        height: 200px;
        border-radius: 0;
        margin-bottom: 0;
    }

    .slide-card-title {
        font-size: 1.3rem;
        padding: 1.2rem 1.5rem 0.5rem;
        text-align: center;
    }

    .slide-card-desc {
        padding: 0 1.5rem 1.5rem;
        font-size: 0.95rem;
        text-align: center;
        line-height: 1.8;
    }

    /* 矢印ボタンを画像の右端に目立たないように配置 */
    .slider-arrow {
        position: absolute;
        top: 100px;
        transform: translateY(-50%);
        width: 36px;
        height: 60px;
        font-size: 1.5rem;
        background: rgba(0, 0, 0, 0.25);
        color: rgba(255, 255, 255, 0.6);
        border: none;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: blur(3px);
        transition: all 0.3s ease;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slider-arrow:hover {
        background: rgba(0, 0, 0, 0.4);
        color: rgba(255, 255, 255, 0.9);
        transform: translateY(-50%);
    }

    .slider-prev { 
        left: 0;
        border-radius: 0 8px 8px 0;
        padding-right: 2px;
    }
    
    .slider-next { 
        right: 0;
        border-radius: 8px 0 0 8px;
        padding-left: 2px;
    }

    /* ドットナビゲーション */
    .slider-dots {
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
        gap: 0.75rem;
    }
}

/* タブレット以上：2カード表示 */
@media (min-width: 768px) {
    .slide-card {
        flex: 0 0 calc(50% - 1rem);
        margin: 0 0.5rem;
    }
    
    .slider-track {
        margin: 0 -0.5rem;
    }
    
    .slide-card-image {
        height: 200px;
    }
}

/* デスクトップ：3カード表示 */
@media (min-width: 1024px) {
    .signs-slider {
        padding: 2rem 70px;
    }

    .slide-card {
        flex: 0 0 calc(33.333% - 1rem);
    }
    
    .slide-card-image {
        height: 220px;
    }
    
    .slider-arrow {
        width: 56px;
        height: 56px;
        font-size: 2.2rem;
    }
}

/* ========================================
   旧スタイル（互換性維持）
   ======================================== */

.sign-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    padding-left: 50px;
}

.sign-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

/* CTAエリア */
.repaint-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 1rem;
}

.repaint-cta-text {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.repaint-cta-text strong {
    color: #d32f2f;
    font-size: 1.3rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ee5a6f, #ff6b6b);
}

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

.sp-only {
    display: inline;
}

/* ========================================
   施工までの流れセクション
   ======================================== */
.flow-section {
    position: relative;
    min-height: 400px;
    background-image: url('../images/flow-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    margin: 4rem 0;
}

/* 仮の背景（画像がない場合） - コメントアウト */
/*
.flow-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #90caf9 100%);
    z-index: 0;
}
*/

.flow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 60%,
        rgba(255, 255, 255, 0.3) 100%
    );
    z-index: 1;
}

.flow-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
}

.flow-border {
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #4caf50, #66bb6a);
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 3px;
}

.flow-text-content {
    padding-left: 2rem;
}

.flow-title {
    font-size: 2rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.flow-subtitle {
    font-size: 1.2rem;
    color: #4caf50;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.flow-description {
    font-size: 1rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 2rem;
}

.btn-flow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    transition: all 0.3s ease;
}

.btn-flow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
    background: linear-gradient(135deg, #66bb6a, #4caf50);
}

.arrow-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-flow:hover .arrow-icon {
    transform: translateX(5px);
}

/* ========================================
   選ばれる理由セクション
   ======================================== */
.reasons-section {
    padding: 5rem 0;
    background-color: #fff;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #4caf50;
    font-weight: 700;
    font-style: italic;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

.reasons-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
}

.reason-item {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.reason-content {
    position: relative;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.reason-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    border: 5px solid #fff;
}

.reason-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-top: 2rem;
    line-height: 1.5;
}

.reason-description {
    font-size: 1rem;
    line-height: 1.9;
    color: #555;
}

.reason-image {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.reason-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reason-item:hover .reason-image img {
    transform: scale(1.08);
}

.reason-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(44, 62, 80, 0.7) 0%,
        rgba(44, 62, 80, 0.3) 50%,
        transparent 100%
    );
}

/* 画像のプレースホルダー - 画像がある場合は不要 */
/*
.reason-image {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reason-image::before {
    content: '🏗️';
    position: absolute;
    font-size: 4rem;
    opacity: 0.3;
    z-index: 0;
}
*/

/* ========================================
   ご挨拶セクション
   ======================================== */
.greeting-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.greeting-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.greeting-text {
    flex: 1;
}

.greeting-intro {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.greeting-paragraph {
    font-size: 1rem;
    line-height: 2;
    color: #555;
    margin-bottom: 1.5rem;
}

.greeting-signature {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #fff;
    border-left: 5px solid #4caf50;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.signature-quote {
    font-size: 1rem;
    color: #4caf50;
    font-weight: 700;
    margin-bottom: 1rem;
}

.signature-company {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.signature-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: #2c3e50;
}

.greeting-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.greeting-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.greeting-image-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 4px solid #4caf50;
    border-radius: 12px;
    z-index: 1;
}

/* 画像のプレースホルダー - 画像がある場合は不要 */
/*
.greeting-image {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.greeting-image::before {
    content: '👨‍🔧';
    position: absolute;
    font-size: 5rem;
    opacity: 0.3;
    z-index: 0;
}
*/

/* ========================================
   失敗しない塗り替えセクション
   ======================================== */
.repaint-advice-section {
    padding: 5rem 0;
    background-color: #fff;
}

.advice-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.advice-title-line {
    display: block;
    margin-bottom: 0.5rem;
}

.advice-title-line:last-child {
    margin-bottom: 0;
}

.advice-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #4caf50;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 3rem;
}

.advice-content {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f1f8f4 0%, #e8f5e9 100%);
    border-radius: 16px;
    border: 3px solid #4caf50;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.2);
}

.advice-text {
    font-size: 1.05rem;
    line-height: 2;
    color: #333;
    margin-bottom: 1.5rem;
}

.advice-text:last-child {
    margin-bottom: 0;
}

.color-simulation-cta {
    text-align: center;
}

.btn-simulation {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-simulation::before {
    content: '🎨';
    position: absolute;
    left: 20px;
    font-size: 1.5rem;
}

.btn-simulation:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ee5a6f, #ff6b6b);
}

/* ========================================
   施工事例・お客様の声セクション
   ======================================== */
.portfolio-voice-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.portfolio-voice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* 共通ブロックスタイル */
.portfolio-block,
.voice-block {
    background-color: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-block:hover,
.voice-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.block-header {
    text-align: center;
    margin-bottom: 2rem;
}

.block-title {
    font-size: 2rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.block-subtitle {
    font-size: 1.1rem;
    color: #4caf50;
    font-weight: 700;
    font-style: italic;
}

.block-button {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: 1.5rem;
}

/* 施工事例ブロック */
.portfolio-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.portfolio-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* 画像がある場合はプレースホルダー不要 */
    /* background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); */
}

/* 画像のプレースホルダー - コメントアウト */
/*
.portfolio-image::before {
    content: '🏠';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    opacity: 0.3;
    z-index: 0;
}
*/

.portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    z-index: 1;
}

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

.btn-portfolio {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.btn-portfolio:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #66bb6a, #43a047);
}

/* お客様の声ブロック */
.voice-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.voice-image {
    position: relative;
    width: 100%;
    padding-bottom: 65%; /* 横長の比率 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    /* 画像がある場合はプレースホルダー不要 */
    /* background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%); */
}

/* 画像のプレースホルダー - コメントアウト */
/*
.voice-image::before {
    content: '👨‍👩‍👧‍👦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
    z-index: 0;
}
*/

.voice-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    z-index: 1;
}

.voice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 2;
}

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

.btn-voice {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

.btn-voice:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ee5a6f, #e53935);
}

/* ========================================
   お知らせ・会社情報セクション
   ======================================== */
.news-company-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.news-company-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* お知らせブロック */
.news-block {
    background-color: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.news-header {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    padding: 0;
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
}

.news-title-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    display: flex;
    align-items: center;
    padding-left: 2rem;
}

.news-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Instagram埋め込みエリア */
.instagram-feed {
    padding: 2rem;
    min-height: 300px;
}

.instagram-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 8px;
    border: 2px dashed #ccc;
}

.instagram-loading {
    font-size: 1.1rem;
    color: #999;
}

/* 会社情報ブロック */
.company-block {
    background-color: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.company-contact {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.contact-label {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.contact-phone {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: #43a047;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.contact-phone:hover {
    color: #2e7d32;
}

.btn-email {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #424242;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-email:hover {
    background-color: #212121;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.company-info {
    padding: 0;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #4caf50;
}

.company-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0.5rem;
}

.detail-label {
    font-weight: 700;
    color: #2c3e50;
    margin-right: 0.5rem;
}

.company-hours {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.hours-item {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 0.5rem;
}

.hours-item:last-child {
    margin-bottom: 0;
}

.btn-company-detail {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #fff;
    color: #43a047;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #43a047;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.btn-company-detail:hover {
    background-color: #43a047;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.company-note {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.7;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.footer-logo .logo-icon {
    background-color: #fff;
    color: #2c3e50;
}

.footer-logo .logo-company,
.footer-logo .logo-name {
    color: #fff;
}

.footer-info {
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: center;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   レスポンシブ: タブレット以上
   ======================================== */
@media screen and (min-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .feature-icon {
        flex-shrink: 0;
    }

    .character-icon {
        width: 120px;
        height: 120px;
    }

    .feature-badge {
        font-size: 2rem;
    }

    .feature-heading {
        font-size: 1.5rem;
    }

    /* サービススライダー：タブレットで2枚表示 */
    .service-card {
        flex: 0 0 50%;
    }
    
    .service-slider-track {
        margin: 0 -0.5rem;
    }

    /* 塗り替えのサイン - タブレット */
    .signs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .repaint-title {
        font-size: 2.2rem;
    }

    .sp-only {
        display: none;
    }

    /* 施工までの流れ - タブレット */
    .flow-title {
        font-size: 2.5rem;
    }

    .flow-description {
        font-size: 1.05rem;
    }

    /* 選ばれる理由 - タブレット */
    .reason-item {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .reason-content {
        flex: 1;
    }

    .reason-image {
        flex: 1;
        height: 350px;
        min-width: 300px;
    }

    .reason-reverse {
        flex-direction: row-reverse;
    }

    /* ご挨拶 - タブレット */
    .greeting-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
    }

    .greeting-image {
        max-width: 350px;
        flex-shrink: 0;
    }

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

    .advice-content {
        padding: 3rem;
    }

    /* 施工事例・お客様の声 - タブレット */
    .portfolio-voice-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .portfolio-images {
        gap: 0.75rem;
    }

    /* お知らせ・会社情報 - タブレット */
    .news-company-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

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

    .contact-phone {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

/* ========================================
   レスポンシブ: デスクトップ
   ======================================== */
@media screen and (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }

    .nav {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        box-shadow: none;
        background: transparent;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
    }

    .nav-link {
        padding: 0.5rem 1.25rem;
        border: none;
    }

    .nav-link-contact {
        margin: 0 0 0 1rem;
        padding: 0.6rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .fixed-tel-btn {
        right: 30px;
        bottom: 30px;
        width: 70px;
        height: 70px;
        font-size: 1rem;
    }

    /* サービススライダー：デスクトップで3枚表示 */
    .service-slider {
        padding: 2rem 70px;
    }
    
    .service-card {
        flex: 0 0 33.333%;
    }
    
    .service-slider-arrow {
        width: 56px;
        height: 56px;
        font-size: 2.2rem;
    }

    /* 塗り替えのサイン - デスクトップ専用レイアウト */
    .repaint-signs {
        padding: 5rem 0;
    }

    .repaint-title {
        font-size: 2.5rem;
    }


    /* 施工までの流れ - デスクトップ */
    .flow-section {
        min-height: 500px;
        padding: 5rem 0;
    }

    .flow-content {
        max-width: 800px;
        padding: 3rem;
    }

    .flow-title {
        font-size: 3rem;
    }

    .flow-subtitle {
        font-size: 1.4rem;
    }

    .flow-description {
        font-size: 1.1rem;
    }

    /* 選ばれる理由 - デスクトップ */
    .reasons-section {
        padding: 6rem 0;
    }

    .reasons-container {
        gap: 5rem;
    }

    .reason-item {
        gap: 4rem;
    }

    .reason-content {
        padding: 3rem;
    }

    .reason-image {
        height: 400px;
        min-width: 400px;
    }

    .reason-title {
        font-size: 1.6rem;
    }

    .reason-description {
        font-size: 1.05rem;
    }

    /* ご挨拶 - デスクトップ */
    .greeting-section {
        padding: 6rem 0;
    }

    .greeting-content {
        gap: 5rem;
    }

    .greeting-intro {
        font-size: 1.25rem;
    }

    .greeting-paragraph {
        font-size: 1.05rem;
    }

    .greeting-image {
        max-width: 400px;
    }

    /* 失敗しない塗り替え - デスクトップ */
    .repaint-advice-section {
        padding: 6rem 0;
    }

    .advice-title {
        font-size: 2.3rem;
    }

    .advice-subtitle {
        font-size: 1.4rem;
    }

    .advice-text {
        font-size: 1.1rem;
    }

    /* 施工事例・お客様の声 - デスクトップ */
    .portfolio-voice-section {
        padding: 6rem 0;
    }

    .portfolio-voice-grid {
        gap: 3rem;
    }

    .portfolio-block,
    .voice-block {
        padding: 3rem;
    }

    .block-title {
        font-size: 2.2rem;
    }

    .portfolio-images {
        gap: 1rem;
    }

    .block-button {
        padding: 1rem 3rem;
        font-size: 1.1rem;
    }

    /* お知らせ・会社情報 - デスクトップ */
    .news-company-section {
        padding: 6rem 0;
    }

    .news-company-grid {
        gap: 3rem;
    }

    .news-title {
        font-size: 2.2rem;
    }

    .company-block {
        padding: 3rem;
    }

    .contact-phone {
        font-size: 2.8rem;
    }

    .company-name {
        font-size: 1.7rem;
    }
}

/* ========================================
   スマホ・タブレット最適化（〜767px）
   ======================================== */
@media screen and (max-width: 767px) {
    /* ヒーローの高さを「画面 - ヘッダー高さ」にする */
    .hero {
        position: relative;
        min-height: calc(100vh - 64px);
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* .hero-content をヒーローの中でしっかり中央寄せする */
    .hero-content,
    .hero-message {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        position: static;
        transform: translateY(-70px);
        width: 90%;
        max-width: 320px;
        text-align: center;
        z-index: 2;
        margin: 0;
    }

    /* コピーの余白を少しだけ詰めて、より中央に見えるよう微調整 */
    .hero-title {
        font-size: 1.1rem !important;
        line-height: 1.8 !important;
        text-align: center;
        letter-spacing: 0.01em;
        margin-bottom: 1.5rem;
        white-space: normal;
        padding: 0 1rem;
        margin-top: 0;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .hero-title-line {
        display: block;
        margin-bottom: 0.6rem;
        line-height: 1.8;
        text-align: center;
        width: 100%;
        font-size: 1.1rem;
    }

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

    /* スマホではホバー効果を軽減 */
    .hero-title-line:hover {
        transform: translateY(-1px);
    }

    /* カラーシミュレーションセクションのタイトル */
    .advice-title {
        font-size: 1.15rem;
        line-height: 1.8;
        padding: 0 1rem;
        word-break: keep-all;
    }

    .advice-title-line {
        display: block;
        margin-bottom: 0.6rem;
    }

    .advice-title-line:last-child {
        margin-bottom: 0;
    }
}

/* ========================================
   スマホ最適化（小画面）
   ======================================== */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 0.85rem;
        line-height: 1.8;
    }

    .feature-badge {
        font-size: 1.4rem;
        padding: 0.5rem 1rem;
    }

    .feature-heading {
        font-size: 1.1rem;
    }

    .feature-text {
        font-size: 1rem;
    }

    .fixed-tel-btn {
        right: 15px;
        bottom: 15px;
        width: 55px;
        height: 55px;
        font-size: 0.85rem;
    }

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

    .repaint-title {
        font-size: 1.25rem;
        line-height: 1.8;
        padding: 0 0.8rem;
    }

    .repaint-title-line {
        display: block;
        margin-bottom: 0.3rem;
    }

    .advice-title {
        font-size: 1.05rem;
        line-height: 1.8;
        padding: 0 0.8rem;
    }

    .advice-title-line {
        margin-bottom: 0.5rem;
    }

    /* 施工までの流れ - スマホ */
    .flow-content {
        padding: 1.5rem;
    }

    .flow-border {
        width: 4px;
    }

    .flow-text-content {
        padding-left: 1.5rem;
    }

    .flow-title {
        font-size: 1.6rem;
    }

    .flow-subtitle {
        font-size: 1rem;
    }

    .flow-description {
        font-size: 0.95rem;
    }

    .btn-flow {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }

    /* 選ばれる理由 - スマホ */
    .reasons-container {
        gap: 3rem;
    }

    .reason-content {
        padding: 1.5rem;
    }

    .reason-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .reason-title {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }

    .reason-description {
        font-size: 0.95rem;
    }

    .reason-image {
        height: 250px;
    }

    /* ご挨拶 - スマホ */
    .greeting-intro {
        font-size: 1.05rem;
    }

    .greeting-paragraph {
        font-size: 0.95rem;
    }

    .greeting-signature {
        padding: 1.5rem;
    }

    .signature-name {
        font-size: 1.1rem;
    }

    /* 失敗しない塗り替え - スマホ */
    .advice-subtitle {
        font-size: 1rem;
    }

    .advice-content {
        padding: 1.5rem;
    }

    .advice-text {
        font-size: 0.95rem;
    }

    .btn-simulation {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* 施工事例・お客様の声 - スマホ */
    .portfolio-voice-grid {
        gap: 2rem;
    }

    .portfolio-block,
    .voice-block {
        padding: 1.5rem;
    }

    .block-title {
        font-size: 1.6rem;
    }

    .block-subtitle {
        font-size: 1rem;
    }

    .portfolio-images {
        gap: 0.5rem;
    }

    .portfolio-image::before {
        font-size: 1.5rem;
    }

    .voice-image::before {
        font-size: 2.5rem;
    }

    .block-button {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }

    /* お知らせ・会社情報 - スマホ */
    .news-company-grid {
        gap: 2rem;
    }

    .news-block,
    .company-block {
        padding: 0;
    }

    .news-title {
        font-size: 1.5rem;
    }

    .news-title-wrap {
        padding-left: 1.5rem;
    }

    .instagram-feed {
        padding: 1.5rem;
    }

    .company-block {
        padding: 2rem 1.5rem;
    }

    .contact-phone {
        font-size: 1.8rem;
    }

    .company-name {
        font-size: 1.3rem;
    }

    .detail-item {
        font-size: 0.9rem;
    }

    .hours-item {
        font-size: 0.9rem;
    }
}

