/*
 * Smartphone presentation layer
 * 共通構造は style.css、767px以下の境界・余白・紙面だけをこのファイルで管理する。
 */

body.theme-washi-scroll .instagram {
  padding: 0;
  overflow-x: clip;
  overflow-y: visible;
}

/* Instagramと掲載面は、それぞれ自身の内側余白を持つ。 */
body.theme-washi-scroll .instagram-screen {
  padding: 1.75rem 0 1.25rem;
}

body.theme-washi-scroll .instagram-screen > .section-inner:last-child {
  padding-bottom: 0;
}

body.theme-washi-scroll .instagram .insta-account-link,
body.theme-washi-scroll .instagram .insta-account-link:hover {
  margin-top: 1.15rem;
  margin-bottom: 0;
  filter: drop-shadow(0 2px 0 rgba(57, 35, 23, 0.16));
  transform: none;
}

body.theme-washi-scroll .press-proof {
  margin: 0;
  padding: 1.75rem 0 2rem;
}

body.theme-washi-scroll .press-proof-head {
  margin: 0 auto;
  text-align: center;
}

/* スマホの境界は、次の紙面の上端一枚だけで描く。 */
body.theme-washi-scroll .instagram-screen::after,
body.theme-washi-scroll .press-proof::after,
body.theme-washi-scroll .about::after,
body.theme-washi-scroll .menu::after,
body.theme-washi-scroll .access::after,
body.theme-washi-scroll .line-signup::after,
body.theme-washi-scroll .info::after {
  content: none;
}

body.theme-washi-scroll .site-footer {
  --section-edge-color: #302923;
  overflow-x: clip;
  overflow-y: visible;
}

body.theme-washi-scroll .instagram-screen::before,
body.theme-washi-scroll .press-proof::before,
body.theme-washi-scroll .about::before,
body.theme-washi-scroll .menu::before,
body.theme-washi-scroll .access::before,
body.theme-washi-scroll .line-signup::before,
body.theme-washi-scroll .info::before,
body.theme-washi-scroll .site-footer::before {
  content: "";
  top: -0.5rem;
  height: 1rem;
  background-color: var(--section-edge-color);
  background-image: var(--kozo-paper);
  background-position: center;
  background-size: 520px 520px;
  background-repeat: repeat;
  background-blend-mode: multiply;
  opacity: 1;
  filter: drop-shadow(0 -1px 0 rgba(62, 39, 25, 0.24));
  -webkit-mask: var(--washi-edge-strip) center / 960px 100% no-repeat;
  mask: var(--washi-edge-strip) center / 960px 100% no-repeat;
  transform: scaleY(-1);
}

