html {
  scroll-behavior: smooth;
}
body {
  color: #222;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  font-feature-settings: "palt";
}
.review-note {
  background: #eee;
  border-bottom: 1px solid #aaa;
  padding: 10px 20px;
  font-size: 13px;
}
.page {
  max-width: 1000px;
  margin: auto;
  padding: 32px 24px;
}
header {
  padding-bottom: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.5;
}
h2 {
  font-size: 22px;
  border-bottom: 1px solid #888;
  padding-bottom: 12px;
  margin: 0 0 24px;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
section {
  padding: 36px;
  border-bottom: 1px solid #ccc;
  scroll-margin-top: 20px;
}
.no-border {
  border-bottom: none;
}
.flex_area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 40px;
  padding: 2rem 0;
}
.gallery img {
  display: block;
  width: 100%;
  border: 1px solid #aaa;
}
.top {
  position: relative;
}
.hero-image {
  position: relative;
  z-index: 2;
}
.hero-cut {
  position: absolute;
  top: 0;
  left: -13%;
  width: 66%;
  z-index: 1;
}
p {
  margin: 16px 0;
}
.txt_ttl {
  font-weight: bold;
  display: inline-block;
  margin-right: 20px;
}
.text_l {
  font-weight: bold;
}
.txt_bold {
  font-weight: bold;
}
li {
  margin: 12px 0;
}
.attention_area {
  color: #fff;
  line-height: 1.4;
  padding: 1rem;
  font-size: 14px;
  background-color: #000;
}
.attention_area li {
  margin: 0;
  padding-left: 1em;
  text-indent: -1em;
  margin: 0;
}
.detail_area > .text_l {
  margin-top: 28px;
}
.sp-only {
  display: none;
}
footer {
  color: #fff;
  background: #000;
  padding: 2rem 0 1rem;
  font-size: 14px;
}
.sns_area {
  display: flex;
  gap: 24px;
}
footer p {
  margin-top: 28px;
  font-size: 12px;
}
.txt_attention {
  font-size: 14px;
}

@media print {
  .review-note {
    background: none;
  }
  .page {
    max-width: none;
  }
  section {
    break-inside: avoid;
  }
  a {
    text-decoration: none;
  }
}

/* Sample styles: sp_sakamoto_service — set contents and application details. */
.info_area {
  position: relative;
  width: 100%;
  margin: 2rem auto 0;
  border: 2px solid #000;
  background: #fff;
  padding: 36px;
  box-shadow: 5px 7px 0 rgba(0, 0, 0, 0.4);
  color: #000;
  line-height: 1.6em;
  z-index: 2;
}
.info_area h2 {
  margin: 0 0 1.5em;
  border: 0;
  color: #fff;
  background: #000;
  text-align: center;
  font-size: 1em;
  font-weight: 700;
  padding: 0.4rem;
}
.info_area p {
  color: #000;
  text-align: left;
  line-height: 1.6rem;
  margin: 1rem 0 0;
  font-size: 0.9em;
}
.info_area .flex_area {
  display: flex;
  gap: 0;
  width: 100%;
  margin: 0 auto;
}
.info_area .flex_area > div:first-child {
  width: 50%;
  margin-right: 2%;
}
.info_area .flex_area > div:nth-child(2) {
  width: 48%;
}
.info_area .text_l {
  font-weight: 700;
  font-size: 1.1em;
}
.info_area .txt_ttl {
  background: #e00;
  color: #fff;
  display: inline-block;
  text-align: center;
  width: 25%;
  padding: 0.1rem 0;
  font-size: 0.8em;
  margin-right: 2%;
}
.info_area .txt_attention {
  font-size: 0.7em;
  text-indent: 1.6em;
  margin-top: 0.1rem;
}
.info_area .detail_area {
  width: 100%;
  margin: 0 auto;
}
.info_area .detail_area .text_l span:last-of-type {
  margin-top: 0.2rem;
  display: inline-block;
  font-weight: 700;
}
.info_area .detail_area .txt_ttl {
  width: 17%;
}
.info_area .detail_area ul {
  width: 100%;
}
.info_area .detail_area li {
  margin: 0;
  text-indent: -1em;
  padding-left: 1em;
  font-size: 0.9em;
}
.info_area .detail_area a {
  color: #0b3589;
}
.info_area .txt_red {
  color: #e00;
}
.info_area .indent_1em {
  text-indent: -1em;
  padding-left: 1em;
}
.info_area .mgt0_2 {
  margin-top: 0.2rem;
}
.info_area .mgt0_6 {
  margin-top: 0.6rem;
}
.info_area .mgt2 {
  margin-top: 2rem;
}
.info_area .sp-only {
  display: none;
}
.info_area [id] {
  scroll-margin-top: 20px;
}

