@charset "UTF-8";

/* =========================================
   ベース設定・変数
========================================= */
/* =========================================
   デザイントークン
   ここだけ書き換えれば、サイト全体の見た目が変わります。
   ※ブランドカラーはデザイン確定までの暫定値です
========================================= */
:root {
    /* --- ブランド（暫定・デザインの中で確定させる） --- */
    --brand:            #007bb6;   /* 主役。見出し・ボタン・表のヘッダー */
    --brand-deep:       #2c5a94;   /* 主役より濃い。hover やフッター用 */
    --brand-light:      #0288d1;   /* 主役より明るい。線・アイコン */
    --brand-tint:       #eef9fb;   /* 主役のごく薄い面。背景に敷く */
    --brand-tint-2:     #f0f8ff;   /* さらに薄い面 */
    --accent:           #f7931e;   /* 差し色。注意を引きたい一点に */
    --line-green:       #06c755;   /* LINE（固定） */

    /* --- 意味を持つ色（fixes-03 のルール） --- */
    --danger:           #e53935;   /* 危険の告知だけに使う（枠・アイコン） */
    --danger-strong:    #c62828;   /* 危険の見出し・強い文字 */
    --danger-warn:      #c0392b;   /* 症状カード内の警告1行（fixes-03） */
    --danger-bg:        #fff5f5;
    --danger-line:      #e8bdb7;
    --todo-bg:          #fff3cd;   /* 未確定箇所のマーカー（公開前に外す） */
    --todo-text:        #8a5200;

    /* --- グレースケール --- */
    --gray-900:         #222222;
    --gray-800:         #333333;
    --gray-600:         #666666;
    --gray-500:         #777777;
    --gray-400:         #888888;
    --gray-300:         #aaaaaa;
    --gray-250:         #cccccc;
    --gray-200:         #dddddd;
    --gray-150:         #e3e3e3;
    --gray-100:         #eeeeee;
    --gray-50:          #f0f0f0;
    --gray-25:          #f9f9f9;
    --white:            #ffffff;

    /* --- 用途で呼ぶ名前（こちらを使う） --- */
    --text:             var(--gray-800);
    --text-muted:       var(--gray-500);
    --text-faint:       var(--gray-400);
    --text-invert:      var(--white);
    --surface:          var(--white);
    --surface-alt:      var(--gray-25);
    --surface-tint:     #f7fcff;
    --border:           var(--gray-150);
    --border-soft:      var(--gray-100);
    --border-strong:    var(--gray-200);

    /* --- 影 --- */
    --shadow-xs:        0 1px 3px rgba(0,0,0,0.03);
    --shadow-sm:        0 3px 10px rgba(0,0,0,0.05);
    --shadow-md:        0 5px 15px rgba(0,0,0,0.05);
    --shadow-lg:        0 10px 25px rgba(0,0,0,0.10);
    --shadow-hover:     0 15px 30px rgba(0,0,0,0.10);
    --overlay-dark:     rgba(0,0,0,0.30);

    /* --- 文字 --- */
    --font-base: 'Noto Sans JP', "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --font-en:   "Helvetica Neue", Arial, sans-serif;

    /* 文字サイズ（本文は下げない。読み手に高齢の方が多いため） */
    --fs-xs:    0.78rem;
    --fs-sm:    0.88rem;
    --fs-base:  1rem;
    --fs-md:    1.06rem;
    --fs-lg:    1.25rem;
    --fs-xl:    1.5rem;
    --fs-2xl:   1.9rem;
    --fs-3xl:   2.5rem;
    --fs-4xl:   3.2rem;

    --lh-tight: 1.4;
    --lh-base:  1.75;
    --lh-loose: 1.95;

    /* --- 余白 --- */
    --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
    --sp-5: 24px;  --sp-6: 32px;  --sp-7: 40px;  --sp-8: 56px;
    --sp-9: 80px;  --sp-10: 100px;
    --section-spacing: 100px;
    --container: 1200px;

    /* --- 角丸 --- */
    --r-sm:  6px;
    --r-md:  8px;
    --r-lg:  12px;
    --r-xl:  20px;
    --r-pill: 999px;

    /* --- 旧名（既存CSSが参照しているため残す） --- */
    --primary-color:     var(--brand);
    --secondary-color:   var(--brand-light);
    --accent-color:      var(--accent);
    --light-blue-bg:     var(--brand-tint);
    --text-color:        var(--text);
    --border-radius-lg:  var(--r-lg);
    --border-radius-md:  var(--r-md);
    --box-shadow:        var(--shadow-md);
    --box-shadow-hover:  var(--shadow-hover);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.75;
    background-color: var(--white);
    font-feature-settings: "palt";
    letter-spacing: 0.05em;
}

