@charset "UTF-8";

/* =====================================================
   Base
   ===================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: ”ヒラギノ角ゴ Pro W3”, ”Hiragino Kaku Gothic Pro”, Osaka, ”ＭＳ Ｐゴシック”, ”MS PGothic”, sans-serif;
  font-size: 1em;
  line-height: 1.6em;
  color: #222;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: #1111cc;
}

p {
  text-align: left;
  margin-top: 5px;
}

.container p:not(:last-child) {
  margin-bottom: 1.5em;
}

/* =====================================================
   Header
   ===================================================== */

header {
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  margin: 0.5em 0;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.logo a {
  text-align: center;
}

.gnav {
  display: flex;
}

.gnav a {
  display: block;
  font-size: 22px;
}

.main-nav-btn {
  width: 49%;
  display: inline-block;
  text-decoration: none;
  font-size: 0.8em;
  border-bottom: solid 4px #093;
  text-align: center;
  line-height: 80px;
}

.main-nav-home-btn {
  width: 90%;
  height: 40px;
  text-align: center;
  background-color: #f5f5f5;
  font-size: 0.8em;
  color: #666;
}

.sidebar-nav {
  line-height: 80px;
}

/* =====================================================
   Layout / Contents
   ===================================================== */

.main,
footer {
  padding: 20px;
}

.main {
  background-color: #fff;
}

.sidebar {
  background-color: #fff;
  margin: 20px;
  color: #fff;
}

.sidebar-nav {
  border: 1px solid #ddd;
  padding: 1em;
}

.sidebar-nav a {
  color: #333;
}

.sidebar-nav li {
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #ddd;
}

.sidebar-cliniclist {
  border: 1px solid #ddd;
  background-color: #f5f5f5;
  padding: 1em;
}

.sidebar-cliniclist li {
  padding: 20px 0;
  line-height: 20px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #ddd;
}

/* =====================================================
   Tiles
   ===================================================== */

.tiles,
.tiles2 {
  margin-bottom: 1em;
}

.tiles li {
  border: #ccc 1px solid;
  margin-bottom: 1em;
  padding: 20px;
  border-radius: 4px;
  background-color: #fff;
}

.tiles2 li {
  margin-bottom: 1em;
  background-color: #fff;
}

/* =====================================================
   Footer
   ===================================================== */

footer {
  text-align: center;
  background: url(../img/bg.gif);
  color: #555;
}

/* =====================================================
   Breadcrumb
   ===================================================== */

.pankuzu {
  width: 100%;
  background-color: #fcfcfc;
  margin-bottom: 30px;
}

.pankuzu a {
  color: #2e8b57;
}

.pankuzu ol {
  margin: 0 auto;
  text-align: center;
}

.pankuzu li {
  display: inline-block;
  margin: 0.9em;
  color: #2e8b57;
  font-size: 0.7em;
}

/* =====================================================
   PC / SP image switching
   ===================================================== */

/* SP default */
.pc { display: none !important; }
.sp { display: block !important; }

/* =====================================================
   Hero (Top)
   ===================================================== */

.hero {
  text-align: center;
}

.hero-img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
}

.hero-title {
  margin: 16px 0 0;
  line-height: 1.4;
}

.hero-title-pink {
  color: #f2a7c6;
}

/* h1/hero-title だけ“ガタつき軽減”用 */
h1,
.hero-title {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Noto Sans JP",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 20px;
    margin-top: 12px;
  }
}

.hero-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 28px;
  background: #fff;
  border-radius: 12px;
  font-size: 0.9em;
  text-align: left; /* ← heroのcenterをここで止める */
}

/* hero-box内のh1だけ中央にしたい */
.hero-box .hero-title {
  text-align: center;
}

.hero-box h1 {
  text-wrap: balance;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.35;
  margin: 0 0 10px;
}

.hero-box h2 {
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.7;
  margin: 0;
}

/* h2本文：折り返し安定 */
.hero-sub {
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
  text-align: left !important;
}

.hero-sub .line {
  display: block;
}

/* 両端揃えを使う場合だけ付与 */
.hero-sub.justify {
  text-align: justify;
  text-justify: inter-ideograph;
  text-wrap: wrap;
}

/* =====================================================
   Responsive (<=959px)
   ===================================================== */

