/* =========================================
   PHOTO GUIDE CMS
   guide.html / guide-article.html
========================================= */

.guide-menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.guide-menu-card {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(22, 55, 82, .06);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.guide-menu-card:not(.is-disabled):hover {
  transform: translateY(-4px);
  border-color: #c6d5df;
  box-shadow: var(--shadow);
}

.guide-menu-visual {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #eaf1f4;
}

.guide-menu-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.guide-menu-card:not(.is-disabled):hover
.guide-menu-visual img {
  transform: scale(1.035);
}

.guide-menu-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .12em;
}

.guide-menu-copy {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.guide-menu-eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.guide-menu-copy h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.45;
}

.guide-menu-copy > p:not(.guide-menu-eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.guide-menu-action {
  display: inline-block;
  margin-top: auto;
  padding-top: 24px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s ease;
}

.guide-menu-card:not(.is-disabled):hover
.guide-menu-action {
  transform: translateX(4px);
}

.guide-menu-card-book {
  background: #f8fafb;
}

.guide-menu-card.is-disabled {
  cursor: default;
  opacity: .72;
}

.guide-pdf-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

/* ARTICLE */

.guide-article-hero {
  padding: 42px 0 56px;
  background:
    linear-gradient(135deg, #edf4f8, #f9fbfc);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.guide-article-hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, .9fr)
    minmax(340px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.guide-article-heading h1 {
  margin: 6px 0 18px;
  font-family:
    "Noto Serif CJK JP",
    "Yu Mincho",
    serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.3;
}

.guide-article-summary {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.guide-article-cover {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: #eaf1f4;
  box-shadow: var(--shadow);
}

.guide-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-article-layout {
  max-width: 900px;
}

.guide-article-body {
  display: grid;
  gap: 44px;
}

.guide-content-block {
  min-width: 0;
}

.guide-content-block > h2,
.guide-richtext h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.5;
}

/* RICH TEXT */

.guide-richtext {
  color: var(--ink);
  font-size: 15px;
  line-height: 2;
}

.guide-richtext > :first-child {
  margin-top: 0;
}

.guide-richtext > :last-child {
  margin-bottom: 0;
}

.guide-richtext h3 {
  margin: 36px 0 12px;
  font-size: 21px;
  line-height: 1.55;
}

.guide-richtext p {
  margin: 0 0 20px;
}

.guide-richtext a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-richtext ul,
.guide-richtext ol {
  padding-left: 1.5em;
}

.guide-richtext img {
  height: auto;
  border-radius: 12px;
}

.guide-richtext blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}

/* SINGLE IMAGE */

.guide-image-block {
  margin: 0;
}

.guide-image-block img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.guide-image-block figcaption,
.guide-gallery-item figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

/* IMAGE GALLERY */

.guide-gallery-grid {
  display: grid;
  gap: 16px;
}

.guide-gallery-cols-2 {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}

.guide-gallery-cols-3 {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
}

.guide-gallery-cols-4 {
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
}

.guide-gallery-item {
  margin: 0;
}

.guide-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

/* GOOGLE MAP */

.guide-map-frame {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #edf2f5;
}

.guide-map-large .guide-map-frame {
  height: 560px;
}

.guide-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.guide-map-caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.guide-map-open {
  margin: 16px 0 0;
}

/* BASIC INFO */

.guide-basic-info-list {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.guide-basic-info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
}

.guide-basic-info-row:last-child {
  border-bottom: 0;
}

.guide-basic-info-row dt,
.guide-basic-info-row dd {
  margin: 0;
  padding: 15px 18px;
}

.guide-basic-info-row dt {
  background: #f5f8fa;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.guide-basic-info-row dd {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* NOTE */

.guide-note {
  padding: 24px 26px;
  border-left: 5px solid var(--blue);
  border-radius: 0 14px 14px 0;
  background: var(--blue-soft);
}

.guide-note-important {
  border-left-color: var(--sand);
  background: var(--sand-soft);
}

.guide-note-caution {
  border-left-color: #a05b4b;
  background: #f8eeeb;
}

.guide-note h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.guide-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

/* CHECKLIST */

.guide-checklist ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-checklist li {
  position: relative;
  padding: 15px 18px 15px 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.guide-checklist li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 14px;
  color: var(--green);
  font-weight: 700;
}

/* TABLE */

.guide-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.guide-table-block table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #fff;
}

.guide-table-block caption {
  padding: 13px 16px;
  text-align: left;
  color: var(--muted);
  background: #f8fafb;
  font-size: 12px;
}

.guide-table-block th,
.guide-table-block td {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.7;
}

.guide-table-block th:last-child,
.guide-table-block td:last-child {
  border-right: 0;
}

.guide-table-block tbody tr:last-child td {
  border-bottom: 0;
}

.guide-table-block th {
  color: var(--navy);
  background: #eef4f7;
  font-weight: 700;
}

.guide-table-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
}

/* FAQ */

.guide-faq-list {
  display: grid;
  gap: 10px;
}

.guide-faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.guide-faq-item summary {
  position: relative;
  padding: 17px 52px 17px 20px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.guide-faq-item summary::-webkit-details-marker {
  display: none;
}

.guide-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 11px;
  color: var(--blue);
  font-size: 26px;
  font-weight: 300;
}

.guide-faq-item[open] summary::after {
  content: "−";
}

.guide-faq-answer {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 13px;
}

/* LINKS */

.guide-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* DOWNLOAD */

.guide-download-lead {
  margin: -6px 0 18px;
  color: var(--muted);
}

.guide-download-list {
  display: grid;
  gap: 10px;
}

.guide-download-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition:
    border-color .2s,
    transform .2s,
    box-shadow .2s;
}

.guide-download-item:hover {
  transform: translateY(-2px);
  border-color: #c3d5e1;
  box-shadow: 0 10px 28px rgba(22, 55, 82, .08);
}

.guide-download-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

.guide-download-copy {
  display: flex;
  flex-direction: column;
}

.guide-download-copy strong {
  color: var(--navy);
  font-size: 14px;
}

.guide-download-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

/* CARDS */

.guide-info-card-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-info-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.guide-info-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-info-card-copy {
  padding: 20px;
}

.guide-info-card-copy h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.guide-info-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.guide-info-card-copy span {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

/* CTA */

.guide-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius);
}

