/* トップページだけに適用。共通の背景・配色・下層ページは変更しない。 */
.home-hero--with-sign {
  height: auto;
  min-height: max(760px, 100svh);
}

.home-hero--with-sign .home-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 48px);
  height: auto;
  min-height: inherit;
  padding-block: 140px 100px;
}

.home-hero-intro {
  min-width: 0;
}

.home-hero-sign {
  justify-self: end;
  width: min(100%, 430px);
  margin: 0;
  aspect-ratio: 1448 / 1192;
  background: var(--paper);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
}

.home-hero-sign img {
  /* 白余白を切り取った画像を、そのままの縦横比で表示する。 */
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 901px) {
  .home-hero--with-sign h1 {
    font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  }
}

@media (max-width: 900px) {
  .home-hero--with-sign .home-hero-content {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 36px;
    padding-block: 132px 100px;
  }

  .home-hero-sign {
    justify-self: start;
    width: min(100%, 420px);
  }
}

@media (max-width: 700px) {
  .home-hero--with-sign {
    min-height: max(620px, 88svh);
  }

  .home-hero--with-sign .home-hero-content {
    gap: 32px;
    padding-block: 112px 72px;
  }
}

/* ===== 理念を大きく表示 ===== */
.home-hero--with-sign .hero-philosophy {
  margin-top: clamp(26px, 3.5vw, 40px);
  padding: 4px 0 4px clamp(18px, 2vw, 26px);
  border-left: 2px solid var(--gold);
}

.hero-philosophy-label {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4em;
}

.hero-philosophy-key {
  margin: 0;
  color: #f0d7a5;
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.home-hero--with-sign .hero-philosophy .hero-copy {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.85;
  letter-spacing: 0.12em;
}

/* ===== 整体に興味がある方への標識 ===== */
.seitai-sign {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  margin-top: clamp(26px, 3.4vw, 38px);
  color: var(--ink);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35));
  transition: transform 220ms ease;
}

.seitai-sign:hover {
  transform: translateX(6px);
}

.seitai-sign-board {
  display: grid;
  gap: 2px;
  padding: 14px 18px 14px 22px;
  background: linear-gradient(180deg, #f6ead2, #e6d2a8);
  border: 1px solid #c9ad74;
  border-right: 0;
}

.seitai-sign-board small {
  color: #7a5f30;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.seitai-sign-board strong {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.seitai-sign-arrow {
  display: grid;
  place-items: center;
  width: 64px;
  padding-right: 14px;
  color: var(--white);
  background: #806840;
  clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%);
}

.seitai-sign-arrow .arrow-icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 430px) {
  .hero-philosophy-key {
    font-size: 1.3rem;
    letter-spacing: 0.06em;
  }

  .home-hero--with-sign .hero-philosophy .hero-copy {
    letter-spacing: 0.06em;
  }

  .seitai-sign-board {
    padding: 12px 14px 12px 16px;
  }

  .seitai-sign-board strong {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
  }

  .seitai-sign-arrow {
    width: 50px;
    padding-right: 10px;
  }
}

/* ===== 3つの入口：申し込みボタン ===== */
.guide-card--entry:hover {
  transform: none;
}

.guide-card-actions {
  display: grid;
  gap: 16px;
  width: 100%;
  margin-top: auto;
  padding-top: 30px;
}

.guide-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.guide-apply-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px;
  color: var(--white);
  background: #806840;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  transition: background 200ms ease;
}

.guide-apply-button::after {
  content: "\203A";
  font-size: 1.2rem;
  line-height: 1;
}

.guide-apply-button:hover {
  background: var(--ink);
}

/* 比較表の後ろの写真 */
.experience-section .compare-block {
  margin-bottom: clamp(36px, 5vw, 56px);
}

/* ===== 三つの場：申し込みボタン ===== */
a.program-image-wrap {
  display: block;
}

.program-card--entry:hover {
  transform: none;
}

.program-card-actions {
  display: grid;
  justify-items: start;
  gap: 22px;
  margin-top: 32px;
}

.program-card-actions .text-link {
  margin-top: 0;
}

.program-apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 30px;
  color: var(--white);
  background: #806840;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 200ms ease;
}

.program-apply-button::after {
  content: "\203A";
  font-size: 1.25rem;
  line-height: 1;
}

.program-apply-button:hover {
  background: var(--ink);
}

