@charset "UTF-8";
/*
Theme Name: SANGO
Theme URI: https://saruwakakun.design
Description: オンライン診療施設検索サイト対応テーマ
Author: SARUWAKA
Author URI: https://saruwakakun.com
Version: 2.0.0
Text Domain: sango-theme
License URI: https://saruwakakun.design/term
-------------------------------------------------*/

/* =============================================
   CSS Custom Properties - 医療系白青テーマ
   ============================================= */
:root {
    --primary-blue: #0B78E3;
    --primary-blue-dark: #0960B8;
    --primary-blue-light: #E8F4FD;
    --primary-blue-bg: #F0F7FF;
    --accent-green: #00B894;
    --accent-orange: #FF7043;
    --accent-red: #E74C3C;
    --text-primary: #1A1A2E;
    --text-secondary: #5A6672;
    --text-tertiary: #8E99A4;
    --bg-white: #FFFFFF;
    --bg-gray: #F5F7FA;
    --bg-light: #FAFBFC;
    --border-color: #E2E8F0;
    --border-light: #EDF2F7;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Legacy variable compatibility */
    --primary-turquoise: var(--primary-blue);
    --primary-turquoise-hover: var(--primary-blue-dark);
    --primary-turquoise-light: var(--primary-blue-light);
    --primary-turquoise-soft: var(--primary-blue-bg);
    --text-dark: var(--text-primary);
    --text-medium: var(--text-secondary);
    --text-light: var(--text-tertiary);
    --bg-card: var(--bg-white);
    --bg-soft: var(--bg-gray);
}

/* =============================================
   基本リセット・共通設定
   ============================================= */
html {
    font-family: var(--font-sans);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg-gray);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.8;
    word-break: normal;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    transition: all var(--transition);
    color: var(--primary-blue);
}

a:hover {
    text-decoration: none;
    cursor: pointer;
}

a:active,
a:hover {
    outline: 0;
}

p {
    word-wrap: break-word;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
}

ul, ol {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* =============================================
   レイアウト基本
   ============================================= */
.wrap {
    width: 92%;
    margin: 0 auto;
}

#container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1;
    margin-top: 0;
    padding-bottom: 2em;
}

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

/* =============================================
   ヘッダー
   ============================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    background: var(--bg-white);
}

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

#logo {
    display: table;
    margin: 0;
    padding: 0;
    width: auto;
    font-size: 20px;
    letter-spacing: 0.5px;
}

#logo:before {
    content: none;
}

#logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
    vertical-align: middle;
    color: var(--primary-blue);
    font-weight: 700;
}

#logo a:hover {
    opacity: 0.8;
    text-decoration: none;
}

#logo img {
    display: inline-block;
    height: 44px;
    padding: 8px 0;
    vertical-align: middle;
}

.logo-text {
    font-weight: 700;
}

/* ヘッダーナビ（モバイル） */
.mobile-nav {
    overflow: hidden;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.mobile-nav,
.mobile-nav li,
.mobile-nav li a {
    height: 40px;
}

.mobile-nav ul {
    overflow-x: auto;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav li {
    display: inline-block;
    opacity: 0.8;
}

.mobile-nav li.current-menu-item {
    border-bottom: 3px solid var(--primary-blue);
    opacity: 1;
}

.mobile-nav li a {
    display: inline-block;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    vertical-align: middle;
    line-height: 40px;
    color: var(--text-primary);
}

.mobile-nav li a:hover {
    opacity: 1;
    text-decoration: none;
    color: var(--primary-blue);
}

/* デスクトップナビ */
.desktop-nav {
    display: none;
}

/* ナビドロワー（ハンバーガーメニュー） */
#drawer__content {
    overflow: auto;
    position: fixed;
    z-index: 9999;
    width: 90%;
    max-width: 330px;
    height: 100%;
    padding-bottom: 50px;
    background: var(--bg-white);
    transition: 0.3s ease-in-out;
    -webkit-transform: translateX(-105%);
    transform: translateX(-105%);
    -webkit-overflow-scrolling: touch;
}

#drawer__input:checked ~ #drawer__content {
    box-shadow: 6px 0 25px rgba(0, 0, 0, 0.15);
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
}