.guide-cta-blue {
  color: #fff;
  background: var(--navy);
}

.guide-cta-green {
  color: #fff;
  background: #627f68;
}

.guide-cta-light {
  color: var(--ink);
  background: var(--blue-soft);
}

.guide-cta-eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  opacity: .75;
}

.guide-cta h2 {
  margin: 0 0 8px;
  color: inherit;
  font-size: 25px;
}

.guide-cta p {
  margin: 0;
  opacity: .86;
  font-size: 13px;
  line-height: 1.85;
}

/* IMAGE + TEXT */

.guide-media-text {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.guide-media-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.guide-media-right .guide-media-image {
  order: 2;
}

.guide-media-right .guide-media-copy {
  order: 1;
}

/* RELATED */

.guide-related-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-related-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.guide-related-card img {
  width: 120px;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
}

.guide-related-card > div {
  padding: 17px;
}

.guide-related-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.guide-related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.guide-related-card span {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}

/* QUOTE */

.guide-quote-block {
  margin: 0;
  padding: 30px 32px;
  border-radius: var(--radius);
  background: #f4f7f8;
}

.guide-quote-block blockquote {
  margin: 0;
  color: var(--ink);
  font-family:
    "Noto Serif CJK JP",
    "Yu Mincho",
    serif;
  font-size: 20px;
  line-height: 1.9;
}

.guide-quote-block figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
}

/* DIVIDER */

.guide-divider {
  width: 100%;
}

.guide-divider-line {
  height: 1px;
  background: var(--line);
}

.guide-divider-space {
  height: 42px;
}

.guide-divider-dots {
  position: relative;
  height: 16px;
}

.guide-divider-dots::before {
  content: "•••";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #9aabb7;
  letter-spacing: .35em;
}



/* STYLED TEXT */

.guide-styled-text {
  overflow: hidden;
  border-radius: var(--radius);
}

.guide-styled-text-inner {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: inherit;
}

.guide-styled-text-inner h2,
.guide-styled-text-inner h3,
.guide-styled-text-inner h4,
.guide-styled-text-inner p,
.guide-styled-text-inner li,
.guide-styled-text-inner blockquote,
.guide-styled-text-inner a {
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
}

.guide-styled-text-inner a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-styled-font-sans {
  font-family:
    "Noto Sans CJK JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
}

.guide-styled-font-serif {
  font-family:
    "Noto Serif CJK JP",
    "Hiragino Mincho ProN",
    "Yu Mincho",
    serif;
}

.guide-styled-size-small {
  font-size: 13px;
  line-height: 1.9;
}

.guide-styled-size-normal {
  font-size: 15px;
  line-height: 2;
}

.guide-styled-size-large {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.85;
}

.guide-styled-size-xlarge {
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.65;
}

.guide-styled-size-small h2,
.guide-styled-size-small h3,
.guide-styled-size-small h4,
.guide-styled-size-normal h2,
.guide-styled-size-normal h3,
.guide-styled-size-normal h4,
.guide-styled-size-large h2,
.guide-styled-size-large h3,
.guide-styled-size-large h4,
.guide-styled-size-xlarge h2,
.guide-styled-size-xlarge h3,
.guide-styled-size-xlarge h4 {
  font-size: 1.35em;
  line-height: 1.5;
}

.guide-styled-color-default {
  color: var(--ink);
}

