/* 
  Ultra-clean edition
  - Removed the remaining redundant selectors
  - Kept selectors that are dynamically used by JavaScript
  - No further definitely-unused selectors were found in the current HTML/JS structure
*/

:root {
  --glass: rgba(255, 255, 255, .38);
  --glass-strong: rgba(255, 255, 255, .58);
  --glass-border: rgba(255, 255, 255, .72);
  --glass-shadow: 0 8px 32px rgba(180, 140, 160, .18), 0 2px 8px rgba(255, 255, 255, .22) inset;
  --paper: rgba(255, 255, 255, .72);
  --text: #4a3d50;
  --muted: #7a6e80;
  --line: rgba(255, 255, 255, .55);
  --primary: #7a5c7a;
  --primary-2: #c58b38;
  --primary-3: #b1bfd1;
  --shadow: 0 8px 32px rgba(180, 140, 160, .22);
  --blur: blur(18px);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  color: var(--text);
  background-image: url(/img/bg-sakura.jpeg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  line-height: 1.9;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.small {
  font-size: .92rem;
}

.muted {
  color: var(--muted);
}

.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 248, 252, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 2px 20px rgba(180, 140, 160, .12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 260px;
  max-width: min(52vw, 260px);
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .92rem;
  color: var(--muted);
  transition: .2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, .55);
  color: var(--primary);
  backdrop-filter: blur(8px);
}

.hero {
  padding: 48px 0 24px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  /*border-radius: 34px;*/
  min-height: 680px;
  /*border: 1px solid rgba(255, 255, 255, .7);*/
  /*box-shadow: var(--shadow);*/
  /* background: linear-gradient(90deg, rgba(247,243,238,.98) 0%, rgba(247,243,238,.98) 73%, rgba(239,226,200,.98) 73%, rgba(239,226,200,.98) 100%);*/
  isolation: isolate;
}

.hero-shell::before {
  content: "griefcare";
  position: absolute;
  top: 20px;
  left: 28px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: .95;
  letter-spacing: -.03em;
  color: rgba(255, 255, 255, .72);
  z-index: 0;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
  height: 100%;
  padding: 54px 0;
}

.hero-copy,
.hero-links {
  width: 100%;
}

.hero-copy {
  align-self: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(239, 226, 200, .92);
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(91, 77, 63, .06);
  font-size: .9rem;
  letter-spacing: .08em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 0 6px rgba(197, 139, 56, .16);
}

.hero-copy h1 {
  margin: 100px 0 80px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text);
  font-size: clamp(2rem, 3vw, 4.25rem);
  text-wrap: balance;
  letter-spacing: .02em;
}

.hero-copy p {
  max-width: 46rem;
  margin: 0 0 24px;
  color: #7b7168;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 4px 16px rgba(180, 140, 160, .12);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, .80);
  box-shadow: 0 4px 20px rgba(180, 140, 160, .15), 0 1px 0 rgba(255, 255, 255, .7) inset;
}

.btn.primary:hover {
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 28px rgba(180, 140, 160, .22), 0 1px 0 rgba(255, 255, 255, .8) inset;
}

.btn.secondary {
  background: rgba(200, 190, 220, .45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 4px 18px rgba(180, 140, 160, .12);
}

.btn.secondary:hover {
  background: rgba(220, 210, 235, .62);
}

.btn.soft {
  background: rgba(255, 255, 255, .42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, .68);
}

.btn.soft:hover {
  background: rgba(255, 255, 255, .62);
}

.hero-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hero-link {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 6px 22px rgba(180, 140, 160, .14), 0 1px 0 rgba(255, 255, 255, .65) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  background: rgba(255, 255, 255, .35);


  color: var(--text);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.hero-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(93, 74, 58, .12);
}

.hero-link small {
  color: var(--primary);
  font-size: .75rem;
  letter-spacing: .08em;
}

.hero-link strong {
  font-size: 1rem;
  line-height: 1.5;
}

.hero-link span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
}