@media screen and (max-width: 959px) {
  .main-nav-btn {
    background-image: url(../img/img_bg.gif);
    color: #333;
  }

  .main-nav-home-btn {
    margin-bottom: 10px;
    line-height: 40px;
  }

  .main-nav-btn {
    height: 105px;
    line-height: 105px;
  }

  .main-nav-home-btn {
    height: 56px;
    line-height: 56px;
  }

  .main-nav {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* =====================================================
   Desktop (>=960px)
   ===================================================== */

@media screen and (min-width: 960px) {
  header {
    margin: 0 auto;
    padding: 0;
    max-width: 980px;
    flex-direction: row;
  }

  p { font-size: 14px; }

  .logo { margin: 0 auto 0 0; }

  .gnav a {
    padding: 10px 22px;
    display: block;
    font-size: 24px;
    border-radius: 4px;
  }

  .main-nav {
    display: flex;
    justify-content: center;
/*    border-top: #a3b6de 4px solid; */
    background-color: #f6fce3;
  }

  .main-nav a {
    display: block;
    transition: all 0.3s ease;
    color: #333;
  }

  .main-nav a:hover {
    background-color: #093;
    color: #fff;
  }

  .main-nav-home-btn {
    display: block;
    width: 80px;
    max-width: 100%;
    height: 60px;
    text-align: center;
    font-size: 0.8em;
    color: #ccc;
    background-color: #333;
    line-height: 60px;
  }

  .main-nav-btn {
    width: 150px;
    max-width: 100%;
    height: 60px;
    text-align: center;
    font-size: 0.8em;
    border-right: #c0cc9b 1px solid;
    display: inline-block;
    line-height: 60px;
  }

  .sidebar { margin: 0; }

  .sidebar-nav li {
    line-height: 40px;
    font-size: 13px;
    border-bottom: 1px solid #ddd;
  }

  .container {
    display: flex;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
  }

  .sidebar { width: 260px; }

  .main {
    flex: 1;
    order: 2;
    padding: 0 40px 0;
  }

  .tiles, .tiles2 {
    display: flex;
    flex-wrap: wrap;
  }

  .tiles li, .tiles2 li {
    margin: 5px;
    width: calc(33.3% - 10px);
  }

  .pc { display: block !important; }
  .sp { display: none !important; }

  /* PCだけ hero-box を横長に */
  .hero-box { max-width: 980px; }
}

/* =====================================================
   Info Box (新施設のご紹介)
   ===================================================== */

.info-box {
  max-width: 980px;
  margin: 14px auto 0;
  padding: 22px 22px 18px;
  border: 2px solid #b9b9b9;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.info-box__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 10px;
}

.info-box__open {
  color: #e60012;
  font-weight: 800;
}

.info-box__meta {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.info-box__note {
  font-size: 12px;
  color: #666;
}

.info-box__buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 14px 22px;
  border: 2px solid #777;
  border-radius: 10px;
  background: #f3f3f3;
  color: #222;
  font-weight: 700;
  text-decoration: none;
}

.info-btn--secondary { background: #fff; }

@media (max-width: 959px) {
  .info-box {
    margin-left: 10px;
    margin-right: 10px;
    padding: 18px 16px 14px;
  }

  .info-box__buttons {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .info-btn {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
  }
}

/* =====================================================
   SP fixed menu
   ===================================================== */

:root {
  --spMenuH: 74px;
  --spFrame1: #ff7aa8; /* ピンク */
  --spFrame2: #e60012; /* 赤 */
  --spFrame3: #222;    /* 黒 */
}

/* デフォルト（PC/SP共通のベース） */
nav.sp-fixed-menu { display: none; }

/* 共通：アイテムの色変数（HTMLの frame-color1/2/3 + text-red/text-black を使う） */
nav.sp-fixed-menu > a.sp-fixed-menu__item {
  --frameColor: var(--spFrame3);
  --labelColor: #111;
  text-decoration: none;
  background: #fff;
  border: 2px solid var(--frameColor);
}

nav.sp-fixed-menu > a.sp-fixed-menu__item.frame-color1 { --frameColor: var(--spFrame1); }
nav.sp-fixed-menu > a.sp-fixed-menu__item.frame-color2 { --frameColor: var(--spFrame2); }
nav.sp-fixed-menu > a.sp-fixed-menu__item.frame-color3 { --frameColor: var(--spFrame3); }

nav.sp-fixed-menu > a.sp-fixed-menu__item.text-red   { --labelColor: var(--spFrame2); }
nav.sp-fixed-menu > a.sp-fixed-menu__item.text-black { --labelColor: #111; }

nav.sp-fixed-menu .sp-fixed-menu__label { color: var(--labelColor); }

/* ---------- SP：下固定 ---------- */
@media screen and (max-width: 959px) {
  nav.sp-fixed-menu {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;

    /* “帯”の高さを固定せず、中身＋safe-areaで決める */
    height: auto;
    gap: 5px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -8px 20px rgba(0,0,0,.10);
  }

  nav.sp-fixed-menu > a.sp-fixed-menu__item {
    flex: 1;
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;

    border-radius: 12px;
    overflow: hidden;

    /* 高さ（カードの高さ） */
    min-height: 86px;
    padding: 12px 8px;
  }

  /* 余白を使うので区切り線は無し */
  nav.sp-fixed-menu > a.sp-fixed-menu__item::before { content: none; }

  nav.sp-fixed-menu .sp-fixed-menu__icon {
    width: 22px;
    height: 22px;
    display: block;
  }

  nav.sp-fixed-menu .sp-fixed-menu__label {
    font-size: 13px;
    line-height: 1;
  }

  /* 本文が下メニューに隠れないように */
  body {
    padding-bottom: calc(var(--spMenuH) + env(safe-area-inset-bottom));
  }
}

/* ---------- PC：右下固定（必要なときだけON） ---------- */
@media screen and (min-width: 960px) {
  nav.sp-fixed-menu {
    display: flex;
    position: fixed;
    right: 12px;
    bottom: 90px;
    z-index: 9999;

    width: 110px;
    height: auto;
    padding: 0;
    background: transparent;

    flex-direction: column;
    gap: 8px;
  }

  nav.sp-fixed-menu > a.sp-fixed-menu__item {
    width: 110px;
    min-height: 92px;
    padding: 10px 8px;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;

    box-shadow: 0 10px 30px rgba(0,0,0,.12);
  }

  nav.sp-fixed-menu .sp-fixed-menu__icon {
    width: 34px;
    height: 34px;
    display: block;
  }

  nav.sp-fixed-menu .sp-fixed-menu__label {
    font-size: 12px;
    line-height: 1.1;
  }

  /* PCでは下固定ではないので、余白は不要 */
  body { padding-bottom: 0 !important; }
}

@media screen and (max-width: 959px){
  #page-top{
    bottom: calc(var(--spMenuH) + env(safe-area-inset-bottom) + 30px);
  }
}
