/* =========================================
   1. Header Navigation & Hanging Logo Tag
   ========================================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 96px;
  z-index: 1000;
  background: transparent;
}

/* 上部緑のちぎり和紙バナー背景レイヤー (上端にぴったりフィットし、下の和紙と滑らかに結合) */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 105px;
  background-image: url("../assets/header_green_strip.png");
  background-size: 100% 100%;
  background-position: top center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

/* Left Hanging Paper Tag (和紙ちぎりタグロゴ) */
.hanging-logo-tag {
  position: absolute;
  top: 0;
  left: 0;
  width: 118px;
  background: #FAF6ED;
  box-shadow: 0 6px 20px rgba(60, 50, 30, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px 20px;
  z-index: 1001;
  text-decoration: none;
}

.hanging-logo-tag::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(180, 170, 150, 0.6);
}

.hanging-logo-tag::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 10' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L0,3 Q10,10 20,3 Q30,8 40,2 Q50,9 60,3 Q70,10 80,3 Q90,8 100,2 Q110,9 120,3 L120,0 Z' fill='%23FAF6ED'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

.logo-graphic {
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink-coal);
  letter-spacing: 0.03em;
}

/* Navigation Links (中央配置でバランス良く美しく表示) */
.header-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 32px);
  margin: 0 auto;
  padding-left: 100px;
}

.header-nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFDF8;
  text-shadow: 0 1px 4px rgba(20, 30, 15, 0.45);
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.header-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #FFE082;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.25s ease;
}

.header-nav-link:hover {
  color: #FFE082;
  text-shadow: 0 2px 8px rgba(255, 224, 130, 0.5);
}

.header-nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.header-right-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

/* CTA Pill Button (濃い緑から美しく浮き立つ和紙ホワイト×深緑の立体ピルボタン) */
.header-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF4E6 100%);
  color: #384A22;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(15, 25, 10, 0.28), inset 0 1px 0 #FFFFFF;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.header-cta-pill:hover {
  background: #FFFFFF;
  color: #243513;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 25, 10, 0.38), inset 0 1px 0 #FFFFFF;
}

/* =========================================
   2. Hero Section (PC: 扇状パノラマ / モバイル: Sticky横スクロール)
   ========================================= */
.hero-master-container {
  position: relative;
}

.hero-panoramic-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: clamp(105px, 11vw, 135px);
  padding-bottom: 30px;
  background: transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-header-box {
  text-align: center;
  padding: 12px 20px 0;
  z-index: 20;
}

/* Hero Brand Eyebrow (見出し上の洗練されたブランドレタリング) */
.hero-brand-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: clamp(6px, 1.2vw, 12px);
}

.hero-brand-line {
  display: inline-block;
  width: clamp(24px, 4vw, 42px);
  height: 1.5px;
  background: linear-gradient(to right, transparent, rgba(93, 107, 68, 0.45), transparent);
  border-radius: 1px;
}

.hero-brand-name {
  font-family: 'Plus Jakarta Sans', 'Zen Maru Gothic', sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #5D6B44; /* 若草色の落ち着いた深み */
  text-transform: uppercase;
}

.hero-main-heading {
  font-family: 'Zen Maru Gothic', 'Kiwi Maru', sans-serif;
  font-size: clamp(2.15rem, 3.75vw, 3.8rem);
  font-weight: 900;
  line-height: 1.32;
  color: #36322B;
  letter-spacing: 0.015em;
  text-wrap: balance;
  margin-bottom: 16px;
}

.hero-sub-lead {
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.2vw, 1.22rem);
  font-weight: 700;
  color: #4A463E;
  letter-spacing: 0.02em;
  line-height: 1.82;
  text-wrap: pretty;
}

/* =========================================
   3. Panoramic Phone Stage (自動無限ループ横スクロール)
   ========================================= */
:root {
  --hero-phone-w: 210px;
  --hero-phone-gap: 26px;
}

.hero-phone-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
  padding: 24px 0 68px;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.hero-phone-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: var(--hero-phone-gap);
  width: max-content !important;
  will-change: transform;
  animation: heroPhoneMarqueeAnim 38s linear infinite !important;
  padding: 20px 0 48px;
  align-items: center;
}

@keyframes heroPhoneMarqueeAnim {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    /* 7台分（カード幅210px + gap26px = 236px × 7 = 1652px）を正確に移動して完全シームレスループ */
    transform: translate3d(calc(-7 * (var(--hero-phone-w) + var(--hero-phone-gap))), 0, 0);
  }
}