.hero-link.funeral {
  background: linear-gradient(180deg, rgba(199, 191, 204, .30), rgba(255, 255, 255, .22));
}

.hero-link.visit {
  background: linear-gradient(180deg, rgba(224, 218, 229, .26), rgba(255, 255, 255, .20));
}

.hero-link.medical {
  background: linear-gradient(180deg, rgba(231, 200, 107, .28), rgba(255, 255, 255, .20));
}

.hero-link.group {
  background: linear-gradient(180deg, rgba(184, 197, 214, .28), rgba(255, 255, 255, .20));

}

.hero-link.ondemand {
  background: linear-gradient(180deg, rgba(236, 214, 168, .30), rgba(255, 255, 255, .20));
}

section {
  padding: 36px 0 0;
}

.section-box {
  background: rgba(255, 255, 255, .32);
  border: 1px solid rgba(255, 255, 255, .70);
  box-shadow: 0 8px 40px rgba(180, 140, 160, .18), 0 1px 0 rgba(255, 255, 255, .5) inset;
  border-radius: 32px;
  padding: clamp(24px, 4vw, 48px);
  margin-top: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.section-head .label {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .52);
  border: 1px solid rgba(255, 255, 255, .72);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  width: fit-content;
}

.section-head h2 {
  margin: 0;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 700;
  line-height: 1.45;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  color: #3d2e40;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.card,
.news-item,
.contact-panel,
.mini-card,
.footer-card,
.check-item {
  background: rgba(255, 255, 255, .38);
  border-color: rgba(255, 255, 255, .65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 4px 20px rgba(180, 140, 160, .12), 0 1px 0 rgba(255, 255, 255, .6) inset;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card h3,
.card h4 {
  margin: 0 0 10px;
  font-size: 1.16rem;
}

.kv-table {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 16px;
  margin-top: 8px;
}

.kv-table dt {
  color: var(--muted);
  font-weight: 600;
}

.kv-table dd {
  margin: 0;
}

.bullet {
  margin: 0;
  padding-left: 1.2em;
}

.bullet li+li {
  margin-top: 10px;
}

.greeting {
  display: grid;
  grid-template-columns: 70% 1fr;
  gap: 26px;
  align-items: start;
}

.portrait {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 380px;
  background: rgba(255, 255, 255, .35);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .60);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  color: var(--muted);
  /* width: 30%; */
}

.portrait strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1rem;
}

.quote {
  font-size: .98rem;
  color: var(--text);
}

.signature {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .52);
  border: 1px solid rgba(255, 255, 255, .72);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: .9rem;
}

.grief-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.thought-trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
  padding-right: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 8px 18px rgba(91, 77, 63, .05);
}

.thought-trigger:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(180, 140, 160, .18), 0 1px 0 rgba(255, 255, 255, .7) inset;
  border-color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .55);
}

.thought-trigger:focus-visible {
  outline: 2px solid rgba(197, 139, 56, .72);
  outline-offset: 3px;
}

.thought-chip,
.news-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .75);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-item {
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 24px;
  padding: 24px;
  min-height: 240px;
  display: grid;
  align-content: start;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(180, 140, 160, .10), 0 1px 0 rgba(255, 255, 255, .6) inset;
  transition: transform .2s ease, box-shadow .2s ease;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(180, 140, 160, .18), 0 1px 0 rgba(255, 255, 255, .7) inset;
}

.teacher-grid.detailed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.teacher-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  min-height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 4px 20px rgba(180, 140, 160, .10), 0 1px 0 rgba(255, 255, 255, .55) inset;
  transition: transform .2s ease, box-shadow .2s ease;
  /*box-shadow: 0 8px 18px rgba(91, 77, 63, .05);*/
}

.teacher-photo-wrap {
  width: 88px;
  min-height: 100%;
  background: rgba(255, 255, 255, .35);
  border-right: 1px solid rgba(255, 255, 255, .55);
  display: grid;
  place-items: start center;
  padding: 12px 10px;
}

