@charset "UTF-8";

:root{
  --shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

/* =========================================================
   city.css
   - before-after.html / 各エリア子ページ用
   - case UI を基準化し、before-after 専用補正と city 子ページ専用補正を分離
   - main 外にある #voice / #related もこのファイルで保護
   ========================================================= */

/* ===== Base ===== */
.page-city .site-nav a::after{
  content: none;
  display: none;
}

.page-city .page-head{
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.page-city .page-head__inner{
  padding: 56px 0 52px;
}

.page-city .page-head__lead,
.page-city main .section__lead{
  width: 100%;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}

.page-city .page-head h1,
.page-city main > .section:first-of-type .section__title{
  margin: 0 0 16px;
  color: var(--heading);
  font-size: var(--fs-hero-h1);
  line-height: 1.28;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.page-city .page-head__label{
  display: inline-block;
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
}

.page-city main > .section:nth-of-type(even){
  background: var(--soft);
}

.page-city .card:not(.voice-card):not(.voice-image-card){
  background: #ffffff;
  border: 1px solid #e8eef8;
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.page-city .card:not(.voice-card):not(.voice-image-card) h3{
  font-size: var(--fs-card-h3);
}

.page-city .faq-item h3,
.page-city main .page-links h3{
  font-size: var(--fs-subcard-h3);
  line-height: 1.45;
}


/* ===== Related section (outside main) ===== */
.page-city #related.section{
  padding: 72px 0;
  background: var(--soft);
}

.page-city #related .section__head{
  margin-bottom: 32px;
}

.page-city #related .section__eyebrow{
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
}

.page-city #related .section__lead{
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}

.page-city #related .page-links a{
  position: relative;
  display: block;
  background: #f9fbf9;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 52px 22px 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.page-city #related .page-links a::after{
  content: "→";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 700;
  opacity: 0.72;
  transition: transform 0.22s ease, opacity 0.22s ease, color 0.22s ease;
}

.page-city #related .page-links a > p{
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}

.page-city #related .page-links a > h3{
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 15px;
  line-height: 1.45;
  transition: color 0.22s ease;
}

.page-city #related .page-links a:hover,
.page-city #related .page-links a:focus-visible{
  transform: translateY(-4px);
  border-color: #bfd3ff;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.page-city #related .page-links a:hover > h3,
.page-city #related .page-links a:focus-visible > h3{
  color: var(--accent-dark);
}

.page-city #related .page-links a:hover::after,
.page-city #related .page-links a:focus-visible::after{
  transform: translate(4px, -50%);
  opacity: 1;
  color: var(--accent-dark);
}

/* ===== FAQ / CTA ===== */
.page-city .faq-list{
  display: grid;
  gap: 16px;
}

.page-city .faq-item{
  padding: 22px;
  border: 1px solid #e8eef8;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.page-city .faq-item h3{
  margin: 0 0 10px;
  color: var(--heading);
}

.page-city .cta-box[aria-label="お問い合わせ導線"]{
  margin-top: 28px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dbe7ff;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.06);
}