/* ユーティリティクラス */
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
ul { list-style: none; padding: 0; margin: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; }

/* PC/SP 表示切り替えユーティリティ */
.sp-only { display: none; }
.sp-br { display: none; } 

@media (max-width: 768px) {
    .sp-only { display: block; }
    .pc-only { display: none; }

    .sp-br { display: block; } 
    .pc-br { display: none; } 
}

/* ホバーエフェクト */
.hover-up { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-up:hover { transform: translateY(-7px); box-shadow: var(--box-shadow-hover); }

/* 共通パーツ */
.section { padding: var(--section-spacing) 0; position: relative; }

/* セクション見出し
   中央揃え＋下線の飾りをやめ、「小さな英字ラベル＋大きな見出し＋細い罫線」に。
   情報量の多いページでは左揃えのほうが読み出しが速い */
.section-title {
    text-align: left;
    font-size: var(--fs-2xl);
    margin: 0 0 var(--sp-7);
    padding-bottom: var(--sp-5);
    color: var(--text);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: 0.01em;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
}
.section-title span {
    font-family: var(--font-en);
    font-size: var(--fs-xs);
    color: var(--brand);
    opacity: 1;
    letter-spacing: 0.18em;
    margin-bottom: var(--sp-2);
    display: block;
    font-weight: 700;
}
/* 下線の飾りは見出し自身の border-bottom に置き換えたため不要 */
.section-title::after { content: none; }

.section-lead { text-align: left; margin: 0 0 var(--sp-7); font-size: var(--fs-base); color: var(--text); max-width: 76ch; }
.btn-wrap { text-align: center; margin-top: var(--sp-8); }

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 40px;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 50px;
    font-weight: bold;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.btn-more::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background-color: var(--secondary-color);
    transition: 0.3s ease;
    z-index: -1;
}
.btn-more:hover { color: var(--white); }
.btn-more:hover::before { width: 100%; }

/* 交互の背景。ブランド色のベタ塗りをやめ、中立なごく薄いグレーに。
   色を決め直しても区切りの役割が変わらない */
.deco-bg {
    background-color: var(--surface-alt);
    background-image: none;
}

/* =========================================
   ヘッダー (PC/SP両対応・ハンバーガー機能付き)
========================================= */
.header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* PCは1行に収める（ロゴ／ナビ／電話・ボタン）。
   以前は2段組みで152〜178pxあり、画面の2割を占めていた */
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: block;
}

.header-top-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    height: auto;
    flex: 0 0 auto;
}
.header-logo { margin: 0; }
.header-logo img {
    height: auto;
    max-height: 34px;
    width: auto;
    max-width: 100%;
    display: block;
}

/* ハンバーガーボタン */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 9999;
}
.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    left: 0;
    transition: 0.3s;
}
.hamburger-btn span:nth-of-type(1) { top: 0; }
.hamburger-btn span:nth-of-type(2) { top: 11px; }
.hamburger-btn span:nth-of-type(3) { bottom: 0; }

body.nav-open .hamburger-btn span:nth-of-type(1) { transform: translateY(11px) rotate(45deg); }
body.nav-open .hamburger-btn span:nth-of-type(2) { opacity: 0; }
body.nav-open .hamburger-btn span:nth-of-type(3) { transform: translateY(-11px) rotate(-45deg); }

.header-drawer {
    display: contents;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin-right: 0;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.header-tel-box {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: var(--sp-2);
    line-height: 1.2;
}
/* 1行に収めるため、飾り文は省く（電話番号と営業時間は残す） */
.header-tel-box .tel-msg { display: none; }
.tel-msg {
    font-size: 0.8rem;
    color: var(--gray-800);
    margin: 0 0 2px 0;
    font-weight: 500;
}
.tel-number {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--brand-deep);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0;
    transition: 0.3s;
}
.tel-number i {
    font-size: 1.8rem;
    margin-top: -2px;
}
.tel-number:hover {
    opacity: 0.7;
}
.tel-time {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin: 0;
}

