/* よろづソリューションズ HP — エディトリアル版
   測る＝白×藍 ／ 手放す＝墨×生成り。余白と書体で語る。 */

:root {
  --sumi: #17150f;
  --sumi-soft: #1d1a13;
  --washi: #ede7d6;
  --washi-bg: #f7f4ec;
  --ink: #35322b;
  --ink-light: #6f695c;
  --rule: #ddd6c4;
  --blue: #1e3a5f;
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--washi-bg);
  line-height: 2.1;
  font-size: 15px;
  letter-spacing: 0.05em;
}

img { max-width: 100%; height: auto; }

.serif { font-family: var(--serif); font-weight: 400; }
.phrase { display: inline-block; }
strong { font-weight: 500; }

.container { max-width: 880px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 640px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.pc { display: none; }
@media (min-width: 641px) { .pc { display: inline; } }

/* ---------- ヒーロー ---------- */
.hero {
  min-height: 100vh; /* svh未対応の旧Safari向けフォールバック */
  min-height: 100svh;
  background: var(--sumi);
  color: var(--washi);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 96px 28px 120px;
}

.hero-logo { width: min(400px, 72vw); height: auto; }

.hero-tagline {
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  letter-spacing: 0.3em;
  margin-top: 56px;
  text-indent: 0.3em; /* letter-spacing の右余白ぶんを相殺して視覚中央に */
}

.hero-en {
  margin-top: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.45;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .hero-en { font-size: 0.58rem; letter-spacing: 0.22em; }
}

.scroll-cue {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scroll-cue span {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.4;
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(237,231,214,0.55), rgba(237,231,214,0));
}

/* ---------- 導入 ---------- */
.intro {
  text-align: center;
  padding: 150px 0 140px;
}
.intro h2 {
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  letter-spacing: 0.22em;
  margin-bottom: 40px;
}
.intro p { color: var(--ink-light); }
.intro-flow {
  margin-top: 48px;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.18em;
}
.intro-flow span { color: #b4ab93; margin: 0 0.4em; }

.intro-note {
  margin-top: 30px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--ink-light);
}

/* ---------- セクション共通 ---------- */
.product { padding: 140px 0; }

.sec-label {
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.sec-label::after {
  content: "";
  flex: 0 0 56px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}
.sec-num {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-right: 14px;
}

.product h2 {
  font-size: clamp(1.7rem, 4.4vw, 2.4rem);
  letter-spacing: 0.16em;
  font-weight: 400;
}

.product-lead {
  margin-top: 22px;
  font-size: 1rem;
  color: var(--ink-light);
  letter-spacing: 0.08em;
}

.cta-row {
  margin-top: 64px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 40px;
  border: 1px solid currentColor;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  transition: background 0.25s, color 0.25s;
}
.btn-blue { color: var(--blue); }
.btn-blue:hover { background: var(--blue); color: #fff; }
.btn-washi { color: var(--washi); background: rgba(237,231,214,0.08); }
.btn-washi:hover { background: var(--washi); color: var(--sumi); }
.btn-ghost { color: var(--washi); border-color: rgba(237,231,214,0.35); }
.btn-ghost:hover { border-color: var(--washi); }

/* ---------- 01 ストレスみまもり ---------- */
.product-mimamori { background: #fff; }
.product-mimamori h2 { color: var(--blue); }
.product-mimamori .sec-label { color: var(--blue); opacity: 0.75; }

.features {
  list-style: none;
  counter-reset: feat;
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 52px 64px;
}
.features li {
  counter-increment: feat;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 2;
}
.features li::before {
  content: counter(feat, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}
.features li strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

/* ---------- 橋渡し ---------- */
.bridge {
  background: linear-gradient(180deg, #fff 0, #fff 240px, var(--sumi) 560px);
  color: var(--washi);
  text-align: center;
  padding: 150px 0 150px;
}
.bridge .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bridge-setup {
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  color: var(--ink-light);
}
.bridge-line {
  writing-mode: vertical-rl;
  /* Safari は縦書きブロックの inline-size(=高さ) を親から解決できず
     数文字で複数列に折り返すため、内容量に固定し折り返しを禁止する */
  inline-size: max-content;
  block-size: max-content;
  white-space: nowrap;
  margin: 260px 0 0;
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  letter-spacing: 0.42em;
  line-height: 1;
}
.bridge-follow {
  margin-top: 72px;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  opacity: 0.6;
}

/* ---------- 02 一息（坐雲堂） ---------- */
.product-undo {
  background: var(--sumi);
  color: var(--washi);
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}
.product-undo .sec-label { color: var(--washi); opacity: 0.6; }

.undo-enso {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: min(460px, 62vw);
  opacity: 0.1;
  pointer-events: none;
}
.product-undo .container { position: relative; }

.undo-logos {
  display: flex;
  align-items: flex-end;
  gap: 44px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.undo-logos img:first-child { width: min(250px, 52vw); }
.undo-logos img:last-child { width: min(200px, 42vw); padding-bottom: 8px; opacity: 0.92; }

.undo-lead {
  margin-top: 48px;
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  letter-spacing: 0.24em;
}
.undo-copy {
  margin-top: 28px;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
.undo-en {
  margin-top: 24px;
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  opacity: 0.5;
}
.undo-en .sep { margin: 0 12px; font-style: normal; }

/* Xポストの静的カード（JSなし方針のため公式埋め込みは使わない） */
.undo-post {
  margin-top: 80px;
  max-width: 440px;
  border: 1px solid rgba(237, 231, 214, 0.22);
  border-radius: 2px;
  padding: 30px 34px 22px;
}
.undo-post blockquote {
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  line-height: 1.9;
  opacity: 0.85;
}
.undo-post blockquote p + p { margin-top: 14px; }
.undo-post img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 24px;
  border-radius: 2px;
}
.undo-post figcaption {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(237, 231, 214, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  opacity: 0.55;
}
.undo-post figcaption a {
  color: var(--washi);
  text-decoration: none;
  border-bottom: 1px solid rgba(237, 231, 214, 0.4);
  padding-bottom: 1px;
  white-space: nowrap;
}
.undo-post figcaption a:hover { border-bottom-color: var(--washi); }

/* ---------- 締め ---------- */
.cycle {
  text-align: center;
  padding: 150px 0;
}
.cycle h2 {
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  letter-spacing: 0.24em;
  margin-bottom: 40px;
}
.cycle p { color: var(--ink-light); }
.cycle p.cycle-close {
  margin-top: 44px;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: var(--ink);
  line-height: 2.4;
}

/* ---------- フッター ---------- */
.footer {
  background: var(--sumi-soft);
  color: var(--washi);
  padding: 88px 0 56px;
  text-align: center;
}
.footer-logo { width: min(240px, 56vw); opacity: 0.9; }

.footer-links {
  list-style: none;
  margin-top: 44px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 0;
}
.footer-links li { display: flex; align-items: center; }
.footer-links li + li::before {
  content: "·";
  margin: 0 20px;
  opacity: 0.3;
}
.footer-links a {
  color: var(--washi);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; }

.copyright {
  margin-top: 52px;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  opacity: 0.35;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 640px) {
  .product { padding: 96px 0; }
  .intro { padding: 110px 0 100px; }
  .cycle { padding: 110px 0; }
  .bridge { padding: 140px 0 110px; }
  .hero-tagline { letter-spacing: 0.2em; text-indent: 0.2em; }
  .features { grid-template-columns: 1fr; gap: 36px; margin-top: 56px; }
  .cta-row { margin-top: 48px; }
  .btn { width: 100%; text-align: center; }
  .undo-logos { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