/* Smartphone Mockup Frame */
.hero-phone-card {
  flex: 0 0 210px !important;
  width: 210px !important;
  min-width: 210px !important;
  height: 435px;
  background: #FFFFFF;
  border-radius: 32px;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(50, 45, 35, 0.16), 0 3px 8px rgba(0, 0, 0, 0.06);
  border: 3px solid #FFFFFF;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.hero-phone-card:nth-child(even) {
  transform: translateY(10px) rotate(1.2deg);
}

.hero-phone-card:nth-child(odd) {
  transform: translateY(-8px) rotate(-1.2deg);
}

.hero-phone-highlight {
  box-shadow: 0 22px 48px rgba(50, 45, 35, 0.24), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ホバー時にアニメーションは止まらず、その端末だけが手前にフワッと拡大 */
.hero-phone-card:nth-child(even):hover {
  transform: translateY(2px) scale(1.08) rotate(0deg) !important;
  z-index: 30 !important;
  box-shadow: 0 28px 58px rgba(50, 45, 35, 0.32), 0 6px 14px rgba(0, 0, 0, 0.1) !important;
}

.hero-phone-card:nth-child(odd):hover {
  transform: translateY(-16px) scale(1.08) rotate(0deg) !important;
  z-index: 30 !important;
  box-shadow: 0 28px 58px rgba(50, 45, 35, 0.32), 0 6px 14px rgba(0, 0, 0, 0.1) !important;
}

.fan-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #FAF6ED;
  position: relative;
}

.fan-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   4. Bottom Download Buttons (スマホMarqueeの真下にすっきり配置)
   ========================================= */
.hero-bottom-store-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
  margin: 20px auto 36px;
  position: relative;
  z-index: 20;
}

/* Official Store Badges (Apple公式App Storeバッジ) */
.official-badge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  text-decoration: none;
  border-radius: 13px;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.22s ease;
  user-select: none;
}

.official-badge-btn:hover {
  transform: translateY(-2.5px) scale(1.02);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.official-badge-btn:active {
  transform: translateY(0) scale(0.98);
}

.official-badge-btn img {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 13px;
}

/* Android APK Button (Apple公式バッジと同型) */
.android-apk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 68px;
  width: 204px; /* Apple公式バッジと同じアスペクト比 (119.66:40 ≈ 3:1) */
  padding: 0;
  background: #000000;
  color: #FFFFFF;
  border: 1px solid #a6a6a6;
  border-radius: 13px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.22s ease, background 0.2s ease;
  user-select: none;
}

.android-apk-btn:hover {
  transform: translateY(-2.5px) scale(1.02);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
  background: #1a1a1a;
  color: #FFFFFF;
}

.android-apk-btn:active {
  transform: translateY(0) scale(0.98);
}

.android-apk-btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.android-apk-btn-text {
  line-height: 1;
}

.store-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: #5D6B44;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow: 0 6px 18px rgba(93, 107, 68, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.store-btn-pill:hover {
  background: #4B5736;
  transform: translateY(-2px);
  color: #FFFFFF;
}

.store-btn-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-btn-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* =========================================
   6. Section Commons & About Section ("NewMemoって？")
   ========================================= */
.section {
  position: relative;
  padding: clamp(84px, 10vw, 136px) 0;
}

.about-section {
  background: transparent;
}

.section-tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: var(--sage-soft);
  color: var(--sage-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-coal);
  letter-spacing: 0.02em;
  text-wrap: balance;
  margin-bottom: 24px;
}

.about-problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 44px auto 48px;
  max-width: 780px;
}

.sticky-note {
  background: var(--sticky-yellow);
  border: 1px solid var(--sticky-yellow-border);
  border-radius: 6px;
  padding: 26px 22px 22px;
  box-shadow: var(--shadow-sticky);
  position: relative;
  transform: rotate(-1.5deg);
  transition: transform 0.2s ease;
  text-align: left;
}

.sticky-note:hover {
  transform: rotate(0deg) scale(1.02);
}

.sticky-note-rose {
  background: var(--sticky-rose);
  border-color: var(--sticky-rose-border);
  transform: rotate(1.8deg);
}

.sticky-note-green {
  background: var(--sticky-green);
  border-color: var(--sticky-green-border);
  transform: rotate(-1.2deg);
}

.sticky-note-blue {
  background: var(--sticky-blue);
  border-color: var(--sticky-blue-border);
  transform: rotate(1.5deg);
}