.header-sub-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.btn-sub {
    font-size: 0.8rem;
    padding: 6px 15px;
    border-radius: 4px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
    width: 140px;
    text-align: center;
}
.btn-line { background-color: var(--line-green); }
.btn-mail { background-color: var(--accent); }
.btn-mail:hover, .btn-line:hover { opacity: 0.8; }

.gnav {
    background-color: var(--white);
    border-top: 1px solid var(--gray-100);
}
.gnav ul {
    display: flex;
    justify-content: center;
}
.gnav li a {
    display: block;
    padding: 12px 25px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.95rem;
    position: relative;
}
.gnav li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; width: 0; height: 2px;
    background-color: var(--secondary-color);
    transition: 0.3s;
    transform: translateX(-50%);
}
.gnav li a:hover::after { width: 80%; }

/* =========================================
   フッター
========================================= */
.footer {
    background-color: var(--gray-900); /* 背景色を引き締め */
    color: var(--gray-100);
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 上揃え */
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.footer-info {
    max-width: 400px;
}
.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.05em;
}
.footer-address {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.8;
    margin: 0;
}

/* フッターナビ（主要メニュー） */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav li {
    margin: 0;
}
.footer-nav a {
    font-size: 0.95rem;
    opacity: 0.8;
    color: var(--white);
    transition: 0.3s;
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}
.footer-nav a:hover {
    opacity: 1;
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* フッターサービス一覧 */
.footer-service-links {
    margin-bottom: 50px;
}
.footer-service-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--white);
    display: flex;
    align-items: center;
}
.footer-service-title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin-right: 10px;
}

.footer-service-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px 20px;
    padding: 0;
    list-style: none;
    margin: 0;
}
.footer-service-list li {
    margin: 0;
}
.footer-service-list li a {
    font-size: 0.85rem;
    color: var(--gray-300);
    display: block;
    padding: 2px 0;
    transition: 0.3s;
    position: relative;
    padding-left: 15px;
}
.footer-service-list li a::before {
    content: "\f054"; /* chevron-right icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    color: #555;
    transition: 0.3s;
}
.footer-service-list li a:hover {
    color: var(--white);
}
.footer-service-list li a:hover::before {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.5;
    font-family: var(--font-en);
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

/* =========================================
   共通CTA（お問い合わせボックス）
========================================= */
.cta-trouble-section {
    background-image: url('../img/cta-bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding: 80px 0;
    position: relative;
}
.cta-trouble-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 50, 100, 0.5);
    z-index: 0;
}
.cta-trouble-section .container {
    position: relative;
    z-index: 1;
}
.cta-trouble-box {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e1f0f8;
    position: relative;
    overflow: hidden;
}
.cta-trouble-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
}
.cta-trouble-tel {
    text-align: left;
    flex: 1;
    border-right: 1px solid var(--gray-100);
    padding-right: 40px;
}
.cta-trouble-tel .tel-msg {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
    display: inline-block;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
}
.cta-trouble-tel .tel-number {
    font-size: 3rem;
    justify-content: flex-start;
    font-weight: 900;
    color: var(--brand-deep);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
    line-height: 1.2;
    margin: 5px 0;
}
.cta-trouble-tel .tel-number i {
    font-size: 2.2rem;
    color: var(--secondary-color);
}
.cta-trouble-tel .tel-time {
    font-size: 0.85rem;
    color: var(--gray-600);
    background: #f5f5f5;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
}
.cta-trouble-btns {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
}
.btn-trouble {
    flex: 1;
    padding: 18px 20px;
    border-radius: 8px;
    color: var(--white);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}
.btn-trouble:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    opacity: 1;
}

