/*
 * Desktop presentation layer
 * 共通構造は style.css、768px以上のスクロール表現だけをこのファイルで管理する。
 */

/* 半透明で浮き上がる旧演出を止め、スクロール中の白い残像をなくす。 */
body.theme-washi-scroll .reveal,
body.theme-washi-scroll .reveal.is-visible {
  opacity: 1 !important;
  clip-path: none !important;
  transform: none !important;
  transition: none !important;
}

/* 見出し周囲の白い二重発光を、薄い墨のにじみ一層へ置き換える。 */
body.theme-washi-scroll .section-en,
body.theme-washi-scroll .section-title,
body.theme-washi-scroll .section-lead,
body.theme-washi-scroll .press-proof-head > p {
  text-shadow: 0.02em 0.03em 0 rgba(68, 39, 29, 0.14);
}

/*
 * PC readable type floor
 * ヒーロー本文を基準に、どの画面高でも可視テキストを16px未満にしない。
 */
body.theme-washi-scroll {
  --pc-readable-min: 1rem;
}

body.theme-washi-scroll .global-nav a {
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.5;
}

body.theme-washi-scroll .shiruko-hero-since,
body.theme-washi-scroll .shiruko-hero-lead,
body.theme-washi-scroll .section-lead,
body.theme-washi-scroll .press-date,
body.theme-washi-scroll .press-grid .press-excerpt,
body.theme-washi-scroll .press-grid .press-card em,
body.theme-washi-scroll .about-desktop-copy,
body.theme-washi-scroll .about-points li,
body.theme-washi-scroll .about-points li > span,
body.theme-washi-scroll .about-gallery-slide figcaption,
body.theme-washi-scroll .history-numbers .history-desktop-label,
body.theme-washi-scroll .menu-price span,
body.theme-washi-scroll .menu-desc,
body.theme-washi-scroll .menu-note,
body.theme-washi-scroll .menu-badge,
body.theme-washi-scroll .access-station,
body.theme-washi-scroll .access-copy,
body.theme-washi-scroll .access-route li > p,
body.theme-washi-scroll .access-map-link,
body.theme-washi-scroll .line-signup-kicker,
body.theme-washi-scroll .line-signup-lead,
body.theme-washi-scroll .line-signup-benefits li,
body.theme-washi-scroll .info-table th,
body.theme-washi-scroll .info-table td,
body.theme-washi-scroll .info-note,
body.theme-washi-scroll .info-caution,
body.theme-washi-scroll .footer-line-compact,
body.theme-washi-scroll .footer-line-compact span,
body.theme-washi-scroll .footer-line-compact a,
body.theme-washi-scroll .footer-line-compact small {
  font-size: var(--pc-readable-min);
}

/* Instagramは本文を読める大きさにし、固定高も文字量に合わせて広げる。 */
body.theme-washi-scroll .ig-post-head {
  height: 72px;
  padding: 0.65rem 0.75rem;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  gap: 0.65rem;
}

body.theme-washi-scroll .ig-post-head > img {
  width: 44px;
  height: 44px;
}

body.theme-washi-scroll .instagram-screen .social-rail .ig-post-card,
body.theme-washi-scroll .instagram-screen .social-rail.is-looping .ig-post-card {
  flex: 0 0 clamp(390px, 28vw, 430px);
}

body.theme-washi-scroll .ig-post-head strong,
body.theme-washi-scroll .ig-post-head small,
body.theme-washi-scroll .ig-post-caption,
body.theme-washi-scroll .ig-post-caption strong {
  font-size: var(--pc-readable-min);
}

body.theme-washi-scroll .ig-post-head strong {
  line-height: 1.25;
}

body.theme-washi-scroll .ig-post-head small {
  overflow: visible;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
}

body.theme-washi-scroll .ig-post-caption {
  height: 112px;
  min-height: 112px;
  margin: 0 0.78rem 0.85rem;
  line-height: 1.55;
}

body.theme-washi-scroll .instagram .insta-account-link {
  min-height: 48px;
  padding: 0.72rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  line-height: 1.45;
}

/* 小さな説明文を拡大しても、カードの紙端で切れないようにする。 */
body.theme-washi-scroll .press-date,
body.theme-washi-scroll .press-grid .press-card em {
  line-height: 1.55;
}

body.theme-washi-scroll .press-grid .press-excerpt {
  line-height: 1.75;
}

body.theme-washi-scroll .about-desktop-copy,
body.theme-washi-scroll .about-points li {
  line-height: 1.8;
}