#drawer__close-cover {
    display: none;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    transition: 0.3s ease-in-out;
}

#drawer__input:checked ~ #drawer__close-cover {
    display: block;
    opacity: 0.5;
}

/* ハンバーガーボタン */
#drawer__open {
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    padding: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 23px;
    text-align: center;
    vertical-align: middle;
    line-height: 56px;
    cursor: pointer;
}

.drawer__title {
    position: relative;
    padding: 7px 15px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    color: var(--primary-blue);
}

/* ヘッダー検索 */
.header-search {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    padding: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 20px;
    text-align: center;
    vertical-align: middle;
    line-height: 56px;
}

.header-search__input,
.header-search__close,
.header-search__modal {
    display: none;
}

.header-search__label {
    cursor: pointer;
    color: var(--text-secondary);
}

.header-search__input:checked ~ .header-search__modal,
.header-search__input:checked ~ .header-search__close {
    display: block;
}

.header-search__close {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.65);
}

.header-search__modal {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    padding: 1em;
    z-index: 999999;
}

/* ヘッダーお知らせ欄 */
.header-info a {
    display: block;
    padding: 10px;
    font-weight: 600;
    text-align: center;
    color: inherit;
    background: var(--primary-blue-light);
    font-size: 13px;
}

.header-info a:hover {
    text-decoration: none;
    opacity: 0.9;
}

/* =============================================
   フッター
   ============================================= */
.footer {
    position: relative;
    clear: both;
    font-size: 0.9em;
    background: #1A2332;
    color: rgba(255,255,255,0.8);
}

.inner-footer {
    padding-top: 2em;
    max-width: 1200px;
    margin: 0 auto;
}

.ft_title {
    margin: 0 0 0.7em;
    padding: 2px 0 2px 10px;
    border-left: solid 3px var(--primary-blue);
    font-size: 1.1em;
    color: #fff;
}

.footer .widget {
    margin: 1.5em 0 3em;
    background: transparent;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
    color: #fff;
}

#footer-menu {
    padding: 20px 10px 10px;
    text-align: center;
}

#footer-menu ul {
    margin: 0.5em;
}

#footer-menu li {
    display: inline-block;
    padding: 0 6px;
    font-size: 13px;
}

.copyright {
    margin: 5px 0 0;
    font-size: 12px;
    opacity: 0.5;
    text-align: center;
    padding-bottom: 20px;
}

/* フッター固定メニュー（モバイル） */
.fixed-menu {
    margin-bottom: 54px;
}

.fixed-menu ul {
    position: fixed;
    display: table;
    table-layout: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    margin: 0;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 98;
    box-shadow: 0 -1px 3px rgba(100, 120, 130, 0.25);
    background: var(--bg-white);
}

.fixed-menu ul li {
    display: table-cell;
    text-align: center;
}

.fixed-menu ul li a {
    display: block;
    padding: 9px 0 6px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    color: var(--text-primary);
}

.fixed-menu ul li i {
    font-size: 24px;
    display: block;
    width: auto;
}

/* =============================================
   パンくずリスト
   ============================================= */
