@charset "utf-8";

/* ===========================================================
   QRメッセージカード 受け取った方が見るページ 共通の見た目
   index.html / birthday.html / opening.html / farewell.html /
   thanks.html の5枚で同じこの1枚を読み込む。
   文字の大きさは --fs の1か所だけで決める。ほかは rem で書く。
   =========================================================== */

:root {
  /* 文字の大きさの倍率。既定は「大」= 1.25 */
  --fs: 1.25;

  /* ブランドの色（場面で上書きしないもの） */
  --brand-green: #1f6a4d;
  --brand-gold: #a1803d;
  --brand-ink: #1f2421;
  --brand-cream: #faf8f3;

  /* 場面で上書きする色。既定は入口のページの色 */
  --bg: #faf8f3;
  --sheet: #ffffff;
  --ink: #1f2421;
  --ink-soft: #55605a;
  --accent: #1f6a4d;
  --accent-deep: #17503a;
  --accent-pale: #eef3f0;
  --gold: #a1803d;
  --line: #e3e1d9;

  --sheet-max: 38rem;
  --hair: 0.0625rem;
}

/* html には背景を置かない。body の背景が画面の地として広がるので、
   場面の色のまま、引っぱってはみ出したときも同じ色になる。 */
html {
  font-size: calc(16px * var(--fs));
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 1.375rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
  word-break: normal;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

h1, h2, h3 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

p {
  margin: 0 0 0.9rem;
}

p:last-child {
  margin-bottom: 0;
}

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

a {
  color: var(--accent-deep);
}

/* ---------- 場面ごとの色（body の class で切り替える） ---------- */

body.scene-birthday {
  --bg: #fff6f8;
  --sheet: #fffdfe;
  --ink: #2b1d24;
  --ink-soft: #6b5560;
  --accent: #c2577a;
  --accent-deep: #9e3f60;
  --accent-pale: #f8e4ea;
  --line: #efdde3;
}

body.scene-opening {
  --bg: #f7f4ec;
  --sheet: #fffdf8;
  --ink: #1f2421;
  --ink-soft: #55605a;
  --accent: #1f6a4d;
  --accent-deep: #17503a;
  --accent-pale: #e9f0eb;
  --gold: #a1803d;
  --line: #e3e1d9;
}

body.scene-farewell {
  --bg: #f3f7fa;
  --sheet: #fdfeff;
  --ink: #1d2630;
  --ink-soft: #4f5d6b;
  --accent: #2f5d8a;
  --accent-deep: #24486b;
  --accent-pale: #e4edf5;
  --line: #d9e4ec;
}

body.scene-thanks {
  --bg: #fdf5f2;
  --sheet: #fffdfc;
  --ink: #2a1c19;
  --ink-soft: #6a534d;
  --accent: #b23a2e;
  --accent-deep: #8e2c22;
  --accent-pale: #f8e5e0;
  --line: #eed9d3;
}

/* ---------- 一番上の細い帯（固定しない） ---------- */

.demo-band {
  margin: 0;
  padding: 0.6rem 1rem;
  background-color: var(--accent-deep);
  color: #ffffff;
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0.08em;
}

/* ---------- 表紙 ---------- */

.cover {
  position: relative;
  background-color: var(--sheet);
}

/* 写真は表紙いっぱいに敷き、文字は写真の下側に流す。文字が多い・大きいときは表紙の高さが伸び、上にはみ出さない */
.cover-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 26rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
}

.cover-photo > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

/* 写真の下側を暗くして、重ねた文字が読めるようにする */
.cover-veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 35%;
  background-image: linear-gradient(to bottom, rgba(14, 12, 12, 0), rgba(14, 12, 12, 0.72) 55%, rgba(14, 12, 12, 0.86));
}

/* 下の余白は、右下の「イメージ」と文字が重ならない分を取る */
.cover-text {
  position: relative;
  z-index: 1;
  padding: 9rem 1.2rem 3.4rem;
  color: #ffffff;
  text-align: center;
}