body.theme-washi-scroll .about-gallery-slide figcaption {
  padding: 0.45rem 0.7rem;
  line-height: 1.5;
}

body.theme-washi-scroll .history-numbers > :is(.history-primary, .history-years, .history-walk) {
  min-height: 140px;
  grid-template-rows: 66px minmax(3.2em, auto);
}

body.theme-washi-scroll .history-numbers .history-desktop-label {
  min-height: 3.2em;
  line-height: 1.5;
}

body.theme-washi-scroll .menu-desc {
  min-height: 3.3em;
  max-height: none;
  line-height: 1.65;
}

body.theme-washi-scroll .menu-note {
  line-height: 1.7;
}

body.theme-washi-scroll .line-signup-kicker,
body.theme-washi-scroll .line-signup-lead,
body.theme-washi-scroll .line-signup-benefits li {
  line-height: 1.6;
}

body.theme-washi-scroll .info-table th,
body.theme-washi-scroll .info-table td,
body.theme-washi-scroll .info-note,
body.theme-washi-scroll .info-caution {
  line-height: 1.7;
}

body.theme-washi-scroll .footer-line-compact {
  min-width: 0;
  flex-wrap: wrap;
  line-height: 1.65;
  white-space: normal;
}

body.theme-washi-scroll .footer-line-compact strong {
  font-size: 1.0625rem;
}

/* 公式Instagramへの導線を、投稿レールの中央で一段強く見せる。 */
body.theme-washi-scroll .instagram-screen > .section-inner:last-child {
  text-align: center;
}

body.theme-washi-scroll .instagram .insta-account-link {
  min-height: 56px;
  margin: 1rem auto 0;
  padding: 0.9rem 1.8rem;
  display: inline-flex;
  font-size: 1.15rem;
  box-shadow: 0 10px 28px rgba(75, 32, 36, 0.22);
}

body.theme-washi-scroll .instagram .insta-account-icon {
  width: 1.55rem;
  height: 1.55rem;
}

/* 写真の端から少し離し、説明文を背景ごと読みやすくする。 */
body.theme-washi-scroll .about-gallery-slide figcaption {
  inset: auto 1rem 1rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  padding: 0.7rem 1rem;
  color: #fffdf7;
  background: rgba(39, 25, 19, 0.8);
  border-left: 3px solid var(--gold-pale);
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(22, 12, 8, 0.22);
  font-size: clamp(1.18rem, 1.5vw, 1.34rem);
  line-height: 1.55;
}

/* 中間幅では説明欄を一列にして、16pxの歴史ラベルを詰め込まない。 */
@media (max-width: 1099px) {
  body.theme-washi-scroll .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* PC版: 横長に高精細化した写真を、ヘッダー直下の画面全面に見せる。 */
body.theme-washi-scroll .shiruko-hero {
  position: relative;
  min-height: 560px;
  height: calc(100svh - 3.75rem);
  display: block;
  overflow: hidden;
  background: #281511;
}

body.theme-washi-scroll .shiruko-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(24, 13, 10, 0.04) 0%,
      rgba(24, 13, 10, 0.04) 42%,
      rgba(24, 13, 10, 0.22) 60%,
      rgba(24, 13, 10, 0.8) 100%
    ),
    linear-gradient(0deg, rgba(24, 13, 10, 0.26), transparent 42%);
}

body.theme-washi-scroll .shiruko-hero-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #281511;
}

body.theme-washi-scroll .shiruko-hero-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

body.theme-washi-scroll .shiruko-hero-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  filter: none;
  transform: none;
}

body.theme-washi-scroll .shiruko-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  min-height: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(1.4rem, 3vw, 3rem) clamp(5.5rem, 8vw, 7rem) clamp(1.4rem, 3vw, 3rem) clamp(2rem, 4vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: transparent;
}

body.theme-washi-scroll .shiruko-hero-card {
  position: relative;
  z-index: 1;
  width: min(440px, 40vw);
}

/* PC版: Instagramを1〜2文で読み切れる高さへ圧縮する。 */
body.theme-washi-scroll .instagram-screen {
  min-height: 0;
  padding: clamp(1.1rem, 2.5svh, 1.7rem) 0 clamp(1rem, 2.2svh, 1.5rem);
}

body.theme-washi-scroll .instagram-screen .section-title {
  font-size: clamp(2.05rem, 3.2vw, 2.65rem);
  line-height: 1.25;
}

body.theme-washi-scroll .instagram-screen .section-lead {
  margin-top: 0.35rem;
  font-size: 1rem;
  line-height: 1.55;
}

