@charset "UTF-8";
/* =========================================================
   社会福祉法人 育明会 共通スタイル（2026 リニューアル版）
   作り・操作はレジデンシャル常盤台と共通、
   配色・背景・配置は元の法人サイトを踏襲
   ========================================================= */

/* ---------- 色・サイズの設定（ここを変えると全体に反映） ---------- */
:root {
  --text: #1f3a5f;        /* 本文の文字色（旧 #039 を少し落ち着かせた紺） */
  --text-sub: #5b6f86;    /* 補足の文字色 */
  --link: #134d99;        /* リンク色（旧サイトと同じ） */
  --link-hover: #2f7fd6;
  --menu: #3366cc;        /* ヘッダーメニュー（旧 #36C） */
  --menu-active: #0055dd; /* 選択中の下線（旧サイトのマウスオーバーと同じ） */
  --bar-top: #7be1e4;     /* 見出し帯のグラデーション（旧サイトと同じ） */
  --bar-bottom: #2f579d;
  --panel: rgba(240, 255, 255, .55); /* 本文の半透明パネル（旧 #conL） */
  --line: #cfe3ef;
  --th: #d6eef9;          /* 表の見出し */
  --td: #eef8fc;
  --radius: 10px;
  --font-body: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Yu Gothic", "游ゴシック", YuGothic, Meiryo, "メイリオ", sans-serif;
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", var(--font-body);
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .04em;
  /* 旧サイトと同じ、上が水色・下が白のグラデーション */
  background: #fff linear-gradient(to bottom, #d2eaff 0, #fff 900px) no-repeat;
}
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible {
  outline: 3px solid #f0a73a;
  outline-offset: 2px;
  border-radius: 4px;
}
h1, h2, h3 { line-height: 1.4; }
address { font-style: normal; }
p { margin: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: #fff; padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }

/* ---------- 全体の枠（旧 #container） ---------- */
.site {
  position: relative;
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: #fff url(../images/testbg.jpg) center top / 900px auto no-repeat;
  box-shadow: 0 0 10px #91c6e6;
}

/* ---------- ヘッダー ---------- */
.site-header { position: relative; margin-bottom: 10px; }
.site-logo { display: block; line-height: 0; }
.site-logo img { display: block; width: 100%; }
.nav-toggle { display: none; }

/* メニュー（旧サイトと同じ、ロゴの右下に文字で並べる） */
.global-nav {
  position: absolute; right: 16px; bottom: 0;
}
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 26px;
  font-size: 14.5px; line-height: 1.6;
}
.nav-list a {
  display: block;
  padding: 2px 0 1px;
  border-bottom: 3px solid transparent;
  color: var(--menu);
  text-decoration: none;
  white-space: nowrap;
}
.nav-list a:hover { color: #000066; border-bottom-color: var(--menu-active); }
.nav-list a[aria-current] { color: #000066; border-bottom-color: var(--menu-active); font-weight: 700; }

/* ---------- 本文 ---------- */
.main { display: grid; gap: 20px; }
.section { display: grid; gap: 18px; align-content: start; }
.home { display: grid; gap: 20px; }

/* 見出し帯（旧サイトの水色→紺のグラデーション） */
.bar {
  margin: 0;
  padding: 3px 12px;
  color: #fff;
  font-size: 17px; font-weight: normal; letter-spacing: .08em;
  line-height: 1.75;
  background: linear-gradient(to bottom, var(--bar-top) 0%, var(--bar-bottom) 85%);
  text-shadow: 0 1px 1px rgba(0, 30, 80, .25);
}
.bar--center { text-align: center; }
.bar-sub { font-size: 13px; opacity: .9; margin-left: .6em; }

/* 半透明パネル（旧 #conL） */
.panel {
  background: var(--panel);
  padding: 16px 18px 18px;
  display: grid; gap: 12px; align-content: start;
}
.section > .bar + .panel { margin-top: -18px; }
.lead { font-size: 15px; }
.note { font-size: 14px; color: var(--text-sub); }

/* ---------- スライド（旧トップの写真） ---------- */
.slider { position: relative; overflow: hidden; }
.slider-track { background: #dbeefa; }
.slider-track { position: relative; aspect-ratio: 860 / 300; }
.slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.slider-controls {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 8px 0 0;
}
.slider-dots { display: flex; gap: 8px; }
.slider-dots button {
  width: 12px; height: 12px; padding: 0;
  border: 0; border-radius: 50%;
  background: #eff; box-shadow: 1px 1px 2px rgba(0, 0, 0, .5) inset;
  cursor: pointer;
}
.slider-dots button[aria-current="true"] { background: #85d1f9; }
.slider-prev, .slider-next {
  width: 30px; height: 30px;
  border: 1px solid #a7d8f9; border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: var(--bar-bottom);
  font-size: 20px; line-height: 1;
  cursor: pointer;
}
.slider-prev:hover, .slider-next:hover { background: #fff; }

/* ---------- トップの4つの案内（旧 .topNavi） ---------- */
.top-navi {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.top-navi > li { background: var(--panel); display: flex; flex-direction: column; }
.top-navi .bar { font-size: 15px; }
.top-navi-photo { display: block; line-height: 0; }
.top-navi-photo img { display: block; width: 100%; }
.top-navi ul { list-style: none; margin: 0; padding: 10px 10px 14px; display: grid; gap: 4px; font-size: 14px; letter-spacing: .02em; }
.top-navi ul a { text-decoration: none; }
.top-navi ul a:hover { text-decoration: underline; }
.top-navi ul a::before { content: "›"; margin-right: .4em; color: #6aa6d8; }

/* ---------- お知らせ（TOPICS） ---------- */
.news-frame { display: block; width: 100%; height: 300px; border: 0; background: transparent; }

/* ---------- 施設へのバナー ---------- */
.facility-banners {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.facility-banners a {
  display: grid; gap: 6px; justify-items: center;
  text-decoration: none; font-size: 14px; color: var(--text-sub); text-align: center;
}
.facility-banners img { display: block; width: 100%; box-shadow: 0 1px 6px rgba(40, 90, 140, .18); transition: transform .2s, box-shadow .2s; }
.facility-banners a:hover img { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(40, 90, 140, .25); }
.facility-banners a:hover span { color: var(--link); text-decoration: underline; }

/* ---------- ごあいさつ ---------- */
.greeting {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start;
}
.greeting-text { display: grid; gap: 14px; }
.greeting-text p { font-size: 15.5px; }
.sign { text-align: right; font-weight: 700; }
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; line-height: 0; }
.photo-pair img { width: 100%; }
.portrait { margin: 0; display: grid; gap: 6px; }
.portrait img { display: block; width: 100%; }
.portrait figcaption { font-size: 14px; text-align: center; color: var(--text-sub); }

/* ---------- 法人の理念 ---------- */
.rinen-hero { display: grid; gap: 14px; justify-items: center; }
.rinen-hero img { display: block; }
.rinen-message {
  margin: 0; padding: 4px 8px;
  text-align: center;
  font-family: var(--font-round); font-weight: 700;
  font-size: 18px; line-height: 2.05; letter-spacing: .06em;
  color: #2b4f7e;
}
.rinen-message span { display: inline-block; }
/* 理念のことば：PCは元の画像（手書き風の文字）、スマホは読みやすい普通の文字で表示 */
.rinen-message { display: none; }
.rinen-body { max-width: 700px; width: 100%; margin: 0 auto; }
.rinen-body .panel { gap: 16px; padding: 20px 24px 22px; }
.catch {
  font-size: 22px; font-weight: 700; line-height: 1.75;
  color: #0b62c4;
}
.rinen-body .indent { padding-left: 2em; }
.motto { font-size: 22px; font-weight: 700; color: #0b62c4; line-height: 1.75; }
.motto span { display: block; padding-left: 5em; }

/* ---------- 会社概要の表 ---------- */
.info-wrap { display: grid; gap: 14px; }
.info-table { width: 100%; max-width: 640px; margin: 0 auto; border-collapse: separate; border-spacing: 0 3px; font-size: 15px; }
.info-table caption { text-align: left; font-weight: 700; padding: 4px 2px; color: var(--bar-bottom); }
.info-table th, .info-table td { padding: 7px 14px; text-align: left; vertical-align: top; }
.info-table th { width: 8.5em; font-weight: 700; white-space: nowrap; background: var(--th); border-radius: 6px 0 0 6px; }
.info-table td { background: var(--td); border-radius: 0 6px 6px 0; }

/* ---------- 施設の紹介 ---------- */
.facility { display: grid; gap: 14px; }
.facility-title { margin: 0; line-height: 0; text-align: center; }
.facility-title img { display: block; margin: 0 auto; }
.facility-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 20px; align-items: start;
}
.facility-body .panel { margin-top: 0; }
.facility-sub { margin: -16px -18px 4px; }
.facility-photo { display: block; width: 100%; }
.facility-links { display: grid; gap: 8px; justify-items: start; }
.hp-banner { display: inline-grid; gap: 4px; text-decoration: none; font-size: 14px; }
.hp-banner img { display: block; width: 280px; border-radius: 21px; transition: transform .2s; }
.hp-banner:hover img { transform: translateY(-2px); }
.text-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.text-links a::before { content: "›"; margin-right: .35em; color: #6aa6d8; }

/* ---------- 情報開示・関連書籍・フォーム（埋め込み） ---------- */
.auto-frame { display: block; width: 100%; border: 0; background: transparent; }
.report-frame { height: 240px; }
.report-group { display: grid; gap: 4px; }
.books-frame { height: 1160px; }
.contact-frame { height: 900px; }
.contact-intro { display: grid; gap: 6px; }
.tel { font-size: 20px; font-weight: 700; letter-spacing: .06em; text-decoration: none; }

/* ---------- フッター（旧 #footMenu / #footer） ---------- */
.site-footer { margin-top: 24px; border-top: 1px solid #ddd; padding-top: 18px; text-align: center; }
.foot-menu {
  list-style: none; margin: 0 0 14px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px;
  font-size: 14px;
}
.foot-menu a { color: #003366; text-decoration: none; }
.foot-menu a:hover { color: #4da3f9; text-decoration: underline; }
.site-footer address { font-size: 13px; color: var(--text-sub); line-height: 1.9; }
.copyright { margin: 8px 0 0; font-size: 12px; color: #999; }

/* ---------- 上へ戻るボタン ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bar-bottom); color: #fff; text-decoration: none;
  font-size: 14px; line-height: 1.1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.to-top span { font-size: 11px; font-weight: 700; }
.to-top.is-shown { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: #1d3f78; }

/* =========================================================
   メニューごとの切り替え表示（JavaScript有効時）
   ========================================================= */
.has-views .view[hidden] { display: none; }
.has-views .view.is-current { animation: view-in .35s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* JavaScriptが無効の時は全項目を縦に並べるので、項目の間をあける */
html:not(.has-views) .view + .view { margin-top: 24px; }

/* ページの長さが変わってもスクロールバーの分の幅を常に確保し、
   切り替え時にレイアウトが横にずれないようにする */
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}

/* =========================================================
   タブレット（ロゴとメニューが重ならないよう、メニューをロゴの下へ）
   ========================================================= */
@media (max-width: 900px) {
  .site { margin: 0 auto; }
  .global-nav { position: static; margin-top: 6px; }
  .nav-list { justify-content: center; gap: 0 22px; }
  .top-navi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facility-body { grid-template-columns: minmax(0, 1fr) 46%; }
  .greeting { grid-template-columns: minmax(0, 1fr) 36%; }
}

/* =========================================================
   スマートフォン
   ========================================================= */
@media (max-width: 700px) {
  body { font-size: 15px; }
  .site { padding: 12px 14px 20px; background-size: 900px auto; }

  .site-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .site-logo { flex: 1; min-width: 0; overflow: hidden; }
  /* ロゴ画像の右側の余白を省き、文字を大きく見せる */
  .site-logo img { width: 143%; max-width: none; }

  /* メニューボタン */
  .nav-toggle {
    display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
    flex: none;
    padding: 8px 10px 6px;
    border: 0; border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    color: var(--text);
    font: 700 11px/1 var(--font-body);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 40, 90, .18);
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block; width: 24px; height: 3px; border-radius: 2px;
    background: var(--bar-bottom); transition: transform .2s, opacity .2s;
  }
  .nav-toggle-bars { position: relative; margin: 7px 0; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  /* メニューは開閉式・2列 */
  .js .global-nav { display: none; }
  .js .global-nav.is-open { display: block; }
  .global-nav {
    position: absolute; left: -14px; right: -14px; top: calc(100% + 6px); bottom: auto; z-index: 20;
    margin: 0;
    background: #fff;
    padding: 12px 14px 14px;
    box-shadow: 0 10px 20px rgba(0, 40, 90, .15);
  }
  html:not(.js) .global-nav { position: static; box-shadow: none; padding: 8px 0 0; background: transparent; }
  .nav-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 15px; }
  .nav-list a {
    padding: 10px 8px; text-align: center;
    border: 1px solid #b9dcf1; border-radius: 8px;
    background: #f3fafd;
  }
  .nav-list a:hover { border-color: #8cc4e8; }
  .nav-list a[aria-current] {
    color: #fff; border-color: transparent;
    background: linear-gradient(to bottom, var(--bar-top) 0%, var(--bar-bottom) 85%);
  }

  .main { gap: 16px; }
  .section { gap: 14px; }
  .section > .bar + .panel { margin-top: -14px; }
  .bar { font-size: 16px; }
  .panel { padding: 14px 14px 16px; }
  .slider { margin: 0 -14px; }
  .top-navi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .top-navi .bar { font-size: 14px; padding: 3px 8px; }
  .top-navi ul { padding: 8px 8px 10px; font-size: 13.5px; }
  .news-frame { height: 360px; }
  .facility-banners { grid-template-columns: 1fr; gap: 14px; }

  .greeting, .facility-body { grid-template-columns: 1fr; }
  .portrait { max-width: 300px; justify-self: center; }
  .rinen-message-img { display: none !important; }
  .rinen-message { display: block; font-size: 15.5px; line-height: 1.95; text-align: left; padding: 0; }
  .rinen-body .panel { padding: 16px 14px 18px; }
  .catch, .motto { font-size: 18px; }
  .rinen-body .indent { padding-left: 0; }
  .motto span { padding-left: 2em; }
  .info-table { font-size: 14px; }
  .info-table th { width: 6.5em; padding: 7px 10px; white-space: normal; }
  .info-table td { padding: 7px 10px; }
  .facility-sub { margin: -14px -14px 4px; }
  .hp-banner img { width: 260px; }
  .books-frame { height: 1500px; }
  .site-footer { margin-top: 18px; }
  .foot-menu { gap: 4px 16px; }
}

/* 動きを減らす設定の方へ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