.breadcrumbs {
    margin: 0;
    padding: 12px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb-list {
    list-style: none;
    padding: 0 20px;
    margin: 0 auto;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
}

.breadcrumb-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

.breadcrumb-item .separator {
    margin: 0 8px;
    color: var(--text-tertiary);
    font-size: 11px;
}

.breadcrumb-item:last-child {
    font-weight: 600;
    color: var(--text-secondary);
}

/* =============================================
   メディアクエリ
   ============================================= */
@media only screen and (min-width: 768px) {
    .wrap,
    #inner-header {
        width: 96%;
    }

    #logo {
        display: inline-block;
        height: 56px;
        line-height: 56px;
        margin: 0 5px 0 0;
        text-align: left;
        width: auto;
        font-size: 20px;
    }

    #logo a {
        display: inline-flex;
        line-height: inherit;
        vertical-align: baseline;
    }

    #logo img {
        vertical-align: top;
        padding: 6px 6px 6px 0;
    }

    /* モバイルナビを非表示 */
    .mobile-nav {
        display: none;
    }

    /* デスクトップナビを表示 */
    .desktop-nav,
    .desktop-nav ul,
    .desktop-nav li,
    .desktop-nav li a {
        display: inline-block;
        vertical-align: top;
        margin: 0;
    }

    .desktop-nav {
        float: right;
        font-weight: 600;
    }

    .desktop-nav li {
        position: relative;
    }

    .desktop-nav li a {
        height: 56px;
        padding: 0 14px;
        font-size: 14px;
        line-height: 56px;
        color: var(--text-primary);
    }

    .desktop-nav li a:hover {
        text-decoration: none;
        color: var(--primary-blue);
    }

    /* ハンバーガーメニューを非表示 */
    #drawer__open {
        display: none;
    }

    /* フッターレイアウト */
    .fblock {
        float: left;
        width: 47%;
    }

    .fblock.first {
        margin-right: 6%;
    }

    /* 固定メニューを非表示 */
    .fixed-menu {
        display: none;
    }

    /* SP only line break */
    .sp-only {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .sp-only {
        display: inline;
    }
}

@media only screen and (min-width: 1030px) {
    .wrap,
    .inner-footer {
        width: 92%;
    }

    .fblock,
    .fblock.first {
        width: 30%;
        margin-right: 5%;
    }

    .fblock.last {
        margin-right: 0;
    }
}

@media only screen and (min-width: 1240px) {
    .wrap,
    .inner-footer {
        width: 1180px;
    }
}

/* =============================================
   ユーティリティ
   ============================================= */
.clearfix:after,
.cf:after {
    content: "";
    display: table;
    clear: both;
}

.screen-reader-text {
    display: none;
}

/* FontAwesome基本設定 */
.fa, .fas {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.fab {
    font-family: "Font Awesome 5 Brands";
    font-weight: normal;
}

/* =============================================
   階層メニュー（ドロップダウン）
   ============================================= */
@media only screen and (min-width: 768px) {
    .desktop-nav .sub-menu {
        display: none;
        position: absolute;
        left: 0;
        top: 100%;
        width: 200px;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        border: 1px solid var(--border-light);
        z-index: 999;
        overflow: hidden;
    }

    .desktop-nav li:hover .sub-menu {
        display: block;
    }

    .desktop-nav .sub-menu li {
        display: block;
        border-bottom: solid 1px var(--border-light);
    }

    .desktop-nav .sub-menu li:last-child {
        border-bottom: none;
    }

    .desktop-nav .sub-menu li a {
        display: block;
        height: auto;
        line-height: 1.5;
        padding: 12px 16px;
        font-size: 13px;
        color: var(--text-primary);
        text-align: left;
    }

    .desktop-nav .sub-menu li a:hover {
        background: var(--primary-blue-light);
        color: var(--primary-blue);
    }

    .desktop-nav .sub-menu li:hover:after {
        content: none;
    }

    /* メインメニューのホバーアンダーライン */
    .desktop-nav li:after {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        content: "";
        background: var(--primary-blue);
        transition: transform 0.3s ease-in-out;
        transform: scale(0, 1);
        transform-origin: left top;
    }

    .desktop-nav li:hover:after {
        transform: scale(1, 1);
    }
}

/* =============================================
   ハンバーガーメニュー詳細
   ============================================= */
#drawer__content .widget {
    margin: 0 0 15px;
}

#drawer__content .widget_search {
    margin: 1em;
}

#drawer__content input#s {
    background: var(--bg-gray);
    box-shadow: none;
    display: block;
    width: 100%;
    height: 45px;
    margin-bottom: 14px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1em;
    vertical-align: middle;
    line-height: 45px;
}