.washi-tape {
  position: absolute;
  height: 22px;
  width: 90px;
  background: var(--washi-tape-amber);
  backdrop-filter: blur(2px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  z-index: 10;
  border-left: 2px dashed rgba(255,255,255,0.4);
  border-right: 2px dashed rgba(255,255,255,0.4);
}

.washi-tape-top {
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(1deg);
}

.washi-tape-left {
  top: -8px;
  left: 20px;
  transform: rotate(-4deg);
}

.washi-tape-right {
  top: -8px;
  right: 20px;
  transform: rotate(3deg);
  background: var(--washi-tape-sage);
}

.about-solution-card {
  background: var(--paper-card);
  border-radius: var(--radius-lg);
  padding: clamp(38px, 5.5vw, 60px);
  border: 1px solid var(--paper-border);
  box-shadow: var(--shadow-journal);
  position: relative;
  margin-top: 48px;
}

.about-solution-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--sage-dark);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.about-solution-text {
  font-size: var(--text-base);
  color: var(--ink-sepia);
  line-height: 2.05;
  text-wrap: pretty;
}

/* =========================================
   7. Features Section (01〜04 できること)
   ========================================= */
.feature-section {
  background: transparent;
  padding: clamp(84px, 10vw, 136px) 0;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: clamp(60px, 8vw, 120px);
}

.feature-row.reverse {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.25fr);
}

.feature-row.reverse .feature-col-text {
  order: 2;
}

.feature-row.reverse .feature-col-visual {
  order: 1;
}

.craft-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sage-main);
  color: #FFFFFF;
  font-family: var(--font-en-hand);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(110, 148, 115, 0.3);
  transform: rotate(-4deg);
}

.feature-heading {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.42;
  color: var(--ink-coal);
  letter-spacing: 0.015em;
  text-wrap: balance;
  margin-bottom: 16px;
}

.feature-body-text {
  font-size: var(--text-base);
  color: var(--ink-sepia);
  line-height: 1.95;
  text-wrap: pretty;
  margin-bottom: 24px;
}

.craft-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.craft-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--ink-dark);
  line-height: 1.7;
  text-wrap: pretty;
}

.craft-feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  margin-top: 8px;
  flex-shrink: 0;
}

.feature-demo-card {
  background: var(--paper-light);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-journal);
  position: relative;
}

.demo-voice-record-box {
  background: var(--paper-card);
  border: 2px dashed var(--paper-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.demo-synapse-search-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-tag-button {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--paper-card);
  border: 1.5px solid var(--paper-border);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-sepia);
  transition: all 0.2s ease;
}

.demo-tag-button.is-active, .demo-tag-button:hover {
  background: var(--sage-soft);
  border-color: var(--sage-main);
  color: var(--sage-dark);
}

.demo-answer-box {
  background: var(--paper-card);
  border: 1.5px solid var(--sage-main);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-journal);
  position: relative;
  background-image: repeating-linear-gradient(transparent, transparent 27px, var(--paper-divider) 28px);
  line-height: 28px;
}

.polaroid-card {
  background: var(--paper-card);
  padding: 14px 14px 36px 14px;
  border-radius: 6px;
  box-shadow: var(--shadow-polaroid);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.polaroid-card:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow: var(--shadow-floating);
}

.polaroid-img-box {
  background: var(--paper-cream);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--paper-divider);
}

.polaroid-caption {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--ink-sepia);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8px;
  box-sizing: border-box;
}

/* =========================================
   8. Philosophy Section
   ========================================= */
.craft-philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.craft-philosophy-card {
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-journal);
  position: relative;
  transition: transform 0.2s ease;
}

.craft-philosophy-card:hover {
  transform: translateY(-4px);
}

.craft-card-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}

.craft-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-coal);
  letter-spacing: 0.015em;
  text-wrap: balance;
  margin-bottom: 10px;
}

.craft-card-text {
  font-size: 0.9rem;
  color: var(--ink-sepia);
  line-height: 1.9;
  text-wrap: pretty;
}

/* =========================================
   9. Gallery Marquee (自動無限ループ横スクロール) & Download Letter
   ========================================= */
:root {
  --gallery-card-w: 250px;
  --gallery-gap: 28px;
}

.gallery-wrapper {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 28px 0 76px;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.gallery-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: var(--gallery-gap);
  width: max-content !important;
  will-change: transform;
  animation: galleryLoopScroll 35s linear infinite !important;
  padding: 16px 0 52px;
  align-items: center;
}