/* 縦画面でも、紙端と次の見出しを同時に読める密度へ整える。 */
body.theme-washi-scroll .about,
body.theme-washi-scroll .menu,
body.theme-washi-scroll .access {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* PC用の大きな影を縮小せず、スマホでは短い接触影へ置き換える。 */
body.theme-washi-scroll .shiruko-hero-card::before,
body.theme-washi-scroll .shiruko-hero-card::after,
body.theme-washi-scroll .social-rail-shell::before,
body.theme-washi-scroll .press-card,
body.theme-washi-scroll .press-card:hover,
body.theme-washi-scroll .about-text,
body.theme-washi-scroll .about-gallery,
body.theme-washi-scroll .history-numbers .history-primary,
body.theme-washi-scroll .history-numbers .history-years,
body.theme-washi-scroll .history-numbers .history-walk,
body.theme-washi-scroll .menu-card,
body.theme-washi-scroll .menu-card:hover,
body.theme-washi-scroll .access-text,
body.theme-washi-scroll .access-map,
body.theme-washi-scroll .line-signup-card,
body.theme-washi-scroll .info-table-wrap {
  filter: drop-shadow(0 3px 1px rgba(57, 35, 23, 0.18));
}

body.theme-washi-scroll .insta-account-link,
body.theme-washi-scroll .press-brand,
body.theme-washi-scroll .shiruko-hero-cta,
body.theme-washi-scroll .line-signup-button {
  filter: drop-shadow(0 2px 0 rgba(57, 35, 23, 0.16));
}

/* 内側の写真は二重に破らず、外側の和紙台紙だけを見せる。 */
body.theme-washi-scroll .about-gallery-viewport,
body.theme-washi-scroll .about-gallery-thumbs button,
body.theme-washi-scroll .access-map iframe {
  -webkit-mask: none;
  mask: none;
}

body.theme-washi-scroll .about-gallery-viewport,
body.theme-washi-scroll .about-gallery-thumbs button {
  border: 1px solid rgba(87, 56, 38, 0.2);
}

/* 見出し直下の導入文は、スマホでも他セクションと同じ情報量を保つ。 */
body.theme-washi-scroll .instagram .section-lead {
  margin: 0.55rem auto 0;
  display: block;
  font-size: 0.82rem;
  line-height: 1.75;
  letter-spacing: 0.055em;
}

/* JSの表示タイミングに依存せず、1953年を常に読み取れるようにする。 */
body.theme-washi-scroll .history-numbers .history-primary,
body.theme-washi-scroll .about-text.is-visible .history-numbers .history-primary {
  opacity: 1;
  transform: none;
  animation: none;
}

body.theme-washi-scroll .history-numbers .history-primary strong {
  flex: 0 1 auto;
  min-width: 0;
  font-size: clamp(3.35rem, 18vw, 4.65rem);
  white-space: nowrap;
}

body.theme-washi-scroll .history-numbers .history-primary .history-mobile-label {
  flex: 0 1 7.2rem;
  max-width: 7.2rem;
}

/* 写真右下の説明を、スマホでも流し見で読める大きさにする。 */
body.theme-washi-scroll .about-gallery-slide figcaption {
  padding: 0.72rem 0.82rem;
  font-size: 1rem;
  line-height: 1.55;
}

body.theme-washi-scroll .access-map-actions {
  gap: 0.15rem 1rem;
}

/* スマホ版: 料理写真と文字面を上下に分け、椀・お茶と見出しを重ねない。 */
body.theme-washi-scroll .shiruko-hero {
  position: relative;
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  overflow: hidden;
  background: #3d2019;
}

body.theme-washi-scroll .shiruko-hero::after {
  content: none;
}

body.theme-washi-scroll .shiruko-hero-photo {
  position: relative;
  z-index: 0;
  inset: auto;
  grid-row: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  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 74%;
  filter: none;
  transform: none;
}

body.theme-washi-scroll .shiruko-hero-content {
  position: relative;
  z-index: 2;
  grid-row: 2;
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 1.15rem 1rem 1.5rem;
  display: block;
  background: #3d2019;
}

body.theme-washi-scroll .shiruko-hero-card {
  position: relative;
  z-index: 1;
  width: min(100%, 23rem);
  padding: 1.15rem 1.1rem 1.25rem;
  gap: 0.55rem;
  margin: 0 auto;
  transform: none;
}

body.theme-washi-scroll .shiruko-hero h1 {
  font-size: clamp(2rem, 9.8vw, 2.65rem);
}

body.theme-washi-scroll .shiruko-hero h1 .pc-only {
  display: inline;
}

body.theme-washi-scroll .shiruko-hero-lead {
  font-size: 0.86rem;
  line-height: 1.6;
}

/* スマホ版: SNS導線を先頭に置き、投稿本文は2行で止める。 */
body.theme-washi-scroll .instagram-screen {
  padding: 1.2rem 0 1rem;
}

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

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

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

body.theme-washi-scroll .social-entry-link {
  min-height: 40px;
  padding: 0.5rem 0.72rem;
  font-size: 0.74rem;
}

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

body.theme-washi-scroll .instagram-screen .social-rail {
  gap: 0.62rem;
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
}

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 min(76vw, 286px);
}

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

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

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

body.theme-washi-scroll .instagram-screen .ig-post-head small {
  overflow: hidden;
  font-size: 0.67rem;
  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: 32px;
  padding: 0.35rem 0.55rem 0.08rem;
}

