* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header and navigation typography normalization */
.header, .nav {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav, .nav a, .nav-items li a, .lang-btn, .contact-btn {
    color: #fff; /* ensure contrast on colored nav background */
}

.nav a, .nav-items li a {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.lang-btn, .info-btn {
    font-size: 13px;
    font-weight: 500;
}

.contact-note, .branch-label, .branch-number {
    color: #222;
}

/* Prevent inherited transform/scale from affecting text rendering */
.nav * {
    -webkit-font-smoothing: antialiased !important;
    transform: none !important;
}

/* Apply Sarabun only for Thai pages */
html[lang="th"], html[lang="th"] body {
    font-family: 'Sarabun', 'Noto Sans Thai', 'Segoe UI', Tahoma, sans-serif;
}

/* Header */
.header {
    background-color: #f8f9fa;
    padding: 12px 0; /* add vertical breathing room under logo */
    border-bottom: 1px solid #ddd;
}

.header-top {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center; /* 中央寄せ */
    align-items: center;
    padding: 0 10px; /* .main-content の左右10pxと揃えてヒーローのツラに合わせる */
    min-height: 66px;
    gap: 16px;
    box-sizing: border-box;
    overflow-x: visible;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 0; /* 左寄せ要因を除去 */
}

.logo-img {
    width: 110px;
    height: auto;
    display: block;
    margin: 0;
}

/* モバイル用ロゴの初期状態は非表示（PCで非表示） */
.logo.mobile-logo {
    display: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    margin: 0 8px 0 0;
    flex-wrap: nowrap;
}

.contact-note {
    font-size: 12.5px;
    color: #555;
    line-height: 1.4;
    white-space: nowrap;
}

.contact-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
}

.branch-label {
    font-size: 13.5px;
    font-weight: 500;
    color: #1976d2;
    margin-right: 4px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.branch-number {
    font-size: 17px;
    font-weight: bold;
    color: #222;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 16px;
}

.lang-row {
        display: flex;
        align-items: center;
        gap: 10px;
}

.info-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 7px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fff;
        color: #333;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        transition: all .2s ease;
        white-space: nowrap;
}
.info-btn:hover { color: #1976d2; border-color: #1976d2; background: #f0f4fa; }
.info-btn.work-with-us-btn { border-color:#ffc107; background:#fff8e1; }
.info-btn.work-with-us-btn:hover { background:#ffe8a3; border-color:#ffb300; color:#8a5b00; }

@media (max-width: 1200px) and (min-width: 901px) {
    .lang-row { gap: 8px; }
    .info-btn { padding: 6px 10px; font-size: 12.5px; }
}

@media (max-width: 900px) {
    .mobile-language-switcher { gap: 8px; }
    .mobile-language-switcher .info-btn { order: -1; }
  
        /* Mobile: force specific slide paragraph to break into three lines */
        .slide-content p .mb-break {
            display: block; /* force line break */
            width: 100%;
            height: 0; /* invisible spacer */
            line-height: 0;
        }
  
        .slide-content p .mb-line {
            display: inline-block; /* keep the first segment together */
            white-space: normal;
        }
  
}

/* Slide text variants: desktop by default, mobile overrides */
.slide-text-mobile { display: none; }
.slide-text-desktop { display: block; }

@media (max-width: 900px) {
    .slide-text-desktop { display: none; }
    .slide-text-mobile { display: block; }
    .slide-text-mobile { line-height: 1.3; }
}

/* 言語切替の下にCTAボタンを縦配置 */
.lang-and-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.lang-and-cta .contact-buttons { margin-left: 0; }
.lang-and-cta .lang-row { width: 100%; display:flex; align-items:center; justify-content:center; }
.lang-and-cta .cta-row { width:100%; display:flex; align-items:center; justify-content:center; gap:12px; }
@media (max-width:900px){
    .lang-and-cta .cta-row { flex-wrap:wrap; }
}

.sns-buttons {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    justify-content: center;
}
.sns-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    background: #eee;
    color: #333;
    transition: all 0.3s;
    min-width: 90px;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.10);
    cursor: pointer;
}
.sns-btn.line {
    background: #00c300;
    color: #fff;
}
.sns-btn.line:hover {
    background: #009900;
    color: #fff;
}
.sns-btn.instagram {
    background: linear-gradient(45deg, #fd1d1d, #833ab4);
    color: #fff;
}
.sns-btn.instagram:hover {
    background: linear-gradient(45deg, #833ab4, #fd1d1d);
    color: #fff;
}
.sns-btn.facebook {
    background: #1877f3;
    color: #fff;
}
.sns-btn.facebook:hover {
    background: #145db2;
    color: #fff;
}
/* デスクトップの言語/CTA下にSNSを置いた時の中央寄せ */
.lang-and-cta .sns-buttons { margin-top: 6px; }

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 72px;
    justify-content: center;
}

.lang-btn.active {
    background: linear-gradient(45deg, rgb(73,176,223), #4ecdc4);
    color: white;
    border-color: rgb(73,176,223);
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.lang-btn .flag {
    font-size: 16px;
    line-height: 1;
}

.lang-btn .lang-text {
    font-size: 12px;
    white-space: nowrap;
}

/* Normalize qTranslate/qTranslate X generated switcher markup */
.qtrans-switcher,
.qtrans-switcher-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qtrans-switcher ul,
.qtrans-switcher-mobile ul {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.qtrans-switcher li,
.qtrans-switcher-mobile li { display: block; }

.qtrans-switcher a,
.qtrans-switcher-mobile a,
.qtrans-switcher li a,
.qtrans-switcher-mobile li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
}

.qtrans-switcher a:hover,
.qtrans-switcher-mobile a:hover,
.qtrans-switcher li a:hover,
.qtrans-switcher-mobile li a:hover {
    background: #f0f4fa;
    color: #1976d2;
}

/* active state mapping to existing .lang-btn.active */
.qtrans-switcher a.active,
.qtrans-switcher-mobile a.active,
.qtrans-switcher li.active a,
.qtrans-switcher-mobile li.active a {
    background: linear-gradient(45deg, rgb(73,176,223), #4ecdc4);
    color: #fff;
    border-color: rgb(73,176,223);
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

/* More resilient rules: prevent plugin output from breaking header layout */
.language-switcher,
.mobile-language-switcher {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* If plugin outputs a select dropdown */
.language-switcher select,
.mobile-language-switcher select {
    display: inline-block !important;
    vertical-align: middle;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    min-width: auto;
}

/* If plugin outputs a form wrapper, keep it inline */
.language-switcher form,
.mobile-language-switcher form {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0;
}

/* Ensure list-based output stays horizontal and doesn't wrap */
.language-switcher ul,
.mobile-language-switcher ul,
.qtrans-switcher ul,
.qtrans-switcher-mobile ul {
    display: flex !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    flex-wrap: nowrap !important;
}

/* Prevent plugin items from becoming full-width blocks */
.language-switcher li,
.mobile-language-switcher li,
.qtrans-switcher li,
.qtrans-switcher-mobile li {
    display: inline-block !important;
}

/* Small-screen tweak: allow wrapping if space is tight but keep buttons compact */
@media (max-width: 480px) {
    .language-switcher,
    .mobile-language-switcher {
        gap: 6px;
    }
    .language-switcher a,
    .language-switcher select,
    .mobile-language-switcher a,
    .mobile-language-switcher select {
        padding: 6px 8px;
        font-size: 13px;
    }
}


.contact-buttons {
    display: flex;
    gap: 10px;
    margin-left: 8px;
}

.contact-btn {
    padding: 10px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 180px; /* 折り返し防止 */
    text-align: center;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

/* 小さな丸ロゴのSNSアイコン */
.sns-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: inline-block;
        background: #eee;
        position: relative;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: transform .2s ease, box-shadow .2s ease;
}
.sns-icon::before { /* 中央のロゴ（SVGマスク） */
        content: '';
        position: absolute;
        inset: 0;
        margin: auto;
        width: 18px;
        height: 18px;
        background: #fff;
}
.sns-icon.fb { background: #1877f3; }
.sns-icon.fb::before { mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ffffff" d="M22 12a10 10 0 1 0-11.6 9.9v-7h-2.4V12h2.4V9.8c0-2.4 1.4-3.8 3.6-3.8 1 0 2 .2 2 .2v2.2h-1.1c-1.1 0-1.5.7-1.5 1.4V12h2.6l-.4 2.9h-2.2v7A10 10 0 0 0 22 12z"/></svg>') center/contain no-repeat; }
.sns-icon.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.sns-icon.ig::before { mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ffffff" d="M7 2C4.2 2 2 4.2 2 7v10c0 2.8 2.2 5 5 5h10c2.8 0 5-2.2 5-5V7c0-2.8-2.2-5-5-5H7zm0 2h10c1.7 0 3 1.3 3 3v10c0 1.7-1.3 3-3 3H7c-1.7 0-3-1.3-3-3V7c0-1.7 1.3-3 3-3zm5 3a5 5 0 100 10 5 5 0 000-10zm0 2a3 3 0 110 6 3 3 0 010-6zm6.5-.9a1.1 1.1 0 11-2.2 0 1.1 1.1 0 012.2 0z"/></svg>') center/contain no-repeat; }
.sns-icon:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.12); }

@media (max-width: 900px) {
    .mobile-contact-buttons { gap: 10px; }
}

/* 901–1200px のデスクトップ狭幅時に収まりを良くする調整 */
@media (max-width: 1200px) and (min-width: 901px) {
        .header-top { gap: 12px; padding: 0 10px; }
    .logo-img { width: 100px; }
    .contact-info { gap: 12px; }
    .contact-item { font-size: 15px; gap: 8px; }
    .branch-label { font-size: 13px; }
    .branch-number { font-size: 16px; letter-spacing: 0.4px; }
    .language-switcher { gap: 6px; margin: 0 8px; }
    .lang-btn { padding: 6px 12px; min-width: 68px; font-size: 12.5px; }
    .lang-btn .flag { font-size: 15px; }
    .lang-btn .lang-text { font-size: 11.5px; }
    .contact-buttons { gap: 6px; margin-left: 8px; }
    .contact-btn { padding: 6px 10px; min-width: 80px; font-size: 12px; }
}

.contact-btn.primary {
    background: #ff5c59;
    color: #fff;
    border-color: #ff5c59;
}

.contact-btn:hover {
    background: #f0f4fa;
    color: #1976d2;
    border-color: #1976d2;
}

/* ボタン内アイコン（白色） */
.contact-btn .icon.mail-icon {
        width: 18px;
        height: 18px;
        display: inline-block;
        background-color: currentColor;
        mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"/></svg>') center / contain no-repeat;
}
.contact-btn.primary .icon.mail-icon { color: #fff; }
.contact-btn.primary:hover .icon.mail-icon { color: #fff; }
.contact-btn.primary:hover {
    background: #e64c49; /* 少し濃い赤 */
    color: #fff;
    border-color: #e64c49;
}
.contact-btn .btn-text { line-height: 1; }

/* モバイル時も折り返さないよう幅を確保 */
@media (max-width: 900px) {
    .contact-btn { min-width: 200px; font-size: 15px; padding: 12px 18px; }
}

@media (max-width: 900px) {
    /* ハンバーガーをモバイルで右上に固定表示（フローティング） */
    .hamburger {
        display: flex;
        position: fixed;
        top: 0; /* flush to top */
        right: 12px;
        z-index: 3000; /* ドロワーより前面に */
        background: linear-gradient(135deg, rgb(73,176,223), #4ecdc4); /* ナビと同じ緑 */
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(78, 205, 196, 0.15);
    }
    .hamburger:hover { background: linear-gradient(135deg, rgb(73,176,223), #4ecdc4); }
    .hamburger.active { background: linear-gradient(135deg, rgb(73,176,223), #4ecdc4) !important; }
    .header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 0; /* remove vertical gap */
        padding: 0; /* remove internal padding */
        min-height: 0;
    }
    .header { padding: 0; } /* remove vertical padding on mobile */
    .logo {
        margin: 0 auto 0 auto; /* no bottom spacing */
        justify-content: center;
    }
    /* show small logo on mobile (right-top) */
    .logo.mobile-logo {
        display: block !important;
        position: absolute;
        top: 10px;
        right: 60px; /* leave space for hamburger */
        width: 56px;
    }
    .logo.mobile-logo .logo-img { width: 56px; height: auto; }
        /* .services-grid, .treatment-grid のスマホ用1カラム定義を削除（PCで横並びに戻す） */
    .contact-buttons {
        justify-content: center;
        margin: 0 0 8px 0;
        gap: 10px;
    }
    .contact-btn {
        min-width: 90px;
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* デスクトップ狭幅の注記サイズ調整 */
@media (max-width: 1200px) and (min-width: 901px) {
    .contact-note { font-size: 12px; }
    .contact-row { gap: 10px; }
}

/* Navigation */
.nav {
    background: linear-gradient(135deg, rgb(73,176,223), #4ecdc4);
    padding: 20px 0; /* slightly larger top/bottom padding for visual separation */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* ナビも中央寄せ */
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    position: relative;
}

/* ヘッダー内の主要ブロックを均等に配置したい場合は中央揃えのまま
   内部アイテムに固定幅を与えて左右に並べると見た目が安定します */
.header-top > .logo,
.header-top > .contact-info,
.header-top > .lang-and-cta {
    flex: 0 0 auto;
}

/* Ensure nav items (wp_nav_menu output) render horizontally */
.nav-items {
    display: flex;
    gap: 22px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-items li {
    list-style: none;
}

.nav-items li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* Remove bullets and ensure clean alignment for any list-based switcher or menu output */
.nav-items, .nav-items li, .language-switcher ul, .mobile-language-switcher ul, .qtrans-switcher ul, .qtrans-switcher-mobile ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Strong reset for any remaining browser list markers and link underlines in header/nav */
.nav, .nav * {
    list-style: none !important;
}
.nav a, .nav a:link, .nav a:visited, .nav a:hover, .nav a:active {
    text-decoration: none !important;
}

/* Ensure menu items are vertically centered and evenly spaced */
.nav-container .nav-items {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 22px !important;
}
.nav-container .nav-items li {
    display: inline-flex !important;
    align-items: center !important;
}

/* Small left padding removed from list items that can show faint dots */
.nav-items li::marker { display: none; }

/* Center nav items and make spacing visually even */
.nav-items {
    justify-content: center;
}

/* If you want equal-width menu items, uncomment the following (optional)
.nav-items li { flex: 1; text-align: center; }
*/

/* Ensure anchors inside lists don't produce extra line-height or bullets */
.nav-items li a, .language-switcher a, .qtrans-switcher a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    gap: 8px;
}

/* Small visual tweak: reduce gaps if too wide */
@media (max-width: 1200px) {
    .nav-items { gap: 16px; }
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

/* Navigation item hover */
.nav-item:hover {
    background-color: rgba(73,176,223, 0.2);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 48px;
    height: 48px;
    background: transparent; /* 三本線のみ表示 */
    border: none;
    box-shadow: none;
    position: absolute;
    right: 20px;
    top: 16px;
    z-index: 2001;
    cursor: pointer;
}

.hamburger:hover {
    background: rgba(0,0,0,0.08); /* うっすら背景でホバーを感じやすく */
    border-radius: 50%;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 4px;
    background-color: #fff; /* 視認性の高い白 */
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(.4,2,.3,1);
    opacity: 1;
    position: relative;
}

/* ホバー時はバーの色をわずかに明るく（透過を下げて視認） */
.hamburger:hover span {
    background-color: rgba(255,255,255,0.95);
}

/* メニュー開閉時のアニメーション（3本線→×） */
.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.hamburger.active {
    background: transparent !important; /* アクティブでも背景は付けない */
}

/* ハンバーガーメニューが開いているときは非表示（正しいセレクタでフラットに指定） */
/* モバイルではスクロールしても右上に固定（後段のabsolute指定を上書き） */
@media (max-width: 900px) {
    .hamburger {
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 3000;
        display: flex;
        background: linear-gradient(135deg, rgb(73,176,223), #4ecdc4);
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(78, 205, 196, 0.15);
    }
    
    .hamburger:hover,
    .hamburger.active {
        background: linear-gradient(135deg, rgb(73,176,223), #4ecdc4);
    }

    /* Mobile: nav menu hidden by default, toggled by .nav-menu.active */
    .nav-menu {
        position: fixed;
        top: 64px;
        right: 0;
        left: 0;
        background: white;
        color: #333;
        flex-direction: column;
        gap: 12px;
        padding: 18px;
        transform: translateY(-100%);
        transition: transform 0.25s ease;
        z-index: 2000;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-items {
        flex-direction: column;
        gap: 12px;
    }
}

/* ハンバーガーはメニュー開閉時も表示を維持（×にアニメーションで切替） */
/* 不要な非表示ルールを削除 */

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px;
}

/* Page (固定ページ) 表示調整 */
.entry-header .entry-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    line-height: 1.2;
}
.entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
    max-width: 980px;
    margin: 0 auto 28px;
    padding: 0 6px;
    word-wrap: break-word;
}
.entry-content img,
.entry-content iframe,
.entry-content embed {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
}

/* ヘッダーや固定メニューが被さるケースの保険（十分なトップ余白を確保） */
.main-content { padding-top: 32px; }
@media (max-width: 900px) {
    .entry-header .entry-title { font-size: 24px; }
    .entry-content { padding: 0 10px; }
    .main-content { padding-top: 20px; }
}

/* モバイルでハンバーガーを確実に表示（後方の display:none を上書き） */
@media (max-width: 900px) {
    .hamburger { display: flex !important; }
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 24px; /* モバイルでは少し詰める */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 500px;
}

.slide {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active .slide-overlay {
    opacity: 0;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 16px 28px; /* 半透明帯の内側余白 */
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    display: inline-block;
    /* 背景帯は疑似要素でフル幅に */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
}

/* テキスト背後の緑帯（左右いっぱい） */
.slide-content::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -8px;
    bottom: -8px;
    width: 200vw; /* ヒーローの左右端まで届くよう十分広く */
    background: linear-gradient(90deg, rgba(78, 205, 196, 0.28), rgba(73, 176, 223, 0.24));
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 0;
    pointer-events: none;
}

/* テキストは帯より前面に表示 */
.slide-content > * {
    position: relative;
    z-index: 1;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.35);
    line-height: 1.2;
}

.slide-content p {
    font-size: 20px;
    color: #fff;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
    .slide-content::before { top: -6px; bottom: -6px; }

/* Navigation arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    font-size: 28px;
    width: 64px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 32px;
    transition: transform 0.25s ease, background 0.25s ease;
    z-index: 3;
    color: #333;
    font-weight: bold;
    line-height: 1;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.nav-arrow:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.06);
}

.nav-arrow-prev {
    left: 30px;
}

.nav-arrow-next {
    right: 30px;
}

/* Mobile: slightly smaller arrows */
@media (max-width: 600px) {
    .nav-arrow {
        width: 48px;
        height: 44px;
        font-size: 22px;
        border-radius: 24px;
    }
    .nav-arrow-prev { left: 12px; }
    .nav-arrow-next { right: 12px; }
}

/* SVG arrows sizing and centering */
.nav-arrow svg {
    width: 36px;
    height: 36px;
    display: block;
    color: #333; /* inherit currentColor */
}

.nav-arrow:hover svg {
    color: #111;
}

/* Slide indicators */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
    border-color: white;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Services Section */
.services {
    margin-bottom: 30px;
    padding: 20px 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
}

.services h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: -1px;
    position: relative;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .services {
        margin-bottom: 30px;
        padding: 30px 15px;
    }
    
    .services h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 400px;
    }
    
    .service-content {
        padding: 20px 15px;
    }
    
    .service-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .service-description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .service-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .service-list li {
        font-size: 13px;
        padding: 8px 12px;
    }
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.service-card.therapy {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-top: none;
}

.service-card.therapy:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
    box-shadow: 0 25px 60px rgba(73, 176, 223, 0.2);
}

.service-card.acupuncture {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border-top: none;
}

.service-card.acupuncture:hover {
    background: linear-gradient(135deg, #f8bbd9 0%, #f48fb1 100%);
    box-shadow: 0 25px 60px rgba(255, 107, 107, 0.2);
}

.service-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.9) saturate(1.1);
}

.service-card:hover .service-img {
    transform: scale(1.1);
    filter: brightness(1) saturate(1.2);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-content {
    padding: 18px;
    flex: 1;
    position: relative;
}

.service-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 30px;
    right: 30px;
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.service-card.therapy .service-content::before {
    background: linear-gradient(90deg, #1976d2, rgba(25, 118, 210, 0.3));
}

.service-card.acupuncture .service-content::before {
    background: linear-gradient(90deg, #c2185b, rgba(194, 24, 91, 0.3));
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.service-card.therapy h3 {
    color: #1976d2;
}

.service-card.acupuncture h3 {
    color: #c2185b;
}

.service-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.8;
}

.service-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.service-list li {
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.service-list li:hover {
    background: rgba(248, 250, 252, 1);
    transform: translateX(5px);
}

.service-list li:before {
    content: "✓";
    color: rgb(73,176,223);
    margin-right: 8px;
    font-weight: bold;
    font-size: 12px;
}

.service-card.therapy .service-list li:before {
    color: #1976d2;
}

.service-card.therapy .service-list li:hover {
    border-left-color: #1976d2;
}

.service-card.acupuncture .service-list li:before {
    color: #c2185b;
}

.service-card.acupuncture .service-list li:hover {
    border-left-color: #c2185b;
}

/* Treatment Section */
.treatment {
    margin-bottom: 30px;
    padding: 20px 10px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 16px;
}

.treatment h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: -0.5px;
    position: relative;
}

.treatment h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, rgb(73,176,223), #4ecdc4);
    border-radius: 2px;
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 400px;
    }
    
    .treatment-grid .treatment-item:last-child {
        grid-column: 1 / -1;
        max-width: 180px;
        margin: 0 auto;
    }
}

.treatment-item {
    background: white;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.treatment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgb(73,176,223), #4ecdc4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.treatment-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(73, 176, 223, 0.15);
}

.treatment-item:hover::before {
    opacity: 1;
}

.treatment-item h3 {
    color: #2c3e50;
    margin-top: 20px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.treatment-icon {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.treatment-item:hover .treatment-icon {
    transform: scale(1.08);
}

.treatment-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: brightness(0.9) saturate(1.1);
}

.treatment-item:hover .treatment-img {
    transform: scale(1.1);
    filter: brightness(1) saturate(1.2);
}

/* News Section */
.news {
    margin-bottom: 60px;
}

.news h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 24px;
}

.news-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.news-list {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: rgb(73,176,223);
    font-weight: 500;
    margin-right: 20px;
    min-width: 80px;
}

.news-title {
    color: #333;
    flex: 1;
}

@media (max-width: 900px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }
    
    .news-date {
        margin-right: 0;
        margin-bottom: 5px;
        min-width: auto;
        font-size: 13px;
    }
    
    .news-title {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .news-list {
        padding: 20px;
    }
}

/* Video Section */
.video-section {
    margin-bottom: 60px;
}

.video-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 24px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 900px) {
    .video-section {
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    .video-section h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .video-description {
        font-size: 13px;
    }
}

.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgb(73,176,223), #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    position: relative;
}

.video-thumbnail iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.play-button {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(73,176,223);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s;
}

.play-button:hover {
    transform: scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-title {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 10px;
}

.video-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Branches Section */
.branches {
    margin: 40px 0 60px;
}
.branches h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 24px;
}
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch; /* 各カードの高さを揃える */
}

@media (max-width: 900px) {
    .branches {
        margin: 30px 0 40px;
        padding: 0 10px;
    }
    
    .branches h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .branches-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .branch-card {
        padding: 15px;
    }
    
    .branch-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .branch-map iframe {
        height: 150px;
    }
    
    .branch-address {
        font-size: 13px;
        min-height: auto;
        margin: 8px 0;
    }
    
    .branch-tels {
        font-size: 13px;
        min-height: auto;
    }
    
    .branch-actions {
        min-height: auto;
        margin: 10px 0;
    }
    
    .line-add-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .branch-hours {
        font-size: 13px;
        min-height: auto;
        margin-bottom: 10px;
    }
}
.branch-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;              /* 内部を縦配置に */
    flex-direction: column;     /* 上:情報 下:動画 に並べる */
    height: 100%;               /* グリッド行高にフィット */
}
.branch-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 20px;
}
.branch-map iframe {
    width: 100%;
    height: 170px;
    border: 0;
    border-radius: 8px;
}
.branch-address {
    color: #445;
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0 6px;
    min-height: 72px; /* アドレス行の高さを揃える（約3行分） */
}
.branch-tels { color: #333; font-size: 14px; display: grid; gap: 2px; min-height: 48px; }
.tel-strong { font-weight: 700; color: #1976d2; }
.branch-actions { margin: 12px 0; display: flex; align-items: center; min-height: 48px; }
.line-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #00c300;
    color: #fff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}
.line-add-btn:hover { background: #00a700; }
.branch-hours { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; color: #333; margin-bottom: 12px; min-height: 48px; }
.branch-hours > div { display:flex; justify-content: space-between; }
.branch-video { margin-top: auto; } /* 動画をカードの下端へ */
.branch-video iframe { width: 100%; height: 170px; border: 0; border-radius: 8px; }

/* 以前ここに .branch-label の重複定義があり、ヘッダー内の表示を上書きして溢れの原因になっていたため削除しました。 */

.branch-underline {
    width: 38px;
    height: 4px;
    background: #1976d2;
    border-radius: 2px;
    margin: 2px auto 0 auto;
}

/* ブランチ各要素の高さ調整（モバイルでは詰める） */
@media (max-width: 768px) {
    .branch-address,
    .branch-tels,
    .branch-actions,
    .branch-hours {
        min-height: 0;
    }
}

    .nav-arrow svg {
        width: 28px;
        height: 28px;
    }
@media (max-width: 768px) {
    /* スライドショーのモバイル対応 */
    .slideshow-container {
        height: 350px;
    }
    
    .slide-content {
    padding: 12px 16px; /* モバイル時の帯の内側余白 */
        max-width: 90%;
        transform: translateY(15px);
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .slide.active .slide-content {
        transform: translateY(0);
        opacity: 1;
    }
    
    .slide-content h1 {
        font-size: 32px;
        margin-bottom: 15px;
        line-height: 1.1;
    }
    
    .slide-content p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .nav-arrow {
        padding: 12px 16px;
        font-size: 20px;
        transition: all 0.2s ease;
    }
    
    .nav-arrow-prev {
        left: 15px;
    }
    
    .nav-arrow-next {
        right: 15px;
    }
    
    .slide-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
        transition: all 0.2s ease;
    }
}

/* PCでは非表示 */
.mobile-header-section,
.mobile-contact-info,
.mobile-language-switcher,
.mobile-contact-buttons {
    display: none;
}
@media (max-width: 900px) {
    .mobile-header-section,
    .mobile-contact-info,
    .mobile-language-switcher,
    .mobile-contact-buttons {
        display: block;
    }
    .mobile-language-switcher,
    .mobile-contact-buttons {
        display: flex;
    }
    .header-top .logo {
        display: none;
    }
    .logo.mobile-logo {
        display: flex;
        align-items: center;
        margin-right: auto;
        height: 56px;
    }
    .logo.mobile-logo .logo-img {
        width: 96px;
        max-width: 80%;
        height: auto;
    }
     /* ヘッダーとスライドショーの間隔を圧縮
         Ensure nav band is tall enough to contain mobile logo */
     .nav { padding: 12px 0; min-height: 64px; }
    .main-content { padding-top: 20px; }
    .nav-menu.active ~ .main-content,
    .nav-menu.active + .main-content {
        /* don't force extra top padding when menu opens; we overlay the menu */
        padding-top: 20px;
    }
    .nav-menu {
        /* モバイルではデフォルト非表示にして、画面上部に固定で出す */
        display: none;
        position: fixed; /* 画面基準で固定 */
        left: 0;
        right: 0;
        top: 0; /* メニューは画面最上部から表示。ハンバーガーが上に重なる */
        z-index: 2000;
        flex-direction: column;
        align-items: stretch; /* 幅いっぱいに */
        gap: 0;
        /* padding-top so the menu content appears below the fixed hamburger button */
        padding: 64px 10px 12px;
        background: linear-gradient(135deg, rgb(73,176,223), #4ecdc4); /* 開いたメニューの背景をナビと同じ緑に */
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        max-height: calc(100dvh); /* 画面内に収めて内部スクロール */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed; /* 念のため固定を再指定 */
        left: 0; right: 0; top: 0;
    }
    .mobile-header-section {
    padding: 12px 0 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.25);
        margin-bottom: 10px;
        display: block;
        width: 100%;
    }
    .mobile-contact-info {
        margin-bottom: 10px;
        display: block;
        width: 100%;
    }
    .mobile-contact-note {
    color: #fff;
        font-size: 13px;
        line-height: 1.5;
        text-align: center;
        margin-bottom: 8px;
        opacity: 0.95;
    }
    .mobile-contact-item {
    color: white;
        font-size: 15px;
        margin-bottom: 6px;
        padding: 4px 0;
        text-align: center;
        width: 100%;
    }
    .mobile-language-switcher {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-bottom: 10px;
        flex-wrap: wrap;
        width: 100%;
        }
        .mobile-sns-buttons {
            display: flex;
            gap: 8px;
            margin-top: 8px;
            justify-content: center;
            width: 100%;
        }
        .mobile-sns-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px 14px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            text-decoration: none;
            border: none;
            background: rgba(255,255,255,0.9);
            color: #333;
            transition: all 0.3s;
            min-width: 70px;
            box-shadow: 0 2px 8px rgba(78, 205, 196, 0.10);
            cursor: pointer;
        }
        .mobile-sns-btn.line {
            background: #00c300;
            color: #fff;
        }
        .mobile-sns-btn.line:hover {
            background: #009900;
            color: #fff;
        }
        .mobile-sns-btn.instagram {
            background: linear-gradient(45deg, #fd1d1d, #833ab4);
            color: #fff;
        }
        .mobile-sns-btn.instagram:hover {
            background: linear-gradient(45deg, #833ab4, #fd1d1d);
            color: #fff;
        }
        .mobile-sns-btn.facebook {
            background: #1877f3;
            color: #fff;
        }
        .mobile-sns-btn.facebook:hover {
            background: #145db2;
            color: #fff;
        }
    .mobile-contact-buttons {
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 10px;
        width: 100%;
    }
}

/* タブレット用の治療セクション対応 */
@media (max-width: 1024px) and (min-width: 769px) {
    .treatment-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }
    
    .treatment-item {
        padding: 25px 15px;
    }
    
    .treatment-icon {
        width: 110px;
        height: 110px;
    }
    
    .treatment-item h3 {
        font-size: 15px;
    }
}

@media (max-width: 900px) {
    .header-top {
        display: none;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        position: absolute;
        z-index: -1;
    }
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, rgb(73,176,223), #4ecdc4);
    color: #fff;
    padding: 20px 10px;
    text-align: center;
    margin-top: 40px;
}

.site-footer .copyright {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
}

/* FAQ Pages -------------------------------------------------- */
.faq-page {max-width:960px;margin:40px auto;padding:0 16px;font-size:15px;line-height:1.7;}
.faq-title {font-size:34px;margin:0 0 12px;font-weight:700;background:linear-gradient(45deg,rgb(73,176,223),#4ecdc4);-webkit-background-clip:text;background-clip:text;color:transparent;}
.faq-lead {margin:0 0 28px;color:#444;font-size:16px;}
.faq-page h1 {font-size:28px;margin:60px 0 20px;}
.faq-page h2 {font-size:24px;margin:50px 0 20px;}
.faq-page h3 {margin:40px 0 10px;font-size:19px;}
.faq-q {position:relative;padding-left:34px;}
.faq-q:before {content:"Q";position:absolute;left:0;top:0;background:#4ecdc4;color:#fff;font-weight:600;font-size:13px;line-height:22px;padding:0 8px;border-radius:4px;letter-spacing:1px;}
.faq-category hr {border:0;border-top:2px solid #e4f2f7;margin:8px 0 24px;}
.faq-toc {background:#f5fafc;border:1px solid #d9eef4;padding:24px 20px;border-radius:12px;margin:0 0 40px;}
.faq-toc h2 {margin-top:0;font-size:20px;}
.faq-toc-columns {display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px;}
.faq-toc section h3 {font-size:14px;margin:0 0 6px;color:#1976d2;letter-spacing:.5px;text-transform:uppercase;}
.faq-toc ul {list-style:none;margin:0;padding:0;}
.faq-toc li {margin:0 0 4px;}
.faq-toc a {text-decoration:none;color:#004d66;font-size:13px;line-height:1.4;display:inline-block;padding:2px 0;border-bottom:1px solid transparent;}
.faq-toc a:hover {border-color:#4ecdc4;color:#1976d2;}
.faq-updated {margin:60px 0 20px;font-size:13px;color:#666;text-align:right;}
@media (max-width:600px){
    .faq-title {font-size:28px;}
    .faq-page h3 {font-size:17px;}
    .faq-q {padding-left:30px;}
    .faq-toc-columns {grid-template-columns:repeat(auto-fill,minmax(160px,1fr));}
}

/* ============================================================
     Company Information Page (企業情報 / Company Profile)
     Classes used in page content markup. Keep selectors scoped. 
     ============================================================ */
.company_info_ttl {font-size:30px;line-height:1.25;margin:60px 0 18px;font-weight:700;position:relative;padding-bottom:10px;color:#123b54;}
.company_info_ttl:after {content:"";position:absolute;left:0;bottom:0;width:70px;height:4px;border-radius:3px;background:linear-gradient(90deg,#4ecdc4,#49b0df);} 
@media (max-width:700px){.company_info_ttl{font-size:24px;margin:40px 0 14px;}}

.company_tit_style2 {font-size:26px;line-height:1.3;margin:70px 0 20px;font-weight:700;position:relative;padding-left:14px;color:#133f63;}
.company_tit_style2:before {content:"";position:absolute;left:0;top:4px;width:4px;height:calc(100% - 8px);background:#4ecdc4;border-radius:4px;}
@media (max-width:700px){.company_tit_style2{font-size:22px;margin:50px 0 18px;}}

.company_info_text {font-size:22px;font-weight:600;margin:-10px 0 30px;color:#222;text-align:center;letter-spacing:.5px;}
@media (max-width:700px){.company_info_text{font-size:18px;}}

.company_about-movie {max-width:960px;margin:0 auto 50px;position:relative;}
.company_about-movie img, .company_about-movie iframe {width:100%;height:auto;display:block;border-radius:14px;box-shadow:0 8px 28px -6px rgba(20,100,120,.25);}

/* Mission list */
ul.company_mission {list-style:none;margin:0 0 40px;padding:0;display:flex;flex-wrap:wrap;gap:18px;justify-content:center;}
ul.company_mission li {background:#fff;border:1px solid #d9eef4;padding:18px 20px;font-weight:600;font-size:16px;min-width:200px;text-align:center;border-radius:12px;box-shadow:0 2px 6px rgba(0,0,0,0.04);position:relative;overflow:hidden;}
ul.company_mission li:before {content:"";position:absolute;inset:0;background:linear-gradient(140deg,rgba(73,176,223,0.10),rgba(78,205,196,0.05));opacity:0;transition:opacity .35s;}
ul.company_mission li:hover:before {opacity:1;}
@media (max-width:600px){ul.company_mission{gap:12px;}ul.company_mission li{flex:1 1 calc(50% - 12px);min-width:140px;padding:14px 12px;font-size:14px;}}

/* Greeting / message block */
.company_greeting {font-size:15.5px;line-height:1.9;color:#333;background:#fff;border:1px solid #e3eef2;border-radius:16px;padding:30px 32px;margin:0 0 50px;box-shadow:0 3px 12px -4px rgba(40,120,140,.12);} 
.company_greeting b {color:#136b85;font-weight:700;background:linear-gradient(90deg,#4ecdc4,#49b0df);-webkit-background-clip:text;background-clip:text;color:transparent;}
@media (max-width:700px){.company_greeting{padding:22px 20px;font-size:14.5px;}}
.company_txt_right {text-align:right;font-style:italic;margin-top:32px;font-weight:600;color:#155268;}

/* BHAG image + caption */
.company_bahg_img {margin:34px auto 40px;max-width:340px;text-align:center;font-size:13.5px;line-height:1.5;color:#444;}
.company_bahg_img img {width:100%;height:auto;display:block;margin:0 0 10px;border-radius:12px;box-shadow:0 4px 18px -4px rgba(30,120,140,.25);}

/* Company profile table */
.company_profile {width:100%;margin:0 0 60px;border-collapse:collapse;font-size:15px;line-height:1.6;overflow:hidden;border:1px solid #d4e6ec;border-radius:14px;}
.company_profile th, .company_profile td {padding:14px 18px;text-align:left;vertical-align:top;}
.company_profile th {width:180px;background:#f0f8fa;font-weight:600;color:#0f4d63;border-right:1px solid #d4e6ec;}
.company_profile tr:not(:last-child) th, .company_profile tr:not(:last-child) td {border-bottom:1px solid #dcebf0;}
.company_profile td {background:#fff;}
@media (max-width:640px){
    .company_profile, .company_profile tbody, .company_profile tr, .company_profile th, .company_profile td {display:block;width:100%;}
    .company_profile tr {margin:0 0 18px;border:1px solid #d4e6ec;border-radius:10px;overflow:hidden;}
    .company_profile th {border-right:none;border-bottom:1px solid #d4e6ec;width:100%;}
    .company_profile td {border-bottom:none;padding:14px 16px;}
}

/* YouTube video grids */
.company_top_youtube {margin:10px 0 50px;}
.company_top_youtube ul {list-style:none;margin:0;padding:0;display:grid;gap:24px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));}
.company_top_youtube li {background:#fff;border:1px solid #e1edf0;border-radius:14px;padding:14px 14px 50px;position:relative;box-shadow:0 2px 8px -3px rgba(0,80,100,.15);font-size:13px;line-height:1.4;color:#1d4756;}
.company_top_youtube iframe {width:100%;height:170px;border-radius:10px;display:block;margin:0 0 10px;}
@media (max-width:640px){.company_top_youtube ul{gap:16px;} .company_top_youtube li{padding:12px 12px 44px;} .company_top_youtube iframe{height:160px;}}

/* Utility */
.company-page-wrapper {max-width:980px;margin:0 auto;padding:0 18px;}

/* ============================================================
     Recruit Page (採用情報 / Work With Us)
     タイ語募集ページの体裁調整。
     既存カラーパレット: #4ecdc4 / rgb(73,176,223) / アクセント#1976d2
     他ページとトーンを揃えつつ可読性を向上。
     ============================================================ */
.recruit_t_cnt {max-width:980px;margin:40px auto 50px;padding:28px 30px;border:1px solid #e0edf1;border-radius:18px;background:#ffffff;line-height:1.85;font-size:15.5px;color:#333;box-shadow:0 4px 18px -6px rgba(40,120,140,.18);position:relative;white-space:pre-line;}
.recruit_t_cnt:before {content:"";position:absolute;inset:0;border-radius:18px;padding:1px;background:linear-gradient(135deg,#4ecdc4,#49b0df);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;}
.recruit_t_cnt p {margin:0 0 16px;}
.recruit_t_cnt .notice {background:#fff8e1;border:1px solid #ffe2a3;padding:10px 14px;border-radius:10px;font-size:13.5px;line-height:1.5;margin:10px 0 12px;color:#7a5200;}
.recruit_t_cnt .notice + .notice {margin-top:4px;}
.recruit_t_cnt .mgT20 {margin-top:20px;}

/* 目次的リンクブロック */
.w_tit_style {display:flex;flex-wrap:wrap;gap:10px 14px;margin:0 auto 40px;max-width:980px;padding:14px 4px;border-bottom:2px solid #e4f2f7;}
.w_tit_style a {text-decoration:none;font-size:14px;font-weight:600;padding:8px 14px;border:1px solid #d5e9ef;border-radius:24px;background:#f5fafc;color:#0f4d63;transition:.25s;line-height:1;}
.w_tit_style a:hover {background:#e3f6fa;border-color:#49b0df;color:#1976d2;}

/* セクション見出し */
.w_tit_style2 {font-size:26px;line-height:1.25;margin:70px 0 24px;font-weight:700;position:relative;padding-left:14px;color:#123b54;scroll-margin-top:110px;}
.w_tit_style2:before {content:"";position:absolute;left:0;top:4px;width:5px;height:calc(100% - 8px);background:linear-gradient(#4ecdc4,#49b0df);border-radius:4px;}
@media (max-width:700px){
    .w_tit_style2 {font-size:22px;margin:60px 0 22px;}
    .w_tit_style {gap:8px 10px;padding:10px 0;}
    .recruit_t_cnt {padding:22px 18px;font-size:14.5px;margin:30px auto 40px;}
}

/* テーブル（職種詳細） */
table.recruit {width:100%;max-width:980px;margin:0 auto 50px;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #d4e6ec;border-radius:16px;overflow:hidden;font-size:14.5px;line-height:1.65;}
table.recruit th,table.recruit td {padding:14px 18px;vertical-align:top;text-align:left;}
table.recruit th {width:180px;background:#f1fafc;font-weight:600;color:#0f4d63;border-right:1px solid #d4e6ec;position:relative;}
table.recruit tr:not(:last-child) th,table.recruit tr:not(:last-child) td {border-bottom:1px solid #e3eef2;}
table.recruit tr:nth-child(even) td {background:#fcfeff;}
table.recruit a {color:#1976d2;text-decoration:none;border-bottom:1px solid transparent;transition:.25s;font-weight:600;}
table.recruit a:hover {border-color:#4ecdc4;color:#125a92;}
table.recruit ul {margin:0;padding:0 0 0 18px;}
table.recruit ul li {margin:4px 0 0;}
@media (max-width:640px){
    table.recruit,table.recruit tbody,table.recruit tr,table.recruit th,table.recruit td {display:block;width:100%;}
    table.recruit th {width:100%;border-right:none;border-bottom:1px solid #d4e6ec;}
    table.recruit td {padding:14px 16px;}
}

/* 不正URLにスペースが入るケース（company information）の視覚崩れ保険 */
table.recruit a[href*="company information"] {word-break:break-all;}

/* 連絡ブロック */
.rec_contact {max-width:980px;margin:0 auto 60px;display:flex;flex-direction:column;gap:14px;background:linear-gradient(135deg,#4ecdc4,#49b0df);padding:22px 26px;border-radius:18px;box-shadow:0 6px 20px -6px rgba(73,176,223,.35);color:#fff;}
.rec_contact .rec_tel {font-size:15px;line-height:1.6;font-weight:600;}
.rec_contact .rec_tel .tel-no {display:inline-block;margin:0 8px;font-weight:700;letter-spacing:.5px;}
.rec_contact .btn a {display:inline-flex;align-items:center;gap:8px;padding:10px 20px;background:#fff;color:#125a63;border-radius:30px;font-weight:600;text-decoration:none;box-shadow:0 3px 8px rgba(0,0,0,0.15);transition:.25s;font-size:14px;}
.rec_contact .btn a:hover {background:#e9fafd;color:#0d5165;}
@media (max-width:640px){
    .rec_contact {padding:20px 18px;}
    .rec_contact .rec_tel {font-size:14px;}
    .rec_contact .btn a {font-size:13px;padding:10px 18px;}
}

/* 画像リスト（現在空）プレースホルダ */
.recruit-img {max-width:980px;margin:0 auto 30px;display:flex;flex-wrap:wrap;gap:14px;list-style:none;padding:0;}
.recruit-img li {flex:1 1 280px;min-height:120px;background:#f2f9fa;border:1px dashed #cde3e8;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#7aa2aa;font-size:13px;}

/* YouTube グリッド (既存 company_top_youtube に似せる) */
.top_youtube {max-width:1080px;margin:20px auto 50px;padding:0 8px;}
.top_youtube ul {list-style:none;margin:0;padding:0;display:grid;gap:26px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));}
.top_youtube li {background:#fff;border:1px solid #e1edf0;border-radius:14px;padding:14px 14px 54px;position:relative;box-shadow:0 2px 10px -4px rgba(0,80,100,.15);font-size:13px;line-height:1.45;color:#1d4756;}
.top_youtube iframe {width:100%;height:170px;border:0;border-radius:10px;display:block;margin:0 0 10px;}
@media (max-width:640px){
    .top_youtube ul {gap:16px;}
    .top_youtube li {padding:12px 12px 46px;}
    .top_youtube iframe {height:160px;}
}

/* 見出しアンカー位置補正 (fixed header 分) */
h2[id].w_tit_style2 {scroll-margin-top:120px;}

/* 汎用 */
.recruit-page-wrapper {max-width:1080px;margin:0 auto;padding:0 14px;}

/* =========================================
     Fix: Mobile logo centering override
     先行定義で position:absolute; right:60px; が効いて右寄せになるため打ち消し
     ========================================= */
@media (max-width:900px){
    .logo.mobile-logo {
        position: relative !important;
        right: auto !important;
        left: auto !important;
        margin: 0 auto !important;
        justify-content: center !important;
    }
}

/* =========================================
     Full-bleed Hero Slideshow (枠削除/全幅)
     既存 .hero の角丸 / 影 / 最大幅 をリセット
     ========================================= */
.hero {
    max-width: none !important;
    width: 100% !important;
    margin: 0 0 24px 0 !important;
    border-radius: 18px !important; /* 角丸 */
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important; /* 枠(影)復活 */
    border: 1px solid rgba(255,255,255,0.55); /* 薄い外枠（明るめ背景にも対応） */
    overflow: hidden !important; /* 角丸で内部画像をクリップ */
}
/* 親コンテナの左右パディングを視覚的に埋めたい場合は body 全幅に伸ばす */
body .hero .slide { background-size: cover; background-position: center center; }
/* 端末幅が極端に広い場合の高さ調整（オプション） */
@media (min-width:1600px){
    .slideshow-container { height: 560px; }
}
@media (max-width:600px){
    .slideshow-container { height: 360px; }
}

/* =========================================
     Global Image Rounding (汎用画像角丸)
     ロゴ等を除き主要ビジュアルに丸みを付与
     ========================================= */
img:not(.logo-img):not(.no-radius),
.entry-content img:not(.no-radius),
.service-image-container,
.service-image-container .service-img,
.treatment-icon,
.treatment-icon .treatment-img,
.branch-map iframe,
.company_top_youtube iframe,
.top_youtube iframe,
.video-thumbnail,
.video-thumbnail iframe,
.recruit-img li img {
    border-radius: 16px;
}

/* クリップが必要なラッパ */
.service-image-container,
.treatment-icon,
.video-thumbnail,
.branch-map iframe,
.company_top_youtube iframe,
.top_youtube iframe { overflow: hidden; }

/* ユーティリティクラス */
.rounded-8 { border-radius:8px !important; overflow:hidden; }
.rounded-12 { border-radius:12px !important; overflow:hidden; }
.rounded-16 { border-radius:16px !important; overflow:hidden; }
.rounded-24 { border-radius:24px !important; overflow:hidden; }

/* 改行反映ユーティリティ */
.pre-line { white-space: pre-line !important; }