@keyframes galleryLoopScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    /* 7枚分（(250px + 28px) * 7 = 1946px）を正確に移動して1pxのガタつきもない完全シームレスループ */
    transform: translate3d(calc(-7 * (var(--gallery-card-w) + var(--gallery-gap))), 0, 0);
  }
}

.gallery-item-polaroid {
  flex: 0 0 var(--gallery-card-w) !important;
  width: var(--gallery-card-w) !important;
  min-width: var(--gallery-card-w) !important;
  max-width: var(--gallery-card-w) !important;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.gallery-item-polaroid:hover {
  transform: translateY(-8px) scale(1.06) !important;
  z-index: 30 !important;
  box-shadow: 0 24px 48px rgba(50, 45, 35, 0.26) !important;
}

.download-letter-card {
  background: var(--paper-card);
  border: 2px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 48px);
  box-shadow: var(--shadow-polaroid);
  position: relative;
  text-align: center;
}

.download-title {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.45;
  letter-spacing: 0.015em;
  text-wrap: balance;
  margin-bottom: 16px;
}

.download-letter-stamp {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 56px;
  height: 68px;
  border: 2px dashed var(--terracotta);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(6deg);
  color: var(--terracotta);
  font-family: var(--font-en-hand);
  font-size: 0.75rem;
}

.download-card-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  margin: 28px auto 20px;
  position: relative;
  z-index: 10;
}

.download-card-cta-group .store-btn-pill {
  min-width: 210px;
  white-space: nowrap;
  justify-content: center;
  padding: 12px 26px;
  font-size: 0.95rem;
}

/* =========================================
   10. FAQ & Footer
   ========================================= */
.craft-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 780px;
  margin: 36px auto 0;
}

.craft-faq-item {
  background: var(--paper-card);
  border: 1.5px solid var(--paper-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-journal);
  overflow: hidden;
}

.craft-faq-question {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-coal);
  letter-spacing: 0.015em;
  text-wrap: balance;
}

.craft-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.craft-faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--ink-sepia);
  line-height: 1.85;
  border-top: 1px dashed var(--paper-divider);
  padding-top: 14px;
  text-wrap: pretty;
}

.site-footer {
  background: rgba(239, 232, 216, 0.5);
  backdrop-filter: blur(4px);
  border-top: 1px solid var(--paper-border);
  padding: 80px 0 44px;
}

.footer-inner-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 48px;
}

.footer-copyright {
  border-top: 1px solid var(--paper-border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink-taupe);
}

/* =========================================
   11. Responsive Adaptations (スマホ版 横流れマーキー対応)
   ========================================= */
@media (max-width: 1200px) {
  .phone-fan-stage {
    transform: scale(0.88);
    transform-origin: top center;
  }
}

