/* ja/style.css — Japanese-page additions on top of ../style.css
   Reuse main palette tokens (--stone, --cream, --black, etc.) */

/* ---------- Font overrides (Japanese first) ---------- */
:root {
  --font-sans: 'Noto Sans JP', 'Pretendard', 'Noto Sans KR', sans-serif;
  --font-serif: 'Shippori Mincho', 'Gowun Batang', 'Noto Serif JP', 'Noto Serif KR', serif;
  --c-taeeum: #8B7355;
  --c-soyang: #B5413E;
  --c-soeum:  #5C7A8E;
  --c-taeyang:#6B8E5C;
}
body {
  font-family: 'Noto Sans JP', 'Pretendard', 'Noto Sans KR', sans-serif;
}

/* ---------- Japanese typography normalization ---------- */
*, *::before, *::after { word-break: normal; }
body, h1, h2, h3, h4, h5, h6, p, li, span, a, td, th, button, input, select, label, summary, blockquote, figcaption, dt, dd {
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}
body { letter-spacing: 0; }
h1, h2, h3, h4, h5 { letter-spacing: -0.01em; }
.hero-block-1 p { line-height: 1.55; }
.hero-block-2 p { line-height: 1.75; }
.hero-line, .hero-landing { line-height: 1.65; }

/* ---------- Prevent horizontal scroll on mobile ---------- */
html, body { max-width: 100%; overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; height: auto; }
section, .container, .container-sm, .modal { max-width: 100%; }
/* Grid item shrinking — let dl rows wrap inside narrow viewports */
.ja-sc-info > div, .ja-sc-info dt, .ja-sc-info dd { min-width: 0; }
.ja-sc-info dd { overflow-wrap: break-word; }

/* ---------- "です。" wrap fix on sc-term ---------- */
.sc-keyword-line {
  display: inline-block;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
}
.sc-yomi {
  font-size: 0.62em;
  font-weight: 600;
  color: var(--stone);
  letter-spacing: 0.04em;
  margin: 0 0.1em 0 0.05em;
  white-space: nowrap;
  vertical-align: 0.08em;
}
.sc-tail {
  white-space: nowrap;
  margin-left: 0.04em;
}

/* ============================================================
   SASANG SECTION — minimal Korean ht-card tone
============================================================ */
.ja-sasang {
  background: var(--cream);
  padding: var(--pad-section) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 768px) {
  .ja-sasang { padding: var(--pad-section-mobile) 0; }
}

/* --- intro block --- */
.ja-sasang-intro { text-align: center; }
.ja-sasang-intro .section-label {
  display: inline-block;
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 700;
  margin-bottom: 22px;
}
.ja-sasang-intro h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 3.6vw, 2.3rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.45;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}
.ja-sasang-intro h2 em {
  font-style: normal;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--stone-deep);
  letter-spacing: 0.04em;
}
.ja-sasang-lead {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.95;
  margin: 0 auto 56px;
  max-width: 620px;
}
.ja-sasang-lead strong { color: var(--black); font-weight: 700; }

/* --- minimal Yi Je-ma quote --- */
.ja-quote {
  max-width: 640px;
  margin: 0 auto 42px;
  padding: 0;
  text-align: center;
  position: relative;
}
.ja-quote::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--stone-light);
  margin: 0 auto 28px;
}
.ja-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
}
.ja-quote blockquote::before { content: "\201C"; margin-right: 0.05em; opacity: .55; color: var(--stone); }
.ja-quote blockquote::after  { content: "\201D"; margin-left: 0.05em; opacity: .55; color: var(--stone); }
.ja-quote figcaption {
  font-size: 0.82rem;
  color: var(--gray);
  letter-spacing: 0.04em;
  font-weight: 600;
}
.ja-quote-meta {
  display: block;
  font-size: 0.74rem;
  color: var(--light);
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.ja-sasang-note {
  max-width: 680px;
  margin: 0 auto 80px;
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.95;
  text-align: left;
  letter-spacing: -0.005em;
}
.ja-sasang-note strong { color: var(--black); font-weight: 700; }

/* --- 4 SC cards (한국 ht-card 톤) --- */
.ja-sasang-cards {
  max-width: 1080px;
  margin: 0 auto 56px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .ja-sasang-cards { grid-template-columns: 1fr; gap: 12px; padding: 0 20px; }
}

.ja-sc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color .25s, transform .25s;
  position: relative;
}
.ja-sc-card:hover {
  border-color: var(--type-accent);
  transform: translateY(-2px);
}

.ja-sc-card[data-type="taeeum"]  { --type-accent: var(--c-taeeum); }
.ja-sc-card[data-type="soyang"]  { --type-accent: var(--c-soyang); }
.ja-sc-card[data-type="soeum"]   { --type-accent: var(--c-soeum); }
.ja-sc-card[data-type="taeyang"] { --type-accent: var(--c-taeyang); }