.teacher-photo {
  width: 66px;
  height: 66px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(91, 77, 63, .08);
}

.teacher-body {
  min-width: 0;
  padding: 12px 14px 13px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.teacher-body h3 {
  margin: 0;
  font-size: .98rem;
  line-height: 1.45;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.teacher-body h3 span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
}

.teacher-body p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.step {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .35);
  border: 1px solid rgba(255, 255, 255, .65);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(180, 140, 160, .10), 0 1px 0 rgba(255, 255, 255, .6) inset;
  transition: transform .2s ease;
}

.step:hover {
  transform: translateY(-2px);
}

.step strong {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(255, 255, 255, .8);
  color: var(--primary);
}

.program {
  margin-top: 22px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 8px 32px rgba(180, 140, 160, .16), 0 1px 0 rgba(255, 255, 255, .6) inset;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow .2s ease;
}

.program:hover {
  box-shadow: 0 14px 44px rgba(180, 140, 160, .22), 0 1px 0 rgba(255, 255, 255, .7) inset;
}

.program.funeral {
  background: linear-gradient(180deg, rgba(199, 191, 204, .32), rgba(255, 255, 255, .28));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.program.visit {
  background: linear-gradient(180deg, rgba(224, 218, 229, .28), rgba(255, 255, 255, .24));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.program.medical {
  background: linear-gradient(180deg, rgba(231, 200, 107, .30), rgba(255, 255, 255, .26));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.program.group {
  background: linear-gradient(180deg, rgba(184, 197, 214, .32), rgba(255, 255, 255, .26));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.program.ondemand {
  background: linear-gradient(180deg, rgba(236, 214, 168, .34), rgba(255, 255, 255, .26));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.program-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
  margin-bottom: 0;
}

.program-head>div:first-child {
  min-width: 0;
}

.program-head h3 {
  margin: 0 0 8px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: .92rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .52);
  border: 1px solid rgba(255, 255, 255, .75);
  backdrop-filter: blur(8px);
}

.program-toggle {
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid rgba(121, 101, 84, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .52);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .72) !important;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(93, 74, 58, .06);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.program-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(180, 140, 160, .16);
  background: rgba(255, 255, 255, .75);
}

.program-toggle::after {
  /*content: "＋";*/
  font-size: 1.08rem;
  line-height: 1;
  flex: 0 0 auto;
  transition: transform .28s ease;
}

.program.is-open .program-toggle::after {
  transform: rotate(135deg);
}

.program-toggle-text-close {
  display: none;
}

.program.is-open .program-toggle-text-open {
  display: none;
}

.program.is-open .program-toggle-text-close {
  display: inline;
}

.program-collapse {
  display: grid;
  grid-template-rows: 0fr;
  opacity: .2;
  margin-top: 0;
  transition: grid-template-rows .42s ease, opacity .32s ease, margin-top .32s ease;
}

.program.is-open .program-collapse {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 18px;
}

.program.is-open {
  background-size: cover;
  background-position: center;
  background-blend-mode: lighten;
}

.program.funeral.is-open {
  background-image: url('../img/funeral-1.jpg');
  background-color: rgba(199, 191, 204, .55);
}

.program.visit.is-open {
  background-image: url('../img/funeral-2.jpg');
  background-color: rgba(224, 218, 229, .50);
}

.program.medical.is-open {
  background-image: url('../img/hospital-1.jpg');
  background-color: rgba(231, 200, 107, .45);
}

.program.group.is-open {
  background-image: url('../img/hospital-2.jpg');
  background-color: rgba(184, 197, 214, .52);
}

.program.ondemand.is-open {
  background-image: url('../img/bg-sakura.jpeg');
  background-color: rgba(236, 214, 168, .50);
}

.program-collapse-inner {
  min-height: 0;
  overflow: visible;
}

.program-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: start;
}

.program-image {
  min-height: 280px;
  padding: 26px;
  border-radius: 24px;
  border: 1px dashed rgba(122, 102, 86, .18);
  color: #6f6154;
  text-align: center;
  display: grid;
  place-items: center;
}

.program.funeral .program-image {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, .30), transparent 15%),
    linear-gradient(135deg, rgba(203, 192, 210, .52), rgba(236, 230, 239, .38));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .55);
}

