@charset "UTF-8";
/* =========================================================
   浦本医院 common.css (統合・最終版)
   ========================================================= */

/* ---------------------------------------------------------
   1. 基本設定・変数・フォント
   --------------------------------------------------------- */
@import url("https://use.typekit.net/zpd4zfp.css");

:root {
  --color-main: #2651a2;   /* メインカラー（群青・ブルー） */
  --color-accent: #bc9760; /* アクセント（ゴールド） */
  --color-bg: #fffcef;     /* 背景色 */
  --text-main: #333333;    /* 本文色 */
  --font-base: "游ゴシック Medium", "YuGothic Medium", "游ゴシック", YuGothic, "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif;
  --font-serif: "游明朝 Medium", "YuMincho Medium", "游明朝", YuMincho, "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HG明朝B", "ＭＳ Ｐ明朝", "MS PMincho", serif;
  --font-en: montserrat, sans-serif;
}

html {
  font-size: 16px; 
  margin: 0; padding: 0;
}

body {
  font-size: 1rem;
  margin: 0; padding: 0;
  padding-top: 140px; 
  background: var(--color-bg);
  color: var(--text-main);
  font-family: var(--font-base);
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

/* フォント指定 */
.wf_notosansjapanese { font-family: "Noto Sans JP"; }
.serif { font-family: var(--font-serif); }
.sans { font-family: var(--font-base); }
input, button, textarea, select, *:before, *:after { font-family: var(--font-base); }

/* スマホ最適化 */
@media screen and (max-width: 767px) {
  body, p, a, li, dt, dd { font-size: 16px !important; line-height: 1.8; }
  input[type="text"], input[type="email"], select, textarea { font-size: 16px !important; padding: 10px; }
}

/* リンク・段落 */
a { color: #1a2b3c; text-decoration: none; transition: all 0.3s ease; }
a:hover { opacity: 0.7; }
p { margin: 0 0 1em; }
p:last-of-type { margin-bottom: 0; }

/* 汎用クラス */
.alignL { text-align: left !important; }
.alignC { text-align: center !important; }
.alignR { text-align: right !important; }


/* ---------------------------------------------------------
   2. ヘッダー・ナビゲーション
   --------------------------------------------------------- */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background-color: #fffcef;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- PC版 (769px以上) --- */
@media (min-width: 769px) {
  header { display: flex; flex-direction: column; }
  .header .contents {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 40px; width: 100%; box-sizing: border-box;
  }
  
  .htel, .gnav.pc { display: block !important; }
  .menu-toggle, .menu-trigger, .telsp, .sp, .overlay { display: none !important; }

  /* 電話番号 */
  .header .htel, .htel {
    display: block; font-family: var(--font-en); font-weight: 500; font-size: 2rem; 
    letter-spacing: 0.05em; color: var(--color-accent); margin-left: auto;
  }
  .htel a { color: var(--color-accent); }
  .htel:before { content: "\f2a0"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 5px; }

  /* ナビゲーション（中央寄せ） */
  .gnav.pc { display: flex; justify-content: flex-end; padding: 10px 40px; width: 100%; box-sizing: border-box; }
  .gnav.pc .contents { display: block; padding: 0; }
  .gnav.pc .contents > ul { display: flex; list-style: none; padding: 0; margin: 0; justify-content: center; } /* ここで中央寄せ */
  .gnav.pc .contents > ul > li { position: relative; padding: 0 15px; }
  .gnav.pc .contents > ul > li > a {
    color: #333; text-decoration: none; display: block; padding-bottom: 5px; font-weight: 600;
  }
  header nav.gnav li > a:after {
    content: ""; height: 3px; border-bottom: solid 3px #d97a61; position: absolute; bottom: 0; width: 50%; left: 50%; transform: translateX(-50%);
  }

  /* 美容メニュー強調 */
  .gnav.pc li a[href*="beauty"], .gnav.pc li a[href*="cosmetic"] { color: var(--color-accent); }

  /* ドロップダウン */
  .gnav.pc .sub-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
    background-color: #fff; border: 1px solid #ddd; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 9999; border-radius: 0 0 4px 4px; padding: 0; margin: 0;
  }
  .gnav.pc .contents > ul > li:hover .sub-menu { display: block; }
  .gnav.pc .sub-menu li { list-style: none !important; border-bottom: 1px solid #eee; width: 100%; text-align: left; }
  .gnav.pc .sub-menu li:last-child { border-bottom: none; }
  .gnav.pc .sub-menu li a { display: block; padding: 12px 15px; font-size: 14px; color: #333; font-weight: normal; background: none; }
  .gnav.pc .sub-menu li a:hover { background-color: #f7f7f7; color: var(--color-accent); }
}

/* --- スマホ版 (768px以下) --- */
@media (max-width: 768px) {
  body { padding-top: 100px; }
  .gnav.pc, .htel { display: none !important; }
  .menu-trigger, .telsp { display: block !important; }

  .header .contents { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; width: 100%; box-sizing: border-box; }

  header .telsp { position: absolute; right: 20px; top: 13px; font-size: 32px; line-height: 1; }
  header .telsp a, header .telsp .fa-phone-volume:before { color: var(--color-accent); }

  .menu-trigger { position: relative; width: 30px; height: 25px; cursor: pointer; z-index: 1100; display: block; margin-left: auto; top: 10px; }
  .menu-trigger span { display: block; width: 100%; height: 3px; background-color: #333; position: absolute; left: 0; transition: 0.3s; }
  .menu-trigger span:nth-of-type(1) { top: 0; }
  .menu-trigger span:nth-of-type(2) { top: 11px; }
  .menu-trigger span:nth-of-type(3) { top: 22px; }
  
  .menu-trigger.is-active span:nth-of-type(1) { transform: translateY(11px) rotate(45deg); }
  .menu-trigger.is-active span:nth-of-type(2) { opacity: 0; }
  .menu-trigger.is-active span:nth-of-type(3) { transform: translateY(-11px) rotate(-45deg); }

  .header .sp {
    position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
    background-color: #fff; box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2); z-index: 1000;
    transition: right 0.3s ease-in-out; overflow-y: auto; padding-top: 60px;
  }
  .header .sp.is-active { right: 0; }
  .header .sp ul li a { display: block; padding: 15px; border-bottom: 1px solid #eee; color: #333; text-decoration: none; font-size: 16px; }
  
  .header .overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 999; display: none;
  }
  .header .overlay.is-active { display: block; }
}


/* ---------------------------------------------------------
   3. フッター (デザイン変更：群青色・センタリング)
   --------------------------------------------------------- */
footer, .footer {
    background: var(--color-main) !important; /* 群青色(#2651a2) */
    color: #ffffff !important;                /* 文字は白 */
    text-align: center !important;            /* 強制的に中央揃え */
    font-size: 1.1rem;
    padding: 40px 0;
}

/* フッター内の要素をすべて中央寄せ＆白文字に */
footer .contents,
footer .address,
footer .address .inner,
footer .googlemap,
footer small {
    float: none !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
    color: #ffffff !important;
    background: transparent !important; /* 背景の白ボックスを消す */
    padding: 10px 0 !important;
}

/* ロゴ周りの余白 */
footer .logo { margin-bottom: 30px; }
footer .logo img { background: #fff; padding: 10px; border-radius: 4px; } /* ロゴが見えるように白背景 */

/* 住所・電話番号 */
footer .address { font-size: 1rem; line-height: 1.8; }
footer .ftel {
    display: block; font-family: var(--font-en); font-weight: 500; font-size: 2.2rem;
    color: #fff !important; margin: 20px 0;
}
footer .ftel a { color: #fff !important; text-decoration: none; }
footer .ftel:before { content: "\f2a0"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 10px; }

/* フッターナビ */
.fnav { text-align: center; margin-bottom: 30px; }
.fnav li { display: inline-block; }
.fnav li a { padding: 0 15px; color: #fff !important; }
.fnav li:after { content: "｜"; color: rgba(255,255,255,0.5); }
.fnav li:last-child:after { content: none; }

/* スマホ調整 */
@media screen and (max-width: 767px) {
    .fnav { display: none; }
    footer .ftel { font-size: 1.8rem; }
}


/* ---------------------------------------------------------
   4. フローティングメニュー (Web予約・Instagram)
   --------------------------------------------------------- */
/* 画面右端に固定するコンテナ */
.floating-menu {
    position: fixed;
    right: 0;
    top: 20%; /* 上から20%の位置 */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 各ボタンのデザイン */
.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;          /* 通常はアイコンのみ表示 */
    height: 60px;
    background-color: var(--color-main);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px 0 0 8px; /* 左側だけ丸く */
    box-shadow: -2px 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    font-size: 24px;      /* アイコンサイズ */
    position: relative;
    overflow: hidden;
}

/* ホバー時に横に伸びてテキストを表示 */
.floating-btn:hover {
    width: 180px;
    justify-content: flex-start;
    padding-left: 15px;
    background-color: var(--color-accent);
}

/* ボタン内のテキスト（最初は隠す） */
.floating-text {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    margin-left: 10px;
    transition: opacity 0.3s;
}

.floating-btn:hover .floating-text {
    opacity: 1;
}

/* インスタグラム用カラー */
.floating-btn.insta {
    background: #E1306C; /* インスタ公式色 */
}
.floating-btn.insta:hover {
    background: #C13584;
}

/* スマホ表示：画面下部に固定バーとして表示 */
@media screen and (max-width: 767px) {
    .floating-menu {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        flex-direction: row;
        gap: 0;
    }
    
    .floating-btn {
        width: 50%;
        height: 60px;
        border-radius: 0;
        font-size: 20px;
    }
    
    /* スマホでは最初からテキストを表示 */
    .floating-text {
        opacity: 1;
        display: block;
    }
    
    .floating-btn:hover {
        width: 50%; /* 幅を変えない */
    }
}


/* ---------------------------------------------------------
   5. その他調整（トップページ画像など）
   --------------------------------------------------------- */
@media screen and (max-width: 767px) {
    .pageIndex .treatment .internal,
    .pageIndex .treatment .pediatrics {
        background-size: 100% auto !important;
        background-position: top center !important;
        padding-top: 55%;
    }
}

/* =========================================================
   【オリジナル】予約・インスタグラム固定ボタン
   ========================================================= */

/* ボタンのコンテナ（右端・中央に配置） */
.fixed-buttons-container {
    position: fixed;
    right: 20px;       /* 右からの距離 */
    top: 50%;          /* 上から50%の位置 */
    transform: translateY(-50%); /* 縦方向の中央揃え */
    z-index: 99999;
    display: flex;
    flex-direction: column; /* 縦並び */
    gap: 15px;         /* ボタン間の隙間 */
}

/* 共通ボタンスタイル */
.reserve_btn a,
.fixed-instagram-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #e4405f; /* Instagramカラーに近いピンク */
    color: #fff !important;
    padding: 10px 15px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
    white-space: nowrap;
}

/* ホバー時の色 */
.reserve_btn a:hover,
.fixed-instagram-button:hover {
    background-color: #f7a4b0;
    opacity: 1;
}

/* スマホでの調整 */
@media screen and (max-width: 767px) {
    .fixed-buttons-container {
        right: 10px; /* スマホは少し端に寄せる */
        gap: 10px;
    }
    .reserve_btn a,
    .fixed-instagram-button {
        padding: 8px 12px;
        font-size: 0.8rem; /* 文字を少し小さく */
    }
}