/* フォント設定 */
@import url('https://fonts.googleapis.com/css2?family=Sawarabi+Mincho:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kosugi+Maru&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-weight: 300;
    line-height: 1.8;
    color: #2c3e50; /* 深いネイビー */
    overflow-x: hidden;
    /* リサイズ時の改行崩れを防ぐ */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 見出しタグ全体のスタイル */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-weight: 300;
    color: #2c3e50;
}

/* 3カラムレイアウト */
.layout-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    margin-top: 60px; /* ヘッダーの高さ（60px）分の余白 */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: center; /* センター配置のための設定 */
}

/* 左背景エリア - 中央コンテンツの左側 */
.bg-left {
    position: fixed;
    left: 0;
    top: 0;
    width: calc((100vw - clamp(600px, 60vw, 800px)) / 2); /* 左右均等分割 */
    min-width: 200px; /* 最小幅を緩和 */
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 中央コンテンツエリア - 新3段階レスポンシブ対応 */
.main-content {
    position: relative;
    width: clamp(600px, 60vw, 800px); /* 固定幅範囲：600px-800px */
    margin: 0 auto;
    background: linear-gradient(135deg, #f5f0e8 0%, #faf7f2 100%); /* ライトベージュ */
    min-height: 100vh;
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 右背景エリア - 中央コンテンツの右側 */
.bg-right {
    position: fixed;
    right: 0;
    top: 0;
    width: calc((100vw - clamp(600px, 60vw, 800px)) / 2); /* 左右均等分割 */
    min-width: 200px; /* 最小幅を緩和 */
    height: 100vh;
    z-index: 0; /* 中央カラムの下のレイヤーに配置 */
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(45deg, #0076C5, #00C9A7);
    background-size: 400% 400%;
    animation: gradientShift 5s ease-in-out infinite;
}

/* 水のゆらぎアニメーション */
.bg-right::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background-image: url('./images/wave_bg_L.png');
    background-size: 1040px auto;
    background-repeat: repeat-x;
    background-position: 0 bottom;
    animation: waveMove10s_large 10s linear infinite;
    pointer-events: none;
    z-index: 3;
    opacity: 1;
}

/* ===== plan0728.md準拠の3段階レスポンシブブレークポイント体系 ===== */
/* PC・タブレットの既存レイアウトは変更せず、モバイルのみ最適化 */

/* 1. デスクトップ (1500px以上) - 3カラムレイアウト（plan0728.md準拠） */
@media (min-width: 1500px) {
    .layout-container {
        justify-content: center;
    }
    
    .bg-left {
        width: calc((100vw - clamp(600px, 60vw, 800px)) / 2);
        min-width: 200px;
        display: block !important; /* 強制表示 */
        opacity: 1 !important;
    }
    
    .main-content {
        width: clamp(600px, 60vw, 800px);
        margin: 0 auto;
    }
    
    .bg-right {
        width: calc((100vw - clamp(600px, 60vw, 800px)) / 2);
        min-width: 200px;
        display: block !important; /* 強制表示 */
        opacity: 1 !important;
    }
}

/* 2. タブレット (1024px-1499px) - 2カラムレイアウト（左非表示、中央+右）（plan0728.md準拠） */
@media (min-width: 1024px) and (max-width: 1499px) {
    .layout-container {
        justify-content: flex-start;
    }
    
    .bg-left {
        display: none !important; /* タブレットでは左背景を非表示 */
    }
    
    .main-content {
        width: clamp(600px, 60vw, 800px);
        margin: 0; /* 左寄せ配置 */
    }
    
    .bg-right {
        width: calc(100vw - clamp(600px, 60vw, 800px)); /* メインコンテンツ分を引いた残りの幅 */
        min-width: 200px;
        display: block !important; /* 右背景を表示 */
        opacity: 1 !important;
        left: clamp(600px, 60vw, 800px); /* 中央カラムの右端から開始 */
    }
}

/* 3. モバイル (1023px以下) - 1カラムレイアウト（背景画像なし） */
@media (max-width: 1023px) {
    .layout-container {
        display: block;
        margin-top: 0;
    }
    
    .bg-left,
    .bg-right {
        display: none !important; /* モバイルでは背景画像を非表示 */
    }
    
    .main-content {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        position: relative;
        z-index: 10;
        background: rgba(245, 240, 232, 0.95); /* 半透明背景で可読性確保 */
    }
    
}



/* ===== 疑似2カラムモード新体系対応 ===== */

/* デスクトップ (1500px以上) - 疑似2カラム時 */
@media (min-width: 1500px) {
    .layout-container.pseudo-two-column .main-content {
        position: fixed;
        top: 0;
        left: calc((100vw - clamp(600px, 60vw, 800px)) / 2);
        width: clamp(600px, 60vw, 800px);
        height: calc(100vh - 60px);
        z-index: 10;
        overflow-y: auto;
    }
}

/* タブレット (1024px-1499px) - 疑似2カラム時 */
@media (min-width: 1024px) and (max-width: 1499px) {
    .layout-container.pseudo-two-column .main-content {
        position: fixed;
        top: 0;
        left: 0; /* 左端に配置 */
        width: clamp(600px, 60vw, 800px);
        height: calc(100vh - 60px);
        z-index: 10;
        overflow-y: auto;
    }
    
    /* タブレット疑似2カラム時の右カラム調整 */
    .layout-container.pseudo-two-column .bg-right {
        left: clamp(600px, 60vw, 800px) !important; /* 中央カラム右端から開始 */
        width: calc(100vw - clamp(600px, 60vw, 800px)) !important; /* 残り幅全体 */
    }
}


/* 奥の波（透明度60%、アニメーション時間14秒） */
.bg-right::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 180px;
    background-image: url('./images/wave_bg.png');
    background-size: 1040px auto;
    background-repeat: repeat-x;
    background-position: 0 bottom;
    animation: waveMove11s_large 11s linear infinite;
    pointer-events: none;
    z-index: 2;
    opacity: 0.7;
}

/* 最奥の波（透明度30%、アニメーション時間18秒） */
.bg-right .wave-deepest {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    height: 180px;
    background-image: url('./images/wave_bg.png');
    background-size: 1040px auto;
    background-repeat: repeat-x;
    background-position: 0 bottom;
    animation: waveMove12s_large 12s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}



/* 10秒波のアニメーション */
@keyframes waveMove10s {
    0% {
        background-position: 0 bottom;
    }
    100% {
        background-position: 800px bottom;
    }
}

/* 10秒波のアニメーション（30%拡大版） */
@keyframes waveMove10s_large {
    0% {
        background-position: 0 bottom;
    }
    100% {
        background-position: 1040px bottom;
    }
}

/* 11秒波のアニメーション */
@keyframes waveMove11s {
    0% {
        background-position: 0 bottom;
    }
    100% {
        background-position: 800px bottom;
    }
}

/* 11秒波のアニメーション（30%拡大版 + 上下移動5px） */
@keyframes waveMove11s_large {
    0% {
        background-position: 0 bottom;
        transform: translateY(0px);
    }
    12.5% {
        background-position: 130px bottom;
        transform: translateY(-1px);
    }
    25% {
        background-position: 260px bottom;
        transform: translateY(-3px);
    }
    37.5% {
        background-position: 390px bottom;
        transform: translateY(-5px);
    }
    50% {
        background-position: 520px bottom;
        transform: translateY(-3px);
    }
    62.5% {
        background-position: 650px bottom;
        transform: translateY(-1px);
    }
    75% {
        background-position: 780px bottom;
        transform: translateY(0px);
    }
    87.5% {
        background-position: 910px bottom;
        transform: translateY(-1px);
    }
    100% {
        background-position: 1040px bottom;
        transform: translateY(0px);
    }
}

/* 12秒波のアニメーション */
@keyframes waveMove12s {
    0% {
        background-position: 0 bottom;
    }
    100% {
        background-position: 800px bottom;
    }
}

/* 12秒波のアニメーション（30%拡大版 + 上下移動3px） */
@keyframes waveMove12s_large {
    0% {
        background-position: 0 bottom;
        transform: translateY(0px);
    }
    14.3% {
        background-position: 149px bottom;
        transform: translateY(1px);
    }
    28.6% {
        background-position: 298px bottom;
        transform: translateY(2px);
    }
    42.9% {
        background-position: 446px bottom;
        transform: translateY(3px);
    }
    57.1% {
        background-position: 594px bottom;
        transform: translateY(2px);
    }
    71.4% {
        background-position: 743px bottom;
        transform: translateY(1px);
    }
    85.7% {
        background-position: 891px bottom;
        transform: translateY(0px);
    }
    100% {
        background-position: 1040px bottom;
        transform: translateY(0px);
    }
}

/* 右カラム背景グラデーションアニメーション */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 背景画像（固定） */
.bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* transition: opacity 1s ease-in-out; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-image.active {
    opacity: 1;
}

/* 背景画像の設定 */
.bg-image-1 {
    background-image: linear-gradient(
        rgba(72, 202, 228, 0.3), 
        rgba(0, 119, 190, 0.3)
    ), url('images/customer_smile.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-image-2 {
    background-image: linear-gradient(
        rgba(144, 224, 239, 0.3), 
        rgba(0, 180, 216, 0.3)
    ), url('images/eigyousho_smile.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-image-3 {
    background-image: linear-gradient(
        rgba(202, 240, 248, 0.3), 
        rgba(72, 202, 228, 0.3)
    ), url('images/syain_shokai.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-image-4 {
    background-image: linear-gradient(
        rgba(0, 119, 190, 0.3), 
        rgba(2, 62, 138, 0.3)
    ), url('images/family_future.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-image-5 {
    background-image: linear-gradient(
        rgba(72, 202, 228, 0.2), 
        rgba(0, 119, 190, 0.2)
    ), url('images/cleaning.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-image-6 {
    background-image: linear-gradient(
        rgba(144, 224, 239, 0.2), 
        rgba(0, 180, 216, 0.2)
    ), url('images/honsya_sky.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 左カラム専用背景画像 */
.bg-left .bg-image-1 {
    background-image: linear-gradient(
        rgba(72, 202, 228, 0.3), 
        rgba(0, 119, 190, 0.3)
    ), url('images/maintenance_miniature.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-left .bg-image-2 {
    background-image: linear-gradient(
        rgba(144, 224, 239, 0.3), 
        rgba(0, 180, 216, 0.3)
    ), url('images/maintenance_miniature.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-left .bg-image-3 {
    background-image: linear-gradient(
        rgba(202, 240, 248, 0.3), 
        rgba(72, 202, 228, 0.3)
    ), url('images/kouhou202305_08.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-left .bg-image-4 {
    background-image: linear-gradient(
        rgba(0, 119, 190, 0.3), 
        rgba(2, 62, 138, 0.3)
    ), url('images/family_future.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-left .bg-image-5 {
    background-image: linear-gradient(
        rgba(72, 202, 228, 0.2), 
        rgba(0, 119, 190, 0.2)
    ), url('images/cleaning.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-left .bg-image-6 {
    background-image: linear-gradient(
        rgba(144, 224, 239, 0.2), 
        rgba(0, 180, 216, 0.2)
    ), url('images/honsya_sky.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 右カラム専用背景画像 - グラデーション表示のため透明化 */
.bg-right .bg-image-1 {
    background: transparent;
}

.bg-right .bg-image-2 {
    background: transparent;
}

.bg-right .bg-image-3 {
    background: transparent;
}

.bg-right .bg-image-4 {
    background: transparent;
}

.bg-right .bg-image-5 {
    background: transparent;
}

.bg-right .bg-image-6 {
    background: transparent;
}






/* セクション共通スタイル */
section {
    padding: 4rem 2rem;
    max-width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 10; /* 白マットサークルより前面に配置 */
}

/* セクション共通アニメーション */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* セクションタイトルアニメーション */
.section-title {
    font-family: 'Sawarabi Mincho', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 300;
    color: #2c3e50;
    text-align: center;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    height: auto;
    margin: 0 auto 10px;
    margin-top: 0;
    line-height: 1.26; /* 行間を30%縮める: 1.8 × 0.7 = 1.26 */
    transition: font-size 0.3s ease, height 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.0s cubic-bezier(0.4, 0, 0.2, 1) 0.2s, 
                transform 1.0s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 装飾的英語ワード */
.section-title-en {
    font-size: clamp(0.7rem, 1.2vw, 0.9rem); /* タイトルの30%程度の大きさ */
    font-weight: 300;
    letter-spacing: 0.4em; /* 文字間をやや広めに */
    color: rgba(173, 216, 230, 0.8); /* 薄い水色 */
    font-family: 'Noto Sans', sans-serif;
    text-align: center; /* 中央揃え */
    margin: 0.1rem auto 2rem auto; /* 下側マージンを増やして他セクションと統一 */
    display: block; /* ブロック要素として改行 */
    opacity: 0.85; /* 視認性を保ちつつ主張を抑える */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3); /* 背景色との調和のためのテキストシャドウ */
}



/* trouble-sectionの英語ワード - タイトルのpadding-bottomを相殺 */
.trouble-section .section-title-en {
    margin-top: -0.45rem; /* タイトルのpadding-bottom(0.6rem)を相殺して間隔を詰める */
}


/* ヒーローセクション */
.hero {
    padding-bottom: 0;
    min-height: 100vh; /* 60vhから100vhに拡大 */
    display: flex;
    align-items: flex-start; /* 上部寄せに変更 */
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 8rem; /* 上部にパディングを追加 */
}

.hero-content {
    width: 100%; /* 中央カラム幅いっぱいに設定 */
    max-width: 100%; /* 最大幅も100%に設定 */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 上部寄せに変更 */
    position: relative;
    z-index: 10; /* サークルより前面に表示 */
}



.hero-catchcopy {
    font-family: 'Sawarabi Mincho', serif;
    font-size: 2.8rem; /* 固定サイズで改行位置を安定化 */
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 2rem;
    margin-top: 0; /* 上部マージンを削除 */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 280px; /* 固定高さで改行位置を固定 */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3; /* 行間を調整して改行位置を最適化 */
    white-space: pre-line; /* 改行を保持 */
    transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                writing-mode 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                text-orientation 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* キャッチコピーの文字アニメーション */
.hero-catchcopy .char {
    display: inline-block;
    opacity: 0;
    filter: blur(20px);
    animation: fadeInChar 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    font-family: serif;
    font-weight: normal;
}

@keyframes fadeInChar {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: 'Sawarabi Mincho', serif;
    font-size: 1.1rem; /* 1.2rem → 1.1remに縮小 */
    font-weight: 300;
    color: #555;
    line-height: 1.6; /* 2行表示のため行間を調整 */
    margin-top: 150px; /* キャッチコピーから150px離す */
    max-width: 400px; /* 2行で収まるように幅を調整 */
    margin-left: auto;
    margin-right: auto;
    white-space: normal; /* 改行を許可して2行表示 */
    transition: font-size 0.3s ease;
    text-align: center; /* 中央揃えを明示 */
    padding: 0 20px; /* 左右にパディングを追加 */
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(10px);
}

.hero-subtitle.animate {
    animation: fadeInSubtitle 1.0s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    padding: 0 !important;
}

@keyframes fadeInSubtitle {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* お困りごとセクション */
.trouble-section {
    background-color: #00bcdb;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: -5px !important; /* hero-transition-sectionとの隙間を除去 */
    margin-bottom: -10px !important; /* select-transition-sectionとの隙間を除去 */
    max-width: 100% !important;
    position: relative;
    z-index: 5;
}

.trouble-section .section-title {
    padding-top: 1.2rem; /* 30%に減らす: 4rem → 1.2rem */
    padding-bottom: 0.6rem; /* 30%に減らす: 2rem → 0.6rem */
}

.trouble-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
    max-width: 90%;
    padding: 0 0 4rem 0; /* 下部にパディングを追加 */
}

/* お困りごとアイテムのアニメーション */
.trouble-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 1.0);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: opacity 1.0s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.0s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 140px;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    cursor: pointer;
}

.trouble-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ホバー効果 */
.trouble-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.95) 100%);
    border-color: rgba(72, 202, 228, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.trouble-item.visible:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.95) 100%);
    border-color: rgba(72, 202, 228, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08);
}



.trouble-icon {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    margin: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trouble-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* アイコンホバー時のパルス効果 */
.trouble-item:hover .trouble-icon img {
    animation: iconPulse 2s ease-in-out infinite;
}

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

.trouble-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.trouble-item h3 {
    font-size: 2.028rem !important;
    margin-bottom: 0.6rem !important;
    color: #2c3e50 !important;
    margin-top: 0 !important;
    text-align: left !important;
    width: 100%;
    line-height: 1.3 !important;
    position: relative;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trouble-item h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #48CAE4, #0077BE);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trouble-item:hover h3 {
    color: #0077BE !important;
}

.trouble-item:hover h3::after {
    width: 100%;
}

.trouble-item p {
    font-size: 1.56rem !important;
    color: #555 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    text-align: left !important;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trouble-item:hover p {
    color: #333 !important;
}





/* 星評価風の装飾 */







/* お問い合わせセクション */
.contact-section {
    background: #ffffff;
    position: relative;
    padding: 1rem 0;
    height: 250px;
    display: none;
}

.contact-section::before,
.contact-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #48CAE4;
}

.contact-section::before {
    top: 0;
}

.contact-section::after {
    bottom: 0;
}

.contact-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0 2rem;
    gap: 3rem;
    height: 100%;
}

/* 左側：テキストと画像 */
.contact-left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.5rem;
    height: 100%;
}

.contact-urgent-text {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #48CAE4;
    margin: 0;
    line-height: 1.6;
}

.contact-image {
    display: flex;
    justify-content: flex-start;
}

.contact-image img {
    width: 300px;
    height: 300px;
    display: block;
    object-fit: cover;
    background-color: #f0f0f0;
}

/* 右側：電話情報とボタン */
.contact-right-content {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.phone-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.phone-icon {
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-number {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.business-hours {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
    margin: 0;
    text-align: right;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #4CAF50;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.contact-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-left-content {
        align-items: center;
    }
    
    .contact-image {
        justify-content: center;
    }
    
    .contact-right-content {
        align-items: center;
    }
    
    .phone-display {
        justify-content: center;
    }
    
    .phone-number {
        font-size: 2rem;
    }
    
    .business-hours {
        text-align: center;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}

/* フッター */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}


/* 旧959px以下レスポンシブデザインは新体系(1023px以下)に統合済み */
/* @media (max-width: 959px) { 削除開始 */
    .layout-container {
        margin-top: 0; /* ヘッダー高さに合わせて調整 */
    }

    .header-content {
        width: 100%;
        max-width: none; /* 幅制限を解除 */
        padding: 0 1rem;
        justify-content: space-between; /* ロゴを左端、ハンバーガーメニューを右端に配置 */
    }


    /* スマホ時のヒーローセクション - どのサイズにも対応 */
    .hero {
        height: 100vh; /* ビューポートの高さに合わせる */
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0; /* マージンをリセット */
        width: 100vw; /* 画面幅いっぱい */
        position: relative;
        left: 50%;
        transform: translateX(-50%); /* 中央揃え */
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%; /* 親要素の幅に合わせる */
        text-align: center;
        margin-top: -20vh; /* 上のマージンを40%縮める（50vh → 30vh相当） */
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        position: relative;
        left: 0; /* 左位置をリセット */
        transform: none; /* transformをリセット */
        z-index: 10; /* サークルより前面に表示 */
    }



    .hero-catchcopy {
        writing-mode: vertical-rl; /* 縦書きを維持 */
        text-orientation: mixed;
        height: 280px; /* 固定高さで改行位置を固定 */
        font-size: 2.8rem; /* 固定サイズで改行位置を安定化 */
        font-weight: 300;
        margin-bottom: 0;
        line-height: 1.3; /* 行間を調整して改行位置を最適化 */
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        white-space: pre-line; /* 改行を保持 */
    }

    .hero-subtitle {
        font-size: 1.1rem; /* 固定サイズを維持 */
        margin-top: 150px; /* 固定距離を維持 */
        max-width: 400px; /* 固定幅を維持 */
        line-height: 1.6;
        text-align: center;
        white-space: normal;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
        transform: scale(0.85); /* タブレット版では85%に縮小 */
        transform-origin: center;
    }

    /* hero-transition-sectionを画面下に配置 */
    .hero-transition-section {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: 0 !important;
        z-index: 10;
    }

    /* モバイル用ナビゲーション - 詳細度を上げる */
    .header .nav.active {
        display: flex !important;
        position: fixed !important;
        top: 60px !important; /* ヘッダー高さに合わせて調整 */
        left: 0 !important; /* 50% → 0に変更 */
        transform: none !important; /* translateX(-50%) → noneに変更 */
        width: 100% !important; /* 100%に変更 */
        max-width: none !important; /* 500px制限を削除 */
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        flex-direction: column !important;
        padding: 1.5rem !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
        border-radius: 0 0 15px 15px !important;
        z-index: 1 !important;
        gap: 0 !important;
        animation: slideDown 0.3s ease-out !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: calc(100vh - 60px) !important; /* ← 追加：ヘッダー分を引いた全高 */
        overflow-y: auto !important;           /* ← 追加：メニューが多い場合もスクロール可 */
        overflow-y: hidden !important; /* ← autoからhiddenに変更 */
    }

    /* モバイル時のナビアイテム */
    .header .nav.active .nav-item {
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin-bottom: 0.3rem;
        display: block;
    }

    .header .nav.active .nav-item:last-child {
        margin-bottom: 0;
    }

    .header .nav.active .nav-link-main {
        width: 100%;
        padding: 1.2rem 1rem;
        font-size: 20px;
        text-align: center;
        border: none;
        height: auto;
        color: #2c3e50;
        text-decoration: none;
        display: block;
        transition: all 0.3s ease;
        font-weight: 400;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header .nav.active .nav-link-main:hover {
        background: rgba(72, 202, 228, 0.1);
        color: #48CAE4;
        transform: translateX(5px);
    }

    .header .nav.active .nav-item:last-child .nav-link-main {
        border-bottom: none;
    }

    /* お問い合わせは強調表示 */
    .header .nav.active .nav-contact .nav-link-main {
        width: 100%;
        padding: 1.2rem 1rem;
        background: rgba(72, 202, 228, 0.15);
        border-radius: 8px;
        text-align: center;
        font-weight: 500;
        color: #48CAE4;
        border: 1px solid rgba(72, 202, 228, 0.3);
        margin-top: 0.5rem;
    }

    .header .nav.active .nav-contact .nav-link-main:hover {
        background: rgba(72, 202, 228, 0.25);
        transform: translateX(5px);
        border-color: rgba(72, 202, 228, 0.5);
    }

    .header .nav.active .social-icons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(44, 62, 80, 0.1);
    }

 
    .header .nav.active .social-icon {
        color: #2c3e50;
        transition: color 0.3s ease;
    }

    .header .nav.active .social-icon:hover {
        color: #48CAE4;
    }



    /* モバイル版trouble-sectionのスタイル */
    .trouble-section {
        background-color: #00bcdb;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: -5px !important;
        margin-bottom: -5px !important;
        max-width: 100% !important;
        position: relative;
        z-index: 5;
    }

    .trouble-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin: 0 auto;
        max-width: 90%;
        padding: 0 0 4rem 0;
    }

    .trouble-item {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 1.0);
        border-radius: 20px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        min-height: 140px;
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        transition: opacity 1.0s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 1.0s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    .trouble-icon {
        width: 150px;
        height: 150px;
        flex-shrink: 0;
        margin: 0;
    }

    .trouble-content {
        display: flex;
        flex-direction: column;
        flex: 1;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
    }

    .trouble-item h3 {
        font-size: 1.69rem !important;
        margin-bottom: 0.6rem !important;
        color: #2c3e50 !important;
        margin-top: 0 !important;
        text-align: left !important;
        width: 100%;
        line-height: 1.3 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        transform: scale(0.9);
        transform-origin: left center;
    }

    .trouble-item p {
        font-size: 1.3rem !important;
        color: #555 !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        text-align: left !important;
        width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: keep-all;
        overflow-wrap: break-word;
        hyphens: none;
    }
    
    .trouble-section .section-title {
        padding-top: 1.2rem; /* 30%に減らす: 4rem → 1.2rem */
        padding-bottom: 0.6rem; /* 30%に減らす: 2rem → 0.6rem */
        color: #2c3e50 !important;
        text-align: center;
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .bg-left, .bg-right {
        display: none;
    }

    .scroll-circles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: hidden;
        z-index: -20;
    }

    .white-circle {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.8);
        transition: opacity 0.3s ease-out;
        will-change: transform, opacity;
    }

    /* 大サイズサークル */
    .circle-large {
        background: rgba(255, 255, 255, 0.9);
        z-index: -20;
    }

    .circle-1 {
        width: 156px;
        height: 156px;
        top: 5%;
        left: 5%;
        opacity: 0.95;
    }

    .circle-2 {
        width: 100px;
        height: 100px;
        top: 20%;
        right: 10%;
        opacity: 0.85;
    }

    .circle-3 {
        width: 110px;
        height: 110px;
        top: 40%;
        left: 15%;
        opacity: 0.9;
    }

    .circle-4 {
        width: 90px;
        height: 90px;
        top: 35%;
        right: 20%;
        opacity: 0.8;
    }

    .circle-5 {
        width: 95px;
        height: 95px;
        top: 25%;
        left: 82%;
        opacity: 0.88;
    }

    /* 中サイズサークル */
    .circle-medium {
        background: rgba(255, 255, 255, 0.7);
        z-index: -20;
    }

    .circle-6 {
        width: 70px;
        height: 70px;
        top: 10%;
        left: 40%;
        opacity: 0.75;
    }

    .circle-7 {
        width: 65px;
        height: 65px;
        top: 30%;
        left: 25%;
        opacity: 0.7;
    }

    .circle-8 {
        width: 75px;
        height: 75px;
        top: 35%;
        right: 35%;
        opacity: 0.8;
    }

    .circle-9 {
        width: 60px;
        height: 60px;
        top: 45%;
        left: 85%;
        opacity: 0.65;
    }

    .circle-10 {
        width: 68px;
        height: 68px;
        top: 55%;
        right: 45%;
        opacity: 0.72;
    }

    .circle-11 {
        width: 72px;
        height: 72px;
        top: 50%;
        right: 15%;
        opacity: 0.68;
    }

    .circle-12 {
        width: 63px;
        height: 63px;
        top: 8%;
        right: 30%;
        opacity: 0.75;
    }

    /* 小サイズサークル */
    .circle-small {
        background: rgba(255, 255, 255, 0.5);
        z-index: -20;
    }

    .circle-14 {
        width: 45px;
        height: 45px;
        top: 15%;
        left: 70%;
        opacity: 0.6;
    }

    .circle-15 {
        width: 40px;
        height: 40px;
        top: 25%;
        left: 80%;
        opacity: 0.55;
    }

    .circle-16 {
        width: 48px;
        height: 48px;
        top: 40%;
        left: 35%;
        opacity: 0.65;
    }

    .circle-17 {
        width: 42px;
        height: 42px;
        top: 50%;
        right: 25%;
        opacity: 0.58;
    }

    .circle-18 {
        width: 46px;
        height: 46px;
        top: 62%;
        left: 35%;
        opacity: 0.62;
    }

    .circle-19 {
        width: 44px;
        height: 44px;
        top: 68%;
        left: 22%;
        opacity: 0.6;
    }

    .circle-20 {
        width: 41px;
        height: 41px;
        top: 68%;
        left: 10%;
        opacity: 0.53;
    }

    .circle-21 {
        width: 47px;
        height: 47px;
        top: 18%;
        right: 15%;
        opacity: 0.63;
    }

    .circle-22 {
        width: 43px;
        height: 43px;
        top: 35%;
        left: 80%;
        opacity: 0.57;
    }

    .circle-23 {
        width: 49px;
        height: 49px;
        top: 82%;
        right: 55%;
    }

    /* 極小サイズサークル */
    .circle-tiny {
        background: rgba(255, 255, 255, 0.3);
        z-index: -20;
    }

    .circle-24 {
        width: 25px;
        height: 25px;
        top: 20%;
        left: 55%;
        opacity: 0.4;
    }

    .circle-25 {
        width: 22px;
        height: 22px;
        top: 35%;
        left: 50%;
        opacity: 0.35;
    }

    .circle-26 {
        width: 28px;
        height: 28px;
        top: 45%;
        right: 40%;
        opacity: 0.45;
    }

    .circle-27 {
        width: 24px;
        height: 24px;
        top: 48%;
        left: 28%;
        opacity: 0.38;
    }

    .circle-28 {
        width: 26px;
        height: 26px;
        top: 65%;
        right: 12%;
        opacity: 0.42;
    }

    .circle-29 {
        width: 23px;
        height: 23px;
        top: 75%;
        left: 75%;
        opacity: 0.37;
    }

    .circle-30 {
        width: 27px;
        height: 27px;
        top: 90%;
        left: 65%;
        opacity: 0.43;
    }

    .circle-31 {
        width: 25px;
        height: 25px;
        top: 2%;
        right: 20%;
        opacity: 0.4;
    }

    .circle-32 {
        width: 29px;
        height: 29px;
        top: 38%;
        left: 62%;
        opacity: 0.46;
    }

    .circle-33 {
        width: 24px;
        height: 24px;
        top: 55%;
        left: 45%;
        opacity: 0.39;
    }

    .circle-34 {
        width: 26px;
        height: 26px;
        top: 10%;
        left: 78%;
        opacity: 0.41;
    }

    .circle-35 {
        width: 22px;
        height: 22px;
        top: 78%;
        left: 12%;
        opacity: 0.36;
    }

    /* ナビゲーションアイテムの基本設定 */
    .nav-item {
        position: relative;
        display: flex;
        align-items: center;
    }

    .nav-link-main {
        font-family: 'Sawarabi Gothic', sans-serif;
        text-decoration: none;
        color: #2c3e50;
        font-weight: 300;
        font-size: 16px;
        transition: color 0.3s ease;
        white-space: nowrap;
        display: flex;
        align-items: center;
        height: 100%;
    }

    .nav-link-main:hover {
        color: #48CAE4;
    }

    /* デスクトップでのアコーディオン要素の非表示 */
    @media (min-width: 721px) {
        .accordion-toggle {
            display: none !important;
        }
        
        .accordion-content {
            display: none !important;
    }
    

    /* モバイルサイズでも基本は非表示 */
    .accordion-toggle {
        display: none;
    }

    .accordion-content {
        display: none;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            max-height: 300px;
            transform: translateY(0);
        }
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 削除：メインの480pxメディアクエリに統合済み */





/* 旧959px以下レイアウトは新体系(1023px以下)に統合済み - 削除 */

/* PC・タブレット大（960px以上）でモバイルCTAを非表示 */
/* 960px関連のメディアクエリは新体系に統合済み */





/* ===== 右カラムメッセージエリア ===== */
    .right-message-area {
    display: block;
    position: absolute !important;
    left: 30px;
    top: calc(15% - 40px);
    transform: none !important;
    width: 370px !important;
    z-index: 100 !important;
    margin-top: 0;
    color: #fff;
}

.right-message-area h2 {
    color: #fff !important;
}


.message-content {
    color: #fff;
}

.message-title {
    font-size: 25px;
    max-width: 100% !important;
    text-align: left;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-bottom: 10px;
}

.hero-transition-image {
    position: relative;
    z-index: 10;
}

.hero-transition-image img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom; /* 画像下の隙間を除去 */
    position: relative;
    z-index: 10;
}


/* テキスト要素のアニメーション */

/* 選択移行画像セクション */
.select-transition-section {
    position: relative;
    z-index: 2;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.select-transition-image img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom; /* 画像下の隙間を除去 */
}



/* ===== 疑似2カラムレイアウト ===== */
.layout-container.pseudo-two-column {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.layout-container.pseudo-two-column .bg-left {
    display: none; /* 左背景を非表示 */
}

.layout-container.pseudo-two-column .main-content {
    margin-left: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; /* 縦スクロール可能 */
    overflow-x: hidden; /* 横スクロール無効 */
    position: fixed; /* 固定配置 */
    top: 60px; /* ヘッダーの下に配置 */
    height: calc(100vh - 60px); /* ヘッダー分の高さを引く */
    z-index: 1;
}



/* 詳細表示カラム基底クラス（共通アニメーション） */
.detail-column-base {
    position: fixed;
    top: 60px; /* ヘッダーの下から開始 */
    left: 0;
    width: 100vw; /* 画面全体の幅 */
    height: calc(100vh - 60px); /* ヘッダー分の高さを除く */
    z-index: 999; /* ヘッダー（z-index: 1001）の下に表示 */
    transform: translateX(100%); /* 初期状態では画面右外に隠す */
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.detail-column-base.active {
    transform: translateX(0); /* 画面全体に表示 */
}

/* 詳細表示カラム（後方互換性のため継承） */
.detail-column {
    position: fixed;
    top: 60px; /* ヘッダーの下から開始 */
    left: 0;
    width: 100vw; /* 画面全体の幅 */
    height: calc(100vh - 60px); /* ヘッダー分の高さを除く */
    z-index: 999; /* ヘッダー（z-index: 1001）の下に表示 */
    transform: translateX(100%); /* 初期状態では画面右外に隠す */
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.detail-column.active {
    transform: translateX(0); /* 画面全体に表示 */
}

/* セクション別レイアウトクラス */
.detail-column-repair {
    /* repair専用のカスタマイズ */
}

.detail-column-repair .detail-features[data-layout="service-grid"] {
    padding: 2rem;
}

.detail-column-repair .detail-features[data-layout="service-grid"] h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}


.detail-column-reform {
    /* reform専用のカスタマイズ */
}

.detail-column-reform .detail-features[data-layout="simple-list"] {
    padding: 2rem;
}

.detail-column-reform .detail-features[data-layout="simple-list"] h2 {
    font-size: 2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(72, 202, 228, 0.1), rgba(72, 202, 228, 0.05));
    padding: 1rem;
    border-radius: 10px;
}

.detail-column-kyutouki {
    /* kyutouki専用のカスタマイズ */
}

.detail-column-kyutouki .detail-features[data-layout="simple-list"] {
    padding: 2rem;
}

.detail-column-kyutouki .detail-features[data-layout="simple-list"] h2 {
    font-size: 2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    border: 2px solid #48CAE4;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
}

.detail-column-cleaning {
    /* cleaning専用のカスタマイズ */
}

.detail-column-cleaning .detail-features[data-layout="service-grid"] {
    padding: 2rem;
}

.detail-column-cleaning .detail-features[data-layout="service-grid"] h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    padding: 1.5rem;
    border-radius: 15px;
}


.detail-column-vision {
    /* vision専用のカスタマイズ */
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.detail-column-vision .detail-header-prominent {
    background: url('images/vision/vision_BG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}




/* ヘッダースタイル */
.detail-header-prominent {
    text-align: center;
    padding: 3rem 2rem 2rem 2rem;
    background: linear-gradient(135deg, rgba(72, 202, 228, 0.1), rgba(72, 202, 228, 0.05));
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
}

.detail-header-prominent h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.detail-description-prominent {
    font-size: 1.3rem;
    font-weight: 700;
    color: #555;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.detail-header-minimal {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(72, 202, 228, 0.2);
    margin-bottom: 2rem;
}

.detail-header-minimal h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
    text-align: center;
}

.detail-header-standard {
    padding: 2rem 2rem 1.5rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.detail-header-standard h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #48CAE4;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.detail-header-standard p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* レイアウト別スタイル */
.detail-gallery[data-layout="service-grid"] .image-wrapper {
    margin-bottom: 2rem;
}

.detail-features[data-layout="service-grid"] .service-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.detail-features[data-layout="simple-list"] ul {
    list-style: none;
    padding: 0;
}

.detail-features[data-layout="simple-list"] li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(72, 202, 228, 0.05);
    border-left: 4px solid #48CAE4;
    border-radius: 8px;
}



/* 4. モバイル追加最適化 (768px以下) - タッチ操作・UI最適化 */
/* 注意：このスタイルはPC・タブレットの既存レイアウトには一切影響しません */
@media (max-width: 768px) {
    /* 基本レイアウトの最適化 */
    .layout-container {
        margin-top: 60px;
        flex-direction: column;
        min-height: auto;
    }
    
    .main-content {
        width: 100%;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .bg-left,
    .bg-right {
        display: none !important; /* モバイルでは背景画像を非表示（PC・タブレットには影響しない） */
    }
    
    /* ヘッダーの最適化 */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    /* セクション間の余白調整 */
    .section {
        padding: 2rem 1rem;
        margin: 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    /* カード型レイアウトの統一 */
    .trouble-item,
    .reason-item,
    .vision-item,
    .stat-item {
        margin-bottom: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .trouble-item:active,
    .reason-item:active,
    .vision-item:active,
    .stat-item:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    /* ボタンの最適化 */
    .cta-btn,
    .phone-btn,
    .form-btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 24px;
        margin: 0.5rem;
        display: inline-block;
        text-align: center;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    /* 画像の最適化 */
    img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    /* テキストの可読性向上 */
    p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }
    
    /* リストの最適化 */
    ul, ol {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }
    
    li {
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }
    
    /* 詳細ヘッダーの最適化 */
    .detail-header-prominent {
        padding: 2rem 1rem 1.5rem 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .detail-header-prominent h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .detail-description-prominent {
        font-size: 1.1rem;
        font-weight: 400;
        line-height: 1.6;
        color: #555;
    }
    
    .detail-header-standard {
        padding: 1.5rem 1rem 1rem 1rem;
        text-align: center;
    }
    
    .detail-header-standard h2 {
        font-size: 1.7rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    /* サービスグリッドの最適化 */
    .detail-features[data-layout="service-grid"] .service-items-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .service-item {
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease;
    }
    
    .service-item:active {
        transform: scale(0.98);
    }
    
    /* フローセクションの最適化 */
    .flow-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .flow-step {
        text-align: center;
        padding: 1rem;
        border-radius: 12px;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .flow-step img {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }
    
    /* ギャラリーの最適化 */
    .detail-gallery {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .detail-gallery img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    /* CTAセクションの最適化 */
    .detail-cta-section {
        text-align: left;
        padding: 2rem 1rem;
        margin: 2rem 0;
        background: linear-gradient(135deg, #48CAE4 0%, #0077BE 100%);
        border-radius: 16px;
        color: white;
    }
    
    .detail-cta-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        font-weight: 500;
    }
    
    .detail-cta-section p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        opacity: 0.9;
        text-align: left;
    }
    
    .detail-cta-btn {
        display: inline-block;
        min-height: 48px;
        padding: 0.75rem 1.5rem;
        margin: 0.5rem;
        background: white;
        color: #0077BE;
        text-decoration: none;
        border-radius: 24px;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    .detail-cta-btn:active {
        transform: scale(0.95);
        background: #f8f9fa;
    }
    
    /* ビジョンセクションの最適化 */
    .vision-section {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    .vision-section-title {
        font-size: 1.6rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .philosophy-items {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .philosophy-item {
        padding: 1.5rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .philosophy-content {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .philosophy-conclusion {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .philosophy-arrow {
        width: 24px;
        height: 24px;
    }
    
    .philosophy-category {
        font-size: 0.9rem;
        color: #0077BE;
        font-weight: 500;
    }
    
    /* 5角形チャートの最適化 */
    .pentagon-chart-container {
        position: relative;
        width: 100%;
        max-width: 300px;
        margin: 2rem auto;
        text-align: center;
    }
    
    .chart-frame,
    .chart-bad,
    .chart-good {
        width: 100%;
        height: auto;
        max-width: 250px;
    }
    
    .chart-labels {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .chart-label {
        position: absolute;
        font-size: 0.8rem;
        font-weight: 500;
        color: #0077BE;
    }
    
    /* 値観セクションの最適化 */
    .value-items-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .value-item-detailed {
        padding: 1.5rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
    
    .value-image {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
    }
    
    .value-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        color: #0077BE;
    }
    
    .value-list {
        text-align: left;
        list-style: none;
        padding: 0;
    }
    
    .value-list li {
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .value-list li:last-child {
        border-bottom: none;
    }
    
    /* 会社概要セクションの最適化 */
    .president-message {
        padding: 1.5rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 2rem;
    }
    
    .president-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .president-photos {
        text-align: center;
    }
    
    .president-photo {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .company-info-table {
        width: 100%;
        border-collapse: collapse;
        margin: 1rem 0;
    }
    
    .company-info-table td {
        padding: 0.75rem;
        border-bottom: 1px solid #eee;
        text-align: left;
    }
    
    .company-info-table td:first-child {
        font-weight: 500;
        color: #0077BE;
        width: 30%;
    }
    
    /* 営業所情報の最適化 */
    .office-areas {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .office-area h4 {
        font-size: 1.3rem;
        color: #0077BE;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .office-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .office-item {
        padding: 1rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .office-name {
        font-weight: 500;
        color: #0077BE;
        margin-bottom: 0.5rem;
    }
    
    .office-address {
        font-size: 0.9rem;
        line-height: 1.5;
        color: #666;
    }
    
    /* モバイル詳細モーダルの最適化 */
    .mobile-detail-modal {
        z-index: 2000;
    }
    
    .mobile-detail-content {
        top: 60px;
        height: calc(100vh - 60px);
        border-radius: 16px 16px 0 0;
    }
    
    .mobile-detail-header {
        padding: 1.5rem;
        border-bottom: 1px solid #eee;
        background: white;
        border-radius: 16px 16px 0 0;
    }
    
    .mobile-detail-body {
        padding: 1.5rem;
        height: calc(100% - 80px);
    }
    
    /* スワイプ操作の最適化 */
    .mobile-detail-content {
        touch-action: pan-y;
        user-select: none;
    }
    
    /* タッチフィードバックの改善 */
    .trouble-item,
    .reason-item,
    .vision-item,
    .stat-item,
    .service-item,
    .flow-step,
    .philosophy-item,
    .value-item-detailed,
    .president-message,
    .office-item {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* スクロールバーの最適化 */
    .mobile-detail-body::-webkit-scrollbar {
        width: 4px;
    }
    
    .mobile-detail-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
    
    .mobile-detail-body::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 2px;
    }
    
    .mobile-detail-body::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
}

.detail-modal {
    width: 100%;
    height: 100%;
    background: #fbfbf6;
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    overflow-y: hidden;
    overflow-x: visible;
    transform: translateX(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-column.active .detail-modal {
    transform: translateX(0);
}

.detail-modal-content {
    height: 100%;
    overflow-y: auto;
    overflow-x: visible;
    padding: 60px 30px 180px 30px; /* 上下左右により多くの余白を追加 */
    box-sizing: border-box;
    /* max-width: 1000px; スクロール範囲を全幅に拡張 */
    /* margin: 0 auto; 中央配置を子要素で実行 */
    /* スクロールバーを非表示 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Webkit系ブラウザ（Chrome, Safari, Opera）のスクロールバーを非表示 */
.detail-modal-content::-webkit-scrollbar {
    display: none;
}

.detail-header {
    display: none; /* フローティングボタンに置き換えるため非表示 */
}

/* フローティングフッターザブトン */
.detail-floating-footer {
    position: fixed;
    bottom: 80px; /* mobile-cta-tabsの高さ分上に移動 */
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
    backdrop-filter: blur(15px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    pointer-events: none;
}

/* フローティング戻るボタン */
.detail-floating-back-btn {
    position: fixed;
    bottom: 97px; /* mobile-cta-tabs(80px) + 17px = 97px */
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 56px;
    padding: 0 2rem;
    border-radius: 28px;
    background: linear-gradient(135deg, #48CAE4, #0077BE);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-family: 'Sawarabi Gothic', sans-serif;
    font-weight: 400;
    color: white;
    transition: all 0.3s ease;
}

.detail-floating-back-btn:hover {
    background: linear-gradient(135deg, #FF8C00, #FF6B35);
    color: white;
    box-shadow: 0 6px 30px rgba(255, 140, 0, 0.4);
    transform: translateX(-50%) scale(1.05);
}

/* PC（1024px以上）では元の位置に戻す */
@media (min-width: 1024px) {
    .detail-floating-footer {
        bottom: 0; /* 元の位置 */
    }
    
    .detail-floating-back-btn {
        bottom: 17px; /* 元の位置 */
    }
}

.detail-back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(72, 202, 228, 0.1);
    border: 1px solid rgba(72, 202, 228, 0.3);
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #2c3e50;
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1000; /* 確実に表示されるように */
}

.detail-back-btn:hover {
    background: rgba(72, 202, 228, 0.2);
    border-color: rgba(72, 202, 228, 0.5);
    color: #2c3e50;
    transform: translateX(-2px);
}

.detail-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #666;
}

.detail-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
    transform: scale(1.1);
}

.detail-content {
    padding: 0.25rem 2rem 2rem 2rem;
    font-family: 'Sawarabi Gothic', sans-serif;
    max-width: 1000px; /* コンテンツの最大幅を制限 */
    margin: 0 auto; /* 中央配置 */
}

/* YouTube動画埋め込み */
.detail-video-section {
    margin: 3rem 0 2rem 0;
    text-align: center;
    position: relative;
}

.detail-video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.detail-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
    .detail-video-container {
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    .detail-video-container {
        max-width: 95%;
    }
}

/* 詳細コンテンツのフェードインアニメーション */
.detail-content-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.detail-content-visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease;
}

.detail-content-hidden > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 子要素の初期隠し状態 */
.detail-content-hidden .detail-features > h3,
.detail-content-hidden .detail-features > ul {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* スクロール連動アニメーション用のクラス */
.detail-content-visible > * {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.detail-content h2 {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #48CAE4;
    padding-bottom: 0.5rem;
    font-weight: 500;
    text-align: center;
}

.detail-content p {
    font-family: 'Sawarabi Gothic', sans-serif;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    text-align: center;
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.detail-gallery img:first-child {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: none;
    transition: all 0.4s ease;
}

.detail-gallery img:first-child:hover {
    transform: none;
    box-shadow: none;
}

.detail-gallery img:not(:first-child) {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.detail-gallery img:not(:first-child):hover {
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.detail-features {
    margin: 1rem 0 3rem 0;
    padding: 2rem 0;
    position: relative;
}


.detail-features h2 {
    font-family: 'Sawarabi Gothic', sans-serif;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: center;
    font-size: 1.8rem;
    position: relative;
    padding: 0 3rem;
}






/* trouble-itemの拡張 */
.trouble-item h3 {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.43rem;
    font-weight: 400;
    color: #2c3e50;
    margin: 1rem 0 0.5rem 0;
    text-align: center;
}

.trouble-item p {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.17rem;
    font-weight: 300;
    color: #666;
    text-align: center;
    line-height: 1.4;
    margin: 0;
}



/* 疑似2カラム時のメインコンテンツスクロール無効化 */
.layout-container.pseudo-two-column {
    overflow: hidden;
}

.layout-container.pseudo-two-column .main-content {
    height: 100vh;
    overflow: hidden;
}


/* 詳細表示時の背景固定 */
.layout-container.pseudo-two-column .bg-right {
    pointer-events: none; /* 背景へのインタラクションを無効 */
}


/* 背景動画のスタイル */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.bg-video.active {
    opacity: 1;
}

.bg-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 2;
    pointer-events: none;
}

.bg-video-overlay.active {
    opacity: 1;
}

.bg-video-overlay-1 {
    background: linear-gradient(
        rgba(72, 202, 228, 0.3), 
        rgba(0, 119, 190, 0.3)
    );
}


/* スクロールバーのスタイリング */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #48CAE4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0077BE;
}


/* ===== 白マットサークル（スクロール連動） ===== */
.scroll-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -20;
}

.white-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    transition: opacity 0.3s ease-out;
    will-change: transform, opacity;
}

/* 大サイズサークル */
.circle-large {
    background: rgba(255, 255, 255, 0.9);
    z-index: -20;
}

.circle-1 {
    width: 156px;
    height: 156px;
    top: 5%;
    left: 5%;
    opacity: 0.95;
}

.circle-2 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 10%;
    opacity: 0.85;
}

.circle-3 {
    width: 110px;
    height: 110px;
    top: 40%;
    left: 15%;
    opacity: 0.9;
}

.circle-4 {
    width: 90px;
    height: 90px;
    top: 35%;
    right: 20%;
    opacity: 0.8;
}

.circle-5 {
    width: 95px;
    height: 95px;
    top: 25%;
    left: 82%;
    opacity: 0.88;
}

/* 中サイズサークル */
.circle-medium {
    background: rgba(255, 255, 255, 0.7);
    z-index: -20;
}

.circle-6 {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 40%;
    opacity: 0.75;
}

.circle-7 {
    width: 65px;
    height: 65px;
    top: 30%;
    left: 25%;
    opacity: 0.7;
}

.circle-8 {
    width: 75px;
    height: 75px;
    top: 35%;
    right: 35%;
    opacity: 0.8;
}

.circle-9 {
    width: 60px;
    height: 60px;
    top: 45%;
    left: 85%;
    opacity: 0.65;
}

.circle-10 {
    width: 68px;
    height: 68px;
    top: 55%;
    right: 45%;
    opacity: 0.72;
}

.circle-11 {
    width: 72px;
    height: 72px;
    top: 50%;
    right: 15%;
    opacity: 0.68;
}

.circle-12 {
    width: 63px;
    height: 63px;
    top: 8%;
    right: 30%;
    opacity: 0.75;
}

/* 小サイズサークル */
.circle-small {
    background: rgba(255, 255, 255, 0.5);
    z-index: -20;
}

.circle-14 {
    width: 45px;
    height: 45px;
    top: 15%;
    left: 70%;
    opacity: 0.6;
}

.circle-15 {
    width: 40px;
    height: 40px;
    top: 25%;
    left: 80%;
    opacity: 0.55;
}

.circle-16 {
    width: 48px;
    height: 48px;
    top: 40%;
    left: 35%;
    opacity: 0.65;
}

.circle-17 {
    width: 42px;
    height: 42px;
    top: 50%;
    right: 25%;
    opacity: 0.58;
}

.circle-18 {
    width: 46px;
    height: 46px;
    top: 62%;
    left: 35%;
    opacity: 0.62;
}

.circle-19 {
    width: 44px;
    height: 44px;
    top: 68%;
    left: 22%;
    opacity: 0.6;
}

.circle-20 {
    width: 41px;
    height: 41px;
    top: 68%;
    left: 10%;
    opacity: 0.53;
}

.circle-21 {
    width: 47px;
    height: 47px;
    top: 18%;
    right: 15%;
    opacity: 0.63;
}

.circle-22 {
    width: 43px;
    height: 43px;
    top: 35%;
    left: 80%;
    opacity: 0.57;
}

.circle-23 {
    width: 49px;
    height: 49px;
    top: 82%;
    right: 55%;
}

/* 極小サイズサークル */
.circle-tiny {
    background: rgba(255, 255, 255, 0.3);
    z-index: -20;
}

.circle-24 {
    width: 25px;
    height: 25px;
    top: 20%;
    left: 55%;
    opacity: 0.4;
}

.circle-25 {
    width: 22px;
    height: 22px;
    top: 35%;
    left: 50%;
    opacity: 0.35;
}

.circle-26 {
    width: 28px;
    height: 28px;
    top: 45%;
    right: 40%;
    opacity: 0.45;
}

.circle-27 {
    width: 24px;
    height: 24px;
    top: 48%;
    left: 28%;
    opacity: 0.38;
}

.circle-28 {
    width: 26px;
    height: 26px;
    top: 65%;
    right: 12%;
    opacity: 0.42;
}

.circle-29 {
    width: 23px;
    height: 23px;
    top: 75%;
    left: 75%;
    opacity: 0.37;
}

.circle-30 {
    width: 27px;
    height: 27px;
    top: 90%;
    left: 65%;
    opacity: 0.43;
}

.circle-31 {
    width: 25px;
    height: 25px;
    top: 2%;
    right: 20%;
    opacity: 0.4;
}

.circle-32 {
    width: 29px;
    height: 29px;
    top: 38%;
    left: 62%;
    opacity: 0.46;
}

.circle-33 {
    width: 24px;
    height: 24px;
    top: 55%;
    left: 45%;
    opacity: 0.39;
}

.circle-34 {
    width: 26px;
    height: 26px;
    top: 10%;
    left: 78%;
    opacity: 0.41;
}

.circle-35 {
    width: 22px;
    height: 22px;
    top: 78%;
    left: 12%;
    opacity: 0.36;
}

/* デスクトップでのアコーディオン要素の非表示 */
@media (min-width: 721px) {
        .accordion-toggle {
            display: none !important;
        }
        
        .accordion-content {
            display: none !important;
    }
    

    /* モバイルサイズでも基本は非表示 */
    .accordion-toggle {
        display: none;
    }

    .accordion-content {
        display: none;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            max-height: 300px;
            transform: translateY(0);
        }
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 削除：メインの480pxメディアクエリに統合済み */

/* タブレット・スマホ版詳細モーダル */
.mobile-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-detail-modal.active {
    pointer-events: all;
    opacity: 1;
}

.mobile-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-detail-modal.active .mobile-detail-overlay {
    opacity: 1;
}

.mobile-detail-content {
    position: absolute;
    top: 60px; /* ヘッダーの高さ分下に配置 */
    right: 0;
    width: 100%;
    height: calc(100vh - 60px); /* ヘッダー分の高さを引く */
    background: white;
    border-radius: 16px 16px 0 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    touch-action: pan-y;
    user-select: none;
}

.mobile-detail-modal.active .mobile-detail-content {
    transform: translateX(0);
}

.mobile-detail-header {
    position: relative;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-detail-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-detail-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: auto;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-detail-close:hover,
.mobile-detail-close:active {
    background: #f5f5f5;
    transform: scale(0.95);
}

.mobile-detail-body {
    padding: 1.5rem;
    overflow-y: auto;
    height: calc(100% - 80px);
    max-width: 100%;
    margin: 0;
    background: #f8f9fa;
}

/* 詳細モーダル内のコンテンツスタイル */
.detail-service-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.detail-service-header h2 {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

.detail-service-description {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
}

.detail-service-features {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-service-features h3 {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.3rem;
    color: #48CAE4;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

/* モバイルビジョンコンテンツの最適化 */
.mobile-vision-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
}

.mobile-vision-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-vision-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.mobile-subtitle {
    font-size: 1.1rem;
    color: #0077BE;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.mobile-highlight {
    font-size: 1.2rem;
    color: #48CAE4;
    font-weight: 600;
    text-align: center;
    margin: 1rem 0;
}

.mobile-philosophy-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #48CAE4;
}

.mobile-philosophy-item .philosophy-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.mobile-philosophy-item .philosophy-conclusion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mobile-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.mobile-flow-text {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

.mobile-flow-arrow {
    font-size: 1.5rem;
    color: #48CAE4;
    font-weight: bold;
}

.mobile-explanation {
    font-size: 1.1rem;
    color: #0077BE;
    text-align: center;
    font-weight: 500;
    margin: 1rem 0;
}

.mobile-action-guide {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.mobile-action-guide h4 {
    font-size: 1.2rem;
    color: #0077BE;
    margin-bottom: 0.75rem;
    text-align: center;
}

.mobile-action-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.mobile-action-list li {
    font-size: 0.9rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-formula {
    background: linear-gradient(135deg, #48CAE4 0%, #0077BE 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 1.5rem 0;
}

.mobile-formula p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.mobile-condition {
    font-size: 0.9rem;
    opacity: 0.9;
}

.mobile-value-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.mobile-value-title {
    font-size: 1.2rem;
    color: #0077BE;
    margin-bottom: 0.75rem;
    text-align: center;
    font-weight: 500;
}

.mobile-value-list {
    list-style: none;
    padding: 0;
}

.mobile-value-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
}

.mobile-value-list li:last-child {
    border-bottom: none;
}

.mobile-mission {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #48CAE4 0%, #0077BE 100%);
    border-radius: 12px;
    color: white;
}

.mobile-mission-main {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.mobile-mission-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.detail-service-cta {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #48CAE4 0%, #0077BE 100%);
    border-radius: 15px;
    color: white;
    margin-top: 2rem;
}

.detail-service-cta h3 {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.detail-service-cta p {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}



/* 480pxブレークポイント削除: 比率ベースで自動調整
   mobile-detail-contentとheaderのサイズは基本設定で対応 */



/* 詳細モーダルが表示されている間は確実にCTAタブを背面に */
.detail-column.active {
    z-index: 999 !important;
}

.detail-modal {
    z-index: 1000 !important;
}

.message-title h2 {
    color: #fff;
}

.hero-transition-section {
    position: relative;
    z-index: 10;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
}

/* 疑似2カラム時のright-message-area位置調整 */
.layout-container.pseudo-two-column .right-message-area {
    position: absolute !important;
    left: calc(clamp(600px, 60vw, 800px) + 20px) !important; /* 中央カラムの右端 + 20px */
    top: 10%;
    transform: none !important;
    right: auto !important;
    width: calc((100vw - clamp(600px, 60vw, 800px)) / 2 - 40px) !important; /* 右エリア幅から余白分を引く */
    z-index: 200 !important;
    margin-top: 0;
}

/* タブレット疑似2カラム時のright-message-area位置調整 */
@media (min-width: 1024px) and (max-width: 1499px) {
    .layout-container.pseudo-two-column .right-message-area {
        left: calc(clamp(600px, 60vw, 800px) + 20px) !important; /* 中央カラム幅+20px */
        width: calc(100vw - clamp(600px, 60vw, 800px) - 40px) !important; /* 右エリア幅から余白分を引く */
    }
}

/* 疑似2カラム時の右カラム固定 */
.layout-container.pseudo-two-column .bg-right {
    position: fixed !important;
    top: 0 !important;
    left: clamp(600px, 60vw, 800px) !important; /* 中央カラムの右端から開始 */
    right: 0 !important;
    width: calc((100vw - clamp(600px, 60vw, 800px)) / 2) !important; /* 残りの右エリア幅を使用 */
    height: 100vh !important;
    z-index: 100 !important;
    pointer-events: auto !important; /* インタラクションを有効に戻す */
}




/* サービスアイテムコンテナ - 2列グリッド */
.service-items-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* サービスアイテム */
.service-item {
    text-align: center;
}

/* サービスアイテム画像ラッパー */
.service-item-image-wrapper {
    max-width: 300px;
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: block;
    margin: 0 auto 1rem auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* サービスアイテム画像 */
.service-item-image {
    width: 100%;
}

/* ===========================
   ニュースギャラリーセクション
   =========================== */

.news-gallery-section {
    margin: 4rem 0;
    padding: 2rem 1rem;
    max-width: clamp(600px, 60vw, 800px);
    margin-left: auto;
    margin-right: auto;
}

.news-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto 3rem auto;
}

.news-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.news-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.news-item-content {
    padding: 1.5rem;
}

.news-item-category {
    display: inline-block;
    background: linear-gradient(135deg, #48CAE4, #0077BE);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: 'Sawarabi Gothic', sans-serif;
}

.news-item-title {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-date {
    font-size: 0.9rem;
    color: #666;
    font-family: 'Sawarabi Gothic', sans-serif;
    margin-bottom: 0.5rem;
}

.news-item-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Sawarabi Gothic', sans-serif;
}

.news-more-btn-container {
    text-align: center;
}

.news-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #48CAE4, #0077BE);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 202, 228, 0.3);
}

.news-more-btn:hover {
    background: linear-gradient(135deg, #0077BE, #48CAE4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 202, 228, 0.4);
}

.news-loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-family: 'Sawarabi Gothic', sans-serif;
}

/* ===== 採用情報セクション ===== */
.recruit-section {
    display: none !important;
}

.news-error {
    text-align: center;
    padding: 3rem;
    color: #e74c3c;
    font-family: 'Sawarabi Gothic', sans-serif;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-gallery-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 auto 2rem auto;
    }
    
    .news-item-content {
        padding: 1.2rem;
    }
    
    .news-item-title {
        font-size: 1rem;
    }
    
    .news-item-image {
        height: 150px;
    }
    
    .news-more-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

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

/* サービスアイテムタイトル */
.service-item-title {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 1rem 0 0.5rem 0;
}

/* サービスアイテム説明文 */
.service-item-description {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* 960pxブレークポイント削除: フォントサイズとスペーシングは比率ベースで自動調整
   CSS変数により自動的に適切なサイズに調整される */

@media (max-width: 600px) {
    .service-items-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .service-item-image-wrapper {
        max-width: 200px;
        height: 200px;
    }
    
    .service-item-title {
        font-size: 0.95rem;
    }
    
    .service-item-description {
        font-size: 0.8rem;
    }
}

/* タブレット大（960px-1049px）*/






/* レスポンシブ対応 */
@media (max-width: 1023px) {

}







/* 旧ビジョンマップ専用スタイル（無効化済み） */


/* 修正された内側シャドウ実装（ホバーなし） */
.detail-gallery .image-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 16px !important;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2) !important;
    transition: none;
    position: relative;
    display: block;
}

/* ホバーエフェクト完全削除 */
.detail-gallery .image-wrapper:hover {
    transform: none;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2) !important;
}

.detail-gallery .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: none !important;
    transition: none;
    display: block;
}

/* ビジョン専用スタイル（統合済み - 一般設定で対応） */

/* 旧スタイル削除済み - image-wrapper方式に統一 */


/* 修理サービス専用: detail-features内のimage-wrapperにも内側シャドウを適用 */
.detail-features .image-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 16px !important;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2) !important;
    transition: none;
    position: relative;
    display: block;
}

.detail-features .image-wrapper:hover {
    transform: none;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2) !important;
}

.detail-features .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: none !important;
    transition: none;
    display: block;
}


/* 中央カラムの英語ワード用フォント設定 */
.main-content *[lang="en"],
.main-content .english-text {
    font-family: "Noto Sans", sans-serif !important;
}


/* ビジョン会社理念セクションのスタイル */


/* ===========================
   ビジョンマップ詳細モーダル専用スタイル
   =========================== */



/* 経営理念スタイル */
.philosophy-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.philosophy-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border-left: none;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

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

.philosophy-content {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0;
    background: #ffffff;
    padding: 1.5rem;
    text-align: left;
    width: 68%;
    flex-shrink: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 新しいアニメーションシステム - 初期状態 */
.philosophy-arrow {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-category {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* アニメーション開始後のスタイル */
.philosophy-item.animate .philosophy-content {
    opacity: 1;
}

.philosophy-item.animate-arrow .philosophy-arrow {
    opacity: 1;
    transform: translateX(0);
}

.philosophy-item.animate-category .philosophy-category {
    opacity: 1;
}

.philosophy-conclusion {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    align-self: center;
    width: 32%;
    flex-shrink: 0;
    transform: translateY(-13px) translateX(-20px);
    color: #0077BE;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.philosophy-item.animate-conclusion .philosophy-conclusion {
    opacity: 1 !important;
    transform: translateY(-13px) translateX(0) !important;
}

.philosophy-arrow {
    width: 36px;
    height: 36px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-category {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2563eb;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-category-multi {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}


.philosophy-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #28a745;
    margin-bottom: 0.8rem;
}

/* 5方向にちょうどいい */
.five-directions-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: #0077BE;
    text-align: center;
    margin-bottom: 1.5rem;
    background-color: yellow;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    margin-left: auto;
    margin-right: auto;
}

.five-directions-explanation {
    text-align: center;
    line-height: 1.8;
    margin-top: 7rem; /* pentagon-chart-containerとの間隔を確保 */
}

.all-happy {
    font-weight: 500;
    color: #e74c3c;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* 5角形レーダーチャート（画像ベース） */
.pentagon-chart-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    margin-top: calc(2rem + 20px);
    padding: 1rem;
    width: 100%;
    max-width: 400px;
    height: 400px; /* 高さを固定してレイアウト崩れを防ぐ */
    margin-left: auto;
    margin-right: auto;
}

.pentagon-chart-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    max-width: 400px;
}

/* 外枠（常時表示） */
.pentagon-chart-container .chart-frame {
    z-index: 3;
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* いびつな5角形（初期状態：表示） */
.pentagon-chart-container .chart-bad {
    z-index: 2;
    opacity: 1;
    transform: translate(calc(-50% + 17px), calc(-52% + 53px)) scale(0.6);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 正5角形（初期状態：非表示） */
.pentagon-chart-container .chart-good {
    z-index: 3;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ホバー時または自動変形時の状態 */
.pentagon-chart-container:hover .chart-bad,
.pentagon-chart-container.auto-transform .chart-bad {
    opacity: 0;
}

.pentagon-chart-container:hover .chart-good,
.pentagon-chart-container.auto-transform .chart-good {
    opacity: 1;
}

/* ALL Happy画像の表示 */
.pentagon-chart-container:hover .chart-all-happy,
.pentagon-chart-container.auto-transform .chart-all-happy {
    opacity: 1;
}

/* 正5角形表示後のホバー時：いびつな形に戻る */
.pentagon-chart-container.auto-transform:hover .chart-bad {
    opacity: 1;
}

.pentagon-chart-container.auto-transform:hover .chart-good {
    opacity: 0;
}

.pentagon-chart-container.auto-transform:hover .chart-all-happy {
    opacity: 0;
}

/* ラベル */
.chart-labels {
    position: absolute;
    top: 35px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    opacity: 1; /* 常時表示 */
}

.chart-label {
    position: absolute;
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
    text-align: center;
    white-space: nowrap;
}

/* ラベルの位置調整（外枠の外側に余裕を持って配置） */
.label-customer {
    top: calc(-8% - 35px);
    left: 50%;
    transform: translateX(-50%);
}

.label-employee {
    top: calc(20% + 10px);
    right: -12%;
    transform: translateX(50%);
}

.label-company {
    bottom: -5%;
    right: 15%;
    transform: translateX(50%);
}

.label-society {
    bottom: -5%;
    left: 15%;
    transform: translateX(-50%);
}

.label-future {
    top: calc(20% + 10px);
    left: -12%;
    transform: translateX(-50%);
}

/* ALL Happy画像 */
.pentagon-chart-container .chart-all-happy {
    position: absolute;
    top: calc(10% - 100px + 20px + 20px) !important;
    left: calc(10% - 50px - 5px - 5px) !important;
    z-index: 5;
    opacity: 0;
    width: 200px !important;
    height: auto;
    transform: translate(0, 0) !important;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



/* 回転アニメーション */
@keyframes rotate-parts1 {
    from { transform: translate(-50%, -50%) scale(1.07) rotate(0deg); }
    to { transform: translate(-50%, -50%) scale(1.07) rotate(360deg); }
}

@keyframes rotate-parts2 {
    from { transform: translate(-50%, -50%) scale(1.07) rotate(0deg); }
    to { transform: translate(-50%, -50%) scale(1.07) rotate(360deg); }
}

/* VALUE画像アニメーション */
@keyframes valueImageFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes valueImageFloat {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-5px); 
    }
}

/* すごくいい説明 - 新レイアウト */
.sugokuii-new-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    margin: 1.5rem 0;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.center-column {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-arrow {
    z-index: 1;
    width: 100%;
    height: auto;
    max-width: 200px;
}

.overlay-text {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: auto;
}

.top-image, .bottom-image {
    width: 100%;
    height: auto;
    max-width: 200px;
}

.sugokuii-explanation {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-top: 1rem;
}

/* 行動指針 */
.action-guide-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

.action-guide-images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    min-height: 480px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.action-guide-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.action-guide-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.action-guide-left {
    background: #FFE4B5;
    border-radius: 15px;
    padding: 27px;
    min-height: 541px;
}

.action-guide-right {
    background: #E0F6FF;
    border-radius: 15px;
    padding: 27px;
    min-height: 541px;
}

.action-guide-image-stack {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.action-guide-image-top {
    width: 100%;
    height: 45%;
    object-fit: contain;
    border-radius: 10px;
    padding: 10px;
}

.action-guide-image-bottom {
    width: 100%;
    height: 45%;
    object-fit: contain;
    border-radius: 10px;
    transform: scale(1.44) translateY(20px);
}

.action-guide-plus {
    font-size: 6rem;
    font-weight: bold;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.action-guide-equals {
    font-size: 6rem;
    font-weight: bold;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0.5rem auto;
    transform: rotate(90deg);
}

.action-guide-result-button {
    background: #2c3e50;
    border-radius: 20px;
    padding: 20px 40px;
    margin: 2rem auto;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-guide-result-button:hover {
    transform: translateY(-2px);
}

.result-top,
.result-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.result-image-top,
.result-image-bottom {
    height: 50px;
    object-fit: contain;
}

.action-guide-formula {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 8px;
    border: 2px solid #ffc107;
}

.formula-condition {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* VALUEセクション */
.value-items-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.4rem;
}

.value-item-detailed {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border-left: none;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.value-title {
    display: none;
}

.value-list {
    list-style: none;
    padding: 0;
    text-align: left;
    flex: 2;
    line-height: 2.16;
}

.value-list li {
    padding: 0;
    position: relative;
    font-size: 1.43em;
}

.value-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.value-image {
    max-width: 240%;
    max-height: 360px;
    object-fit: contain;
    opacity: 1;
    transform: translateY(0);
    will-change: transform;
    animation: valueImageFloating 4s ease-in-out infinite;
}

/* value-image 浮遊アニメーション */
@keyframes valueImageFloating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 個別画像の差別化アニメーション */
@keyframes hottoFloating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(clamp(-8px, -1.2vw, -15px)); /* 比率ベース浮遊幅 */
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes zuttoFloating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(clamp(-6px, -1vw, -12px)); /* 比率ベース浮遊幅 */
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes wakuwakuFloating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(clamp(-10px, -1.4vw, -18px)); /* 比率ベース浮遊幅 */
    }
    100% {
        transform: translateY(0px);
    }
}

/* 個別画像クラス */
.value-image.hotto {
    animation: hottoFloating 4s ease-in-out infinite;
}

.value-image.zutto {
    animation: zuttoFloating 5s ease-in-out infinite 0.5s;
}

.value-image.wakuwaku {
    animation: wakuwakuFloating 3.5s ease-in-out infinite 1s;
}

/* 1049pxブレークポイント削除: 比率ベースアニメーションで自動対応 */

/* パフォーマンス最適化：prefers-reduced-motion対応 */
@media (prefers-reduced-motion: reduce) {
    .value-image {
        animation: none;
    }
    
    .value-image.hotto,
    .value-image.zutto,
    .value-image.wakuwaku {
        animation: none;
        transform: translateY(0);
    }
}

.value-list-title {
    font-weight: bold;
    color: #0076C5;
    font-size: 1.2em;
    margin-bottom: 0.5rem;
}

/* MISSIONセクション（デスクトップ版 - 削除予定） */
.mission-statement-desktop {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 12px;
    color: white;
}

.mission-main-desktop {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.mission-description-desktop {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* 新しい画像ベースMISSIONセクション */
.mission-image-section {
    position: relative;
    width: 100%;
    height: 450px;
    margin: 2rem 0;
    overflow: hidden;
}

/* 背景画像レイヤー */
.mission-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/vision/4519414_s.png');
    background-size: contain;
    background-position: center 30%;
    background-repeat: no-repeat;
    z-index: 1;
}


/* コンテンツレイヤー */
.mission-content-layer {
    position: absolute;
    top: 0;
    left: -30px;
    width: calc(100% + 60px);
    height: 100%;
    z-index: 2;
}

/* MISSION ロゴ */
.mission-logo {
    position: absolute;
    top: 20px;
    left: 80px; /* コンテナ拡張分30px+元の50px調整 */
    max-width: 500px;
    max-height: 140px;
    object-fit: contain;
}

.sugokuii-logo {
    position: absolute;
    top: 20px;
    right: 49px; /* コンテナ拡張分30px+元の19px調整 */
    max-width: 420px;
    max-height:126px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(000,000,000,0.5));
}




/* ===========================
   モバイル版ビジョンマップスタイル
   =========================== */



/* モバイル経営理念 */
.mobile-philosophy-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 1rem;
    border-left: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* モバイル版アニメーション */
.mobile-philosophy-item .philosophy-content {
    font-size: 1.1rem;
    background: #ffffff;
    padding: 1rem;
    text-align: left;
    width: 68%;
    flex-shrink: 0;
    line-height: 1.5;
}

.mobile-philosophy-item .philosophy-arrow {
    width: 30px;
    height: 30px;
}

.mobile-philosophy-item .philosophy-conclusion {
    width: 32%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    align-self: center;
    transform: translateY(-13px) translateX(-20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-philosophy-item.animate-conclusion .philosophy-conclusion {
    opacity: 1 !important;
    transform: translateY(-13px) translateX(0) !important;
}

.mobile-philosophy-item .philosophy-category {
    font-size: 2rem;
}

.mobile-philosophy-item .philosophy-category-multi {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.mobile-philosophy-item 
.mobile-philosophy-item h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #28a745;
    margin-bottom: 0.5rem;
}

/* モバイル用サブタイトル */
.mobile-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: #0077BE;
    text-align: center;
    margin-bottom: 1rem;
}

.mobile-highlight {
    font-weight: 500;
    color: #e74c3c;
    text-align: center;
    margin-top: 1rem;
}



/* モバイルフロー */
.mobile-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.mobile-flow-text {
    background: #48CAE4;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.mobile-flow-arrow {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0077BE;
}

.mobile-explanation {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* モバイル行動指針 */
.mobile-action-guide {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 1rem;
}

.mobile-action-guide h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    text-align: center;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
}

.mobile-action-list {
    list-style: none;
    padding: 0;
}

.mobile-action-list li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 1.2rem;
}

.mobile-action-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 0.8rem;
}

.mobile-formula {
    text-align: center;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 6px;
    border: 1px solid #ffc107;
    margin-top: 1rem;
}

.mobile-condition {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

/* モバイルVALUE */
.mobile-value-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 1rem;
    border-left: none;
}

.mobile-value-title {
    font-size: 1rem;
    font-weight: 500;
    color: #48CAE4;
    margin-bottom: 0.8rem;
    text-align: center;
}

.mobile-value-list {
    list-style: none;
    padding: 0;
}

.mobile-value-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 1.5rem;
}

.mobile-value-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #48CAE4;
    font-weight: bold;
}

/* モバイルMISSION */
.mobile-mission {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 8px;
    color: white;
}

.mobile-mission-main {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.mobile-mission-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   レスポンシブ対応
   =========================== */

@media (max-width: 1023px) {
    .action-guide-images-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .action-guide-plus {
        font-size: 4rem;
        width: 60px;
        height: 60px;
        margin: 0.5rem 0;
    }
    
    .action-guide-equals {
        font-size: 4rem;
        width: 60px;
        height: 60px;
        margin: 0.25rem auto;
    }
    
    .action-guide-result-button {
        padding: 15px 20px;
        margin: 1rem auto;
        width: 100%;
        max-width: none;
        gap: 10px;
    }
    
    .result-image-top,
    .result-image-bottom {
        height: 35px;
    }
    
    .action-guide-image-stack {
        height: 300px;
    }
    

    
    /* モバイル版philosophy要素アニメーション調整 */
    .philosophy-content {
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* フェードインのみ高速化 */
    }
    
    .philosophy-arrow {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* 高速化 */
    }
    
    .philosophy-category {
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* フェードインのみ高速化 */
    }
    
    /* モバイル版レーダーチャート調整 */
    .pentagon-chart-container {
        margin: 1.5rem 0;
        padding: 0.5rem;
        max-width: 320px;
        height: 320px; /* モバイル用の高さ調整 */
    }
    
    .pentagon-chart-container img {
        max-width: 320px;
    }
    
    .chart-frame,
    .chart-bad,
    .chart-good {
        transition-duration: 0.8s; /* モバイル版のトランジション調整 */
    }
    
    .chart-label {
        font-size: 12px;
    }
    
    /* モバイル版ラベル位置調整（外枠外側に配置） */
    /* 新しい順番: お客様 → 社員 → 会社 → 社会 → 未来 */
    .label-customer {
        top: -10%;
    }
    
    .label-employee {
        top: 18%;
        right: -15%;
    }
    
    .label-company {
        bottom: -8%;
        right: 12%;
    }
    
    .label-society {
        bottom: -8%;
        left: 12%;
    }
}







/* モバイル対応 */
@media (max-width: 768px) {
    .label-future {
        top: 18%;
        left: -15%;
    }
    
    .sugokuii-flow {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .mission-main {
        font-size: 1.4rem;
    }
}

/* 480pxブレークポイント削除: mobile-mission-mainのフォントサイズは比率ベースで自動調整 */

/* 詳細モーダル内のサービス別スタイリング */
/* vision以外のサービスではカードデザインを無効化してプレーンなリスト形式にする */

/* repair, reform, kyutouki, cleaningサービスのカードデザイン無効化 */
.detail-features[data-service="repair"] .service-items-container .service-item,
.detail-features[data-service="reform"] .service-items-container .service-item,
.detail-features[data-service="kyutouki"] .service-items-container .service-item,
.detail-features[data-service="cleaning"] .service-items-container .service-item {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0e6ed;
}

/* 画像ラッパーのカードデザイン無効化 */
.detail-features[data-service="repair"] .image-wrapper,
.detail-features[data-service="reform"] .image-wrapper,
.detail-features[data-service="kyutouki"] .image-wrapper,
.detail-features[data-service="cleaning"] .image-wrapper {
    box-shadow: none;
    border-radius: 8px;
    background: transparent;
}

.detail-features[data-service="repair"] .service-item-image-wrapper,
.detail-features[data-service="reform"] .service-item-image-wrapper,
.detail-features[data-service="kyutouki"] .service-item-image-wrapper,
.detail-features[data-service="cleaning"] .service-item-image-wrapper {
    box-shadow: none;
}

/* vision以外のサービスでは通常のリストスタイルを適用 */
.detail-features[data-service="repair"] ul,
.detail-features[data-service="reform"] ul,
.detail-features[data-service="kyutouki"] ul,
.detail-features[data-service="cleaning"] ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin: 1rem 0;
}

.detail-features[data-service="repair"] li,
.detail-features[data-service="reform"] li,
.detail-features[data-service="kyutouki"] li,
.detail-features[data-service="cleaning"] li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* vision以外のサービスのホバーエフェクト無効化 */
.detail-features[data-service="repair"] .service-item:hover,
.detail-features[data-service="reform"] .service-item:hover,
.detail-features[data-service="kyutouki"] .service-item:hover,
.detail-features[data-service="cleaning"] .service-item:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

/* ===========================
   お問合せからの流れセクション
   =========================== */

.detail-flow-section {
    margin: 3rem 0;
    padding: 2rem 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.detail-flow-section h2 {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.8rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.flow-container {
    display: grid;
    grid-template-columns: repeat(3, 280px);
    grid-template-rows: auto auto;
    gap: 2rem 1.5rem;
    max-width: 888px; /* 280px×3 + 1.5rem×2 = 888px */
    margin: 0 auto;
    position: relative;
    justify-items: center;
    align-items: start;
}

/* 三角矢印を非表示 */
.flow-step::after {
    display: none !important;
}

.flow-step {
    width: 100%;
    height: auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: flowFadeInUp 0.6s ease-out forwards;
    display: block;
    position: relative;
}

/* EXステップの特別スタイリング削除 */

.flow-step img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: block;
}

.flow-step:hover img {
    transform: scale(1.08);
}

/* 矢印・ブレーク要素（グリッドレイアウトでは疑似要素使用） */

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

@keyframes flowArrowFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ヒーローセクション用アニメーション */
@keyframes slideCarousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* リフォーム詳細モーダル - ヒーローセクション（横幅いっぱい） */
.detail-hero-section {
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
    z-index: 1;
    height: 400px;
}

/* タイトル削除により不要
.detail-hero-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 600;
    position: relative;
    z-index: 2;
}
*/

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
}

.hero-slides-container {
    display: flex;
    height: 100%;
    animation: slideCarousel 52s infinite linear;
    gap: 2rem;
}

.hero-slide {
    flex: 0 0 auto;
    height: 100%;
    width: auto;
    opacity: 1;
}

.hero-slide img {
    height: 100%;
    width: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

/* スライドカルーセル用のシームレスループ */

/* タブレット対応 */
@media (max-width: 1024px) {
    .detail-hero-section {
        height: 320px;
    }
    
    .hero-slideshow {
        height: 100%;
        max-width: 100%;
    }
    
    .hero-slides-container {
        animation: slideCarousel 52s infinite linear;
        gap: 1.5rem;
    }
}

/* モバイル対応 */
@media (max-width: 1023px) {
    .detail-hero-section {
        height: 250px;
        padding: 0;
    }
    
    .hero-slideshow {
        height: 100%;
        max-width: 100%;
    }
    
    .hero-slides-container {
        animation: slideCarousel 52s infinite linear;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .detail-hero-section {
        height: 220px;
    }
    
    .hero-slideshow {
        height: 100%;
    }
    
    .hero-slides-container {
        gap: 0.8rem;
    }
}

/* EXステップの特別スタイリング削除 */

/* レスポンシブ対応 */
@media (max-width: 1024px) and (min-width: 770px) {
    .mobile {
        display: none;
    }
    .flow-container {
        grid-template-columns: repeat(3, 200px);
        grid-template-rows: auto auto;
        max-width: 640px; /* 200px×3 + 1rem×2 = 640px */
        gap: 1.5rem 1rem;
        align-items: start;
    }

    /* カード風の見た目を解除 */
    .detail-flow-section {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }
    
    .flow-step {
        width: 100%;
        height: auto;
    }
    
    /* 矢印は非表示 */
    
    .detail-flow-section h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 769px) and (min-width: 621px) {
    .pc {
        display: none;
    }
    .flow-container {
        grid-template-columns: repeat(2, 220px);
        grid-template-rows: repeat(3, auto);
        max-width: 460px; /* 220px×2 + 1rem = 460px */
        gap: 1rem 0.8rem;
        justify-items: center;
        align-items: start;
    }

    /* カード風の見た目を解除 */
    .detail-flow-section {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }
    .detail-flow-section .flow-step {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
    
    .flow-step {
        width: 100%;
        height: auto;
    }
    
    /* 矢印は非表示 */
    
    .detail-flow-section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 620px) {
    .pc {
        display: none;
    }
    .flow-container {
        display: grid;
        grid-template-columns: 280px;
        grid-template-rows: repeat(6, auto);
        gap: 2rem;
        max-width: 280px;
        justify-items: center;
        align-items: start;
    }

    /* カード風の見た目を解除 */
    .detail-flow-section {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }
    .detail-flow-section .flow-step {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
    
    .flow-step {
        width: 100%;
        height: auto;
    }
    
    /* 矢印は非表示 */
    
    .detail-flow-section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .pc {
        display: none;
    }
    .detail-flow-section {
        padding: 1.5rem 0.8rem;
        margin: 2rem 0;
    }
    
    .flow-container {
        grid-template-columns: 260px;
        grid-template-rows: repeat(6, auto);
        max-width: 260px;
        align-items: start;
    }
    
    .flow-step {
        width: 100%;
        height: auto;
    }
    
    .flow-step:nth-child(1)::after,
    .flow-step:nth-child(2)::after,
    .flow-step:nth-child(3)::after,
    .flow-step:nth-child(4)::after,
    .flow-step:nth-child(5)::after {
        font-size: 3.2rem;
        left: calc(50% + 30px);
        bottom: calc(-0.8rem + 30px);
        transform: translateX(-50%) translateY(-50%);
        z-index: 100;
    }
}