/* ===== Shared Case UI ===== */
.page-city .case-card,
.page-city .before-after-case-list .case-card{
  background: #ffffff;
  border: 1px solid #e8eef8;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-city .case-card__head,
.page-city .before-after-case-list .case-card__head{
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.page-city .case-card__kicker{
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
}

.page-city .case-card__title,
.page-city .before-after-case-list .case-card__title{
  margin: 0;
  color: var(--heading);
  font-size: var(--fs-case-title-h3);
  line-height: 1.45;
}

.page-city .case-card__content,
.page-city .before-after-case-list .case-card__content{
  padding: 24px;
}

.page-city .case-summary,
.page-city .before-after-case-list .case-summary{
  margin: 0 0 28px;
}

.page-city .case-summary p,
.page-city .before-after-case-list .case-summary p{
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}

.page-city .case-specs,
.page-city .before-after-case-list .case-specs{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.page-city .case-spec,
.page-city .before-after-case-list .case-spec{
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 132px;
}

.page-city .case-spec__label,
.page-city .before-after-case-list .case-spec__label{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.page-city .case-spec__value,
.page-city .before-after-case-list .case-spec__value{
  margin: 0;
  color: var(--heading);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  word-break: break-word;
}

.page-city .case-compare,
.page-city .before-after-case-list .case-compare{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  margin-bottom: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  align-items: start;
}

.page-city .case-compare::after,
.page-city .before-after-case-list .case-compare::after{
  content: "";
  position: absolute;
  top: 28px;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-0.5px);
}

.page-city .case-column,
.page-city .before-after-case-list .case-column{
  min-width: 0;
}

.page-city #case .case-column{
  background: #ffffff;
  border: 1px solid #e8eef8;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.page-city .case-column__head,
.page-city .before-after-case-list .case-column__head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-city .case-column__head h4,
.page-city .before-after-case-list .case-column__head h4{
  margin: 0;
  color: var(--heading);
  font-size: var(--fs-case-h4);
  line-height: 1.2;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.page-city .case-column--before .case-column__head h4,
.page-city .before-after-case-list .case-column--before .case-column__head h4{
  color: #888888;
}

.page-city .case-column--after .case-column__head h4,
.page-city .before-after-case-list .case-column--after .case-column__head h4{
  color: #ff8a00;
}

.page-city .case-column__head p,
.page-city .before-after-case-list .case-column__head p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.page-city .case-gallery,
.page-city .before-after-case-list .case-gallery{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-city #case .case-gallery{
  gap: 12px;
}

.page-city .case-gallery__item,
.page-city .before-after-case-list .case-gallery__item{
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.page-city .case-gallery__item:hover,
.page-city .before-after-case-list .case-gallery__item:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  border-color: #c8d7ea;
}

.page-city .case-gallery__item img,
.page-city .before-after-case-list .case-gallery__item img{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ===== Image Modal ===== */
.page-city .case-image-modal{
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
}

.page-city .case-image-modal.is-open{
  display: block;
}

body.is-case-modal-open{
  overflow: hidden;
}

.page-city .case-image-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
}

.page-city .case-image-modal__dialog{
  position: relative;
  width: min(960px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  overflow: auto;
}

.page-city .case-image-modal__close{
  position: sticky;
  top: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
}

.page-city .case-image-modal__figure{
  margin: 8px 0 0;
}

.page-city .case-image-modal__figure img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.page-city .case-image-modal__figure figcaption{
  margin-top: 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}

/* ===== City child pages: related minimal adjustments ===== */
.page-city #related .page-links{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ===== Responsive ===== */
/* ===== Responsive ===== */

@media (max-width: 820px){
  .page-city :is(#voice, section[aria-label="お客様の声"]).section{
    padding: 48px 0;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-columns{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-column{
    gap: 22px;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-image-card,
  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-card{
    padding: 20px;
  }
}

@media (max-width: 767px){
  .page-city :is(#voice, section[aria-label="お客様の声"]).section{
    padding: 64px 0;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .card{
    padding: 24px 20px;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .card > h3{
    font-size: var(--fs-card-h3);
    line-height: 1.45;
    letter-spacing: 0.02em;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-columns{
    gap: 18px;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-column{
    gap: 18px;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-image-card{
    padding: 16px;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-card{
    padding: 20px 18px;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-card h3{
    font-size: 16px;
    line-height: 1.5;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-card p,
  .page-city :is(#voice, section[aria-label="お客様の声"]) .section__lead{
    font-size: 15px;
    line-height: 1.9;
  }
}

@media (max-width: 1024px) {
  .page-city .case-specs,
  .page-city .before-after-case-list .case-specs,
  .page-city #related .page-links{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-city .case-gallery,
  .page-city .before-after-case-list .case-gallery{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-city .case-column__head h4{
    font-size: 28px;
  }
}

@media (max-width: 820px) {
  .page-city #related.section{
    padding: 48px 0;
  }

  .page-city .grid-2,
  .page-city .case-specs,
  .page-city .before-after-case-list .case-specs,
  .page-city #related .page-links{
    grid-template-columns: 1fr;
  }

  .page-city .case-compare,
  .page-city .before-after-case-list .case-compare{
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-city .case-compare::after,
  .page-city .before-after-case-list .case-compare::after{
    display: none;
  }

  .page-city #related .page-links a{
    padding: 18px 44px 18px 18px;
  }

  .page-city #case .case-column{
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .page-city .page-head__inner{
    padding: 48px 0 44px;
  }

  .page-city .page-head h1,
  .page-city main > .section:first-of-type .section__title{
    font-size: var(--fs-hero-h1-sp);
  }

  .page-city .page-head__lead,
  .page-city main .section__lead{
    font-size: 15px;
    line-height: 1.9;
  }

  .page-city main .section{
    padding: var(--section-y-sp) 0;
  }

  .page-city main > .section:first-of-type{
    padding: 40px 0 42px;
  }

  .page-city main > .section:first-of-type .section__head{
    margin-bottom: 0;
  }

  .page-city main > .section:first-of-type .section__eyebrow{
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .page-city main > .section:first-of-type .section__title{
    margin-bottom: 14px;
    padding-bottom: 12px;
    letter-spacing: 0.02em;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .page-city .case-card__head,
  .page-city .case-card__content,
  .page-city .before-after-case-list .case-card__head,
  .page-city .before-after-case-list .case-card__content{
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-city .case-card__content,
  .page-city .before-after-case-list .case-card__content{
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .page-city .case-summary,
  .page-city .before-after-case-list .case-summary{
    order: 1;
    margin: 0;
  }

  .page-city .case-specs,
  .page-city .before-after-case-list .case-specs{
    order: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
  }

  .page-city .case-spec,
  .page-city .before-after-case-list .case-spec{
    min-height: 112px;
    padding: 16px 12px;
  }

  .page-city .case-spec__label,
  .page-city .before-after-case-list .case-spec__label{
    margin-bottom: 8px;
    font-size: 12px;
  }

  .page-city .case-spec__value,
  .page-city .before-after-case-list .case-spec__value{
    font-size: 17px;
    line-height: 1.45;
  }

  .page-city .case-compare,
  .page-city .before-after-case-list .case-compare{
    order: 3;
    gap: 24px;
    margin: 0;
    padding-top: 20px;
  }

  .page-city .case-column__head,
  .page-city .before-after-case-list .case-column__head{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  .page-city .case-gallery,
  .page-city .before-after-case-list .case-gallery{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .page-city .case-image-modal__dialog{
    width: min(100%, calc(100% - 20px));
    margin: 10px auto;
    padding: 14px;
    border-radius: 18px;
  }

  .page-city #related .page-links{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-city #related .page-links a{
    min-width: 0;
    padding: 18px 44px 18px 18px;
  }

  .page-city #related .page-links a > p{
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}

.page-city #related .page-links a > h3{
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.55;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .page-city #related .page-links a > p{
    margin: 0;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .page-city #case .case-column{
    padding: 16px;
    border-radius: 20px;
  }
}


/* ===== Voice section (outside main) ===== */
.page-city :is(#voice, section[aria-label="お客様の声"]).section{
  padding: 72px 0;
}

.page-city :is(#voice, section[aria-label="お客様の声"]) .section__head{
  margin-bottom: 32px;
}

.page-city :is(#voice, section[aria-label="お客様の声"]) .section__eyebrow{
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
}

.page-city :is(#voice, section[aria-label="お客様の声"]) .section__lead{
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}

.page-city :is(#voice, section[aria-label="お客様の声"]) .card{
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.page-city :is(#voice, section[aria-label="お客様の声"]) .card > h3{
  margin: 0 0 12px;
  color: var(--heading);
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.page-city :is(#voice, section[aria-label="お客様の声"]) .voice-columns{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.page-city :is(#voice, section[aria-label="お客様の声"]) .voice-column{
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.page-city :is(#voice, section[aria-label="お客様の声"]) .voice-image-card{
  padding: 20px;
}

.page-city :is(#voice, section[aria-label="お客様の声"]) .voice-image-card img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.page-city :is(#voice, section[aria-label="お客様の声"]) .voice-card{
  padding: 30px 32px;
}

.page-city :is(#voice, section[aria-label="お客様の声"]) .voice-card h3{
  margin: 0 0 14px;
  color: var(--heading);
  font-size: var(--fs-subcard-h3);
  line-height: 1.45;
  font-weight: 700;
}

.page-city :is(#voice, section[aria-label="お客様の声"]) .voice-card p{
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 2;
  color: var(--text);
}

.page-city :is(#voice, section[aria-label="お客様の声"]) .voice-card p:last-child{
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .page-city #related .page-links a {
    transition: none;
  }
}

@media (max-width: 820px){
  .page-city :is(#voice, section[aria-label="お客様の声"]).section{
    padding: 48px 0;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-columns{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-column{
    gap: 22px;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-image-card,
  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-card{
    padding: 20px;
  }
}

@media (max-width: 767px){
  .page-city :is(#voice, section[aria-label="お客様の声"]).section{
    padding: 64px 0;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .card{
    padding: 24px 20px;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .card > h3{
    font-size: var(--fs-card-h3);
    line-height: 1.45;
    letter-spacing: 0.02em;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-columns{
    gap: 18px;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-column{
    gap: 18px;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-image-card{
    padding: 16px;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-card{
    padding: 20px 18px;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-card h3{
    font-size: 16px;
    line-height: 1.5;
  }

  .page-city :is(#voice, section[aria-label="お客様の声"]) .voice-card p{
    font-size: 15px;
    line-height: 1.9;
  }
}
