/* ---------- #1 の中身ページ（会社案内・サービス・お知らせ・代表挨拶） ----------
   ビーチの上に、ブランドのクリーム色の紙を 1 枚置く。PC は右から、スマホは下から出る */
.page {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(20, 18, 14, 0.42);
  animation: page-fade 0.3s ease both;
}
.page[hidden] { display: none; }
.page:focus { outline: none; }
@keyframes page-fade { from { opacity: 0; } to { opacity: 1; } }

.paper {
  position: relative;
  width: min(760px, 100%);
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--zeal-cream);
  color: var(--zeal-charcoal);
  font-family: var(--sans);
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.35);
  animation: paper-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes paper-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 上端の 3 色の帯: マークの幹・左腕・右腕。重なりの色で区切る */
.paper::before {
  content: "";
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    var(--zeal-terra) 0 30%, var(--zeal-teal-terra) 30% 34%,
    var(--zeal-teal) 34% 64%, var(--zeal-teal-mustard) 64% 68%,
    var(--zeal-mustard) 68% 100%);
}

.paper-head {
  position: sticky;
  top: 6px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 6vw, 56px) 18px;
  background: var(--zeal-cream);
  border-bottom: 1px solid rgba(47, 46, 41, 0.14);
}
.paper-head h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.page-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(47, 46, 41, 0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--zeal-charcoal);
  cursor: pointer;
}
.page-close:hover { background: rgba(47, 46, 41, 0.08); }
.page-close:focus-visible { outline: 2px solid var(--zeal-teal); outline-offset: 3px; }

.page-body {
  padding: 28px clamp(20px, 6vw, 56px) max(64px, env(safe-area-inset-bottom));
  font-size: 16px;
  line-height: 1.95;
  max-width: 40em;
}
.page-body p { margin: 0 0 1.1em; }
.page-body h2 {
  margin: 2.4em 0 0.9em;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--zeal-teal);
}
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { margin: 0 0 0.5em; font-size: 17px; line-height: 1.6; }
.page-body ul { margin: 0 0 1.1em; padding-left: 1.3em; }
.page-body li { margin: 0.2em 0; }
.page-body ul.plain { list-style: none; padding: 0; margin: 0; }
.page-body strong { color: var(--zeal-teal); }

/* 確認待ちの仮の文字（〇〇）。目立ちすぎないが、仮だとわかる */
[data-tbd] { color: rgba(47, 46, 41, 0.55); letter-spacing: 0.1em; }

/* ---- 会社案内 ---- */
.profile { margin: 0; border-top: 1px solid rgba(47, 46, 41, 0.18); }
.profile > div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(47, 46, 41, 0.18);
}
.profile dt { font-weight: 700; color: var(--zeal-teal); }
.profile dd { margin: 0; }
.name-story { display: grid; grid-template-columns: 88px 1fr; gap: 24px; align-items: start; }
.name-mark { width: 88px; height: auto; }

/* ---- サービス ---- */
.pillar { padding: 18px 0; border-top: 1px solid rgba(47, 46, 41, 0.18); }
.pillar-main {
  padding: 22px 24px;
  margin-bottom: 8px;
  border: 0;
  border-left: 4px solid var(--zeal-teal);
  background: rgba(45, 120, 123, 0.08);
}
.pillar-note {
  display: inline-block;
  margin-left: 0.8em;
  font-size: 13px;
  font-weight: 600;
  color: var(--zeal-terra);
}
.services { display: grid; gap: 14px; }
.service {
  padding: 20px 22px;
  border: 1px solid rgba(47, 46, 41, 0.2);
  border-radius: 4px 18px 4px 4px;
  background: rgba(255, 255, 255, 0.45);
}
.service .lead { font-weight: 700; }
/* LINEスタンプのストアへのリンク。スマホでも押せるよう 44px 以上 */
.service .stickers a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--zeal-teal);
  font-weight: 700;
  text-underline-offset: 3px;
}
.service .stickers a:focus-visible { outline: 2px solid var(--zeal-mustard); outline-offset: 2px; border-radius: 4px; }
.service .credit { font-size: 0.85em; color: rgba(47, 46, 41, 0.7); }
.status {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0 0.7em;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
  vertical-align: 0.15em;
  white-space: nowrap;
}
.status[data-status="dev"] { background: var(--zeal-mustard); color: var(--zeal-charcoal); }
.status[data-status="sale"] { background: var(--zeal-teal); color: #fff; }
.status[data-status="tbd"] { border: 1px dashed rgba(47, 46, 41, 0.4); }

/* ---- お知らせ ---- */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(47, 46, 41, 0.18); }
.news-item {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(47, 46, 41, 0.18);
}
.news-date { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--zeal-terra); }
.news-date[data-tbd] { color: rgba(201, 95, 56, 0.6); }

/* ---- 代表挨拶: 手紙のように、少しゆったり ---- */
.letter { font-size: 16.5px; line-height: 2.1; }
.letter .signature { margin-top: 2em; text-align: right; font-weight: 700; }

/* ---- スマホ: 下からの全面シート ---- */
@media (max-width: 760px) {
  .page { align-items: flex-end; }
  .paper {
    height: calc(100% - max(28px, env(safe-area-inset-top)));
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
    animation-name: paper-up;
  }
  .paper::before { border-radius: 18px 18px 0 0; }
  .paper-head { padding-top: 18px; }
  .profile > div, .news-item { grid-template-columns: 1fr; }
  .name-story { grid-template-columns: 64px 1fr; gap: 16px; }
  .name-mark { width: 64px; }
}
@keyframes paper-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .page, .paper { animation: none; }
}
