/* =========================================================
   昇英館 下位ページ専用スタイル
   - subpage-template.html など下位ページだけで使用するパンくず、
     H1/H2/H3/H4、本文部品、表、ページ内リンクなどの記述
   - common.css の後に読み込みます
   ========================================================= */


.entry-content a {
	color: revert;
	text-decoration: underline;
}

.lower-page {
  background: #fff;
}

.lower-page .global-nav > ul > li.is-current > a,
.lower-page .global-nav > ul > li.is-current > a:visited {
  color: var(--orange-dark);
}

.lower-page .global-nav > ul > li.is-current > a::after {
  transform: scaleX(1);
}

/* パンくず */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 8px;
  padding-bottom: 8px;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li:not(:last-child)::after {
  color: var(--orange);
  content: "/";
  font-weight: 800;
}

.breadcrumb a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.breadcrumb a:hover {
  color: var(--orange-dark);
  text-decoration-color: currentColor;
}

/* H1を配置する下位ページ用ヒーロー */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 212, 59, .22), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(22, 58, 99, .08), transparent 20%),
    linear-gradient(135deg, #fffaf1 0%, #fff6e8 38%, #ffffff 100%);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 138, 0, .06) 0 12%, transparent 12% 100%),
    repeating-linear-gradient(135deg, rgba(22, 58, 99, .045) 0 2px, transparent 2px 18px);
  opacity: .65;
  content: "";
}

.page-hero::after {
  position: absolute;
  right: clamp(-42px, -2vw, -12px);
  top: 50%;
  width: 220px;
  height: 220px;
  transform: translateY(-50%) rotate(18deg);
  content: "";
	background-image: url(images/shoeikan-logo-mark.svg);
	background-position: left top;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0.2;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: block;
}

.page-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  padding: 44px 0 42px;
}

.page-hero__label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2em;
}

.page-hero__label::before {
  width: 38px;
  height: 4px;
  background: var(--orange);
  border-radius: 999px;
  content: "";
}

.page-title {
  margin: 0;
  color: var(--heading);
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1.22;
}

.page-title::after {
  display: block;
  width: 88px;
  height: 7px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--orange) 0 68%, var(--yellow) 68% 100%);
  border-radius: 999px;
  content: "";
}

.page-hero__lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  line-height: 1.9;
}

/* ページ内リンク */
.page-anchor-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(18, 58, 90, .04);
}

.page-anchor-nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.page-anchor-nav__title {
  flex: 0 0 auto;
  margin: 0;
  color: var(--heading);
  font-size: 15px;
  font-weight: 900;
}

.page-anchor-nav ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  flex: 1;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-anchor-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 8px;
  color: var(--navy);
  background: var(--pale-blue);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.page-anchor-nav a::after {
  margin-left: 8px;
  color: var(--orange);
  content: "↓";
}

.page-anchor-nav a:hover {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* 本文レイアウト */
.lower-page-layout {
  display: block;
  padding-top: 36px;
  padding-bottom: 112px;
}

.entry-content {
  min-width: 0;
}

.entry-content + .entry-content {
  min-width: 0;
}

.entry-intro {
  margin: 0 0 20px;
  padding: 27px 30px;
  color: var(--navy);
  background: linear-gradient(135deg, #fff9ef, #fff);
  border: 1px solid rgba(255, 138, 0, .24);
  border-left: 7px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.9;
}

.entry-section {
  scroll-margin-top: calc(var(--header-height) + 36px);
}

.entry-section + .entry-section {
  margin-top: 126px;
/*
  padding-top: 118px;
  border-top: 1px solid var(--line);
*/
}

.entry-section__number {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .08em;
}

.entry-section__number span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .18em;
}

.entry-content p:not([class]) {
  margin: 0 0 1.6em;
}

.entry-lead {
  margin: 0 0 38px;
  color: var(--ink);
  font-size: 18px;
  line-height: 2;
}

/* H2 */
.entry-content h2 {
  position: relative;
  margin: 0 0 28px;
  padding: 10px 0 21px 29px;
  color: var(--heading);
  border-bottom: 1px solid var(--line);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 900;
  letter-spacing: .035em;
  line-height: 1.45;
}

.entry-content h2::before {
  position: absolute;
  top: 12px;
  bottom: 23px;
  left: 0;
  width: 8px;
  background: linear-gradient(180deg, var(--orange) 0 70%, var(--yellow) 70% 100%);
  border-radius: 999px;
  content: "";
}

/* H3 */
.entry-content h3 {
  position: relative;
  margin: 52px 0 22px;
  padding: 17px 22px 17px 25px;
  color: var(--heading);
  background: var(--pale-blue);
  border-left: 6px solid var(--blue);
  border-radius: 0 12px 12px 0;
  font-size: clamp(23px, 2.5vw, 30px);
  font-weight: 850;
  line-height: 1.5;
}

.entry-content h3::after {
  position: absolute;
  top: 0;
  left: -6px;
  width: 6px;
  height: 38%;
  background: var(--orange);
  content: "";
}

/* H4 */
.entry-content h4 {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 38px 0 17px;
  color: var(--heading);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 850;
  line-height: 1.55;
}

.entry-content h4::before {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  background: var(--orange);
  border: 3px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 212, 59, .32);
  content: "";
}

