/*=====================================
  🌸 :root / カラー変数 🌸
=====================================*/
:root {
  --bg: #0e2433;
  --accent: #b57b7b;
  --ink: #1f2d44;
  --muted: #6b7280;
  --paper: #ffffff;
  --sand: #f6f2f1;
  --line: #e5e7eb;
  --brand: #0f2535;
  --link: #0d5aa7;
  --btn: #fff;
}

/*=====================================
  🌸 リセット / ベーススタイル 🌸
=====================================*/
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  color: var(--ink);
  line-height: 1.8;
  background: #fff;
  font-size: 20px;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a,
a * {
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* デフォルト：リストマークも余白も出さない */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* .listmark が付いたときだけ標準風に戻す（親 or 自身どちらでも可） */
.listmark ul,
.listmark ol,
ul.listmark,
ol.listmark {
  list-style: revert; /* UA既定に戻す */
  margin-block: revert; /* 上下マージンを戻す */
  padding-inline-start: revert; /* 左インデントを戻す */
}

/* revert を未対応の古いブラウザ向けフォールバック */
@supports not (list-style: revert) {
  .listmark ul,
  ul.listmark {
    list-style: disc outside;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
  }
  .listmark ol,
  ol.listmark {
    list-style: decimal outside;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
  }
}

/*=====================================
  🌸 共通コンテナ 🌸
=====================================*/
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px;
  box-sizing: border-box;
}
.is-home .container {
  padding: 0 24px 60px 24px;
}
.is-inner .container {
  padding: 0 24px 48px 24px;
}

/*=====================================
  🌸 ヘッダー 🌸
=====================================*/
.site-header {
  background: var(--brand);
  background: linear-gradient(180deg, #1f2d44 0%, #0b1c31 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 9999;
  height: 100px;
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.brand img {
  max-width: 245px;
  width: 100%;
}
@media (max-width: 767px) {
  header .brand img {
    max-width: 70%;
  }
  footer .brand img {
    max-width: 240px;
  }
}
.menu-toggle {
  appearance: none;
  border: 1px solid #cfe0ee;
  border-radius: 8px;
  background: #fff;
  color: #0a2034;
  font-weight: 700;
  padding: 8px 14px;
  width: 100px;
}
/*=====================================
  🌸  ヘッダー  > ナビゲーション🌸
=====================================*/
#global-nav {
  display: flex;
  gap: 22px;
  font-weight: bold;
}
#global-nav a {
  color: #dbeafe;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  padding: 10px 10px 0 10px;
  margin-bottom: 10px;
}
#global-nav a:hover,
#global-nav a.is-current,
#global-nav a[aria-current] {
  border-color: currentColor;
}

.nav-drawer {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: var(--drawer-w);
  height: calc(100vh - var(--header-h));
  background: #040e18;
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 8px;
}
.nav-drawer a {
  color: #eaf2f9;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-drawer a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-backdrop {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-h));
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 0;
  pointer-events: none;
}
body.nav-open .nav-drawer {
  transform: translateX(0);
  z-index: 99;
}
body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}
body.nav-open .nav-backdrop[hidden] {
  display: block;
}
@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
  .nav-drawer {
    position: static;
    transform: none !important;
    height: auto;
    width: auto;
    background: transparent;
    flex-direction: row;
    gap: 24px;
    padding: 0;
  }
  .nav-backdrop {
    display: none !important;
  }
  .nav-drawer a {
    color: #fff;
    border: none;
  }
}
/*=====================================
  🌸 ヒーロー / メイン 🌸
=====================================*/

/* レイヤ安定化（-1は避ける） */
.hero {
  position: relative;
  z-index: 0;
  background: #ffffff;
  min-height: 320px;
  display: grid;
  align-items: end;
  overflow: hidden; /* はみ出し防止 */
}

/* SVG内のポインタ不要 */
.hero svg,
.hero svg image {
  pointer-events: none;
}