/* Larger circular markers. */
.info_area .bullet {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.25rem;
  border-radius: 50%;
  background: currentColor;
  font-size: 0;
  vertical-align: 0.05em;
  text-indent: 0;
}

/* Social share buttons */
footer .sns_area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin: 0 auto;
}
footer .sns_area li {
  margin: 0;
}
footer .sns_area a,
footer .sns_area button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
footer .sns_area img {
  display: block;
  width: 100%;
  height: 100%;
}
footer .sns_area :is(a, button):hover {
  opacity: 0.7;
}
footer .sns_area :is(a, button):focus-visible {
  outline: 2px solid #222;
  outline-offset: 5px;
}
footer > p {
  text-align: center;
}

footer .sns_area button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Product image lightbox triggers */
.gallery > a {
  display: block;
  position: relative;
  align-self: center;
}
.gallery .zoom {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 35px;
  height: 35px;
  background: url("../img/ico_zoom.png") center / contain no-repeat;
  pointer-events: none;
}
.gallery > a:focus-visible {
  outline: 2px solid #222;
  outline-offset: 5px;
}
.gallery > a > img {
  opacity: 1;
  transition: transform 0.25s ease;
}
@media (hover: hover) {
  .gallery > a:hover > img {
    opacity: 1;
    transform: scale(0.97);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery > a > img { transition: none; }
  
}

/* Responsive layout: tablet */
@media (max-width: 800px) {
  section,
  section.info_area { padding: 24px; }
  .flex_area { grid-template-columns: 1fr; gap: 0; }
  .info_area .flex_area { display: block; width: 100%; }
  .info_area .flex_area > div:first-child,
  .info_area .flex_area > div:nth-child(2) {
    width: 100%;
    min-width: 0;
    margin: 1rem 0 0;
  }
  .info_area .detail_area { width: 100%; }
  .info_area .detail_area .txt_ttl { width: 34%; }
  .sp-only,
  .info_area .sp-only { display: block; }
}

/* Smartphone text is 90% of the desktop size. */
@media (max-width: 640px) {
  body { font-size: 14.4px; }
  .info_area .text_l { font-size: 1em; }
  .info_area .txt_ttl { font-size: 0.78em; }
  .review-note { font-size: 11.7px; }
  h1 { font-size: 25.2px; }
  h2 { font-size: 19.8px; }
  footer,
  .attention_area,
  .txt_attention { font-size: 12.6px; }
  .page { padding: 24px 16px; }
  section,
  section.info_area { padding: 16px; }
  .info_area p { line-height: 1.6em; overflow-wrap: anywhere; }
  .info_area .txt_ttl { min-width: 7em; }
  .info_area .detail_area .txt_ttl { min-width: 8em; }
  .hero-image img { display: block; width: 100%; height: auto; }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    padding: 1rem 0;
  }
  .gallery > a { min-width: 0; }
  .gallery .zoom { width: 28px; height: 28px; right: -5px; bottom: -5px; }
  footer > p:last-child { margin-bottom: 0; }
  footer .sns_area { gap: 20px; }
}

/* Visually hidden heading, available to assistive technology. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Remove the gap only after the two specified notes. */
.info_area p.tight-after + p { margin-top: 0; }

/* Fixed background layer, including iOS Safari. */
body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  background: url("../img/bg.webp") center top / cover no-repeat;
}
@media (max-width: 640px) {
  body::before { background-image: url("../img/sp-bg.webp"); }
  .hero-cut {
  position: absolute;
  top: -2%;
  left: -26%;
  width: 110%;
  z-index: 1;
}
}
@media print {
  body::before { display: none; }
}

/* Hero image: desktop/tablet and smartphone. */
.hero-image img.pc { display: block; }
.hero-image img.sp { display: none; }
@media (max-width: 640px) {
  .hero-image img.pc { display: none; }
  .hero-image img.sp { display: block; }
}