.guide-styled-color-navy {
  color: var(--navy);
}

.guide-styled-color-blue {
  color: var(--blue);
}

.guide-styled-color-green {
  color: var(--green);
}

.guide-styled-color-gray {
  color: var(--muted);
}

.guide-styled-color-white {
  color: #fff;
}

.guide-styled-weight-normal {
  font-weight: 400;
}

.guide-styled-weight-bold {
  font-weight: 700;
}

.guide-styled-align-left {
  text-align: left;
}

.guide-styled-align-center {
  text-align: center;
}

.guide-styled-align-right {
  text-align: right;
}

.guide-styled-bg-none {
  background: transparent;
}

.guide-styled-bg-blue-soft {
  background: var(--blue-soft);
}

.guide-styled-bg-green-soft {
  background: #edf4ef;
}

.guide-styled-bg-beige {
  background: var(--sand-soft);
}

.guide-styled-bg-navy {
  background: var(--navy);
}

.guide-styled-bg-navy.guide-styled-color-default,
.guide-styled-bg-navy.guide-styled-color-navy,
.guide-styled-bg-navy.guide-styled-color-blue,
.guide-styled-bg-navy.guide-styled-color-green,
.guide-styled-bg-navy.guide-styled-color-gray {
  color: #fff;
}

.guide-styled-spacing-compact {
  padding: 14px 18px;
}

.guide-styled-spacing-normal {
  padding: 26px 30px;
}

.guide-styled-spacing-wide {
  padding: 42px 48px;
}

.guide-styled-bg-none.guide-styled-spacing-compact,
.guide-styled-bg-none.guide-styled-spacing-normal,
.guide-styled-bg-none.guide-styled-spacing-wide {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 620px) {
  .guide-styled-size-xlarge {
    font-size: clamp(22px, 7vw, 31px);
  }

  .guide-styled-spacing-wide {
    padding: 30px 24px;
  }
}

/* ARTICLE NAVIGATION */

.guide-article-navigation {
  padding: 0 0 80px;
}

.guide-article-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.guide-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: var(--navy);
}

.guide-nav-link small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.guide-nav-link span {
  font-size: 13px;
  font-weight: 700;
}

.guide-nav-next {
  text-align: right;
  align-items: flex-end;
}

/* TABLET */

@media (max-width: 900px) {
  .guide-article-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .guide-article-cover {
    max-width: 720px;
  }

  .guide-gallery-cols-4,
  .guide-gallery-cols-3 {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .guide-cta {
    grid-template-columns: 1fr;
  }
}

/* SMARTPHONE */

@media (max-width: 620px) {
  .guide-menu-card {
    grid-template-columns: 1fr;
  }

  .guide-menu-visual {
    min-height: 190px;
    aspect-ratio: 16 / 9;
  }

  .guide-menu-copy {
    padding: 22px;
  }

  .guide-article-hero {
    padding: 28px 0 42px;
  }

  .breadcrumb {
    margin-bottom: 24px;
  }

  .guide-gallery-cols-2,
  .guide-gallery-cols-3,
  .guide-gallery-cols-4,
  .guide-info-card-grid,
  .guide-related-grid,
  .guide-media-text {
    grid-template-columns: 1fr;
  }

  .guide-map-frame,
  .guide-map-large .guide-map-frame {
    height: 340px;
  }

  .guide-basic-info-row {
    grid-template-columns: 1fr;
  }

  .guide-basic-info-row dt {
    padding-bottom: 6px;
  }

  .guide-basic-info-row dd {
    padding-top: 6px;
  }

  .guide-media-right .guide-media-image,
  .guide-media-right .guide-media-copy {
    order: initial;
  }

  .guide-related-card {
    grid-template-columns: 95px minmax(0, 1fr);
  }

  .guide-related-card img {
    width: 95px;
    min-height: 120px;
  }

  .guide-quote-block {
    padding: 24px;
  }

  .guide-quote-block blockquote {
    font-size: 17px;
  }

  .guide-article-nav-inner {
    grid-template-columns: 1fr;
  }

  .guide-article-nav-inner .btn {
    order: -1;
  }

  .guide-nav-next {
    text-align: left;
    align-items: flex-start;
  }
}

/* =========================================
   PERFORMANCE
   Off-screen rendering / deferred Google Map
========================================= */

@supports (content-visibility: auto) {
  .guide-article-body > .guide-content-block {
    content-visibility: auto;
    contain-intrinsic-size: 480px;
  }

  .guide-menu-card {
    content-visibility: auto;
    contain-intrinsic-size: 220px;
  }
}

.guide-map-frame-idle {
  display: grid;
  place-items: center;
}

.guide-map-placeholder {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 560px);
  padding: 28px 20px;
  text-align: center;
}

.guide-map-placeholder-label {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
}

.guide-map-placeholder-text {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