/* 画像＋説明 */
.media-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  margin: 42px 0 48px;
  overflow: hidden;
  background: var(--navy);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.media-panel__image {
  min-height: 360px;
  margin: 0;
}

.media-panel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-panel__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 38px;
  color: rgba(255, 255, 255, .88);
}

.media-panel__label {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2em;
}

.media-panel__title {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(25px, 2.8vw, 34px);
  font-weight: 900;
  line-height: 1.55;
}

.media-panel__body > p:last-child {
  margin: 0;
}

/* リスト・注記 */
.check-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list.multi-column {
	grid-template-columns: 1fr 1fr;
	font-weight: bold;
}

.check-list li {
	display: flex;
	align-items: center;
  position: relative;
  padding: 15px 18px 15px 50px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 7px 20px rgba(18, 58, 90, .05);
}

.check-list li::before {
  position: absolute;
  top: 50%;
  left: 18px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  content: "✓";
  font-size: 13px;
  font-weight: 900;
  transform: translateY(-50%);
}

.note-box {
  margin-top: 38px;
  padding: 24px 27px;
  background: #fff9e3;
  border: 1px solid rgba(255, 212, 59, .9);
  border-radius: var(--radius-sm);
}

.note-box__title {
  margin: 0 0 6px;
  color: var(--orange-dark);
  font-weight: 900;
}

.note-box p:last-child {
  margin: 0;
}

/* サポートカード */
.support-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.support-card {
  position: relative;
  min-height: 230px;
  padding: 32px 26px 27px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.support-card::after {
  position: absolute;
  right: -26px;
  bottom: -42px;
  width: 116px;
  height: 116px;
  background: rgba(255, 212, 59, .3);
  border-radius: 50%;
  content: "";
}

.support-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.support-card:nth-child(2) .support-card__icon {
  background: var(--blue);
}

.support-card:nth-child(3) .support-card__icon {
  background: var(--green);
}

.support-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 21px;
}

.support-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ローカルナビ */
.local-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  display: grid;
  gap: 22px;
}