.cover-to {
  margin: 0 0 0.5rem;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-size: 1.5rem;
  color: #ffffff;
  letter-spacing: 0.08em;
}

.cover-title {
  font-size: 2.6rem;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-shadow: 0 0.05rem 0.25rem rgba(0, 0, 0, 0.45);
}

.cover-meta {
  margin: 0.9rem 0 0;
  font-size: 1.125rem;
  color: #f4efe9;
}

.cover-meta > span {
  display: inline-block;
  margin: 0 0.5rem;
}

.cover-rule {
  display: block;
  width: 3.5rem;
  height: var(--hair);
  margin: 0.9rem auto;
  border: 0;
  background-color: rgba(255, 255, 255, 0.7);
}

/* 写真の右下に小さく重ねる「イメージ」 */
.img-note {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  margin: 0;
  padding: 0.15rem 0.5rem;
  background-color: rgba(31, 36, 33, 0.62);
  color: #ffffff;
  font-size: 1.125rem;
  line-height: 1.4;
  border-radius: 0.2rem;
}

.cover-photo > .img-note {
  z-index: 2;
}

/* 表紙の文のあとに置くひとこと（写真の外） */
.cover-note {
  max-width: var(--sheet-max);
  margin: 0 auto;
  padding: 1.2rem 1.2rem 1.4rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
  text-align: center;
}

/* ---------- 投稿 ---------- */

.sheet {
  max-width: var(--sheet-max);
  margin: 0 auto;
  padding: 0 1.1rem;
  background-color: var(--sheet);
}

.posts-head {
  margin: 2.2rem 0 0.4rem;
  font-size: 1.75rem;
  color: var(--accent-deep);
  text-align: center;
  letter-spacing: 0.1em;
}

.posts-head::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: var(--hair);
  margin: 0.7rem auto 0;
  background-color: var(--gold);
}

.posts-lead {
  margin: 0 0 1.6rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
  text-align: center;
}

.post {
  padding: 1.8rem 0;
  border-top: var(--hair) solid var(--line);
}

.post:first-of-type {
  border-top: 0;
}