.program.visit .program-image {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, .30), transparent 15%),
    linear-gradient(135deg, rgba(216, 208, 223, .52), rgba(241, 237, 244, .38));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .55);
}

.program.medical .program-image {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, .30), transparent 15%),
    linear-gradient(135deg, rgba(228, 193, 91, .52), rgba(244, 227, 174, .38));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .55);
}

.program.group .program-image {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, .30), transparent 15%),
    linear-gradient(135deg, rgba(184, 197, 214, .52), rgba(230, 237, 246, .38));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .55);
}

.program.ondemand .program-image {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, .30), transparent 15%),
    linear-gradient(135deg, rgba(232, 209, 156, .52), rgba(247, 237, 207, .38));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .55);
}

.mini-cards {
  display: grid;
  gap: 14px;
}

.mini-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 3px 14px rgba(180, 140, 160, .10);
  overflow: visible;
}

.mini-card h4 {
  margin: 0 0 8px;
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.teacher-tags span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .52);
  border: 1px solid rgba(255, 255, 255, .72);
  backdrop-filter: blur(6px);
  font-size: .9rem;
}

.note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(255, 255, 255, .65);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: .92rem;
}

.program-cta-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.program-cta-wrap .btn {
  min-width: 220px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.contact-panel {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 4px 24px rgba(180, 140, 160, .12), 0 1px 0 rgba(255, 255, 255, .55) inset;
}

.contact-panel p:last-child {
  margin-bottom: 0;
}

form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
  font-size: .95rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(122, 102, 86, .18);
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(8px);
  color: var(--text);
  font: inherit;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  background: rgba(255, 255, 255, .88);
  border-color: rgba(200, 170, 210, .6);
  box-shadow: 0 0 0 3px rgba(200, 160, 220, .18);
}

.check-grid {
  display: grid;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(121, 79, 91, .12);
}

.check-item input {
  width: auto;
  margin-top: 4px;
}

.footer-about {
  margin-top: 72px;
  padding: 82px 0 36px;
  background: linear-gradient(180deg, rgba(248, 244, 238, .72) 0%, rgba(238, 228, 210, .88) 100%);
  border-top: 1px solid rgba(255, 255, 255, .65);
  backdrop-filter: blur(20px);
}

.footer-about-inner {
  display: grid;
  gap: 28px;
}

.footer-about-head {
  max-width: 760px;
}

.footer-about-head h2 {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.35;
}

.footer-about-head p {
  margin: 0;
  color: var(--muted);
}

.footer-about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr .9fr;
  gap: 18px;
  align-items: stretch;
}

.footer-card {
  padding: 28px 26px;
  border-radius: 28px;
  border: 1px solid rgba(121, 101, 84, .10);
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(255, 255, 255, .68);
  box-shadow: 0 8px 28px rgba(180, 140, 160, .12), 0 1px 0 rgba(255, 255, 255, .55) inset;
  backdrop-filter: blur(16px);
}

.footer-card h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  line-height: 1.45;
}

.footer-card .kv-table {
  gap: 10px 14px;
  font-size: .95rem;
}

.footer-card .kv-table dt,
.footer-card .kv-table dd,
.footer-card p,
.footer-card li {
  font-size: .95rem;
  line-height: 1.9;
}

.footer-card .bullet {
  gap: 8px;
  margin: 0;
  padding-left: 1.15rem;
}

.footer-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.8;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .75);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(93, 74, 58, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.footer-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(93, 74, 58, .12);
}

.footer-mini {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: var(--muted);
  font-size: .92rem;
}

.footer {
  padding: 18px 0 90px;
  color: var(--muted);
  text-align: center;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.floating-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 188px;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(91, 77, 63, .14);
}