@media (max-width: 991px) {
  .hero-panoramic-section {
    padding-top: 95px;
    height: auto;
    min-height: auto;
  }

  .header-nav-center {
    display: none;
  }

  .phone-fan-stage {
    transform: scale(0.8);
    transform-origin: top center;
    margin-top: 0;
  }

  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-row.reverse .feature-col-text {
    order: 1;
  }

  .feature-row.reverse .feature-col-visual {
    order: 2;
  }

  .footer-inner-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* モバイル版（768px以下）：スマホ実機比率（360px〜390px）完全最適化 */
@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }

  /* 1. Header (実機でコンパクトかつ美しく整列) */
  .site-header {
    height: 68px;
  }

  .site-header::before {
    height: 74px;
    min-height: 74px;
  }

  .hanging-logo-tag {
    left: 14px;
    width: 76px;
    padding: 6px 4px 10px;
    border-radius: 0 0 4px 4px;
  }

  .hanging-logo-tag::before {
    width: 38px;
    height: 10px;
    top: -3px;
  }

  .hanging-logo-tag::after {
    bottom: -8px;
    height: 8px;
  }

  .logo-graphic {
    width: 32px;
    height: 32px;
    margin-bottom: 1px;
  }

  .logo-text-title {
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.01em;
  }

  .header-cta-pill {
    padding: 6px 13px;
    font-size: 0.76rem;
    font-weight: 800;
    min-height: 32px;
  }

  /* 2. Hero Section (スマホ画面いっぱいに美しく広がる 100dvh ファーストビュー) */
  .hero-master-container {
    position: relative;
    width: 100%;
  }

  .hero-panoramic-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding-top: clamp(72px, 10vh, 90px);
    padding-bottom: clamp(14px, 2.5vh, 26px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
  }

  .hero-header-box {
    padding: 0 8px;
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .hero-brand-eyebrow {
    gap: 10px;
    margin-bottom: 6px;
  }

  .hero-brand-line {
    width: 20px;
  }

  .hero-brand-name {
    font-size: 0.88rem;
    letter-spacing: 0.12em;
  }

  .hero-main-heading {
    font-size: clamp(1.36rem, 5.8vw, 1.78rem);
    line-height: 1.34;
    letter-spacing: 0.015em;
    margin-bottom: 6px;
    text-wrap: balance;
  }

  .hero-sub-lead {
    font-size: clamp(0.78rem, 3.2vw, 0.85rem);
    line-height: 1.62;
    color: #4A463E;
    padding: 0 4px;
    text-wrap: pretty;
  }

  .hero-phone-stage {
    flex: 1;
    display: flex;
    align-items: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 24px 0 42px; /* 上下にゆったりとした余白を確保し、端末の上端・下端の途切れを完全防止 */
    margin: 0;
    overflow: hidden;
  }

  .hero-phone-track {
    gap: 14px;
    padding: 18px 0 36px; /* トラック内でも上下に十分な表示区間を確保 */
    align-items: center;
  }

  .hero-phone-card {
    flex: 0 0 156px !important;
    width: 156px !important;
    min-width: 156px !important;
    height: clamp(310px, 40vh, 350px);
    border-radius: 22px;
    border-width: 4px;
    box-shadow: 0 8px 24px rgba(60, 50, 30, 0.16);
  }

  /* スマホでのホバー・タップ時に上下枠外へはみ出さないよう最適化 */
  .hero-phone-card:nth-child(even):hover,
  .hero-phone-card:nth-child(even):active {
    transform: translateY(2px) scale(1.04) rotate(0deg) !important;
    box-shadow: 0 16px 36px rgba(50, 45, 35, 0.25) !important;
  }

  .hero-phone-card:nth-child(odd):hover,
  .hero-phone-card:nth-child(odd):active {
    transform: translateY(-8px) scale(1.04) rotate(0deg) !important;
    box-shadow: 0 16px 36px rgba(50, 45, 35, 0.25) !important;
  }

  .fan-phone-screen {
    border-radius: 18px;
  }

  .hero-bottom-store-cta {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    padding: 4px 10px 6px;
    gap: 10px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    flex-shrink: 0;
  }

  .official-badge-btn {
    height: 48px;
    flex: 0 0 auto;
  }

  .official-badge-btn img {
    height: 100%;
    width: auto;
  }

  .android-apk-btn {
    height: 48px;
    width: 144px; /* Apple公式バッジと同じアスペクト比 */
    padding: 0;
    font-size: 0.8rem;
    gap: 6px;
    border-radius: 10px;
    flex: 0 0 auto;
  }

  .android-apk-btn-icon {
    width: 16px;
    height: 16px;
  }

  .store-btn-pill {
    flex: 1;
    min-width: 0;
    max-width: 160px;
    padding: 9px 12px;
    font-size: 0.8125rem;
    min-height: 42px;
    justify-content: center;
    border-radius: var(--radius-pill);
    gap: 6px;
  }

  .store-btn-icon {
    width: 18px;
    height: 18px;
  }

  /* 3. Section Commons */
  .section {
    padding: 48px 0;
  }

  .section-tag-pill {
    font-size: 0.75rem;
    padding: 4px 12px;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: clamp(1.22rem, 5.2vw, 1.6rem);
    line-height: 1.38;
    margin-bottom: 14px;
    text-wrap: balance;
  }

  /* 4. About Section */
  .about-problems-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 28px;
  }

  .sticky-note {
    padding: 16px 14px 14px;
    border-radius: 12px;
  }

  .washi-tape {
    width: 60px;
    height: 16px;
    top: -7px;
  }

  .about-solution-card {
    padding: 22px 14px 18px;
    border-radius: 16px;
    margin-top: 24px;
  }

  .about-solution-title {
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 10px;
  }

  .about-solution-text {
    font-size: 0.8125rem;
    line-height: 1.72;
  }

  /* 5. Features Section */
  .feature-row, .feature-row.reverse {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
  }

  .feature-col-text {
    order: 1 !important;
    text-align: left;
  }

  .feature-col-visual {
    order: 2 !important;
  }

  .craft-num-badge {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .feature-heading {
    font-size: 1.15rem;
    line-height: 1.42;
    margin-bottom: 8px;
  }

  .feature-body-text {
    font-size: 0.8125rem;
    line-height: 1.7;
    margin-bottom: 12px;
  }

  .craft-feature-list {
    gap: 8px;
  }

  .craft-feature-item {
    font-size: 0.8rem;
    line-height: 1.55;
    gap: 8px;
  }

  .polaroid-card {
    max-width: 240px;
    margin: 0 auto;
    padding: 10px 10px 12px;
    border-radius: 12px;
  }

  .polaroid-caption {
    font-size: 0.78rem;
    margin-top: 6px;
  }

  /* 6. Philosophy Cards */
  .craft-philosophy-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
  }

  .craft-philosophy-card {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .craft-card-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .craft-card-title {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .craft-card-text {
    font-size: 0.8rem;
    line-height: 1.65;
  }

  /* 7. Gallery Section (スマホでマスキングテープやホバーシャドウが途切れないよう上下余白を拡張) */
  .gallery-wrapper {
    padding: 28px 0 68px;
  }

  .gallery-track {
    padding: 20px 0 44px;
  }

  .gallery-item-polaroid:hover,
  .gallery-item-polaroid:active {
    transform: translateY(-6px) scale(1.04) !important;
    box-shadow: 0 16px 36px rgba(50, 45, 35, 0.22) !important;
  }

  /* 8. Download Letter Card */
  .download-letter-card {
    padding: 28px 14px 22px;
    border-radius: 16px;
  }

  .download-title {
    font-size: 1.15rem;
    line-height: 1.45;
    margin-bottom: 12px;
    text-wrap: balance;
  }

  .download-letter-stamp {
    width: 44px;
    height: 44px;
    top: 10px;
    right: 10px;
    font-size: 0.68rem;
  }

  .download-card-cta-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    padding: 0;
    margin-top: 12px;
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 9. FAQ Section */
  .craft-faq-list {
    margin-top: 20px;
  }

  .craft-faq-item {
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .craft-faq-question {
    padding: 14px 14px;
    font-size: 0.875rem;
    min-height: 46px;
    line-height: 1.48;
  }

  .craft-faq-answer-inner {
    padding: 0 14px 14px;
    font-size: 0.8rem;
    line-height: 1.68;
  }

  /* 10. Footer */
  .site-footer {
    padding: 38px 14px 22px;
  }

  .footer-inner-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 24px;
  }

  .footer-copyright {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding-top: 18px;
    font-size: 0.75rem;
  }

  /* 11. Guide Modal */
  .guide-modal-content {
    max-width: calc(100vw - 20px);
    max-height: 88vh;
    padding: 20px 14px;
    border-radius: 16px;
  }
}

/* 超極小端末（360px以下、iPhone SE / 小画面Android等）微調整 */
@media (max-width: 360px) {
  .hero-main-heading {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .download-title {
    font-size: 1.05rem;
  }

  .hanging-logo-tag {
    width: 68px;
    padding: 5px 3px 8px;
  }

  .logo-graphic {
    width: 28px;
    height: 28px;
  }

  .logo-text-title {
    font-size: 0.68rem;
  }

  .hero-bottom-store-cta,
  .download-card-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .store-btn-pill {
    max-width: 100%;
    width: 100%;
  }
}

/* モバイル タップフィードバック (極上の触感マイクロインタラクション) */
@media (hover: none) and (pointer: coarse) {
  .store-btn-pill:active,
  .header-cta-pill:active,
  .craft-faq-question:active,
  .sticky-note:active,
  .polaroid-card:active,
  .craft-philosophy-card:active {
    transform: scale(0.975);
    transition: transform 0.12s ease;
  }
}

/* =========================================
   UI Surface Isolation Layer (インクを背景のみに配置し、カード・画像・付箋の上に乗せない)
   ========================================= */
.container,
.hero-header-box,
.hero-phone-stage,
.sticky-note,
.about-solution-card,
.feature-card,
.feature-card-glass,
.craft-philosophy-card,
.gallery-polaroid-card,
.faq-item,
.faq-card,
.download-letter-box,
.header-inner,
.site-footer,
.hero-phone-card,
img,
picture {
  position: relative;
  z-index: 5;
}

.craft-philosophy-card,
.about-solution-card,
.download-letter-box,
.faq-item,
.gallery-polaroid-card {
  background-color: #FFFFFF;
}

.sticky-note {
  background-color: var(--sticky-yellow);
}

.sticky-note-rose {
  background-color: var(--sticky-rose);
}

.sticky-note-green {
  background-color: var(--sticky-green);
}

.sticky-note-blue {
  background-color: var(--sticky-blue);
}