/* Big hanja label — Korean ht-card 톤 */
.ja-sc-label {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 700;
  color: var(--type-accent, var(--stone));
  letter-spacing: 0.05em;
  line-height: 1;
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--type-accent, var(--stone));
  margin: 0;
}
.ja-sc-yomi {
  display: block;
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: -8px;
  text-transform: uppercase;
}
.ja-sc-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  font-weight: 600;
  color: var(--mid);
  line-height: 1.65;
  margin: 0;
  letter-spacing: -0.005em;
}
.ja-sc-line {
  width: 36px;
  height: 1px;
  background: var(--border-dark);
  border: 0;
  margin: 2px 0;
}

.ja-sc-info {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ja-sc-info > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: baseline;
}
.ja-sc-info dt {
  font-size: 0.74rem;
  color: var(--stone);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0;
}
.ja-sc-info dd {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.75;
  margin: 0;
  letter-spacing: -0.005em;
}
.ja-sc-info dd strong { color: var(--black); font-weight: 700; }

.ja-sc-key {
  margin: 6px 0 0;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--black);
  font-weight: 700;
  line-height: 1.7;
  border-left: 3px solid var(--type-accent, var(--stone));
  letter-spacing: -0.005em;
}
.ja-sc-key span {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--type-accent, var(--stone));
  letter-spacing: 0.1em;
  font-weight: 800;
  text-transform: uppercase;
  margin-right: 8px;
  vertical-align: 0.08em;
}

@media (max-width: 768px) {
  .ja-sasang { padding: 64px 0 56px; }
  .ja-sasang-intro { padding: 0 20px; }
  .ja-sasang-intro h2 {
    font-size: clamp(1.3rem, 5vw, 1.65rem);
    line-height: 1.5;
    margin-bottom: 18px;
  }
  .ja-sasang-lead {
    font-size: 0.93rem;
    line-height: 1.85;
    margin-bottom: 40px;
  }
  .ja-quote {
    margin-bottom: 36px;
    padding: 0 4px;
  }
  .ja-quote::before { margin: 0 auto 22px; }
  .ja-quote blockquote {
    font-size: clamp(1rem, 4.4vw, 1.2rem);
    line-height: 1.65;
    margin-bottom: 14px;
  }
  .ja-quote figcaption { font-size: 0.78rem; }
  .ja-quote-meta { font-size: 0.7rem; }
  .ja-sasang-note {
    font-size: 0.88rem;
    line-height: 1.9;
    margin: 0 auto 56px;
    padding: 0 4px;
  }
  .ja-sasang-cards {
    padding: 0 16px;
    gap: 12px;
    margin-bottom: 40px;
  }
  .ja-sc-card {
    padding: 28px 22px;
    gap: 14px;
  }
  .ja-sc-label {
    font-size: clamp(1.35rem, 5.6vw, 1.7rem);
    padding-bottom: 10px;
  }
  .ja-sc-yomi { font-size: 0.74rem; margin-top: -6px; }
  .ja-sc-quote {
    font-size: clamp(0.96rem, 4vw, 1.08rem);
    line-height: 1.65;
  }
  .ja-sc-info > div {
    grid-template-columns: 56px 1fr;
    gap: 10px;
  }
  .ja-sc-info dt { font-size: 0.7rem; letter-spacing: 0.04em; }
  .ja-sc-info dd { font-size: 0.86rem; line-height: 1.75; }
  .ja-sc-key {
    padding: 12px 14px;
    font-size: 0.88rem;
    line-height: 1.7;
  }
  .ja-sc-key span { font-size: 0.66rem; }
  .ja-sasang-disclaimer {
    font-size: 0.78rem;
    line-height: 1.9;
    padding: 0 16px;
  }
}

@media (max-width: 420px) {
  .ja-sc-card { padding: 24px 18px; }
  .ja-sc-info > div { grid-template-columns: 48px 1fr; gap: 8px; }
  .ja-sc-info dt { font-size: 0.66rem; }
  .ja-sc-info dd { font-size: 0.83rem; line-height: 1.7; }
}

.ja-sasang-disclaimer {
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.85;
  text-align: center;
  letter-spacing: -0.005em;
}