body.theme-washi-scroll .instagram-screen .social-entry-links {
  margin-top: 0.6rem;
}

body.theme-washi-scroll .instagram-screen > .social-rail-shell {
  margin-top: 0.55rem;
}

body.theme-washi-scroll .instagram-screen .social-rail {
  gap: 0.7rem;
  padding-top: 0.3rem;
  padding-bottom: 0.55rem;
}

body.theme-washi-scroll .instagram-screen .social-rail .ig-post-card,
body.theme-washi-scroll .instagram-screen .social-rail.is-looping .ig-post-card {
  flex: 0 0 clamp(292px, 22vw, 330px);
}

body.theme-washi-scroll .instagram-screen .ig-post-head {
  height: 52px;
  padding: 0.45rem 0.62rem;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  gap: 0.52rem;
}

body.theme-washi-scroll .instagram-screen .ig-post-head > img {
  width: 36px;
  height: 36px;
}

body.theme-washi-scroll .instagram-screen .ig-post-head strong,
body.theme-washi-scroll .instagram-screen .ig-post-head small {
  font-size: 0.78rem;
}

body.theme-washi-scroll .instagram-screen .ig-post-head small {
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-washi-scroll .instagram-screen .ig-post-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.theme-washi-scroll .instagram-screen .ig-post-actions {
  height: 34px;
  padding: 0.38rem 0.62rem 0.12rem;
}

body.theme-washi-scroll .instagram-screen .ig-post-caption {
  height: 48px;
  min-height: 48px;
  margin: 0 0.68rem 0.55rem;
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.theme-washi-scroll .instagram-screen .ig-post-caption strong {
  font-size: inherit;
}

body.theme-washi-scroll .instagram-source-note {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

/* PC版: 掲載実績4件を一列に収め、1画面内で全体を把握できるようにする。 */
body.theme-washi-scroll .press-proof {
  min-height: 0;
  padding: clamp(1.25rem, 2.8svh, 1.8rem) 0 clamp(1.35rem, 3svh, 2rem);
}

body.theme-washi-scroll .press-proof-head h3 {
  font-size: clamp(2rem, 3.1vw, 2.55rem);
  line-height: 1.25;
}

body.theme-washi-scroll .press-proof-head > p:last-child {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

body.theme-washi-scroll .press-grid {
  margin-top: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.58rem, 1vw, 0.85rem);
}

body.theme-washi-scroll .press-grid .press-card,
body.theme-washi-scroll .press-grid .press-card:nth-child(even) {
  min-height: 0;
  height: min(42svh, 340px);
  max-height: 340px;
  grid-template-rows: clamp(108px, 15svh, 136px) minmax(0, 1fr);
  transform: none;
}

body.theme-washi-scroll .press-grid .press-card::after {
  height: clamp(108px, 15svh, 136px);
}

body.theme-washi-scroll .press-grid .press-card > span:not(.press-brand) {
  padding: 0.62rem 0.7rem 0.68rem;
}

body.theme-washi-scroll .press-grid .press-card > .press-brand-text {
  min-width: 5.8rem;
  min-height: 2rem;
  max-width: 70%;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
}

body.theme-washi-scroll .press-grid .press-date {
  margin-bottom: 0.3rem;
  padding: 0.12rem 0.4rem 0.16rem;
  font-size: 0.74rem;
  line-height: 1.35;
}

body.theme-washi-scroll .press-grid .press-card strong {
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  line-height: 1.35;
}

body.theme-washi-scroll .press-grid .press-excerpt {
  margin-top: 0.28rem;
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.76rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.theme-washi-scroll .press-grid .press-card em {
  display: none;
}

@media (min-width: 768px) and (max-width: 1099px) {
  body.theme-washi-scroll .press-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.theme-washi-scroll .press-grid .press-card,
  body.theme-washi-scroll .press-grid .press-card:nth-child(even) {
    height: min(28svh, 230px);
    grid-template-columns: 38% minmax(0, 1fr);
    grid-template-rows: 1fr;
  }

  body.theme-washi-scroll .press-grid .press-card::after {
    width: 38%;
    height: 100%;
  }

  body.theme-washi-scroll .press-grid .press-card > .press-card-photo,
  body.theme-washi-scroll .press-grid .press-card:hover > .press-card-photo {
    grid-column: 1;
    grid-row: 1;
  }

  body.theme-washi-scroll .press-grid .press-card > span:not(.press-brand) {
    grid-column: 2;
    grid-row: 1;
  }
}