.floating-cta a:first-child {
  background: rgba(255, 255, 255, .48);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .75);
  color: var(--primary);
}

.floating-cta a:last-child {
  background: rgba(255, 255, 255, .42);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .70);
  color: var(--primary);
}

.modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top) + 20px) 18px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 9999;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(140, 100, 140, .22);
  backdrop-filter: blur(10px);
  z-index: 0;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100vw - 36px));
  margin: 0 auto;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 30px 30px 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 24px 72px rgba(160, 120, 160, .22), 0 1px 0 rgba(255, 255, 255, .7) inset;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
}

.modal-panel-split {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}

.modal-media {
  width: 100%;
  padding-top: 10px;
}

.modal-media img {
  display: block;
  width: min(100%, 760px);
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid rgba(122, 102, 86, .12);
  box-shadow: 0 12px 26px rgba(91, 77, 63, .08);
  object-fit: contain;
  background: #fff;
}

.modal-copy {
  min-width: 0;
  padding-right: 0;
}

.modal-copy.wide {
  padding-right: 56px;
}

.modal-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.modal-copy h3 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.45;
}

.modal-copy p {
  margin: 0 0 14px;
  color: var(--text);
  font-size: .98rem;
  line-height: 2;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(59, 45, 46, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .75) !important;
  color: var(--primary);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(91, 77, 63, .08);
  display: grid;
  place-items: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.modal-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(91, 77, 63, .12);
  background: rgba(255, 255, 255, .88);
}

body.modal-open,
body.nav-open {
  overflow: hidden;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 54px;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(121, 101, 84, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .52);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .72) !important;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(180, 140, 160, .14);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  font: inherit;
  font-weight: 700;
  letter-spacing: .04em;
  flex: 0 0 auto;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(93, 74, 58, .12);
  background: rgba(255, 255, 255, .96);
}

.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 12px;
  display: inline-block;
  flex: 0 0 auto;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .22s ease, opacity .18s ease, top .22s ease;
}

.nav-toggle-icon::before {
  top: 0;
}

.nav-toggle-icon span {
  top: 5px;
}

.nav-toggle-icon::after {
  top: 10px;
}

.nav-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 120;
}

.nav-modal.is-open {
  display: flex;
}

.nav-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(160, 120, 160, .22);
  backdrop-filter: blur(14px);
}

.nav-modal-panel {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100vw - 32px));
  max-height: min(82dvh, 760px);
  overflow: auto;
  padding: 28px 24px 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 20px 56px rgba(160, 120, 160, .20), 0 1px 0 rgba(255, 255, 255, .7) inset;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.nav-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.nav-modal-title strong {
  display: block;
  font-size: 1.04rem;
  letter-spacing: .04em;
  line-height: 1.5;
}

.nav-modal-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav-modal-close {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(121, 101, 84, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .52);
  border: 1px solid rgba(255, 255, 255, .72) !important;
  color: var(--primary);
  font-size: 1.55rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform .18s ease, background .18s ease;
}

.nav-modal-close:hover {
  transform: scale(1.03);
  background: rgba(239, 226, 200, .96);
}

.nav-modal-links {
  display: grid;
  gap: 10px;
}

.nav-modal-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(255, 255, 255, .65);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.nav-modal-links a::after {
  /*content: "→";*/
  color: rgba(122, 102, 86, .72);
  font-size: 1rem;
  flex: 0 0 auto;
}

.nav-modal-links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .65);
  box-shadow: 0 8px 24px rgba(180, 140, 160, .14);
}

.zoom-text {
  color: #6d95ca !important;
}

section[id],
article[id] {
  scroll-margin-top: 112px;
}

