/* お客様向けページの共通の見た目。スマホを基準に作る。 */
:root {
  --bg: #faf6f0;
  --card: #ffffff;
  --ink: #23201c;
  --sub: #6f675e;
  --line: #e7dfd4;
  --accent: #c2412d;      /* 鳥居の朱色 */
  --accent-ink: #ffffff;
  --soft: #f6e9e4;
  --ok: #1e7b45;
  --warn-bg: #fff6d8;
  --warn-line: #ecd68a;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f;
    --card: #221e18;
    --ink: #f1ece4;
    --sub: #b0a698;
    --line: #3a342b;
    --accent: #e8664f;
    --accent-ink: #1b0f0b;
    --soft: #3a231d;
    --ok: #62c98d;
    --warn-bg: #3a3214;
    --warn-line: #6b5c20;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP",
    "PingFang SC", "PingFang TC", "Microsoft YaHei", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
a { color: var(--accent); }
main { max-width: 640px; margin: 0 auto; padding: 0 16px 56px; }
header.top {
  max-width: 640px; margin: 0 auto; padding: 14px 16px 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { font-weight: 700; letter-spacing: .02em; font-size: 15px; color: var(--sub); }
.brand b { color: var(--accent); }
select.lang {
  font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
h1 { font-size: 26px; line-height: 1.3; margin: 14px 0 4px; }
h2 { font-size: 21px; margin: 6px 0 12px; }
h3 { font-size: 17px; margin: 22px 0 6px; color: var(--accent); }
p { margin: 8px 0; }
.sub { color: var(--sub); font-size: 15px; }
.roomtag {
  display: inline-block; background: var(--soft); color: var(--accent);
  border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: 15px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 14px 0;
}
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.tile {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start; justify-content: center;
  min-height: 92px; padding: 14px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: 16px; line-height: 1.35; text-align: left; cursor: pointer; font-family: inherit;
}
.tile .ico { font-size: 26px; line-height: 1; }
.tile.wide { grid-column: 1 / -1; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tile.wide small { font-weight: 400; opacity: .9; font-size: 14px; }
.back {
  display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 8px 0;
  background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer;
}
ul.items { padding-left: 1.2em; margin: 8px 0; }
ul.items li { margin: 6px 0; }
.notice {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px;
  padding: 12px 14px; margin: 12px 0; font-size: 15px;
}
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row .label { color: var(--sub); font-size: 14px; }
.row .value { font-weight: 700; font-size: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { min-height: 38px; padding: 6px 12px; font-size: 15px; }
.btn.block { display: flex; width: 100%; white-space: normal; text-align: center; }
.btn[disabled] { opacity: .45; cursor: default; }
/* 2行のボタン（大きい字＋小さい補足） */
.btn.two { flex-direction: column; gap: 0; line-height: 1.35; padding-top: 8px; padding-bottom: 8px; }
.btn.two small { font-weight: 400; font-size: 13px; opacity: .92; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; margin: 8px 0 16px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
label.field { display: block; margin: 14px 0; font-weight: 700; font-size: 15px; }
label.field input, label.field select {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; font-size: 17px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
/* 日付の欄：iPhone の Safari は、標準の見た目のままだと「幅100%」を守らず、右の枠からはみ出す。
   標準の見た目を外して、ほかの欄と同じ幅・同じ高さにそろえる（外すと空のとき低くなるので高さを決める）。 */
label.field input[type="date"] {
  -webkit-appearance: none; appearance: none;
  min-width: 0; max-width: 100%;
  min-height: calc(1.7em + 26px);
  text-align: left;
}
label.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.err { color: var(--accent); font-weight: 700; margin: 10px 0; }
.okmsg { color: var(--ok); font-weight: 700; }
label.check {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line);
  cursor: pointer;
}
label.check:first-of-type { border-top: 0; }
label.check input { width: 26px; height: 26px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
label.check small { display: block; color: var(--sub); font-size: 14px; line-height: 1.5; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; }
.thumb {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft);
  border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 28px;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .badge {
  position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .65); color: #fff;
  border-radius: 6px; font-size: 12px; padding: 1px 6px; line-height: 1.5;
}
.progress { margin: 10px 0; font-size: 14px; }
.progress .bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 4px; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
/* 送信中、画面の上に出しつづける帯 */
.sending {
  position: sticky; top: 0; z-index: 10; background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px 12px; font-size: 15px; line-height: 1.5; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.sending b { display: block; }
.sending span { font-size: 14px; }
.sending .bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .35); overflow: hidden; margin-top: 6px; }
.sending .bar i { display: block; height: 100%; width: 0; background: #fff; transition: width .3s; }
.viewer {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .92); z-index: 20; display: flex;
  flex-direction: column; align-items: center; justify-content: center; padding: 12px;
}
.viewer[hidden] { display: none; }
.viewer img, .viewer video { max-width: 100%; max-height: 74vh; border-radius: 8px; }
.viewer .bar { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.viewer .btn.ghost { color: #fff; border-color: #fff; }
/* 案内が長い言語・小さい画面でも、ボタンまで届くように、枠の中で上下に動かせるようにする */
.viewer .askcard { width: 100%; max-width: 420px; font-size: 18px; margin: 0; max-height: 92vh; overflow-y: auto; }
.viewer .askcard .btn.ghost { color: var(--accent); border-color: var(--accent); }
footer.foot { text-align: center; color: var(--sub); font-size: 13px; padding: 8px 16px 28px; }
[hidden] { display: none !important; }