/* ビューポートフィット */
.hero-visual {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- スライドの表示制御：opacity一本化 ---- */
/* SVGの<image>にも効く */
.hero-image {
  width: 100%;
  height: 100%;
  opacity: 0; /* 非表示 */
  transition: opacity 2s ease; /* フェード */
  pointer-events: none;
}

/* 表示状態（最初の1枚に初期付与想定） */
.hero-image.active {
  opacity: 1;
}

/* ---- PC/SPの同時描画防止（チラつき抑止） ---- */
.hero-image.pc {
  display: inline;
}
.hero-image.sp {
  display: none;
}

@media (max-width: 767px) {
  .hero-image.pc {
    display: none;
  }
  .hero-image.sp {
    display: inline;
  }
}

/* 動きが苦手な利用者への配慮 */
@media (prefers-reduced-motion: reduce) {
  .hero-image {
    transition: none;
  }
}

/* ---- コピー文字 ---- */
.hero .copy {
  position: absolute;
  top: 10%;
  left: 10%;
  color: #fff;
  max-width: 70%;
}

.hero .copy h1 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* ---- 装飾曲線 ---- */
.hero .curve {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 90px;
  background: radial-gradient(
    180% 140px at 100% 0,
    #fff 66%,
    rgba(255, 255, 255, 0) 67%
  );
}

/* 赤い飾り罫（<use href="#accent-curve">想定） */
.accent {
  color: #b57b7b;
  transform-box: fill-box;
  transform-origin: left bottom;
}

/*=====================================
  🌸 PC/SP表示切替
=====================================*/

/* PC用 */
.pc {
  display: block;
}

/* SP用 */
.sp {
  display: none;
}

/* SP表示切替 */
@media (max-width: 767px) {
  .pc {
    display: none; /* PC用非表示 */
  }
  .sp {
    display: block; /* SP用表示 */
  }

  /* SP用コピー文字微調整 */
  .hero .copy {
    top: 10%;
    left: 5%;
    max-width: 60%;
  }
}

/*=====================================
  🌸 セクション / 見出し 🌸
=====================================*/

.section.alt {
  background: var(--sand);
}
main h2 {
  font-family: "Shippori Mincho B1", serif;
  padding: 24px 0;
  font-size: 36px;
}
.is-home h2 {
  text-align: center;
}
.is-inner h2 {
  border-bottom: 1px solid;
  margin-top: 0;
  padding-top: 0;
}
.lead {
  color: #374151;
}

/*=====================================
  🌸 カード / 施設カード / フレックス 🌸
=====================================*/
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.facilities .list > article {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  border-top: 1px solid #e6e6e6;
}
.facilities .list > article:first-child {
  border-top: none;
}
.facilities .list h3 {
  font-family: "Shippori Mincho B1", serif;
  font-size: 32px;
}
.facilities figure {
  flex: 0 0 420px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}
.facilities figure img {
  width: 100%;
  height: auto;
  display: block;
}
.facilities .content {
  flex: 1 1 auto;
}
.facilities h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}
.facilities .meta {
  margin: 0 0 10px;
  color: #666;
  font-size: 0.95em;
}
.facilities p {
  font-size: 18px;
  margin: 0 0 1em;
  line-height: 1.6;
}
.facilities .list > article:nth-child(even) {
  flex-direction: row-reverse;
}
@media (max-width: 767px) {
  .facilities .list > article {
    flex-direction: column;
    gap: 12px;
  }
  .facilities figure {
    flex-basis: auto;
    width: 100%;
    order: 1;
  }
  .facilities .content {
    order: 2;
  }
  .facilities .list > article:nth-child(even) {
    flex-direction: column;
  }
}

/*=====================================
  🌸 アイテムグリッド 🌸
=====================================*/
.items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.items figure {
  margin: 0;
}
.items figure img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 767px) {
  .items {
    grid-template-columns: 1fr;
  }
}

/*=====================================
  🌸 汎用グリッド 🌸
=====================================*/
.grid {
  display: grid;
  gap: 22px;
}
.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .grid.cols-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}
.card .pad {
  padding: 16px;
}

/*=====================================
  🌸 ボタン 🌸
=====================================*/
.btn {
  display: inline-block;
  padding: 16px 60px;
  background: var(--btn);
  color: #1f2d44;
  border-right: 1px solid #1f2d44;
  border-bottom: 1px solid #1f2d44;
  font-weight: 700;
  position: relative;
}
.btn::after {
  content: "›";
  font-size: 30px;
  margin-left: 1rem;
  position: absolute;
  line-height: 30px;
  font-weight: normal;
}
.btn:hover {
  opacity: 0.9;
  text-decoration: none;
  color: #fff;
  background: #1f2d44;
  transition-duration: 0.8s;
}
.btn.reverse::after {
  content: "‹"; /* 左向き */
  left: 20%;
  margin-left: 0;
  margin-right: 1rem; /* 左にスペース */
}

.facilities .btn {
  padding: 5px 50px;
  display: block;
  width: fit-content;
  margin: 12px auto 0;
}

/*=====================================
  🌸 テーブル 🌸
=====================================*/
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 5px;
  border-radius: 12px;
  overflow: hidden;
  border-spacing: 5px;
  border: none;
}
.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  background: #f9f6f7;
}
.is-home .table th,
.is-home .table td {
  background: #fff;
}
.table th {
  width: 30%;
  text-align: center;
}

@media (max-width: 767px) {
  .table {
    border-collapse: separate;
    border-spacing: 0;
  }
  .tabl tbody,
  .tabl tr,
  .tabl th,
  .tabl td {
    display: block;
    width: auto;
  }
  .table th,
  .table td {
    display: block;
    width: 100%;
    border-bottom: none;
  }
  .table th {
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #0b1c31;
    margin-top: 10px;
  }
  .table td {
    font-weight: normal;
    margin-bottom: 10px;
  }
  .table tr {
    margin-bottom: 12px;
  }
  .tabl th {
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
    padding: 10px 12px;
    font-weight: 700;
  }
  .tabl td {
    padding: 10px 12px;
    border: 0;
  }
}
.badge {
  font-size: 12px;
  color: #475569;
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: 999px;
}