@media (max-width: 1100px) {
  body {
    background-image: url(/img/bg-sakura.jpeg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
  }

  .hero-shell {
    min-height: auto;
    background: none;
  }

  .hero-shell::before {
    left: 18px;
    top: 16px;
    font-size: clamp(3rem, 16vw, 7rem);
  }

  .hero-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .greeting,
  .grief-columns,
  .news-list,
  .steps,
  .program-layout,
  .contact-wrap,
  .footer-about-grid {
    grid-template-columns: 1fr;
  }

  .teacher-grid.detailed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    padding: 32px;
  }

  .program-head {
    grid-template-columns: 1fr;
  }

  .footer-about {
    padding: 62px 0 26px;
  }

  .footer-card {
    padding: 22px 18px;
    border-radius: 22px;
  }
}

@media (max-width: 920px) {
  html {
    scroll-padding-top: 96px;
  }

  section[id],
  article[id] {
    scroll-margin-top: 96px;
  }

  .header-inner {
    gap: 12px;
  }

  .nav {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex !important;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .hero-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-box,
  .program {
    padding: 22px;
  }

  .kv-table {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .program-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .program-toggle,
  .program-cta-wrap .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .floating-cta {
    display: none !important;
  }
}

@media (max-width: 820px) {
  .modal {
    padding: max(12px, env(safe-area-inset-top) + 12px) 12px 12px;
  }

  .modal-panel {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 22px 18px 20px;
    border-radius: 24px;
  }

  .modal-panel-split {
    gap: 16px;
  }

  .modal-media {
    padding-top: 4px;
  }

  .modal-media img {
    width: 100%;
  }

  .modal-copy.wide {
    padding-right: 0;
  }

  .modal-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }
}

@media (max-width: 720px) {
  .brand-logo {
    width: 180px;
    max-width: 62vw;
  }

  .teacher-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .teacher-photo-wrap {
    width: 76px;
    padding: 10px 8px;
  }

  .teacher-photo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .teacher-body {
    padding: 11px 12px 12px;
  }
}

@media (max-width: 640px) {
  .hero-links {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 72vw);
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .hero-link {
    scroll-snap-align: start;
  }

  #teachers .section-box {
    overflow: hidden;
  }

  .teacher-grid.detailed {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 84vw);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 10px;
    margin: 0 -4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .teacher-grid.detailed::-webkit-scrollbar {
    height: 8px;
  }

  .teacher-grid.detailed::-webkit-scrollbar-thumb {
    background: rgba(121, 101, 84, .24);
    border-radius: 999px;
  }

  .teacher-card {
    scroll-snap-align: start;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .hero-grid {
    padding: 24px 20px;
  }

  .hero-shell {
    border-radius: 24px;
    background: none;
  }

  .hero-actions {
    display: grid;
  }

  .nav-toggle {
    min-width: 50px;
    height: 48px;
    padding: 0 14px;
  }

  .nav-toggle span:last-child {
    display: none;
  }

  .nav-modal-panel {
    padding: 24px 18px 20px;
    border-radius: 24px;
  }

  .nav-modal-links a {
    min-height: 52px;
    padding: 13px 15px;
    font-size: .96rem;
  }
}

@media (max-width: 420px) {
  .teacher-grid.detailed {
    grid-auto-columns: minmax(260px, 88vw);
  }
}



.program-steps-action {
  display: flex;
  justify-content: center;
  margin: 20px 0 8px;
}

.steps-modal-trigger {
  min-width: 240px;
}

.steps-detail-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.steps-detail-item {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .40);
  border: 1px solid rgba(255, 255, 255, .65);
  backdrop-filter: blur(12px);
  box-shadow: 0 3px 14px rgba(180, 140, 160, .08);
}

.steps-detail-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
}

.steps-detail-item p {
  margin: 0;
}

@media (max-width: 640px) {
  .program-steps-action {
    justify-content: stretch;
  }

  .steps-modal-trigger {
    width: 100%;
    min-width: 0;
  }

  .steps-detail-item {
    padding: 16px 14px 14px;
    border-radius: 16px;
  }
}


/* --- lecture detail layout update --- */
.program-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.program-top {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: start;
}

.program-main-copy,
.program-side-info {
  min-width: 0;
}

