/* Shared visual refinements. Keep Bootstrap and the existing brand assets. */
:root {
  --sin-ink: #343a40;
  --sin-muted: #59656b;
  --sin-aqua: #5dc2d0;
  --sin-purple: #796baf;
  --sin-line: #dfe8e9;
  --sin-radius: 16px;
}
body { line-height: 1.9; background: #f4f7f7; overflow-wrap: break-word; }
a { color: #216a91; text-underline-offset: .22em; }
a:hover { color: #174e6c; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--sin-purple); outline-offset: 4px;
}
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1100; padding: 12px 20px; background: white; color: var(--sin-ink); }
.skip-link:focus { top: 12px; }
.navbar { padding: 18px max(24px, calc((100vw - 1110px) / 2)); border-bottom: 3px solid var(--sin-aqua); }
.navbar-brand { padding: 0; }
.navbar-brand img { width: 180px; border-radius: 0; }
.navbar-nav { gap: 8px; }
.navbar-nav li { margin: 0; text-align: left; }
.navbar-dark .navbar-nav .nav-link { color: #edf2f3; padding: 12px 18px; border-radius: 8px; font-size: .95rem; }
.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .active > .nav-link { color: white; background: #ffffff14; }
.navbar-toggler { min-width: 48px; min-height: 48px; border-color: #a3acb2 !important; }
.dropdown-menu { border: 1px solid var(--sin-line); border-radius: 12px; padding: 8px; box-shadow: 0 12px 32px #243c4814; }
.dropdown-item { padding: 12px 18px; border-radius: 6px; }
.dropdown-item.active, .dropdown-item:active { background: #216a91; }
main { padding-top: 32px; padding-bottom: 64px; }
main > hr { border: 0; margin: 0; height: 36px; }
main header.mt-3 { margin-top: 0 !important; }
main header img { width: 100%; border-radius: var(--sin-radius); }
.card { border: 1px solid var(--sin-line); border-radius: var(--sin-radius); box-shadow: 0 8px 28px #344a5605; }
.card-body { padding: clamp(24px, 4vw, 52px); }
main p, main li, .media-body { line-height: 1.95; }
main ul, main ol { padding-left: 1.5rem; }
main .list-unstyled { padding-left: 0; }
main li { margin-top: 12px; text-align: left; }
.lead { font-size: 1.0625rem; line-height: 2.1; max-width: 48rem; margin: 28px auto 0; text-align: left; }
.heading-style-1.title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.65; padding: 0 0 22px; border-bottom: 2px solid var(--sin-aqua); letter-spacing: .06em; }
.heading-style-1.title:before { bottom: -2px; height: 2px; width: 72px; }
.heading-style-2 { font-family: 'Noto Serif JP', serif; color: var(--sin-ink); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.65; padding: 0 0 20px; margin: 0 0 28px; }
.heading-style-2:after { height: 2px; background: linear-gradient(to right, var(--sin-purple) 64px, var(--sin-aqua) 64px, var(--sin-aqua) 140px, var(--sin-line) 140px); }
.heading-style-3.title { font-size: 1.0625rem; line-height: 1.8; padding: 12px 16px; border-radius: 8px; }
.heading-style-4.title { font-size: 1.25rem; line-height: 1.7; margin: 24px 0 16px; }
.heading-style-5.title { font-size: 1.15rem; line-height: 1.7; border-bottom-color: var(--sin-line); padding-bottom: 12px; }
.media { gap: 4px; }
.media > a { flex-shrink: 0; }
.media .heading-style-5 { margin-top: 0; }
.media-body { min-width: 0; }
.note { border: 1px solid #e9dfab; border-left: 3px solid #ddc86c; border-radius: 8px; padding: 18px 22px; background: #fffbed; color: #a32922; font-size: .9375rem; line-height: 1.9; margin: 28px 0; }
.box-info, .box-note { color: #244b52; background: #e2f4f6; padding: 14px 18px; line-height: 1.8; }
.contact-panel { width: min(100%, 620px); padding: 24px; border-radius: 12px; background: #24733c; color: white; text-align: center; line-height: 1.9; }
.phone { display: inline-block; max-width: 100%; line-height: 1.6; padding: 8px 0; font-size: clamp(1.5rem, 3vw, 1.9rem); }
a.phone:hover { text-decoration: underline; }
.table { line-height: 1.8; }
.table th, .table td { padding: 16px; border-color: var(--sin-line); }
.table th { color: #244b52; background: #e2f4f6; }
.table td.bold-red { min-width: 6em; background: #fbfcfc; }
.table.reset { margin-left: 0; }
.directory-table .phone { display: table-cell; font-size: clamp(1.05rem, 2vw, 1.5rem); }
main.container.bg-white { padding: 32px; margin-top: 32px; margin-bottom: 48px; border: 1px solid var(--sin-line); border-radius: var(--sin-radius); }
main.container > section + section { margin-top: 40px !important; }
footer { padding: 44px 0 20px; border-top: 3px solid var(--sin-aqua); }
footer p, footer address { line-height: 1.9; }
h3.footer_title { font-size: 1.05rem; margin: 16px 0; padding: 0 0 12px; border-bottom: 1px solid #ffffff30; }
.copyright { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid #ffffff24; color: #d6dfe3; font-size: .8125rem; }
#page_top { right: 20px; bottom: 24px; border-radius: 50%; opacity: 1; background: #216a91; box-shadow: 0 4px 16px #243c4826; }
#page_top a::before { content: ''; font-family: inherit; width: 10px; height: 10px; border-top: 2px solid white; border-left: 2px solid white; transform: translateY(3px) rotate(45deg); }
.grid-item, .grid-item:hover { transform: none; position: static; }
a, button { transition: background-color .18s ease, color .18s ease; }
@media (max-width: 991.98px) {
  .navbar { padding: 12px 20px; }
  .navbar-collapse { padding-top: 16px; }
  .navbar-nav { gap: 4px; }
  .navbar .dropdown-menu { background: #f5f8f8; }
}
@media (max-width: 767.98px) {
  main { padding-top: 20px; padding-bottom: 40px; }
  main > hr { height: 24px; }
  .card-body { padding: 24px 20px; }
  .navbar-brand img { width: 154px; }
  .lead { font-size: 1rem; line-height: 2; }
  .note { padding: 16px; text-align: left; }
  .contact-panel { padding: 20px 12px; }
  .table th, .table td { padding: 10px 8px; font-size: .9375rem; }
  .card-body > .row > [class*='col-md-'] + [class*='col-md-'] { margin-top: 24px; }
  main.container.bg-white { width: calc(100% - 30px); padding: 20px; margin-top: 20px; }
  .thumbnail { margin-right: 0; }
  .box-note { width: 100%; font-size: .9375rem; }
  footer { padding-top: 28px; }
  #page_top { right: 12px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* Reserve the selected hero's space before its image downloads. */
.hero-picture { display: block; }
.hero-picture > img { height: auto; aspect-ratio: auto 1920 / 700; }
@media (max-width: 750px) {
  .hero-picture > img { aspect-ratio: auto 960 / 1200; }
}

/* Align the four firing temperatures despite different source image ratios. */
.firing-examples > .col-md-2 {
  display: flex;
  flex-direction: column;
}
.firing-examples > .col-md-2 > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 299;
  object-fit: contain;
  margin: 0;
}
.firing-examples > .col-md-2 > .box-note {
  width: 100%;
  margin: 12px 0 0;
  padding: 8px 2px;
  white-space: nowrap;
  font-size: clamp(.75rem, 1.5vw, .875rem);
}
@media (max-width: 767.98px) {
  .firing-examples { margin-left: -4px; margin-right: -4px; }
  .firing-examples > .col-md-2 { padding-left: 4px; padding-right: 4px; }
  .card-body > .firing-examples > .col-md-2 + .col-md-2 { margin-top: 0; }
}