/*=====================================
  🌸 ニュース 🌸
=====================================*/

.news-list {
  overflow: hidden;
}
.news-list a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-flow: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid;
  color: inherit;
}
.news-list a:hover {
  text-decoration: none;
  background-color: #fff;
  opacity: 0.5;
}

@media (max-width: 767px) {
  .news-list a {
    justify-content: space-between;
  }
}

.news-list time {
  color: var(--muted);
  font-size: 14px;
}

span.newMark {
  font-weight: bold;
  color: #b57b7b;
  font-size: 0.7em;
  padding: 0.1em 0.5em;
  margin-left: auto;
  margin-right: 0;
}

a:hover span.newMark {
  text-decoration: none;
}

span.catName {
  background: #ccc;
  padding: 0.1em 0.5em;
  font-size: 0.7em;
}

/**/

/* カテゴリ名の折り返し対応 */
.news-list a {
  display: flex;
  flex-wrap: wrap; /* 複数行に対応 */
  gap: 8px;
  align-items: center;
}

.news-list .up_ymd {
  flex: 0 0 140px; /* 日付幅固定 */
  font-size: 0.9em;
  color: #0e2433;
}

.news-list .catName {
  flex: 1 1 auto; /* 残り幅で可変 */
  max-width: 150px; /* 必要に応じて横幅調整 */
  white-space: normal; /* 折り返しを有効に */
  word-break: break-word;
  overflow-wrap: break-word;
  font-size: 0.9rem; /* カテゴリが長い場合も収まりやすく */
  padding: 2px 4px; /* 少し余白をつける */
  background: #e5e7eb; /* カテゴリラベル風 */
  border-radius: 4px;
  text-align: center;
}

/* お知らせシステム配布元　著作権表示 */
.wrap-copyright {
  display: inline-block !important;
  text-align: right !important;
  width: 100% !important;
}

.wrap-copyright a {
  /* display: inline !important; */
  text-align: right !important;
  display: inline-block !important;
}

/**/
.loginLink {
  font-size: 12px;
}

/*=====================================
  🌸 フッター 🌸
=====================================*/
.footer {
  background: linear-gradient(180deg, #1f2d44 0%, #0b1c31 100%);
  color: #fff;
  padding: 36px 0;
  margin-top: 56px;
}
.footer a {
  color: #e5e7eb;
}
.site-footer {
  background: linear-gradient(180deg, #1f2d44 0%, #0b1c31 100%);
  color: #eaf2f9;
}
.site-footer .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.brand .corp-sub {
  margin: 0 0 4px;
  font-size: 0.9rem;
  opacity: 0.8;
}
.brand .corp-name {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.telbox {
  /*   max-width: 520px; */
}
.telbox-title {
  margin: 0 0 8px;
  font-weight: 700;
}
.telbox-title .small {
  font-size: 0.8em;
  opacity: 0.85;
  margin-left: -0.5em;
}
.tel-number {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
}
.tel-number .icon {
  width: 29px;
  font-size: 1.2rem;
  margin-right: -10px;
}
.tel-number .num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.tel-note {
  margin: 0;
  opacity: 0.85;
  font-size: 0.9rem;
}
@media (max-width: 767px) {
  .tel-number {
    flex-wrap: wrap;
  }
  .tel-number .tel-note {
    flex-basis: 100%;
    order: 3;
    margin-top: 4px;
  }
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 28px;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #eaf2f9;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover {
  border-color: #eaf2f9;
}
.btn-call {
  display: none;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #cfe0ee;
  background: #fff;
  color: #0a2034;
  font-weight: 700;
}
@media (max-width: 767px) {
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .brand .corp-name {
    font-size: 1.6rem;
  }
  .btn-call {
    display: inline-block;
  }
  .footer-nav ul {
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid;
    border-bottom: 1px solid;
    padding: 40px 10px;
  }
  .banner img {
    width: 200px;
    height: auto;
  }
}

/*=====================================
  🌸 キッカー / ブレッドクラム / スモール 🌸
=====================================*/
.kicker {
  letter-spacing: 0.12em;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
}
.breadcrumb {
  font-size: 14px;
  color: #6b7280;
  text-align: right;
}
.breadcrumb a {
  color: #64748b;
}
.small {
  font-size: 14px;
}

/*=====================================
  🌸 区切り線 🌸
=====================================*/
hr.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
/*=====================================
  🌸 テスト環境専用表示 🌸
=====================================*/

.this_test {
  background: #4e1818;
  color: #fff;
  font-size: 12px;
  text-align: center;
}

/*=====================================
  🌸 ユーティリティ 🌸
=====================================*/
.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-32 {
  margin-bottom: 32px;
}
.pt-0 {
  padding-top: 0;
}
.center {
  text-align: center;
}
