@charset "UTF-8";

/* =========================================================
  おもいでばこ LP + 特定商取引法ページ 共通CSS
  - LP本体：横幅750pxの画像コーディング
  - 特商法ページ：同じCSSを読み込み
========================================================= */

:root {
  --lp-max: 750px;
  --cta-width: 750px;
  --cta-gap: 0px;
  --floating-cta-height: clamp(88px, 25.2vw, 189px);
  --side-gap: 24px;

  --base: #fffaf3;
  --card: #ffffff;
  --text: #333333;
  --muted: #777777;
  --line: #eadfce;
  --accent: #6b5045;
  --accent-soft: #f1e4e4;
  --legal-max: 920px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  /*overflow-x: hidden;*/
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: #fff;
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: .75;
}

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

/* =========================================================
  LP本体
========================================================= */

.lp {
  width: 100%;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding-bottom: 0;
  background: #fff;
}

.slice {
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.slice img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* 画像の合間に入れる通常CTA */
.inline-cta-wrap {
  width: 100%;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 0;
  background: #fff;
}

.inline-cta {
  display: block;
  width: 100%;
  max-width: var(--cta-width);
  margin: 0 auto;
}

.inline-cta img {
  display: block;
  width: 100%;
  height: auto;
}

/* FV直下CTA：画像同士の流れを崩さないよう余白なしで設置 */
.inline-cta-wrap--fv {
  padding: 0;
  background: #fff;
}

/* 最後のCTA：フッターの下に通常配置します
   ※画像と重ならないよう、absoluteは使わず自然な流れで表示 */
.final-cta {
  width: 100%;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 0;
  /*background: transparent;*/
  background-color: #555;
  text-align: center;
  line-height: 0;
}

.final-cta__button {
  display: block;
  width: 100%;
  max-width: var(--cta-width);
  margin: 0 auto;
}

.final-cta__button img {
  display: block;
  width: 100%;
  height: auto;
}

/* 画面下固定CTA */
.floating-cta {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--cta-gap));
  z-index: 999;
  width: min(var(--cta-width), 100%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 16px, 0);
  transition: opacity .25s ease, transform .25s ease;
  will-change: transform, opacity;
}

.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}

.floating-cta img {
  display: block;
  width: 100%;
  height: auto;
}

/* CTAを少しだけブルっと動かす */
.js-shake.is-shaking {
  animation: cta-shake .55s ease-in-out both;
}

@keyframes cta-shake {

  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }

  15% {
    translate: -2px 0;
    rotate: -1deg;
  }

  30% {
    translate: 2px 0;
    rotate: 1deg;
  }

  45% {
    translate: -2px 0;
    rotate: -1deg;
  }

  60% {
    translate: 2px 0;
    rotate: 1deg;
  }

  75% {
    translate: -1px 0;
    rotate: 0deg;
  }
}

/* フッター：リンクは画像ではなくHTMLでクリックできるようにしています */
.lp-footer {
  width: 100%;
  min-height: auto;
  padding: 26px 16px 22px;
  background: #555555;
  color: #fff;
  text-align: center;
  font-size: 12px;
  letter-spacing: .04em;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copyright {
  margin: 35px auto 0 auto;
  color: rgba(255, 255, 255, .75);
}


/* 後半からさりげなく表示する「上へ戻る」ボタン */
.page-top {
  position: fixed;
  right: 14px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--floating-cta-height) + 14px);
  z-index: 998;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(80, 80, 80, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  color: #555;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.page-top.is-visible {
  opacity: .78;
  pointer-events: auto;
  transform: translateY(0);
}

.page-top:hover {
  opacity: 1;
}

@media (min-width: 768px) {
  .page-top {
    right: calc(50% - (var(--lp-max) / 2) + 14px);
  }
}

/* =========================================================
  特定商取引法に基づく表記ページ
========================================================= */

.legal-page {
  width: 100%;
  min-height: 100vh;
  padding: 48px 16px 64px;
  background: var(--base);
  line-height: 1.8;
  letter-spacing: .03em;
}

.legal-inner {
  max-width: var(--legal-max);
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 28px;
  text-align: center;
}

.legal-label {
  margin: 0 0 6px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: .12em;
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.45;
  font-weight: 700;
}

.legal-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(90, 65, 38, .08);
}

.legal-list {
  margin: 0;
}

.legal-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid var(--line);
}

.legal-item:last-child {
  border-bottom: none;
}

.legal-item dt,
.legal-item dd {
  margin: 0;
  padding: 20px 24px;
}

.legal-item dt {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.legal-item dd {
  background: #fff;
}

.note {
  color: var(--muted);
  font-size: .94em;
}

.back-link-wrap {
  margin-top: 32px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

/* =========================================================
  動きを減らす設定の方への配慮
========================================================= */

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

  a:hover {
    opacity: 1;
  }

  .floating-cta,
  .page-top {
    transition: none;
  }

  .js-shake.is-shaking {
    animation: none;
  }
}

/* =========================================================
  スマホ調整
========================================================= */

@media (max-width: 767px) {
  .legal-page {
    padding: 36px 14px 48px;
  }

  .legal-card {
    border-radius: 14px;
  }

  .legal-item {
    display: block;
  }

  .legal-item dt {
    padding: 14px 16px 8px;
  }

  .legal-item dd {
    padding: 0 16px 16px;
  }
}

/* =========================================================
  PC表示
========================================================= */

@media (min-width: 768px) {
  body {
    background: #f7f7f7;
  }

  .lp {
    box-shadow: 0 0 24px rgba(0, 0, 0, .06);
  }
}