.post-name {
  margin: 0 0 0.9rem;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.post-name::before {
  content: "―";
  margin-right: 0.4rem;
  color: var(--line);
}

.post-text > p {
  margin: 0 0 1rem;
}

.post-letter > p {
  text-align: left;
}

.post-sign {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.25rem;
  text-align: right;
}

/* 署名は、手紙の中に書いても article の直下に書いても同じ見た目にする */
.post-letter > .post-sign,
.post-text > .post-sign {
  margin: 1rem 0 0;
  text-align: right;
}

/* 写真（1枚でも数枚でも同じ作り） */
.shots {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
}

.shots > li {
  margin: 0 0 1.2rem;
}

.shots > li:last-child {
  margin-bottom: 0;
}

.shot-link {
  display: block;
  position: relative;
  background-color: var(--accent-pale);
  line-height: 0;
}

.shot-link > img {
  width: 100%;
}

.shots-two {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.35rem;
  margin-right: -0.35rem;
}

.shots-two > li {
  width: 50%;
  padding: 0 0.35rem;
  margin-bottom: 0.7rem;
}

.shot-cap {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

/* 動画 */
.movie {
  margin: 1.2rem 0 0;
}

.movie > video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 20rem;
  margin: 0 auto;
  background-color: #1f2421;
}

/* 「保存する」の文字リンク */
.save {
  margin: 0.5rem 0 0;
  font-size: 1.125rem;
}

.save > a {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.6rem 0.2rem;
  color: var(--accent-deep);
  line-height: 1.5;
}

/* 当店の花の写真を置く投稿 */
.post-flower .post-name {
  color: var(--accent-deep);
}

.post-flower .shot-link {
  max-width: 16rem;
  margin: 0 auto;
}

/* ---------- 下の案内 ---------- */

.foot {
  margin-top: 2.4rem;
  padding: 0 1.1rem calc(2rem + env(safe-area-inset-bottom));
  background-color: var(--bg);
}

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

.to-sender {
  padding: 1.8rem 0 0.4rem;
  border-top: 0.2rem solid var(--accent-pale);
  text-align: center;
}

.to-sender h2 {
  margin: 0 0 0.8rem;
  font-size: 1.75rem;
  color: var(--accent-deep);
}

.to-sender p {
  color: var(--ink-soft);
}

.btn {
  display: inline-block;
  min-height: 2.75rem;
  margin: 0.8rem 0 0;
  padding: 0.75rem 1.4rem;
  background-color: var(--accent-deep);
  color: #ffffff;
  font-size: 1.375rem;
  line-height: 1.6;
  text-decoration: none;
  border-radius: 0.25rem;
}

.shop {
  margin: 1.6rem 0 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
  text-align: center;
}

/* 文字の大きさの切替。JS が動くときだけ出す */
.fs-bar {
  display: none;
  margin: 1.4rem 0 0;
  padding: 1rem 0 0;
  border-top: var(--hair) solid var(--line);
  text-align: center;
}

body.js-on .fs-bar {
  display: block;
}

.fs-bar p {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.fs-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.fs-list > li {
  margin: 0.25rem;
}

.fs-btn {
  min-width: 4.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--sheet);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 1.5;
  border: var(--hair) solid var(--accent);
  border-radius: 0.25rem;
  cursor: pointer;
}

.fs-btn[aria-pressed="true"] {
  background-color: var(--accent-deep);
  color: #ffffff;
  border-color: var(--accent-deep);
}

/* ---------- 入口のページ（index.html） ---------- */

.lead {
  max-width: var(--sheet-max);
  margin: 0 auto;
  padding: 2rem 1.1rem 0;
  text-align: center;
}

.lead h1 {
  margin: 0 0 0.8rem;
  font-size: 2.6rem;
  color: var(--accent-deep);
  letter-spacing: 0.06em;
}

.lead p {
  color: var(--ink-soft);
}

.scene-list {
  list-style: none;
  max-width: var(--sheet-max);
  margin: 1.8rem auto 0;
  padding: 0 1.1rem;
}

.scene-list > li {
  margin: 0 0 1.6rem;
  border-bottom: var(--hair) solid var(--line);
  padding-bottom: 1.6rem;
}

.scene-list > li:last-child {
  border-bottom: 0;
}

.scene-link {
  display: block;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}

.scene-shot {
  display: block;
  position: relative;
  line-height: 0;
  background-color: var(--accent-pale);
}

.scene-shot > img {
  width: 100%;
}

.scene-name {
  display: block;
  margin: 0.9rem 0 0.3rem;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-size: 1.75rem;
  line-height: 1.5;
  color: var(--accent-deep);
  text-decoration: underline;
}

.scene-count {
  display: block;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

/* ---------- 写真の拡大（JS のおまけ） ---------- */

.zoom {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background-color: rgba(18, 16, 16, 0.94);
  border: 0;
  z-index: 50;
}

.zoom[hidden] {
  display: none;
}

.zoom-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0.8rem calc(1rem + env(safe-area-inset-bottom));
}

.zoom-inner > img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.zoom-close {
  position: absolute;
  right: 0.6rem;
  top: calc(0.6rem + env(safe-area-inset-top));
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  background-color: #ffffff;
  color: #1f2421;
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 1.5;
  border: 0;
  border-radius: 0.25rem;
  cursor: pointer;
  z-index: 51;
}

/* ---------- 画面が広いとき ---------- */

@media (min-width: 40em) {
  .cover-title {
    font-size: 3.2rem;
  }

  .cover-photo {
    min-height: 32rem;
  }

  .cover-text {
    padding: 12rem 2rem 3.4rem;
  }

  .shots-two > li {
    margin-bottom: 0.9rem;
  }
}

/* ---------- 動きを控える設定のとき ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
