/* Editorial finish: visual rhythm, navigation state, and image hierarchy. */
html,
body {
  overflow-x: clip;
}

.site-header {
  isolation: isolate;
}

.reading-progress {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4px;
  overflow: hidden;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #21afd8 0 72%, #f2bc36 72% 100%);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.global-nav a.is-current {
  color: #0d334a;
  background: #e7f4fa;
}

.global-nav a.is-current::after {
  background: #f0b72f;
  transform: scaleX(1);
}

#photos,
#ranking,
#compare,
#guide,
#faq {
  scroll-margin-top: 92px;
}

.photo-section,
.criteria-section,
.ranking-section,
.compare-section,
.guide-section,
.trivia-section,
.faq-section {
  position: relative;
  isolation: isolate;
}

.photo-section > .section-inner,
.criteria-section > .section-inner,
.ranking-section > .section-inner,
.compare-section > .section-inner,
.guide-section > .section-inner,
.trivia-section > .section-inner,
.faq-section > .section-inner {
  position: relative;
  z-index: 1;
}

.photo-section::before,
.criteria-section::before,
.ranking-section::before,
.compare-section::before,
.guide-section::before,
.trivia-section::before,
.faq-section::before {
  position: absolute;
  z-index: 0;
  top: 52px;
  right: max(24px, calc((100vw - 1180px) / 2));
  color: #0d5f89;
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.07;
  pointer-events: none;
}

.photo-section::before { content: "01"; }
.criteria-section::before { content: "02"; }
.ranking-section::before { content: "03"; }
.compare-section::before { content: "04"; }
.guide-section::before { content: "05"; }
.trivia-section::before { content: "06"; }
.faq-section::before { content: "07"; }

.section-kicker {
  position: relative;
}

.section-kicker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 9px);
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.42;
}

.hero-title-banner {
  filter: saturate(1.03) contrast(1.015);
}

.hero-checks li,
.hero-stats,
.best-grid article,
.rank-card,
.photo-grid figure,
.criteria-grid article {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-checks li:hover,
.criteria-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(16, 58, 85, 0.12);
}

.best-grid article:hover,
.rank-card:hover {
  box-shadow: 0 22px 48px rgba(16, 58, 85, 0.16);
}

.photo-grid {
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 18px;
}