.drawer__title .close {
    display: inline-block;
    padding: 10px 3px;
    cursor: pointer;
    float: right;
}

.drawer__title .close span {
    display: inline-block;
    position: relative;
    width: 3px;
    height: 30px;
    margin: 0 20px 0 7px;
    background: var(--text-tertiary);
    transition: 0.3s ease-in-out;
    transform: rotate(45deg);
}

.drawer__title .close span:before {
    display: block;
    position: absolute;
    top: 50%;
    left: -13px;
    width: 30px;
    height: 3px;
    margin-top: -2px;
    background: var(--text-tertiary);
    content: "";
}

#drawer__content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#drawer__content li {
    border-bottom: 1px solid var(--border-light);
}

#drawer__content li a {
    display: block;
    padding: 14px 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

#drawer__content li a:hover {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    text-decoration: none;
}

#drawer__open span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px auto;
    transition: 0.3s;
}

#drawer__input:checked ~ .header #drawer__open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#drawer__input:checked ~ .header #drawer__open span:nth-child(2) {
    opacity: 0;
}

#drawer__input:checked ~ .header #drawer__open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

#drawer__input {
    display: none;
}

#drawer__open label {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* =============================================
   ヘッダー検索モーダル
   ============================================= */
.header-search__modal .searchform {
    max-width: 400px;
    margin: -70px auto 0;
    font-size: 16px;
}

.header-search__modal #searchsubmit {
    background: var(--primary-blue);
    color: #fff;
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
}

.header-search__modal .searchform:before {
    content: "キーワードで検索";
    color: #fff;
    font-weight: 600;
    display: block;
    text-align: left;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 8px;
}

#searchform div {
    position: relative;
    max-width: 400px;
}

input#s {
    padding-right: 48px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    outline: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    -webkit-appearance: none;
    width: 100%;
    height: 48px;
    padding: 0 48px 0 14px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1em;
    line-height: 48px;
}

input#s:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(11, 120, 227, 0.1);
}

/* =============================================
   レスポンシブ時の中央寄せロゴ対応
   ============================================= */
.header--center {
    height: auto;
    padding: 0;
}

.header--center #logo {
    display: block;
    height: auto;
    margin: 0;
    padding: 10px;
    text-align: center;
    line-height: 1.5;
}

.header--center #logo img {
    padding: 0 5px;
    vertical-align: middle;
}

@media only screen and (min-width: 768px) {
    .header--center .desktop-nav {
        display: block;
        float: none;
        text-align: center;
    }

    .header--center .desktop-nav li a {
        height: auto;
        padding: 10px 15px 15px;
        font-size: 14px;
        line-height: 1.5;
    }
}

/* =============================================
   No Results Message
   ============================================= */
.no-results-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.no-results-message p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 16px 0;
}

/* =============================================
   Entry Content (記事本文)
   ============================================= */
.entry-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-primary);
}

.entry-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 2em 0 1em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue-light);
}

.entry-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 1.5em 0 0.8em;
    padding-left: 12px;
    border-left: 3px solid var(--primary-blue);
}

.entry-content p {
    margin: 0 0 1.5em;
}

.entry-content a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--primary-blue-dark);
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: 1em 0;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5em 1.5em;
    padding: 0;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: 0.5em;
}

/* =============================================
   Additional Layout Helpers
   ============================================= */

/* 施設詳細ページの特徴グリッド */
.clinic-detail__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.clinic-detail__feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* サイドバー情報リスト */
.sidebar-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.sidebar-info-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* 親エリアへ戻るリンク */
.area-page__parent-link {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-back:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: var(--primary-blue-light);
    text-decoration: none;
}

/* =============================================
   Search Title (legacy compatibility)
   ============================================= */
.search-title {
    font-size: 22px;
    font-weight: 700;
    padding: 20px;
    color: var(--text-primary);
}
