@charset "utf-8";
/* ゆりのき苑 リニューアルデザイン（Claude Design v4 準拠） */

:root {
  --teal: #1d6a7a;
  --teal-d: #14505c;
  --teal-dk: #16565f;
  --pale: #eff4f4;
  --bg: #fbfbf9;
  --ink: #262c2e;
  --ink-2: #4e5654;
  --ink-3: #5f6765;
  --ink-4: #6d7573;
  --gray: #8b9391;
  --gray-l: #98a09e;
  --line: #e6e8e6;
  --line-l: #f0f1ef;
  --mincho: 'Zen Old Mincho', 'Yu Mincho', 'YuMincho', serif;
  --maxw: 1160px;
  --pad: clamp(16px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.95;
  padding-bottom: 4px;
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--teal-d);
}

/* スクロール表示アニメーション */
[data-reveal] {
  transition: opacity .85s cubic-bezier(.2, .7, .2, 1), transform .85s cubic-bezier(.2, .7, .2, 1);
}

[data-reveal].reveal-armed {
  opacity: 0;
  transform: translateY(20px);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: clamp(420px, 78vh, 680px);
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, rgba(10, 40, 45, .74) 0%, rgba(10, 40, 45, .34) 56%, rgba(10, 40, 45, .04) 100%);
}

.hero-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav {
  padding: 18px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.nav a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .92);
}

.nav a:hover {
  color: #fff;
}

.brand {
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
}

.brand-name {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: .08em;
}

.brand-sub {
  font-size: 10.5px;
  letter-spacing: .1em;
  opacity: .85;
}

.hero-copy {
  margin-top: auto;
  padding: 0 var(--pad) clamp(32px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 47em;
}

.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.55;
  letter-spacing: .05em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .3);
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, .93);
  font-size: 15px;
  line-height: 2.1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

/* ===== クイックリンク ===== */
.quick-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 54px) var(--pad);
}

.quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.q-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink);
  transition: border-color .25s;
}

.q-card:hover {
  border-color: var(--teal);
  color: var(--ink);
}

.q-k {
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--teal);
  font-weight: 700;
}

.q-t {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7;
}

.q-d {
  font-size: 12.5px;
  color: var(--ink-4);
  line-height: 1.9;
}

/* ===== 理念 ===== */
.philosophy {
  background: var(--pale);
}

.philosophy-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 5.5vw, 72px) var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 60px;
  align-items: center;
}

.philosophy h2 {
  flex: 0 1 300px;
  margin: 0;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(19px, 2.5vw, 26px);
  line-height: 1.85;
  color: var(--teal-dk);
  letter-spacing: .04em;
}

.philosophy p {
  flex: 1 1 400px;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  line-height: 2.3;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ===== 事業所見出し ===== */
.sec-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 68px) var(--pad) 0;
  scroll-margin-top: 20px;
}

.sec-head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
}

.sec-head h2 {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(21px, 2.9vw, 30px);
  letter-spacing: .05em;
}

.sec-head span {
  font-size: 12.5px;
  color: var(--ink-4);
}

/* ===== 事業所カード ===== */
.fac-list {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--pad) 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fac {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  scroll-margin-top: 20px;
}

.fac-main {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 4em;
}

.fac-photo {
  flex: 1 1 280px;
  min-width: 0;
  min-height: 230px;
  position: relative;
}

.fac-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fac-body {
  flex: 2 1 400px;
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-k {
  background: var(--pale);
  color: var(--teal-dk);
  border-radius: 999px;
  font-size: 11.5px;
  padding: 5px 12px;
  font-weight: 700;
}

.tag-a {
  background: #f5f2ec;
  color: #7a6a52;
  border-radius: 999px;
  font-size: 11.5px;
  padding: 5px 12px;
}

.fac-body h3 {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.65;
  letter-spacing: .03em;
}

.lead {
  margin: 0;
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink-3);
  max-width: 40em;
  text-wrap: pretty;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tbl th {
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
  padding: 8px 14px 8px 0;
  font-weight: 500;
  color: var(--gray);
  border-bottom: 1px solid var(--line-l);
}

.tbl td {
  padding: 8px 0;
  line-height: 1.85;
  border-bottom: 1px solid var(--line-l);
}

.tbl-head th {
  width: 88px;
  padding: 7px 12px 7px 0;
}

.tbl-head td {
  padding: 7px 0;
}

.btn-tel {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--teal);
  color: #fff;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 14.5px;
  transition: background .25s;
}

.btn-tel:hover {
  background: var(--teal-d);
  color: #fff;
}