.photo-grid figure {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.photo-grid figure:nth-child(1) {
  grid-row: span 2;
}

.photo-grid figure:nth-child(4) {
  grid-column: span 2;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

.photo-grid figure:nth-child(1) figcaption {
  color: #fff;
  border-top-color: #f0b72f;
  background: #0d334a;
}

.photo-grid figure:nth-child(4) figcaption {
  border-top-color: #58b784;
}

.criteria-grid article span {
  min-width: 72px;
  text-align: center;
}

.criteria-grid article:hover::after {
  width: 42px;
}

.criteria-grid article::after {
  transition: width 180ms ease;
}

.ranking-heading .section-kicker::after,
.criteria-section .section-kicker::after {
  background: #f0b72f;
  opacity: 1;
}

.rank-card-top .rank-heading {
  background: linear-gradient(90deg, #0d334a 0%, #144d6c 100%);
}

.ranking-list > .rank-card:nth-child(2) .rank-heading {
  background: linear-gradient(90deg, #183d53 0%, #365e73 100%);
}

.ranking-list > .rank-card:nth-child(3) .rank-heading {
  background: linear-gradient(90deg, #3a3f4c 0%, #635245 100%);
}

.rank-heading h3 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.rank-visual {
  background: #dceaf1;
}

.rank-visual::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #21afd8 0 76%, #f0b72f 76% 100%);
}

.review-box h4,
.company-facts h4,
.company-map h4 {
  position: relative;
  overflow: hidden;
}

.review-box h4::after,
.company-facts h4::after,
.company-map h4::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  transform: skewX(-18deg) translateX(14px);
}

.review-avatar {
  outline: 3px solid rgba(49, 181, 217, 0.16);
}

.company-facts dd {
  max-width: 100%;
}

.table-wrap {
  position: relative;
}

.table-wrap::before {
  content: "横にスクロールして比較できます";
  display: none;
  color: #36566a;
  background: #fff6dc;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 9px 12px;
}

th {
  position: sticky;
  top: 73px;
  z-index: 2;
}

tbody tr {
  transition: filter 140ms ease;
}

.compare-section tbody tr:first-child td {
  border-top: 10px solid #dcecf3;
}

tbody tr:hover td {
  filter: brightness(0.98);
}

.guide-list article:hover,
.article-grid article:hover,
.trivia-grid article:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 58, 85, 0.1);
}

.guide-list article,
.article-grid article,
.trivia-grid article {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

details[open] {
  box-shadow: 0 12px 28px rgba(16, 58, 85, 0.09);
}

summary:hover {
  background: #dfedf4;
}

.inquiry-section {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #063e70 0%, #07578d 100%);
  background-size: 48px 48px, auto;
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(560px, 1.22fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}

.inquiry-intro {
  position: sticky;
  top: 116px;
}

.inquiry-intro .section-kicker {
  color: #8de1f4;
}

.inquiry-intro .section-kicker::after {
  background: #f4c44e;
}

.inquiry-intro h2 {
  margin: 12px 0 22px;
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  line-height: 1.25;
}

.inquiry-intro > p {
  margin: 0;
  color: #e9f6fb;
  font-size: 1.04rem;
  line-height: 2;
}

.inquiry-notes {
  margin-top: 30px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.inquiry-notes p {
  margin: 0 0 10px;
  color: #fff;
}

.inquiry-notes ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2em;
  color: #d8edf6;
  line-height: 1.75;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
  padding: clamp(26px, 4vw, 46px);
  color: #17334a;
  background: #fff;
  border-top: 6px solid #35b8d8;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 22, 50, 0.28);
}

.form-field {
  min-width: 0;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field > label {
  display: block;
  margin-bottom: 9px;
  color: #123b5b;
  font-weight: 800;
}

.required-mark,
.optional-mark {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.45;
  vertical-align: 2px;
}

.required-mark {
  background: #d64d57;
}

.optional-mark {
  color: #506777;
  background: #e8eef2;
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="tel"],
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: #172f42;
  font: inherit;
  line-height: 1.5;
  background: #f7fafc;
  border: 1px solid #b8c9d4;
  border-radius: 4px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.inquiry-form textarea {
  min-height: 170px;
  resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  background: #fff;
  border-color: #0786c1;
  box-shadow: 0 0 0 3px rgba(7, 134, 193, 0.14);
}

.field-hint {
  margin: 8px 0 0;
  color: #617585;
  font-size: 0.84rem;
  line-height: 1.65;
}

.privacy-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  color: #263f52;
  line-height: 1.7;
  background: #eef7fa;
  border-left: 4px solid #35b8d8;
}

.privacy-consent input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  flex: 0 0 auto;
  accent-color: #057cb7;
}

.form-submit {
  text-align: center;
}

.form-submit button {
  display: inline-flex;
  width: min(100%, 430px);
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 15px 24px;
  color: #fff;
  font: inherit;
  font-weight: 900;
  background: #067db8;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 12px 24px rgba(6, 125, 184, 0.24);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.form-submit button:hover {
  background: #035f91;
  transform: translateY(-1px);
}

.form-submit p {
  margin: 10px 0 0;
  color: #6c7d89;
  font-size: 0.8rem;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.footer-grid a {
  color: #8de1f4;
  font-weight: 800;
  text-underline-offset: 3px;
}

.footer-brand strong {
  position: relative;
  padding-bottom: 14px;
}

.footer-brand strong::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 84px;
  height: 4px;
  background: linear-gradient(90deg, #31b5d9 0 66%, #f1bb38 66% 100%);
}

@media (max-width: 980px) {
  .inquiry-layout {
    grid-template-columns: 1fr;
  }

  .inquiry-intro {
    position: static;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .photo-grid figure:nth-child(1),
  .photo-grid figure:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
  }

  .photo-grid img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  th {
    top: 65px;
  }
}

@media (max-width: 680px) {
  .inquiry-form {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 18px;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .inquiry-intro h2 {
    font-size: 2rem;
  }

  .reading-progress {
    height: 3px;
  }

  .photo-section::before,
  .criteria-section::before,
  .ranking-section::before,
  .compare-section::before,
  .guide-section::before,
  .trivia-section::before,
  .faq-section::before {
    top: 34px;
    right: 12px;
    font-size: 3.2rem;
    opacity: 0.055;
  }

  .section-kicker::after {
    width: 18px;
  }

  .hero-checks li:hover,
  .criteria-grid article:hover {
    transform: none;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .photo-grid img {
    aspect-ratio: 4 / 3;
  }

  .photo-grid figure:nth-child(1) figcaption {
    color: #344250;
    border-top-color: #31b5d9;
    background: #fff;
  }

  .best-grid article > img {
    width: 100%;
    height: 140px;
    min-height: 0;
    max-height: 140px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: top center;
  }

  .rank-visual::after {
    height: 4px;
  }

  .table-wrap::before {
    display: block;
  }

  th {
    top: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-checks li,
  .hero-stats,
  .best-grid article,
  .rank-card,
  .photo-grid figure,
  .criteria-grid article,
  .guide-list article,
  .article-grid article,
  .trivia-grid article {
    transition: none;
  }
}

.reference-image-note,
.best-image-note {
  margin: 0;
  padding: 8px 14px;
  border-left: 4px solid #35b8d8;
  color: #456170;
  background: #eef6f9;
  font-size: 0.78rem;
  font-weight: 800;
}

.best-image-note {
  margin: 0 0 10px;
}

.review-item h5 {
  margin: 0 0 7px;
  color: #0b5f8f;
  font-size: 1rem;
}

.review-item {
  display: block;
}

.review-item p {
  margin: 0;
}

.review-item p::before {
  display: none;
}

.advice-intro {
  display: block;
  margin: 14px 0 10px;
  border: 1px solid #c9e0eb;
  border-left: 6px solid #1ba9d1;
  background: #eef8ff;
  padding: 13px 16px;
}

.advice-intro strong {
  display: block;
  margin-bottom: 4px;
  color: #0b4f73;
  font-size: 1.08rem;
}

.advice-intro p {
  margin: 0;
  color: #425f6f;
  line-height: 1.75;
}

.advice-disclosure {
  margin: 0 0 16px;
  border: 2px solid #e2b32c;
  color: #493a0d;
  background: #fff7d8;
  padding: 11px 14px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.7;
}

.advice-box .review-item {
  overflow: hidden;
  border: 1px solid #c8dde7;
  background: #fff;
}

.advice-box .review-item h5 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  border-bottom: 1px solid #d8e7ee;
  color: #173f58;
  background: #eef5f8;
  padding: 11px 14px;
  line-height: 1.55;
}

.advice-box .review-item h5::before {
  content: "検討中の方";
  flex: 0 0 auto;
  color: #375462;
  background: #fff;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.advice-box .review-item p {
  height: auto;
  min-height: 118px;
  border: 0;
  border-left: 5px solid #1ba9d1;
  background: #fff;
  padding: 16px 17px;
  line-height: 1.85;
}

.advice-box .review-item p::before {
  content: "編集部";
  display: inline-block;
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0 8px 5px 0;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: #0d628f;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.4;
  transform: none;
  box-shadow: none;
  clip-path: none;
  vertical-align: middle;
}

@media (max-width: 720px) {
  .advice-intro {
    padding: 11px 12px;
  }

  .advice-box .review-item p {
    min-height: 0;
  }
}