/* =========================================
   レスポンシブ (SP) - 共通部分
========================================= */
@media (max-width: 768px) {
    .sp-only { display: block; }
    .pc-only { display: none; }
    .sp-br { display: block; }
    .pc-br { display: none; }

    :root { --section-spacing: 50px; }

    /* ヘッダー */
    .header-top-bar { height: 60px; padding: 10px 15px; }
    .header-logo img { max-height: 30px; }
    .hamburger-btn { display: block; }

    /* ドロワーメニュー */
    .header-drawer {
        display: block; position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(255, 255, 255, 0.98); transition: 0.3s ease-in-out; z-index: 1999;
        padding-top: 70px; overflow-y: auto; text-align: center;
    }
    body.nav-open .header-drawer { right: 0; }

    .header-right { flex-direction: column; margin: 0 auto 30px; gap: 20px; }
    .header-tel-box { align-items: center; }
    .tel-number { font-size: 1.8rem; justify-content: center; }
    .header-sub-btns { flex-direction: row; width: 100%; justify-content: center; }
    .btn-sub { width: auto; flex: 0 0 auto; min-width: 130px; }
    
    .gnav { border-top: none; }
    .gnav ul { flex-direction: column; }
    .gnav li { border-bottom: 1px solid var(--gray-100); width: 80%; margin: 0 auto; }
    .gnav li:first-child { border-top: 1px solid var(--gray-100); }
    .gnav li a { padding: 15px 0; font-size: 1rem; }
    .gnav li a::after { display: none; }

    /* CTA */
    .cta-trouble-section { background-attachment: scroll; padding: 60px 0; }
    .cta-trouble-box { flex-direction: column; text-align: center; padding: 25px 20px; gap: 20px; }
    .cta-trouble-tel { border-right: none; border-bottom: 1px solid var(--gray-100); padding-right: 0; padding-bottom: 20px; width: 100%; align-items: center; }
    .cta-trouble-tel .tel-msg { font-size: 0.9rem; }
    .cta-trouble-tel .tel-number { font-size: 1.8rem; justify-content: center; }
    .cta-trouble-btns { flex-direction: column; width: 100%; }
    .btn-trouble { width: 100%; }

    /* フッター */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .footer-nav {
        justify-content: center;
        gap: 15px;
    }
    .footer-service-links {
        margin-bottom: 30px;
    }
    .footer-service-title {
        justify-content: center; /* タイトルも中央 */
    }
    .footer-service-list {
        grid-template-columns: 1fr; /* 1列 */
        text-align: center;
    }
    .footer-service-list li a {
        padding-left: 0; /* アイコン分のパディング解除 */
    }
    .footer-service-list li a::before {
        display: none; /* SPではアイコン消してシンプルに */
    }
}

@media (min-width: 769px) {
    .header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
    .header-top-bar { padding-right: 0; width: auto; }
    .header-right { margin-left: auto; }
    .gnav { width: 100%; border-top: 1px solid var(--gray-100); }
}
/* =========================================
   ヘッダー（PC）
   ロゴ・電話の段とナビの段の2段構成。
   以前は152〜178pxあり画面の2割を占めていたので、両段を薄くして約92pxに
========================================= */
@media (min-width: 769px) {
    .header { box-shadow: none; border-bottom: 1px solid var(--border); background: var(--white); }

    .header-inner { display: block; max-width: none; padding: 0; }

    /* 1段目：ロゴ ／ 電話・ボタン */
    .header-top-bar {
        max-width: var(--container);
        margin: 0 auto;
        padding: 0 24px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--sp-5);
    }
    .header-logo { margin: 0; }
    .header-logo img { max-height: 28px; }

    .header-drawer { display: contents; }

    .header-right {
        display: flex; align-items: center; gap: var(--sp-3);
        margin: 0; justify-content: flex-end; flex: 0 0 auto;
    }
    .header-tel-box { display: flex; flex-direction: row; align-items: baseline; gap: var(--sp-2); }
    .header-tel-box .tel-msg { display: none; }
    .header-tel-box .tel-number { font-size: 1.2rem; color: var(--brand-deep); gap: 6px; }
    .header-tel-box .tel-number i { font-size: 0.95rem; color: var(--brand); }
    .header-tel-box .tel-time { font-size: 0.66rem; color: var(--text-muted); margin: 0; white-space: nowrap; }

    .header-sub-btns { display: flex; flex-direction: row; gap: var(--sp-2); }
    .btn-sub {
        padding: 6px 12px; font-size: 0.72rem; border-radius: var(--r-pill);
        white-space: nowrap; font-weight: 700;
    }

    /* 2段目：ナビ */
    .gnav {
        width: 100%; background: transparent;
        border-top: 1px solid var(--border-soft);
    }
    .gnav ul {
        max-width: var(--container); margin: 0 auto; padding: 0 24px;
        display: flex; justify-content: flex-start; flex-wrap: nowrap;
        gap: var(--sp-6); height: 40px; align-items: center;
    }
    .gnav li { border: none; }
    .gnav li a {
        font-size: 0.83rem; font-weight: 700; color: var(--text);
        white-space: nowrap; padding: 0; display: inline-block;
    }
    .gnav li a:hover { color: var(--brand); }
}