.program-bottom-media .note {
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .program-top {
    grid-template-columns: 1fr;
  }
}



.application-hero {
  padding-top: 42px;
}

.application-shell h1 {
  margin: 0;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.45;
}

.application-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 18px;
}

.application-lead {
  margin: 0 0 22px;
  color: var(--muted);
}

.application-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.application-guide .btn {
  margin-top: 12px;
}

.form-success {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(239, 226, 200, .72);
  border: 1px solid rgba(121, 101, 84, .14);
  color: var(--primary);
}

@media (max-width: 1100px) {
  .application-grid {
    grid-template-columns: 1fr;
  }
}



.form-errors {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(215, 86, 86, .10);
  border: 1px solid rgba(180, 86, 86, .18);
  color: #8a4545;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.form-success {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(239, 226, 200, .72);
  border: 1px solid rgba(121, 101, 84, .14);
  color: var(--primary);
}

.application-hero {
  padding-top: 42px;
}

.application-shell h1 {
  margin: 0;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.45;
}

.application-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 18px;
}

.application-lead {
  margin: 0 0 22px;
  color: var(--muted);
}

.application-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.application-guide .btn {
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .application-grid {
    grid-template-columns: 1fr;
  }
}

.floating-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 188px;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(91, 77, 63, .14);
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .70);
  color: var(--primary);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform .18s ease, box-shadow .18s ease;
}

.floating-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(91, 77, 63, .18);
}

/* ---- 講師カード クリッカブル ---- */
.teacher-card-trigger {
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.teacher-card-trigger:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 12px 32px rgba(180, 140, 160, .18), 0 1px 0 rgba(255, 255, 255, .7) inset;
}

.teacher-card-trigger:focus-visible {
  outline: 2px solid rgba(180, 140, 200, .7);
  outline-offset: 3px;
}


/* ---- 講師プロフィールモーダル ---- */
.teacher-profile-panel {
  max-width: 720px;
  padding-top: 56px;
}

.teacher-profile-panel .modal-close {
  top: 14px;
  right: 18px;
  left: auto;
  width: auto;
  height: 34px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  font-family: inherit;
}

.teacher-profile-panel .modal-close::before {
  content: "Close";
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.teacher-profile-layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
  min-height: 0;
}

.teacher-profile-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.teacher-profile-photo {
  width: 120px;
  height: 140px;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 6px 20px rgba(180, 140, 160, .16);
  background: rgba(255, 255, 255, .5);
}

.teacher-profile-copy {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 0;
}

.teacher-profile-name {
  margin: 0;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.45;
  color: #3d2e40;
}

.teacher-profile-positions {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.teacher-profile-positions li {
  font-size: .92rem;
  color: var(--muted);
  padding-left: 1em;
  position: relative;
  line-height: 1.7;
}

/*
.teacher-profile-positions li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--primary);
  opacity: .6;
}*/
.teacher-profile-text {
  margin: 0;
  font-size: .93rem;
  line-height: 1.9;
  color: var(--text);
  border-top: 1px solid rgba(135, 131, 131, 0.556);
  padding-top: 20px;
  white-space: pre-line;
}

@media (max-width: 640px) {
  .teacher-profile-layout {
    grid-template-columns: 1fr;
  }

  .teacher-profile-photo-wrap {
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
  }

  .teacher-profile-photo {
    width: 88px;
    height: 100px;
  }
}

/* ---- お知らせ縦リスト ---- */
.news-list-vertical {
  display: grid;
  gap: 2px;
}

.news-row-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 4px;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  border: none;
  border-top: 1px solid rgba(180, 160, 170, .22);
  transition: background .18s ease;
}

.news-row-link:last-child {
  border-bottom: 1px solid rgba(180, 160, 170, .22);
}

.news-row-link:hover {
  background: rgba(255, 255, 255, .42);
  border-color: rgba(255, 255, 255, .65);
}