/* ---------- Final CTA → LINE QR + button block ---------- */
.line-final {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin: 40px auto 0;
  padding: 36px 28px;
  background: var(--white);
  border-radius: 18px;
  max-width: 640px;
  flex-wrap: wrap;
}
.line-final-qr {
  flex-shrink: 0;
  background: var(--cream);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.line-final-qr img { width: 160px; height: 160px; display: block; }
.line-final-info { flex: 1; min-width: 220px; text-align: left; }
.line-final-id {
  font-size: 0.95rem;
  color: var(--mid);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.line-final-id strong {
  background: var(--cream);
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 800;
  color: var(--black);
  margin-left: 6px;
  letter-spacing: 0.04em;
}
.line-final-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #06C755;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: all .25s;
  letter-spacing: 0.01em;
}
.line-final-btn:hover {
  background: #05B14C;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(6,199,85,.3);
}
.line-final-note {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.7;
  margin-top: 14px;
}
@media (max-width: 540px) {
  .line-final {
    flex-direction: column;
    gap: 24px;
    padding: 28px 20px;
  }
  .line-final-info { text-align: center; }
  .line-final-qr img { width: 180px; height: 180px; }
}

/* ---------- Map + Threads + LINE buttons ---------- */
.map-btn-google {
  background: #fff;
  border: 1.5px solid var(--border-dark);
  color: var(--black);
}
.map-btn-google:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.contact-btn-line {
  background: #06C755;
  color: #fff;
}
.contact-btn-line:hover {
  background: #05B14C;
  color: #fff;
}
.contact-btn-threads {
  background: var(--black);
  color: #fff;
}
.contact-btn-threads:hover {
  background: var(--dark);
  color: #fff;
}

/* ---------- Hero CTA as anchor ---------- */
a.hero-cta { text-decoration: none; }
a.ht-cta-btn { text-decoration: none; }

/* ---------- Address access description ---------- */
.info-access-jp {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.85;
  margin-top: 8px;
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}

/* ============================================================
   POPUP MODALS — clean text wrapping (fix awkward 줄나눔)
============================================================ */
.modal-video-modal { max-width: 880px !important; width: 92vw; }
.modal-video-modal .modal-body { padding: 0 !important; background: var(--white); border-radius: inherit; overflow: hidden; }
.modal-video-modal .modal-video {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}
.modal-video-modal .modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.modal-video-meta {
  padding: 22px 28px 26px;
  background: var(--white);
  max-height: 32vh;
  overflow-y: auto;
}
.modal-video-meta h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1.55;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  word-break: normal;
  overflow-wrap: break-word;
}
.modal-video-meta p {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 2;
  word-break: normal;
  overflow-wrap: break-word;
  letter-spacing: -0.005em;
}
.modal-video-meta p br + br { line-height: 0.6; }   /* tighten the inter-paragraph gap */
@media (max-width: 540px) {
  .modal-video-meta { padding: 18px 22px 22px; max-height: 36vh; }
  .modal-video-meta h3 { font-size: 1rem; }
  .modal-video-meta p { font-size: 0.88rem; line-height: 1.9; }
}

/* Image lightbox — large image, slim meta */
.modal-lightbox {
  max-width: 1280px !important;
  width: 96vw;
  max-height: 96vh;
}
.modal-lightbox .lightbox-body {
  padding: 0 !important;
  background: var(--white);
  border-radius: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#lightboxImg {
  width: 100%;
  max-height: 82vh;
  min-height: 50vh;
  object-fit: contain;
  background: #1A1A1A;
  display: block;
  cursor: zoom-in;
}
.lightbox-meta {
  padding: 16px 26px 20px;
  border-top: 1px solid var(--border);
  max-height: 22vh;
  overflow-y: auto;
}
.lightbox-meta h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.55;
  margin-bottom: 12px;
  word-break: normal;
  overflow-wrap: break-word;
}
.lightbox-meta p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 2;
  word-break: normal;
  overflow-wrap: break-word;
  letter-spacing: -0.005em;
}
.lightbox-meta p br + br { line-height: 0.6; }
.lightbox-meta:empty { display: none; }
@media (max-width: 540px) {
  .modal-lightbox { width: 96vw; }
  #lightboxImg { max-height: 50vh; }
  .lightbox-meta { padding: 16px 20px 20px; max-height: 32vh; }
  .lightbox-meta p { line-height: 1.9; }
}

/* Video card body — title 2 lines, description 2 lines, natural wrap, then ellipsis */
.video-card { display: flex; flex-direction: column; }
.video-card .video-body {
  display: block !important;
  visibility: visible !important;
  background: var(--white);
  padding: 18px 20px 20px;
}
.video-card .video-body h3 {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--black) !important;
  line-height: 1.55 !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.012em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}
.video-card .video-body p {
  font-size: 0.85rem !important;
  color: var(--gray) !important;
  line-height: 1.7 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Image review card body — title 1 line, description 2 lines, natural wrap */
.image-review { cursor: pointer; }
.image-review-body { padding: 16px 18px 18px; }
.image-review-body h3 {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: var(--black) !important;
  line-height: 1.5 !important;
  margin-bottom: 6px !important;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}
.image-review-body p {
  font-size: 0.82rem !important;
  color: var(--gray) !important;
  line-height: 1.7 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}