body.theme-washi-scroll .instagram-screen .ig-post-caption {
  height: 42px;
  min-height: 42px;
  margin: 0 0.58rem 0.48rem;
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.74rem;
  line-height: 1.42;
  -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.25rem;
  font-size: 0.7rem;
  line-height: 1.45;
}

/* スマホ版: 掲載実績は縦積みせず、1段の横スワイプにする。 */
body.theme-washi-scroll .press-proof {
  padding: 1.2rem 0 1.35rem;
  overflow-x: clip;
}

body.theme-washi-scroll .press-proof > .section-inner {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

body.theme-washi-scroll .press-proof-head {
  padding: 0 1rem;
}

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

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

body.theme-washi-scroll .press-grid {
  width: 100%;
  margin-top: 0.7rem;
  padding: 0.2rem 1rem 0.55rem;
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.theme-washi-scroll .press-grid::-webkit-scrollbar {
  display: none;
}

body.theme-washi-scroll .press-grid .press-card,
body.theme-washi-scroll .press-grid .press-card:nth-child(even) {
  min-height: 0;
  height: 330px;
  max-height: 330px;
  flex: 0 0 min(78vw, 292px);
  display: grid;
  grid-template-rows: 136px minmax(0, 1fr);
  color: var(--sumi);
  transform: none;
  scroll-snap-align: start;
}

body.theme-washi-scroll .press-grid .press-card > .press-card-photo,
body.theme-washi-scroll .press-grid .press-card:hover > .press-card-photo {
  position: relative;
  z-index: 0;
  inset: auto;
  grid-row: 1;
  width: 100%;
  height: 136px;
  object-fit: cover;
  object-position: center;
  filter: sepia(0.04) saturate(0.94) contrast(1.02);
  transform: none;
}

body.theme-washi-scroll .press-grid .press-card::after {
  content: none;
}

body.theme-washi-scroll .press-grid .press-card > span:not(.press-brand) {
  position: relative;
  z-index: 2;
  inset: auto;
  grid-row: 2;
  min-height: 0;
  padding: 0.68rem 0.75rem 0.72rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--sumi);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.2), transparent 58%),
    var(--washi-layer),
    #fbf3e3;
  text-shadow: none;
}

body.theme-washi-scroll .press-grid .press-card > .press-brand-text {
  min-width: 5.5rem;
  min-height: 1.9rem;
  padding: 0.32rem 0.55rem;
  font-size: 0.74rem;
}

body.theme-washi-scroll .press-grid .press-date {
  width: fit-content;
  margin-bottom: 0.28rem;
  padding: 0.12rem 0.38rem 0.15rem;
  display: block;
  color: #fff8e9;
  background: rgba(92, 43, 39, 0.92);
  font-size: 0.7rem;
  line-height: 1.3;
}

body.theme-washi-scroll .press-grid .press-card small {
  color: #765f4b;
  font-size: 0.68rem;
  line-height: 1.35;
}

body.theme-washi-scroll .press-grid .press-card strong {
  color: var(--azuki-deep);
  font-size: 0.94rem;
  line-height: 1.35;
}

body.theme-washi-scroll .press-grid .press-excerpt {
  margin-top: 0.25rem;
  display: -webkit-box;
  overflow: hidden;
  color: #5a4d43;
  font-size: 0.73rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

/* スマホ版: 正方形の商品写真を切らず、指で見やすい大きさへ。 */
body.theme-washi-scroll .menu > .menu-scroller {
  padding-top: 0.65rem;
  padding-bottom: 1rem;
}

body.theme-washi-scroll .menu-card {
  flex: 0 0 min(74vw, 280px);
}

body.theme-washi-scroll .menu-photo img,
body.theme-washi-scroll .menu-photo-text {
  aspect-ratio: 1 / 1;
}

body.theme-washi-scroll .menu-photo img {
  object-position: center;
}

/* スマホ版: 所要時間を独立した行で大きく見せる。 */
body.theme-washi-scroll .access-station {
  line-height: 1.55;
}

body.theme-washi-scroll .access-station strong {
  margin-top: 0.28rem;
  display: block;
  color: var(--matcha);
  font-size: clamp(2rem, 10vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: 0.03em;
}