@media (max-width: 430px) {
  .program-card-actions,
  .program-apply-button {
    width: 100%;
  }
}

/* ===== トップ画像直下：5つの特徴（小さめの比較表＋写真）===== */
.experience-section.concept-compact {
  padding-block: clamp(56px, 7vw, 96px);
}

.concept-compact .programs-intro {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.concept-compact .programs-intro > p {
  max-width: 520px;
  color: var(--ink);
  font-size: 0.95rem;
}

.concept-compact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}

.experience-section .compare-block--compact {
  max-width: none;
  margin: 0;
}

.compare-block--compact .compare-title {
  margin: 0 0 12px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  text-align: left;
}

.compare-block--compact .compare-table {
  font-size: 0.78rem;
  line-height: 1.65;
}

.compare-block--compact .compare-table thead th {
  padding: 9px 12px;
  font-size: 0.7rem;
}

.compare-block--compact .compare-table tbody th {
  width: auto;
  padding: 10px 12px;
}

.compare-block--compact .compare-table td {
  width: 40%;
  padding: 10px 12px;
}

.compare-block--compact .compare-num {
  margin-right: 6px;
  font-size: 0.64rem;
}

.compare-block--compact .compare-renko > span::before {
  width: 0.85em;
  height: 0.85em;
  margin-right: 6px;
}

.concept-photo {
  position: relative;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  background: #d9cfbd;
}

.concept-photo img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
}

@media (max-width: 900px) {
  .concept-compact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* スマホ・タブレットでは画像を通常の流れで表示し、高さを明示する（古いiOSでも消えないように） */
  .concept-photo {
    order: -1;
    min-height: 0;
    height: auto;
  }

  .concept-photo img {
    position: static;
    height: 56vw;
    max-height: 420px;
  }
}

/* スマホでも表の形を保ったまま、小さく表示する */
@media (max-width: 700px) {
  .compare-block--compact .compare-table {
    display: table;
    table-layout: fixed;
    font-size: 0.72rem;
    line-height: 1.6;
  }

  .compare-block--compact .compare-table thead th:first-child {
    width: 5em;
  }

  .compare-block--compact .compare-table thead {
    display: table-header-group;
  }

  .compare-block--compact .compare-table tbody {
    display: table-row-group;
  }

  .compare-block--compact .compare-table tr {
    display: table-row;
    margin: 0;
    border: 0;
  }

  .compare-block--compact .compare-table th,
  .compare-block--compact .compare-table td {
    display: table-cell;
    border: 1px solid rgba(23, 21, 16, 0.12);
  }

  .compare-block--compact .compare-table thead th {
    padding: 7px 8px;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .compare-block--compact .compare-table tbody th {
    width: 4.6em;
    padding: 8px 6px;
    background: #ece4d6;
    font-size: 0.68rem;
    line-height: 1.45;
    white-space: normal;
  }

  .compare-block--compact .compare-table td {
    width: auto;
    padding: 8px;
  }

  .compare-block--compact .compare-table td::before,
  .compare-block--compact .compare-num,
  .compare-block--compact .compare-renko > span::before {
    display: none;
  }
}

/* お知らせ（管理画面の「お知らせ」から追加。掲載中のものがないときは表示されません） */
.news-strip {
  background: var(--paper-bright);
  border-bottom: 1px solid var(--line);
}

.news-strip__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 40px;
  align-items: start;
  padding-block: 22px;
}

.news-strip__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.news-strip__title span {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.news-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.news-strip__item {
  display: grid;
  grid-template-columns: 6.2em auto 1fr;
  gap: 4px 12px;
  align-items: baseline;
  font-size: 0.92rem;
  min-width: 0;
}

.news-strip__item time {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

.news-strip__new {
  justify-self: start;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--gold);
  padding: 1px 6px;
  border-radius: 2px;
}

.news-strip__item:not(:has(.news-strip__new)) .news-strip__text {
  grid-column: 2 / -1;
}

.news-strip__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.news-strip__headline,
.news-strip__body {
  margin: 0;
}

.news-strip__headline a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-underline-offset: 3px;
}

.news-strip__body {
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

@media (max-width: 700px) {
  .news-strip__inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 16px;
  }

  .news-strip__title {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .news-strip__item {
    grid-template-columns: auto 1fr;
  }

  .news-strip__item .news-strip__text,
  .news-strip__item:not(:has(.news-strip__new)) .news-strip__text {
    grid-column: 1 / -1;
  }
}