/* 写真ギャラリー */
.gallery {
  padding: 0 clamp(20px, 3vw, 32px) 4px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.gallery figure {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.g-ph {
  height: clamp(110px, 12vw, 150px);
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.g-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery figcaption {
  font-size: 11.5px;
  color: var(--gray);
}

/* 開閉式の詳細 */
.details {
  padding: 18px clamp(20px, 3vw, 32px) clamp(10px, 2vw, 18px);
}

.details details {
  border-top: 1px solid #edefed;
}

.details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 2px;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: .03em;
}

.details summary::-webkit-details-marker {
  display: none;
}

/* 閉じているとき「＋」、開いているとき「－」 */
.details .plus {
  color: var(--teal);
  font-size: 13px;
}

.details details[open] .plus {
  visibility: hidden;
  position: relative;
}

.details details[open] .plus::after {
  content: "－";
  visibility: visible;
  position: absolute;
  left: 0;
  top: 0;
}

.d-body {
  padding: 0 2px 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-width: 54em;
}

.d-p {
  margin: 0;
  font-size: 14px;
  line-height: 2.2;
  color: var(--ink-3);
  text-wrap: pretty;
}

.d-li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-3);
}

.d-dot {
  color: var(--teal);
}

.d-sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.d-sub h4 {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 14.5px;
}

.d-sub p {
  margin: 0;
  font-size: 13.5px;
  line-height: 2.15;
  color: var(--ink-4);
  text-wrap: pretty;
}

.d-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 42em;
}

.note {
  margin: 0;
  font-size: 11.5px;
  color: var(--gray-l);
}

/* ===== アクセス ===== */
.access {
  margin-top: clamp(36px, 5vw, 68px);
  background: var(--pale);
  scroll-margin-top: 20px;
}

.access-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 5.5vw, 72px) var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.access-l {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.access-l h2 {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(21px, 2.9vw, 30px);
  letter-spacing: .05em;
}

.access-l>p {
  margin: 0;
  font-size: 14.5px;
  line-height: 2.2;
  color: var(--ink-2);
}

.access-addr {
  font-size: 14.5px;
  line-height: 2.1;
  color: #3c4442;
}

.access-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-fill {
  background: var(--teal);
  color: #fff;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14.5px;
  transition: background .25s;
}

.btn-fill:hover {
  background: var(--teal-d);
  color: #fff;
}

.btn-line {
  border: 1.5px solid var(--teal);
  color: var(--teal);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14.5px;
  transition: background .25s, color .25s;
}

.btn-line:hover {
  background: var(--teal);
  color: #fff;
}

.access-map {
  height: 240px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.access-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.access-r {
  flex: 1 1 400px;
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
}

.ct-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--gray);
}

.ct-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-l);
}

.ct-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ct-name {
  font-size: 14px;
  line-height: 1.7;
}

.ct-addr {
  font-size: 11.5px;
  color: var(--gray-l);
}

.ct-tel {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.ct-pdf {
  padding-top: 14px;
  font-size: 13px;
}

/* ===== フッター ===== */
footer {
  background: var(--bg);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: baseline;
  font-size: 11.5px;
  color: var(--gray-l);
}

.footer-brand {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-right: auto;
  letter-spacing: .06em;
}

/* ===== 固定CTA ===== */
.cta {
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: var(--teal);
  color: #fff;
}

.cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 11px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.cta-txt {
  font-size: 13px;
  margin-right: auto;
}

.cta-tel {
  background: #fff;
  color: var(--teal);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 15px;
}

.cta-tel:hover {
  color: var(--teal-d);
}

.cta-map {
  border: 1.5px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  color: #fff;
  transition: background .25s;
}

.cta-map:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

@media (max-width: 560px) {
  .cta-txt {
    flex: 1 1 100%;
    font-size: 12px;
  }

  .cta-tel,
  .cta-map {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ===== スマホ用ハンバーガーメニュー ===== */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 12px;
  background: rgba(10, 40, 45, .35);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .2s;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* メニュー本体（右からスライドイン） */
.drawer-veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 40, 45, .45);
  opacity: 0;
  transition: opacity .3s;
}

.drawer-veil.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 41;
  width: min(84vw, 320px);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
  padding: 0 0 40px;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2, .7, .2, 1);
}

.drawer.is-open { transform: none; }

.drawer-head {
  position: sticky;
  top: 0;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8px 14px 20px;
}

.drawer-title {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .08em;
}

.drawer-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.drawer-sec {
  padding: 18px 20px 6px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gray);
}

.drawer a {
  display: block;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-l);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.drawer a:active { background: var(--pale); }

.drawer .drawer-tel {
  margin: 22px 20px 0;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 13px 20px;
}

/* PCではハンバーガーを隠し、スマホではテキストリンクを隠す */
@media (max-width: 767px) {
  .nav-link { display: none; }
  .hamburger { display: flex; }
  .brand-name { font-size: 20px; }
}

/* ===== 上に戻るボタン ===== */
.to-top {
  position: fixed;
  right: clamp(12px, 3vw, 24px);
  bottom: calc(var(--cta-h, 72px) + 16px);
  z-index: 35;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 4px 16px rgba(10, 40, 45, .18);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s, background .25s;
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top svg {
  width: 22px;
  height: 22px;
  fill: var(--teal);
}

.to-top:hover {
  background: var(--teal);
}

.to-top:hover svg { fill: #fff; }

@media (max-width: 560px) {
  .to-top {
    width: 44px;
    height: 44px;
  }
}