.local-nav,
.sidebar-contact {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.local-nav__heading {
  margin: 0;
  padding: 22px 23px;
  color: #fff;
  background: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.local-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.local-nav li + li {
  border-top: 1px solid var(--line);
}

.local-nav a {
  position: relative;
  display: block;
  padding: 16px 42px 16px 21px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
  transition: color .2s ease, background .2s ease;
}

.local-nav a::after {
  position: absolute;
  top: 50%;
  right: 19px;
  color: var(--orange);
  content: "→";
  transform: translateY(-50%);
}

.local-nav a:hover,
.local-nav a.is-active {
  color: var(--orange-dark);
  background: var(--cream);
}

.local-nav a.is-active {
  padding-left: 27px;
  border-left: 6px solid var(--orange);
}

.sidebar-contact {
  padding: 26px 23px 24px;
  background: linear-gradient(145deg, var(--cream), #fff);
}

.sidebar-contact__label {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.sidebar-contact__title {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.5;
}

.sidebar-contact > p:not([class]) {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.sidebar-contact .button {
  min-height: 48px;
  font-size: 14px;
}

/* 前後ページ */
.article-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 88px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.article-pager a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 13px;
  align-items: center;
  min-height: 92px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.article-pager__next {
  grid-template-columns: 1fr auto !important;
  text-align: right;
}

.article-pager a span {
  grid-row: 1 / 3;
  color: var(--orange);
  font-size: 22px;
}

.article-pager__next span {
  grid-column: 2;
}

.article-pager a small {
  color: var(--muted);
  font-size: 11px;
}

.article-pager a strong {
  color: var(--navy);
  font-size: 15px;
}

.article-pager a:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

@media (max-width: 1100px) {
  .page-hero__copy {
    padding-right: 0;
  }

  .lower-page-layout {
    padding-top: 64px;
  }

  .support-cards {
    grid-template-columns: 1fr;
  }

  .support-card {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .page-hero {
    background:
      radial-gradient(circle at 12% 12%, rgba(255, 212, 59, .22), transparent 26%),
      linear-gradient(135deg, #fffaf1 0%, #fff7eb 50%, #ffffff 100%);
  }

  .page-hero::after {
    width: 168px;
    height: 168px;
    right: -32px;
  }

  .page-hero__inner {
    width: 100%;
  }

  .page-hero__copy {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
    min-height: 196px;
    padding: 34px 0 32px;
  }

  .page-anchor-nav__inner {
    display: block;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .page-anchor-nav__title {
    margin-bottom: 12px;
  }

  .page-anchor-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lower-page-layout {
    padding-top: 54px;
    padding-bottom: 88px;
  }

  .media-panel {
    grid-template-columns: 1fr;
  }

  .media-panel__image {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
	table {
		width: 100%!important;
	}
  .breadcrumb ol {
    min-height: 46px;
    gap: 7px;
    font-size: 11px;
  }

  .breadcrumb li {
    gap: 7px;
  }

  .page-hero::after {
    width: 118px;
    height: 118px;
    right: -24px;
    border-radius: 24px;
  }

  .page-hero__copy {
    width: calc(100% - 32px);
    min-height: 168px;
    padding: 28px 0 26px;
  }

  .page-title {
    font-size: 34px;
  }

  .page-title::after {
    width: 68px;
    height: 6px;
    margin-top: 14px;
  }

  .page-hero__lead {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.8;
  }

  .page-anchor-nav__inner {
    width: calc(100% - 32px);
  }

  .page-anchor-nav ul {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .page-anchor-nav a {
    min-height: 44px;
    padding-inline: 8px;
    font-size: 14px;
  }

  .lower-page-layout {
    width: calc(100% - 32px);
    padding-top: 44px;
    padding-bottom: 72px;
  }

  .entry-intro {
    margin-bottom: 20px;
    padding: 21px 20px;
    font-size: 18px;
  }

  .entry-section + .entry-section {
    margin-top: 72px;
    padding-top: 65px;
  }

  .entry-section__number {
    font-size: 15px;
  }

	.entry-content h2 {
    margin-bottom: 22px;
    padding: 8px 0 17px 22px;
    font-size: 29px;
  }

	.entry-content h2::before {
    top: 10px;
    bottom: 14px;
    width: 6px;
  }

	.entry-content h3 {
    margin-top: 42px;
    padding: 14px 16px 14px 18px;
    font-size: 22px;
  }

	.entry-content h4 {
    margin-top: 31px;
    font-size: 18px;
  }

  .entry-lead {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.9;
  }

  .media-panel {
    margin-top: 32px;
    border-radius: var(--radius-sm);
  }

  .media-panel__image {
    min-height: 230px;
  }

  .media-panel__body {
    padding: 28px 22px 30px;
  }

  .media-panel__title {
    font-size: 25px;
  }

  .check-list li {
    padding: 13px 14px 13px 45px;
    font-size: 14px;
  }

  .check-list li::before {
    left: 14px;
  }

  .note-box {
    padding: 20px 19px;
    font-size: 14px;
  }

  .support-card {
    padding: 26px 22px;
  }

  .table-scroll-hint {
    display: block;
  }

  .article-pager {
    grid-template-columns: 1fr;
    margin-top: 67px;
  }
}

@media (max-width: 390px) {
  .page-anchor-nav ul {
    grid-template-columns: 1fr 1fr;
  }

  .page-title {
    font-size: 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-anchor-nav a,
  .article-pager a {
    transition: none;
  }
}