.news-row-link .news-date {
  flex: 0 0 auto;
  font-size: .83rem;
  color: var(--muted);
  letter-spacing: .04em;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

.news-row-title {
  font-size: .97rem;
  font-weight: 600;
  color: #3d2e40;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .news-row-link {
    flex-direction: column;
    gap: 4px;
  }
}

/* ---- 理事長写真 ---- */
.portrait-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border-radius: 24px;
}

.portrait-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
}

/* ---- 講義画像 ---- */
.program-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  display: block;
}

.program-image {
  min-height: 240px;
  overflow: hidden;
}

.program-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
}

/* ---- スクロール フェードイン＋スライドアップ ---- */
@keyframes kgcFadeUp {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 初期状態: 非表示 */
.anim-target {
  opacity: 0;
  transform: translateY(36px);
  transition: none;
}

/* JS が .anim-visible を付けたら実行 */
.anim-target.anim-visible {
  animation: kgcFadeUp 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* 子要素の連続遅延 */
.anim-target.anim-delay-1 {
  animation-delay: 0.08s;
}

.anim-target.anim-delay-2 {
  animation-delay: 0.16s;
}

.anim-target.anim-delay-3 {
  animation-delay: 0.24s;
}

.anim-target.anim-delay-4 {
  animation-delay: 0.32s;
}

/* JS非対応ブラウザ向けフォールバック */
.no-js .anim-target {
  opacity: 1;
  transform: none;
}

/* ---- 講義申込ボタン 個別カラー ---- */
.program.funeral .program-cta,
.program.visit .program-cta {
  background: #7a5c7a;
  color: #fff;
  border-color: rgba(122, 92, 122, .4);
}

.program.funeral .program-cta:hover,
.program.visit .program-cta:hover {
  background: #6a4e6a;
}

.program.medical .program-cta {
  background: #c58b38;
  color: #fff;
  border-color: rgba(197, 139, 56, .4);
}

.program.medical .program-cta:hover {
  background: #b07c2e;
}

.program.group .program-cta {
  background: #b1bfd1;
  color: #3d3550;
  border-color: rgba(177, 191, 209, .4);
}

.program.group .program-cta:hover {
  background: #9aafc5;
}

/* ---- 確認画面へ・送信するボタン（申込フォーム内） ---- */
.application-shell .btn.primary,
.confirm-actions .btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: rgba(122, 92, 122, .3);
  backdrop-filter: none;
}

.application-shell .btn.primary:hover,
.confirm-actions .btn.primary:hover {
  background: #6a4e6a;
}

/* ---- 講師アコーディオン ---- */
.teacher-accordion {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.teacher-detail {
  border: none;
  background: none;
}

.teacher-detail summary {
  list-style: none;
  cursor: pointer;
  padding: 4px 6px 4px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  border-radius: 12px;
  transition: box-shadow .2s ease;
}

.teacher-detail summary:hover {
  box-shadow: 0 4px 16px rgba(120, 90, 120, .14);
}

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

.teacher-detail summary .teacher-tags {
  margin: 0;
  pointer-events: none;
}

/* 展開コンテンツ */
.teacher-detail>ul,
.teacher-detail>ol,
.teacher-detail>p {
  margin: 0;
  padding: 4px 8px 10px 28px;
  font-size: .88rem;
  line-height: 1.8;
  color: var(--text);
}

/* ---- JS が body 直下に生成するフローティングパネル ---- */
.teacher-float-panel {
  position: fixed;
  z-index: 9000;
  min-width: 300px;
  max-width: 440px;
  padding: 16px 20px;
  font-size: .9rem;
  line-height: 1.85;
  color: var(--text);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .80);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(100, 70, 110, .18), 0 1px 0 rgba(255, 255, 255, .7) inset;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}

.teacher-float-panel.is-shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.teacher-float-panel ul,
.teacher-float-panel ol {
  margin: 0;
  padding-left: 1.4em;
}

.teacher-float-panel li {
  margin-bottom: 5px;
}

.teacher-float-panel p {
  margin: 0;
}