/* Shared Header / Page Title / Sidebar Spec 01. */
:root {
  --sm-shared-content-width: 880px;
  --sm-shared-sidebar-width: 260px;
  --sm-shared-column-gap: 40px;
  --sm-shared-heading: #163c2d;
}

/* Keep the shared phone treatment independent from page-level anchor rules. */
.sm-site-header .sm-main-header__phone,
.sm-site-header .sm-main-header__phone:visited,
.sm-site-header .sm-main-header__phone:hover {
  color: var(--sm-color-text, #222);
  text-decoration: none;
}

/* Keeps the current header DOM, menu behavior, and contact data source. */
@media (min-width: 1024px) {
  .sm-site-header .sm-info-bar { height: 32px; border: 0; background: #2b986c; }
  .sm-site-header .sm-info-bar__inner { color: #fff; font-size: 11px; }
  .sm-site-header .sm-info-bar a { color: inherit; }
  .sm-site-header .sm-main-header__inner { min-height: 115px; grid-template-columns: 306px minmax(200px, 1fr) 338px; gap: 18px; }
  .sm-site-header .sm-main-header__logo a { width: 306px; min-height: 57px; }
  .sm-site-header .sm-main-header__logo img { width: 306px; max-height: 57px; object-fit: contain; object-position: left center; }
  .sm-site-header .sm-main-header__contact { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; }
  .sm-site-header .sm-main-header__phone { align-items: baseline; gap: 6px; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: 0; }
  .sm-site-header .sm-main-header__phone-prefix { font: inherit; }
  .sm-site-header .sm-main-header__phone-number { font-family: Impact, "Arial Narrow Bold", sans-serif; font-size: 34px; font-weight: 400; line-height: 1; letter-spacing: .01em; }
  .sm-site-header .sm-main-header__hours { margin: 6px 0 0; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 12px; font-weight: 700; line-height: 1.5; }
  .sm-site-header .sm-main-header__cta { gap: 8px; }
  .sm-site-header .sm-main-header__cta .sm-button { min-width: 165px; min-height: 52px; padding-inline: 12px; font-size: 14px; line-height: 1.3; text-align: center; }
  .sm-site-header .sm-global-nav__link { min-height: 53px; }
}

/* The desktop maximum resolves to 880 + 40 + 260 = 1180px. */
@media (min-width: 1101px) {
  .sm-editorial-shell__layout { grid-template-columns: minmax(0, 1fr) var(--sm-shared-sidebar-width); gap: var(--sm-shared-column-gap); }
  .sm-editorial-shell__main { max-width: var(--sm-shared-content-width); }
}

/* One owner defines the navigation-to-breadcrumb and breadcrumb-to-title rhythm. */
.sm-editorial-final__shell,
.sm-purpose-page .sm-editorial-shell.sm-purpose-page__shell { padding-top: 40px; }
.sm-editorial-final__breadcrumbs,
.sm-purpose-page__breadcrumbs { margin-bottom: 40px; }
.sm-editorial-final__layout,
.sm-purpose-page__layout { margin-top: 0; }

.sm-page-title { margin: 0; color: var(--sm-shared-heading); font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-weight: 800; letter-spacing: .015em; }
.sm-page-title__main,
.sm-page-title__sub { display: block; }
.sm-page-title__nowrap { white-space: nowrap; }
.sm-page-title__main { font-size: 44px; line-height: 1.26; }
.sm-page-title__sub { margin-top: 12px; font-size: 20px; line-height: 1.5; }
.sm-editorial-final__header h1.sm-page-title,
.sm-purpose-page__header h1.sm-page-title { font-size: inherit; line-height: inherit; }

/* All scheduled banner media resolve from one option-backed registry. */
.sm-editorial-final__sidebar.sm-shared-sidebar { position: static; display: grid; grid-template-columns: minmax(0, 260px); gap: 16px; width: 260px; min-width: 0; box-sizing: border-box; align-self: start; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.sm-editorial-final__sidebar.sm-shared-sidebar > .sm-shared-sidebar__banner { display: grid; width: 260px; max-width: 100%; aspect-ratio: var(--sm-shared-sidebar-banner-ratio); place-content: center; gap: 8px; overflow: hidden; box-sizing: border-box; margin: 0; padding: 0; border: 1px solid #d8d8d8; border-radius: 0; background: #d9d9d9; box-shadow: none; color: #202020; line-height: 0; text-align: center; }
.sm-editorial-final__sidebar.sm-shared-sidebar > .sm-shared-sidebar__banner--has-image { display: block; border: 0; background: transparent; }
.sm-editorial-final__sidebar.sm-shared-sidebar .sm-shared-sidebar__banner-link { display: block; width: 100%; height: 100%; box-sizing: border-box; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit; line-height: 0; text-decoration: none; }
.sm-editorial-final__sidebar.sm-shared-sidebar .sm-shared-sidebar__banner-link:hover { padding: 0; border: 0; background: transparent; box-shadow: none; color: inherit; }
.sm-editorial-final__sidebar.sm-shared-sidebar .sm-shared-sidebar__banner-link::before,
.sm-editorial-final__sidebar.sm-shared-sidebar .sm-shared-sidebar__banner-link::after { display: none; content: none; }
.sm-editorial-final__sidebar.sm-shared-sidebar .sm-shared-sidebar__banner-link:focus-visible { outline: 2px solid #075d3e; outline-offset: 2px; }
.sm-editorial-final__sidebar.sm-shared-sidebar > .sm-shared-sidebar__banner--has-image img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; object-fit: contain; }
.sm-shared-sidebar__banner-label { white-space: pre-line; font-size: 20px; font-weight: 500; line-height: 1.35; }
.sm-shared-sidebar__banner small { font-size: 11px; color: #5c5c5c; }
.sm-shared-sidebar__service-menu { display: grid; width: 100%; box-sizing: border-box; gap: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.sm-shared-sidebar__group { margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.sm-shared-sidebar__group summary { display: grid; min-height: 50px; grid-template-columns: 20px minmax(0, 1fr) 12px; gap: 10px; align-items: center; box-sizing: border-box; margin: 0; padding: 13px 15px; border: 0; border-radius: 0; background: #075d3e; box-shadow: none; color: #fff; cursor: pointer; font-size: 18px; font-weight: 700; line-height: 1.35; list-style: none; transition: background-color .16s ease, color .16s ease; }
.sm-shared-sidebar__group summary::-webkit-details-marker { display: none; }
.sm-shared-sidebar__group-icon { display: grid; width: 20px; height: 20px; place-items: center; }
.sm-shared-sidebar__group-icon svg { display: block; width: 20px; height: 20px; }
.sm-shared-sidebar__group-arrow { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .18s ease; }
.sm-shared-sidebar__group[open] .sm-shared-sidebar__group-arrow { transform: rotate(225deg); }
.sm-shared-sidebar__group[open] summary { background: #075d3e; box-shadow: none; color: #fff; }
.sm-shared-sidebar__group summary:hover { background: #064c33; color: #fff; }
.sm-shared-sidebar__group ul { display: block; margin: 0; padding: 0; border: 0; list-style: none; }
.sm-shared-sidebar__leak ul { margin: 0; padding: 0; list-style: none; }
.sm-shared-sidebar__group li { margin: 0; border: 0; }
.sm-shared-sidebar__group li + li { margin: 0; }
.sm-shared-sidebar__group a { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 8px; box-sizing: border-box; margin: 0; padding: 11px 14px 11px 15px; border: 0 solid #e2e6e4; border-width: 0 1px 1px; border-radius: 0; background: #fff; box-shadow: none; color: #25342d; font-size: 14px; font-weight: 600; line-height: 1.45; text-align: left; text-decoration: none; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.sm-shared-sidebar__group a::after { content: '›'; flex: 0 0 auto; font-size: 17px; font-weight: 400; line-height: 1; transition: transform .16s ease; }
.sm-shared-sidebar__group a:hover,
.sm-shared-sidebar__group a:focus-visible { border-color: #c4d1ca; background: #eef4f0; box-shadow: none; color: #075d3e; text-decoration: none; }
.sm-shared-sidebar__group a:hover::after,
.sm-shared-sidebar__group a:focus-visible::after { transform: translateX(2px); }
.sm-shared-sidebar__group a:focus-visible { outline: 2px solid #075d3e; outline-offset: -2px; }
.sm-shared-sidebar__group summary:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.sm-shared-sidebar__group a.is-current { border-color: #c4d1ca; background: #e8eee9; box-shadow: inset 3px 0 0 #075d3e; color: #075d3e; font-weight: 700; }
.sm-editorial-final__sidebar.sm-shared-sidebar > .sm-shared-sidebar__leak { width: 260px; max-width: 100%; overflow: hidden; box-sizing: border-box; margin: 0; padding: 0; border: 1px solid #d8deda; border-radius: 0; background: #fff; box-shadow: none; }
.sm-shared-sidebar__leak-title { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: center; margin: 0; padding: 13px 15px; border: 0; background: #075d3e; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.35; text-align: left; }
.sm-shared-sidebar__leak-title-icon,
.sm-shared-sidebar__leak-link-icon { display: grid; width: 20px; height: 20px; place-items: center; }
.sm-shared-sidebar__leak-title-icon svg,
.sm-shared-sidebar__leak-link-icon svg { display: block; width: 18px; height: 18px; }
.sm-shared-sidebar__leak > ul { display: block; margin: 0; padding: 0; border: 0; list-style: none; }
.sm-shared-sidebar__leak li,
.sm-shared-sidebar__leak li + li { margin: 0; border: 0; }
.sm-editorial-final__sidebar.sm-shared-sidebar .sm-shared-sidebar__leak-link { display: grid; min-height: 52px; grid-template-columns: 20px minmax(0, 1fr) 8px; gap: 9px; align-items: center; box-sizing: border-box; margin: 0; padding: 14px; border: 0; border-bottom: 1px solid #e2e6e4; border-radius: 0; background: #fff; box-shadow: none; color: #25342d; font-size: 14px; font-weight: 600; line-height: 1.45; text-align: left; text-decoration: none; transition: background-color .16s ease, color .16s ease; }
.sm-shared-sidebar__leak li:last-child .sm-shared-sidebar__leak-link { border-bottom: 0; }
.sm-shared-sidebar__leak-link-arrow { width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .16s ease; }
.sm-editorial-final__sidebar.sm-shared-sidebar .sm-shared-sidebar__leak-link:hover { background: #eceeed; color: #075d3e; text-decoration: none; }
.sm-editorial-final__sidebar.sm-shared-sidebar .sm-shared-sidebar__leak-link:hover .sm-shared-sidebar__leak-link-arrow { transform: translateX(2px) rotate(45deg); }
.sm-editorial-final__sidebar.sm-shared-sidebar .sm-shared-sidebar__leak-link:focus-visible { outline: 2px solid #075d3e; outline-offset: -2px; }

@media (max-width: 1100px) {
  .sm-editorial-final__sidebar.sm-shared-sidebar { width: 260px; max-width: 100%; }
}
@media (max-width: 767px) {
  .sm-page-title__main { font-size: 32px; }
  .sm-page-title__sub { margin-top: 12px; font-size: 16px; }
  .sm-editorial-shell__layout.sm-editorial-final__layout,
  .sm-editorial-shell__layout.sm-purpose-page__layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sm-editorial-final__sidebar.sm-shared-sidebar,
  .sm-editorial-final__sidebar:not(.sm-shared-sidebar) { display: none; }
}
