@import url("/api/theme.php");
/* スマホ・PCのダークモード設定に関係なく、常に明るい配色で表示する */
:root {
  color-scheme: light;
  --bg: #f6f3ee; --fg: #2b2825; --muted: #77716a; --line: #e4ded5;
  --card: #ffffff; --accent: #b4532a; --accent-soft: #f6e6dc; --head: #f3efe9;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: "Yu Gothic UI", "Hiragino Sans", "Meiryo", system-ui, sans-serif;
  line-height: 1.85;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ヘッダー */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 20px 16px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.logo { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.6rem; font-weight: 700; color: var(--fg); letter-spacing: .06em; }
.logo:hover { text-decoration: none; }
.logo small { display: block; font-family: "Yu Gothic UI", "Hiragino Sans", sans-serif; font-size: .72rem; font-weight: 400; color: var(--muted); letter-spacing: .1em; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: .9rem; }
.nav a { color: var(--fg); white-space: nowrap; }
.nav a.current { color: var(--accent); font-weight: 600; }

/* レイアウト */
.layout {
  max-width: 1120px; margin: 0 auto; padding: 32px 16px 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px;
}
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }

/* アイキャッチ（記事ごとの色） */
.eyecatch {
  aspect-ratio: 16 / 6; max-width: 100%;
  display: flex; align-items: flex-end; padding: 20px 28px;
  background: linear-gradient(135deg, #2e3a46, #4b3a33);
}
.eyecatch span { color: #fff; font-size: .8rem; letter-spacing: .2em; opacity: .9; }
.ec-sites {
  background:
    radial-gradient(circle at 18% 30%, #e9a77d 0 18%, transparent 19%),
    radial-gradient(circle at 70% 65%, #6f8fae 0 22%, transparent 23%),
    radial-gradient(circle at 45% 80%, #e2c46a 0 12%, transparent 13%),
    linear-gradient(135deg, #2e3a46, #4b3a33);
}
.ec-1 { background: radial-gradient(circle at 75% 40%, #f0c987 0 20%, transparent 21%), linear-gradient(135deg, #5b3b52, #a2574a); }
.ec-2 { background: radial-gradient(circle at 30% 50%, #ffffff 0 16%, transparent 17%), radial-gradient(circle at 60% 60%, #f3f0ea 0 10%, transparent 11%), linear-gradient(135deg, #7d8c99, #3c4a57); }
.ec-3 { background: radial-gradient(circle at 80% 25%, #f7b267 0 14%, transparent 15%), linear-gradient(180deg, #f4845f 0%, #7a4f8a 60%, #2c3557 100%); }
.ec-4 { background: radial-gradient(circle at 35% 55%, #6b4a33 0 17%, transparent 18%), radial-gradient(circle at 65% 55%, #8a7a5c 0 17%, transparent 18%), linear-gradient(135deg, #c9b79c, #8f7b62); }
.ec-5 { background: radial-gradient(circle at 50% 45%, #f2d0b4 0 20%, transparent 21%), linear-gradient(135deg, #3f6c6b, #2b4747); }

/* トップの記事一覧 */
.list-title { font-size: 1.1rem; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.post-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; color: var(--fg); transition: transform .15s, box-shadow .15s;
}
.post-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.post-card .eyecatch { aspect-ratio: 16 / 9; padding: 14px 16px; }
.post-card .body { padding: 14px 18px 18px; }
.post-card h3 { font-size: 1.02rem; line-height: 1.55; margin: 6px 0 8px; }
.post-card p { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* 記事 */
.post { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.post-body { padding: 28px 32px 40px; }
@media (max-width: 560px) { .post-body { padding: 22px 18px 32px; } }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .85rem; color: var(--muted); }
.cat { background: var(--accent); color: #fff; padding: 1px 10px; border-radius: 3px; font-size: .78rem; }
.post h1 { font-size: 1.75rem; line-height: 1.45; margin: 10px 0 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tags span { font-size: .8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }
.notice { background: var(--accent-soft); border-radius: 6px; padding: 12px 16px; font-size: .9rem; margin: 20px 0; }
.post h2 {
  font-size: 1.3rem; margin: 44px 0 16px; padding: 10px 14px;
  background: var(--head); border-left: 5px solid var(--accent); border-radius: 0 6px 6px 0;
}
.post p { margin: 0 0 1.2em; }
.post blockquote {
  margin: 1.4em 0; padding: 12px 18px; border-left: 4px solid var(--line);
  color: var(--muted); font-style: normal; background: var(--head); border-radius: 0 6px 6px 0;
}
.post blockquote p { margin: 0; }
.post ul.points { padding-left: 1.3em; margin: 0 0 1.2em; }
.post ul.points li { margin: 4px 0; }
.toc { border: 1px solid var(--line); border-radius: 8px; padding: 14px 20px; margin: 24px 0 8px; background: var(--head); }
.toc p { margin: 0 0 4px; font-weight: 700; font-size: .9rem; }
.toc ol { margin: 0; padding-left: 1.3em; font-size: .92rem; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.pager a { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; font-size: .88rem; line-height: 1.6; }
.pager a small { display: block; color: var(--muted); font-size: .75rem; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

/* 画家サイト一覧記事用 */
.search input {
  width: 100%; padding: 10px 14px; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg);
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: var(--card); }
.card h3 { margin: 0 0 2px; font-size: 1.02rem; }
.card .genre { font-size: .78rem; color: var(--muted); }
.card p { margin: 8px 0 10px; font-size: .9rem; line-height: 1.7; }
.card a { font-size: .85rem; word-break: break-all; }
.card a::after { content: " ↗"; }
.tips { padding-left: 1.2em; }
.tips li { margin: 6px 0; }

/* サイドバー */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.widget h4 { margin: 0 0 12px; font-size: .95rem; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.profile { text-align: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 4px auto 10px; background: linear-gradient(135deg, #e9a77d, #6f8fae); }
.profile .name { font-weight: 700; margin: 0; }
.profile p { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.widget ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.widget li { padding: 7px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 8px; }
.widget li:last-child { border-bottom: none; }
.widget li .count { color: var(--muted); font-size: .8rem; }
.widget .date { display: block; font-size: .75rem; color: var(--muted); }
.recent li { display: block; line-height: 1.6; }

/* 授業予約ページ */
.page-single { max-width: 880px; margin: 0 auto; padding: 32px 16px 64px; }
.page-head h1 { font-size: 1.8rem; margin: 0 0 6px; }
.page-head p { color: var(--muted); margin: 0 0 24px; }
.page-head p.login-first { color: #1a5fd0; font-weight: 700; }.steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  flex: 1 1 140px; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; font-size: .88rem; counter-increment: step;
}
.steps li::before { content: "STEP " counter(step); display: block; font-size: .7rem; color: var(--accent); font-weight: 700; letter-spacing: .1em; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; margin-bottom: 24px; }
@media (max-width: 560px) { .panel { padding: 20px 16px; } }
.panel > h2 { font-size: 1.15rem; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.course { position: relative; display: block; cursor: pointer; }
.course input { position: absolute; opacity: 0; }
.course .box { display: block; height: 100%; border: 2px solid var(--line); border-radius: 8px; padding: 14px 16px; transition: border-color .15s, background .15s; }
.course input:checked + .box { border-color: var(--accent); background: var(--accent-soft); }
.course input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.course strong { display: block; font-size: 1rem; }
.course .level { font-size: .75rem; color: var(--muted); }
.course .desc { display: block; font-size: .85rem; margin: 6px 0; line-height: 1.6; }
.course .info { display: block; font-size: .82rem; color: var(--muted); }
/* スマホでは授業カードを横2列で並べる */
@media (max-width: 560px) {
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .course .box { padding: 10px 10px; border-radius: 8px; }
  .course strong { font-size: .95rem; }
  .course .desc { font-size: .78rem; line-height: 1.55; margin: 4px 0; }
  .course .info { font-size: .74rem; }
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .9rem; font-weight: 600; }
.req { color: #fff; background: var(--accent); font-size: .68rem; padding: 0 6px; border-radius: 3px; margin-left: 6px; font-weight: 400; vertical-align: 2px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field select, .field textarea {
  width: 100%; padding: 10px 12px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg);
}
.field textarea { min-height: 100px; resize: vertical; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: .9rem; cursor: pointer; }
.slot input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.slot input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint { font-size: .8rem; color: var(--muted); }
.error { font-size: .82rem; color: #c0392b; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: none; border-radius: 6px;
  padding: 12px 36px; font-size: 1rem; font-family: inherit; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.summary { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: .95rem; }
.summary th, .summary td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary th { width: 32%; color: var(--muted); font-weight: 600; background: var(--head); }
.faq dt { font-weight: 700; margin-top: 14px; }
.faq dt::before { content: "Q. "; color: var(--accent); }
.faq dd { margin: 4px 0 0; font-size: .92rem; }

/* 予約カレンダー */
:root { --orange: #ef8c2a; --orange-ink: #b45d0b; --orange-soft: #fdebd8; --sat: #2b78c2; --sun: #d64545; }
.sub-h { font-size: 1rem; margin: 0 0 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-title { font-size: 1.15rem; font-weight: 700; }
.cal-nav {
  border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 6px;
  padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer;
}
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-dow.sat, .cal-day.sat .num { color: var(--sat); }
.cal-dow.sun, .cal-day.sun .num { color: var(--sun); }
.cal-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 66px; padding: 6px 2px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--fg); font: inherit; cursor: pointer; transition: border-color .15s, background .15s;
}
.cal-day .num { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.cal-day .stat { font-size: .72rem; color: var(--orange-ink); font-weight: 600; line-height: 1.2; }
.cal-day:not(:disabled):hover { border-color: var(--orange); }
.cal-day:disabled { background: var(--head); cursor: default; }
.cal-day:disabled .num { opacity: .45; }
.cal-day:disabled .stat { color: var(--muted); font-weight: 400; }
.cal-day.selected { background: var(--orange); border-color: var(--orange); }
.cal-day.selected .num, .cal-day.selected .stat { color: #fff; }
.cal-day:focus-visible, .time-btn:focus-visible { outline: 2px solid var(--orange-ink); outline-offset: 2px; }
@media (max-width: 560px) {
  .cal-grid { gap: 3px; }
  .cal-day { min-height: 54px; border-radius: 6px; }
  .cal-day .num { font-size: .95rem; }
  .cal-day .stat { font-size: .62rem; }
}
.cal-status { font-size: .85rem; color: var(--muted); margin: 8px 0 0; min-height: 1.2em; }
.times-wrap { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); }
.times-head { font-weight: 700; margin: 0 0 12px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.time-btn {
  padding: 9px 0; border: 1.5px solid var(--orange); border-radius: 8px; background: var(--card);
  color: var(--orange-ink); font: inherit; font-weight: 700; cursor: pointer; transition: background .15s;
}
.time-btn:not(:disabled):hover { background: var(--orange-soft); }
.time-btn.selected { background: var(--orange); color: #fff; }
.time-btn.in-range { background: var(--orange-soft); border-style: dashed; }
.time-btn.booked { border-color: var(--line); background: var(--head); color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.time-note { font-size: .85rem; margin: 12px 0 0; min-height: 1.2em; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--muted); margin: 14px 0 0; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; border: 1.5px solid var(--orange); }
.legend .l-sel { background: var(--orange); }
.legend .l-range { background: var(--orange-soft); border-style: dashed; }
.legend .l-booked { background: var(--head); border-color: var(--line); }
.people-row { margin-top: 20px; max-width: 240px; }
.notice.ok { background: #e3f3e6; color: #1f5f2c; }
.notice.err { background: #fdecea; color: #b3261e; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* 無料登録ボタン（ヘッダー右上） */
.btn-signup {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: .92rem;
  padding: 9px 22px; border-radius: 999px; white-space: nowrap;
}
.btn-signup:hover { text-decoration: none; filter: brightness(1.08); }
.btn-signup.current { box-shadow: 0 0 0 3px var(--accent-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-login {
  display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-weight: 700; font-size: .92rem;
  padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; white-space: nowrap; background: var(--card);
}
.btn-login:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.btn-login.current { border-color: var(--accent); color: var(--accent); }
.btn-login svg { width: 16px; height: 16px; }

/* 無料登録ページ */
.auth-card { max-width: 540px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 32px 32px 36px; }
@media (max-width: 560px) { .auth-card { padding: 24px 18px 28px; } }
.auth-card h1 { font-size: 1.6rem; margin: 0 0 6px; }
.auth-card .lead { color: var(--muted); margin: 0 0 24px; font-size: .95rem; }
.auth-card .field { margin-bottom: 18px; }
.auth-card .field label { font-weight: 600; }
.auth-card .field input {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg);
}
.auth-card .field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.auth-card .agree { display: flex; align-items: center; gap: 10px; font-size: .95rem; margin: 6px 0 4px; }
.auth-card .agree input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
/* パスワード表示切り替え（目のボタン） */
.pw-wrap { position: relative; }
.auth-card .pw-wrap input { padding-right: 48px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--muted); border-radius: 6px; cursor: pointer;
}
.pw-toggle:hover { color: var(--accent); background: var(--head); }
.pw-toggle:focus-visible { outline: 2px solid var(--accent); }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle svg[hidden] { display: none; }
.req-star { color: var(--sun, #d64545); margin-left: 2px; }
.auth-card .btn { width: 100%; margin-top: 18px; padding: 14px; font-weight: 700; }
.auth-card .switch { text-align: center; font-size: .88rem; color: var(--muted); margin: 18px 0 0; }

/* ギャラリー（3D展示空間） */
.gallery-page { max-width: 1120px; margin: 0 auto; padding: 28px 16px 64px; }
.g3d {
  position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 420px; max-height: 78vh;
  border-radius: 12px; overflow: hidden; background: #e7e0d5; outline: none;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.g3d:focus-visible { box-shadow: inset 0 0 0 2px rgba(214, 196, 168, .8); }   /* 選んだときの枠：目立たない生成り色 */
.g3d canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.g3d canvas.dragging { cursor: grabbing; }
.g3d canvas.pointing { cursor: pointer; }
.g3d-help {
  position: absolute; left: 12px; top: 12px; max-width: calc(100% - 270px);
  background: rgba(30,26,22,.72); color: #fff; font-size: .8rem; line-height: 1.7;
  padding: 8px 12px; border-radius: 8px; pointer-events: none;
}
.g3d-help .touch { display: none; }
.g3d-help { transition: opacity .6s; }
/* スマホで3Dの表示が止まったときのお知らせ（自動で立て直す。だめなら読み込み直すボタン） */
.g3d-recover { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(30, 26, 22, .55); color: #fff; font-weight: 700; text-align: center; padding: 20px; }
.g3d-recover[hidden] { display: none; }
.g3d-recover p { margin: 0; }
.g3d-recover button { border: 0; border-radius: 999px; padding: 10px 20px; background: #fff; color: #2b2825; font: inherit; font-weight: 700; cursor: pointer; }
.g3d-help.g3d-fade { opacity: 0; }   /* 4秒たったら、ふっと消える */
.g3d-tip { font-size: .9rem; font-weight: 700; }
.g3d-tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
.g3d-btn {
  border: none; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.9); color: #2b2825; font: inherit; font-size: .8rem; font-weight: 700; padding: 7px 12px;
}
.g3d-pad {
  position: absolute; right: 12px; bottom: 12px; display: grid; gap: 6px;
  grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(2, 46px);
}
.g3d-pad button {
  border: 1px solid rgba(0,0,0,.15); border-radius: 10px; background: rgba(255,255,255,.88);
  color: #2b2825; font-size: 1.1rem; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
}
.g3d-pad button:active { background: var(--orange-soft); }
.g3d-pad .up { grid-column: 2; grid-row: 1; }
.g3d-pad .left { grid-column: 1; grid-row: 2; }
.g3d-pad .down { grid-column: 2; grid-row: 2; }
.g3d-pad .right { grid-column: 3; grid-row: 2; }
.g3d-info {
  position: absolute; left: 12px; bottom: 12px; width: min(360px, calc(100% - 200px));
  background: rgba(255,255,255,.96); color: #2b2825; border-radius: 10px; padding: 14px 16px 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.g3d-info h3 { margin: 0 0 2px; font-size: 1.1rem; }
.g3d-info .meta { margin: 0 0 8px; font-size: .8rem; color: #77716a; }
.g3d-info .desc { margin: 0; font-size: .9rem; line-height: 1.7; }
.g3d-info .close {
  position: absolute; right: 8px; top: 6px; border: none; background: none; font-size: 1.3rem;
  line-height: 1; color: #77716a; cursor: pointer; padding: 4px 8px;
}
[hidden] { display: none !important; }
.g3d-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; background: #ece6dc; color: #2b2825;
}
@media (hover: none) and (pointer: coarse) {
  .g3d-help .mouse { display: none; }
  .g3d-help .touch { display: inline; }
}
@media (max-width: 640px) {
  .g3d { aspect-ratio: auto; height: 62vh; min-height: 360px; max-height: none; }
  .g3d-info { width: calc(100% - 24px); top: 12px; bottom: auto; }
  .g3d.info-open .g3d-help, .g3d.info-open .g3d-tools { display: none; }
  .g3d-help { top: 56px; max-width: calc(100% - 24px); }
  .g3d-pad { grid-template-columns: repeat(3, 42px); grid-template-rows: repeat(2, 42px); }
}

/* 現在の展示（ポスター＋展示名） */
.exhibit {
  display: flex; gap: 24px; align-items: center; margin: 0 0 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px;
}
.exhibit[hidden] { display: none; }
.exhibit-poster { flex: 0 0 160px; display: block; }
.exhibit-poster[hidden] { display: none; }
.exhibit-poster img {
  display: block; width: 100%; aspect-ratio: 600 / 848; object-fit: cover;
  border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .2s;
}
.exhibit-poster:hover img { transform: translateY(-3px); }
.exhibit-text h2 { margin: 0 0 8px; font-size: 1.45rem; line-height: 1.4; }
.exhibit-label { color: var(--accent); }
.exhibit-period { margin: 0 0 6px; font-size: .9rem; font-weight: 600; }
.exhibit-desc { margin: 0 0 8px; }
.exhibit-hint { margin: 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) {
  .exhibit { gap: 14px; padding: 14px; align-items: flex-start; }
  .exhibit-poster { flex-basis: 96px; }
  .exhibit-text h2 { font-size: 1.1rem; }
  .exhibit-label { display: block; font-size: .85rem; }
  .exhibit-desc { font-size: .88rem; }
}

.works-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 40px 0 16px; }
.works-head h2 { font-size: 1.25rem; margin: 0; }
.works-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.work { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.work .thumb { aspect-ratio: 4 / 3; background: #efe9df; display: flex; align-items: center; justify-content: center; padding: 12px; }
.work .thumb img { max-height: 100%; max-width: 100%; box-shadow: 0 3px 10px rgba(0,0,0,.2); border: 4px solid #3b2a1e; }
.work .body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.work h3 { margin: 0; font-size: .98rem; }
.work .meta { font-size: .78rem; color: var(--muted); }
.work button {
  margin-top: auto; align-self: flex-start; border: 1.5px solid var(--accent); color: var(--accent); background: var(--card);
  border-radius: 999px; padding: 4px 14px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer;
}
.work button:hover { background: var(--accent-soft); }

/* 受講履歴ページ */
.mypage { max-width: 920px; margin: 0 auto; padding: 28px 16px 64px; }
.mp-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 24px; overflow: hidden; }
.mp-card > h2 { font-size: 1.1rem; margin: 0; padding: 16px 22px 12px; border-bottom: 2px solid var(--accent); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mp-card > h2 small { font-size: .75rem; color: var(--muted); font-weight: 400; }
.mp-inner { padding: 18px 22px 22px; }
@media (max-width: 560px) { .mp-card > h2 { padding: 14px 16px 10px; } .mp-inner { padding: 14px 16px 18px; } }

.profile-cover {
  position: relative; aspect-ratio: 3 / 1; min-height: 150px; max-width: 100%;
  background: linear-gradient(120deg, #f6c89f, #ef8c2a 45%, #b4532a); background-size: cover; background-position: center;
}
.cover-btn, .avatar-btn-small {
  position: absolute; display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; font: inherit; font-size: .8rem; font-weight: 700; padding: 7px 12px; border-radius: 999px;
}
.cover-btn { right: 12px; top: 12px; }
.cover-btn:hover { background: rgba(0,0,0,.7); }
.cover-btn svg { width: 16px; height: 16px; }
.profile-main { display: flex; align-items: flex-end; gap: 18px; padding: 0 22px 20px; margin-top: -56px; position: relative; flex-wrap: wrap; }
.avatar-wrap { position: relative; width: 124px; height: 124px; flex-shrink: 0; }
.avatar-btn {
  width: 100%; height: 100%; border-radius: 50%; border: 4px solid #fff; padding: 0; cursor: pointer; overflow: hidden;
  background: #ece7e0; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: inherit; font-size: .75rem; box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-btn svg { width: 30px; height: 30px; }
.avatar-btn:focus-visible, .cover-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.avatar-badge {
  position: absolute; right: 2px; bottom: 6px; width: 32px; height: 32px; border-radius: 50%; pointer-events: none;
  background: var(--orange); color: #fff; border: 3px solid #fff; display: flex; align-items: center; justify-content: center;
}
.avatar-badge svg { width: 15px; height: 15px; }
.profile-name { padding-bottom: 6px; min-width: 0; }
.profile-name .nick { font-size: 1.5rem; font-weight: 700; margin: 0; line-height: 1.3; word-break: break-all; }
.profile-name .sub { font-size: .82rem; color: var(--muted); margin: 2px 0 0; }
.profile-actions { display: flex; gap: 14px; flex-wrap: wrap; padding: 0 22px 16px; font-size: .8rem; }
.profile-actions button { border: none; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.profile-note { padding: 0 22px 18px; font-size: .78rem; color: var(--muted); margin: 0; }
.profile-msg { padding: 0 22px 12px; margin: 0; font-size: .82rem; color: #c0392b; }
@media (max-width: 560px) {
  .profile-main { padding: 0 16px 16px; margin-top: -46px; gap: 12px; }
  .avatar-wrap { width: 100px; height: 100px; }
  .profile-name .nick { font-size: 1.25rem; }
  .profile-actions, .profile-note, .profile-msg { padding-left: 16px; padding-right: 16px; }
  .cover-btn { font-size: .72rem; padding: 6px 10px; }
}

.next-lesson { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.next-date {
  background: var(--orange); color: #fff; border-radius: 12px; padding: 12px 18px; text-align: center; min-width: 120px;
}
.next-date .md { display: block; font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.next-date .wd { display: block; font-size: .85rem; }
.next-info { flex: 1; min-width: 200px; }
.next-info .time { font-size: 1.2rem; font-weight: 700; margin: 0; }
.next-info .course { font-size: 1.05rem; margin: 2px 0 0; }
.next-info .more { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.next-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.small { padding: 8px 20px; font-size: .9rem; }
a.btn:hover { text-decoration: none; }
.next-new { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.next-new .btn { font-weight: 700; }
@media (max-width: 560px) { .next-new .btn { display: block; text-align: center; } }
.sample-tag { display: inline-block; font-size: .7rem; background: var(--head); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; margin-left: 6px; vertical-align: 2px; font-weight: 400; }
.empty { color: var(--muted); margin: 0 0 12px; }

.hist-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hist-table th, .hist-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.hist-table th { background: var(--head); color: var(--muted); font-size: .8rem; font-weight: 600; }
.hist-table tr:last-child td { border-bottom: none; }
.hist-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hist-table th.num { text-align: right; }
.status { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: #e3f3e6; color: #1f5f2c; white-space: nowrap; }
.status.free { background: var(--head); color: var(--muted); }
.hist-total { text-align: right; margin: 12px 0 0; font-size: .9rem; }
@media (max-width: 560px) {
  .hist-table thead { display: none; }
  .hist-table, .hist-table tbody, .hist-table tr, .hist-table td { display: block; width: 100%; }
  .hist-table tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; padding: 6px 4px; }
  .hist-table tr:last-child td { border-bottom: none; }
  .hist-table td { border-bottom: none; padding: 4px 10px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .hist-table td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; text-align: left; flex-shrink: 0; }
  .hist-table td.num { text-align: right; }
}

/* チャット（メニューのアイコンと、LINE風のチャット画面） */
.nav .chat-btn {
  display: inline-flex; align-items: center; justify-content: center; align-self: center;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--orange); color: #fff; padding: 0; transition: transform .15s, filter .15s;
}
.nav .chat-btn:hover { transform: scale(1.08); filter: brightness(1.05); }
.nav .chat-btn:focus-visible { outline: 2px solid var(--orange-ink); outline-offset: 2px; }
.nav .chat-btn svg { width: 19px; height: 19px; }

.chat-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000;
  width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; background: #fff; box-shadow: 0 14px 44px rgba(0,0,0,.28);
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--orange); color: #fff; }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; background: #fff; color: var(--orange-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.chat-avatar.small { width: 30px; height: 30px; font-size: .8rem; align-self: flex-start; background: var(--orange-soft); }
.chat-head-text { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.chat-head-text strong { font-size: 1rem; }
.chat-head-text span { font-size: .74rem; opacity: .92; }
.chat-close { border: none; background: none; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 2px 8px; border-radius: 8px; }
.chat-close:hover { background: rgba(255,255,255,.18); }
.chat-body {
  flex: 1; overflow-y: auto; padding: 14px 12px; background: #fff; color: #000;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-date { align-self: center; background: #eeeeee; color: #000; font-size: .72rem; padding: 2px 12px; border-radius: 999px; }
.chat-sys { align-self: center; max-width: 92%; text-align: center; font-size: .72rem; line-height: 1.5; color: #000; background: #f4f4f4; padding: 5px 10px; border-radius: 8px; }
.chat-row { display: flex; align-items: flex-end; gap: 6px; }
.chat-row.out { flex-direction: row-reverse; }
.chat-bubble {
  max-width: 72%; padding: 8px 12px; border-radius: 18px; font-size: .92rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word; color: #000;
}
.chat-row.in .chat-bubble { background: #eeeeee; border-top-left-radius: 6px; }
.chat-row.out .chat-bubble { background: #ffbe7d; border-top-right-radius: 6px; }
.chat-bubble.media { padding: 0; background: none !important; border-radius: 14px; overflow: hidden; max-width: 70%; }
.chat-bubble.media img, .chat-bubble.media video { display: block; max-width: 100%; max-height: 260px; border-radius: 14px; background: #000; }
.chat-bubble.media img { background: none; }
.chat-time { font-size: .65rem; color: #000; flex-shrink: 0; }
.chat-form { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px; background: #fff; border-top: 1px solid #f1dcc5; }
.chat-attach, .chat-send {
  width: 38px; height: 38px; flex-shrink: 0; border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.chat-attach { background: none; color: var(--orange-ink); }
.chat-attach:hover { background: #fdeee0; }
.chat-attach svg { width: 24px; height: 24px; }
.chat-send { background: var(--orange); color: #fff; }
.chat-send svg { width: 19px; height: 19px; }
.chat-send:disabled { opacity: .4; cursor: default; }
.chat-form textarea {
  flex: 1; min-width: 0; resize: none; max-height: 120px; padding: 8px 14px; line-height: 1.4;
  border: 1px solid #dddddd; border-radius: 19px; background: #fff; color: #000; font: inherit; font-size: 1rem;
}
.chat-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; }
@media (max-width: 560px) {
  .chat-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; }
  .chat-head { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .chat-form { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  body.chat-open { overflow: hidden; }
}

.site-footer { border-top: 1px solid var(--line); background: var(--card); text-align: center; padding: 24px 16px; font-size: .8rem; color: var(--muted); }

/* ===== マイページ（会員ログイン後） ===== */
.header-actions .logout-form { margin: 0; display: inline-flex; }
.btn-logout {
  border: 1px solid var(--line, #e6e0d7); background: #fff; color: #77716a; border-radius: 999px;
  padding: 7px 14px; font: inherit; font-size: .85rem; cursor: pointer; white-space: nowrap;
}
.btn-logout:hover { color: #b3261e; border-color: #e8b4ae; }
.mp-card h2 small { font-size: .8rem; font-weight: 600; color: #77716a; margin-left: 6px; }
.mp-empty { color: #77716a; margin: 4px 0 8px; }
.mp-lead { color: #77716a; font-size: .9rem; margin: 0 0 12px; }
.next-list { margin: 10px 0 0; padding: 10px 14px; background: #faf7f2; border-radius: 8px; list-style: none; font-size: .92rem; }
.next-list li + li { margin-top: 4px; }
.next-new .btn { display: inline-block; }
.page-head p.login-first.logged-in { color: #2f7a4b; }
.page-head p.login-first a { font-weight: 700; margin-left: 4px; }

.crit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.crit-item { margin: 0; background: #faf7f2; border-radius: 10px; overflow: hidden; border: 1px solid #ece6dc; }
.crit-open { display: block; width: 100%; padding: 0; border: none; background: #fff; cursor: zoom-in; }
.crit-open img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
.crit-open:hover img { transform: scale(1.03); }
.crit-item figcaption { padding: 8px 10px 10px; display: grid; gap: 2px; font-size: .85rem; }
.crit-item figcaption span { color: #77716a; font-size: .78rem; }
.crit-dialog {
  border: none; border-radius: 14px; padding: 0; width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  overflow: auto; background: #fff; color: #2b2825; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.crit-dialog::backdrop { background: rgba(20,16,12,.7); }
.crit-dialog img { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #1e1a16; }
.crit-d-text { padding: 14px 18px 18px; }
.crit-d-text h3 { margin: 0 0 2px; font-size: 1.1rem; }
.crit-d-text .date { margin: 0 0 8px; color: #77716a; font-size: .85rem; }
.crit-d-text .comment { margin: 0; white-space: pre-wrap; line-height: 1.8; }
.crit-close {
  position: sticky; top: 8px; float: right; margin: 8px 8px -44px 0; z-index: 1; width: 36px; height: 36px;
  border: none; border-radius: 50%; background: rgba(255,255,255,.92); font-size: 1.3rem; cursor: pointer; line-height: 1;
}
@media (max-width: 560px) {
  .crit-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .btn-logout { padding: 6px 10px; font-size: .78rem; }
}
/* 次回の予約：見出しの横の「授業日時を変更」ボタン */
.mp-head-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 22px 10px; border-bottom: 2px solid var(--accent);
}
.mp-head-row h2 { font-size: 1.1rem; margin: 0; }
.change-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; font-weight: 700; }
.change-btn svg { width: 17px; height: 17px; }
.next-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.change-link { font-size: .85rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) { .mp-head-row { padding: 10px 16px 8px; } .change-btn { padding: 7px 12px; font-size: .85rem; } }

/* 予約ページ：日時変更中の案内 */
.change-box { background: #fff7ee; border: 2px solid var(--orange, #ef8c2a); border-radius: 10px; padding: 14px 18px; margin: 0 0 20px; }
.change-box p { margin: 0 0 4px; }
.change-box .change-ttl { font-weight: 700; color: #b45d0b; font-size: 1.05rem; margin-bottom: 6px; }
.change-box .change-sub { color: #77716a; font-size: .88rem; }
.change-box .change-cancel { display: inline-block; margin-top: 8px; font-size: .88rem; }
/* 予約ページ：授業のキャンセル */
.cancel-area { border: 1px solid #f1d2ce; }
.cancel-lead { color: #77716a; margin: 0 0 12px; }
.btn-cancel {
  background: #fff; color: #b3261e; border: 1px solid #e8b4ae; border-radius: 6px; padding: 10px 22px;
  font: inherit; font-weight: 700; cursor: pointer;
}
.btn-cancel:hover { background: #fdecea; }
.cancel-step { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.cancel-step h3 { font-size: 1rem; margin: 0 0 12px; }
.policy-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fbf7f0; }
.policy-table th, .policy-table td { border: 1px solid #ece3d6; padding: 12px 14px; vertical-align: top; text-align: left; line-height: 1.7; }
.policy-table th { font-weight: 400; width: 52%; }
.policy-table tr.last th { color: #2a8fa0; font-weight: 700; }
.policy-table tr.now th, .policy-table tr.now td { background: #fff1dc; box-shadow: inset 0 0 0 2px var(--orange, #ef8c2a); }
.policy-note { color: #2a8fa0; font-weight: 700; font-size: .88rem; line-height: 1.8; margin: 12px 0; }
.cancel-step .agree { display: flex; gap: 8px; align-items: center; margin: 8px 0 4px; font-weight: 700; }
.fee-box { background: #fff7ee; border: 2px solid var(--orange, #ef8c2a); border-radius: 10px; padding: 14px 18px; margin: 4px 0 8px; }
.fee-box p { margin: 0 0 4px; }
.fee-main { font-size: 1.05rem; }
.fee-main strong { font-size: 1.5rem; color: #b3261e; margin: 0 2px; }
.fee-main.free strong { color: #2f7a4b; }
.btn.btn-danger-fill { background: #b3261e; }
.btn.btn-danger-fill:hover { background: #8f1d17; }
@media (max-width: 560px) {
  .policy-table th, .policy-table td { display: block; width: auto; }
  .policy-table td { border-top: none; padding-top: 0; }
}
/* 授業予約：月額プラン */
.course .price { display: block; font-size: .88rem; font-weight: 700; color: #1a5fd0; margin: 6px 0 2px; line-height: 1.6; }
.course .price s { color: #8a847c; font-weight: 400; font-size: .82rem; margin-left: 4px; text-decoration-thickness: 1.5px; }
.course.monthly .box { border-color: #cfdcf3; }
.course.monthly input:checked + .box { border-color: #1a5fd0; background: #eef4ff; }
.mix-note { margin: 12px 0 6px; padding: 12px 16px; border: 2px dashed #cfdcf3; border-radius: 8px; background: #f7faff; }
.mix-note strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.mix-note p { margin: 0; color: #1a5fd0; font-size: .88rem; line-height: 1.7; font-weight: 600; }
.panel .sub-h + .courses { margin-top: 8px; }
@media (max-width: 560px) {
  .course .price { font-size: .76rem; }
  .course .price s { display: block; margin-left: 0; font-size: .72rem; }
  .mix-note { padding: 10px 12px; }
  .mix-note p { font-size: .8rem; }
}
.course .price { color: var(--ink, #2b2825); }
.course .price .yen { color: #1a5fd0; }
/* 値段は説明の下 */
.course .desc { margin: 6px 0 4px; }
.course .desc + .price { margin: 2px 0 0; }
/* 単発の授業の値段は黒字 */
.course:not(.monthly) .price .yen { color: var(--ink, #2b2825); }

/* 月額プランは値段をタイトルの下に */
.course.monthly .price { margin: 6px 0 2px; }
.course.monthly .price + .desc { margin: 6px 0 0; }

/* 無料体験授業は単発の授業の最後（左下） */
.course.trial { grid-column: 1; }

/* 月額ミックス：白い背景・説明は黒の普通の文字 */
.mix-note { background: #fff; }
.mix-note p { color: var(--ink, #2b2825); font-weight: 400; }

/* 単発の授業の値段は緑 */
.course:not(.monthly) .price .yen { color: #2f7a4b; }

/* 無料体験授業の「無料」はマゼンタ */
.course.trial .price .yen { color: #d6247f; }

/* 月額デッサン・水彩・油彩ミックス */
.mix-wrap { margin-top: 12px; grid-template-columns: 1fr !important; }
.course.mix .box { border-style: dashed; background: #fff; }
.course.mix .desc { color: var(--ink, #2b2825); font-weight: 400; line-height: 1.8; }
.mix-picker { margin: 10px 0 4px; padding: 16px 18px; border: 2px solid #1a5fd0; border-radius: 10px; background: #f5f8ff; }
.mix-ttl { margin: 0 0 12px; font-weight: 700; color: #1a5fd0; }
.mix-rows { display: grid; gap: 10px; }
.mix-row { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 10px; }
.mix-row .n { font-weight: 700; font-size: .92rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 46px;
  border: 2px solid #cfdcf3; border-radius: 8px; background: #fff; font-weight: 700; font-size: .92rem; line-height: 1.3;
  transition: border-color .15s, background .15s;
}
.seg span small { font-size: .72rem; font-weight: 400; color: #77716a; }
.seg input:checked + span { border-color: #1a5fd0; background: #1a5fd0; color: #fff; }
.seg input:checked + span small { color: #dbe6ff; }
.seg input:focus-visible + span { outline: 2px solid #1a5fd0; outline-offset: 2px; }
.mix-total { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed #cfdcf3; font-size: .95rem; }
.mix-total strong { font-size: 1.25rem; color: #1a5fd0; margin: 0 2px; }
.mix-total span { color: #77716a; font-size: .85rem; margin-left: 4px; }
.mix-total .left { display: block; margin: 4px 0 0; color: #b45d0b; }
@media (max-width: 560px) {
  .mix-picker { padding: 12px; }
  .mix-row { grid-template-columns: 1fr; gap: 4px; }
  .seg span { min-height: 42px; font-size: .85rem; }
}
/* 月額ミックス：毎回の授業選択と、今の組の状況 */
.mix-picker > .seg { max-width: 520px; }
.mix-status { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #cfdcf3; }
.mix-no { margin: 0 0 8px; font-size: .95rem; }
.mix-no strong { color: #1a5fd0; font-size: 1.1rem; }
.mix-no span { color: #77716a; font-size: .82rem; margin-left: 4px; }
.mix-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mix-list li { border: 1px solid #cfdcf3; border-radius: 8px; padding: 8px 10px; background: #fff; display: grid; gap: 2px; font-size: .85rem; }
.mix-list .n { font-weight: 700; font-size: .78rem; color: #77716a; }
.mix-list .s { font-weight: 700; }
.mix-list .d { font-size: .74rem; color: #77716a; }
.mix-list li.cur { border: 2px solid #1a5fd0; background: #eef4ff; }
.mix-list li.cur .d { color: #1a5fd0; font-weight: 700; }
.mix-list li.todo { background: transparent; border-style: dashed; color: #9a948c; }
.mix-sum { margin: 0; font-size: .95rem; }
.mix-sum strong { font-size: 1.2rem; color: #1a5fd0; margin: 0 2px; }
.mix-sum span { display: block; color: #77716a; font-size: .8rem; margin-top: 2px; }
@media (max-width: 560px) { .mix-list { grid-template-columns: 1fr 1fr; } }
/* 月額ミックス：選び方（4回分を今選ぶ／毎回選ぶ） */
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-cards label { position: relative; cursor: pointer; }
.mode-cards input { position: absolute; opacity: 0; }
.mode-cards span { display: block; height: 100%; border: 2px solid #cfdcf3; border-radius: 10px; background: #fff; padding: 12px 14px; }
.mode-cards strong { display: block; font-size: .98rem; margin-bottom: 4px; }
.mode-cards small { display: block; color: #77716a; font-size: .8rem; line-height: 1.6; }
.mode-cards input:checked + span { border-color: #1a5fd0; background: #eef4ff; box-shadow: inset 0 0 0 1px #1a5fd0; }
.mode-cards input:checked + span strong { color: #1a5fd0; }
.mode-cards input:focus-visible + span { outline: 2px solid #1a5fd0; outline-offset: 2px; }
#mix-modes + #mix-plan, #mix-modes + #mix-plan + #mix-each { margin-top: 16px; }
#mix-plan, #mix-each { margin-top: 16px; }
#mix-modes[hidden] + #mix-plan, #mix-modes[hidden] ~ #mix-each { margin-top: 0; }
.mix-list li.plan { background: #fff; border-style: dashed; }
.mix-list li.plan .d { color: #1a5fd0; }
@media (max-width: 560px) { .mode-cards { grid-template-columns: 1fr; } }
.mix-status.solo { border-top: none; margin-top: 0; padding-top: 0; }

/* 値段は途中で改行しない */
.course .price .yen { white-space: nowrap; }

.course .price .limit { font-size: .78em; font-weight: 700; letter-spacing: -.02em; }

/* 日時を選ぶ欄：月額プランの何回目か */
.month-no { margin: 0 0 16px; padding: 12px 16px; border: 2px solid #1a5fd0; border-radius: 10px; background: #f5f8ff; }
.month-no p { margin: 0; }
.month-no .mn-main { font-weight: 700; font-size: 1rem; }
.month-no .mn-main strong { color: #1a5fd0; font-size: 1.2rem; margin: 0 2px; }
.month-no .mn-sub { color: #77716a; font-size: .85rem; margin-top: 2px; }
.month-no .mn-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.month-no .mn-list li { background: #fff; border: 1px solid #cfdcf3; border-radius: 99px; padding: 4px 12px; font-size: .82rem; }
.month-no .mn-list .n { font-weight: 700; margin-right: 6px; color: #77716a; }
.month-no .mn-list li.cur { border: 2px solid #1a5fd0; color: #1a5fd0; font-weight: 700; }
.month-no .mn-list li.cur .n { color: #1a5fd0; }
/* チャット：送信中・送れなかったメッセージ */
.chat-row.sending .chat-bubble { opacity: .55; }
.chat-row.failed .chat-bubble { outline: 2px solid #e8b4ae; }
.chat-sys a { color: #b45d0b; font-weight: 700; }
.chat-form textarea:disabled { background: #f4f1ec; }
/* チャット：先生のアイコンの写真 */
.chat-avatar.has-photo { overflow: hidden; padding: 0; background: #fff; }
.chat-avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* 添削ギャラリー：日付ごと */
.crit-day { margin: 18px 0 10px; font-size: .98rem; padding-left: 10px; border-left: 4px solid var(--orange, #ef8c2a); }
.crit-day:first-of-type { margin-top: 4px; }

/* ===== スマホアプリから開いたときの会員サイト（右上の「≡」） ===== */
html.in-app .site-header .nav,
html.in-app .site-header .header-actions { display: none !important; }
html.in-app .site-header .header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; padding-top: calc(8px + env(safe-area-inset-top)); }
html.in-app .site-header .logo small { display: none; }
.appnav-burger { width: 46px; height: 46px; border: none; border-radius: 12px; background: #ef8c2a; display: grid; place-content: center; gap: 5px; flex: none; cursor: pointer; }
.appnav-burger span { display: block; width: 22px; height: 3px; border-radius: 2px; background: #fff; }
.appnav-bg { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.4); }
.appnav { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; overflow-y: auto; display: flex; flex-direction: column;
  padding: calc(10px + env(safe-area-inset-top)) 0 calc(12px + env(safe-area-inset-bottom)); }
.appnav-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 12px; border-bottom: 1px solid #ece6dc; margin-bottom: 4px; }
.appnav-close { border: none; background: none; font-size: 1.7rem; color: #888; width: 40px; height: 40px; cursor: pointer; }
.appnav a { display: grid; grid-template-columns: 32px 1fr; align-items: center; column-gap: 8px; padding: 14px 18px; color: #222; text-decoration: none; font-size: 1.02rem; }
.appnav a span { grid-row: 1 / 3; font-size: 1.3rem; }
.appnav a small { grid-column: 2; color: #888; font-size: .76rem; }
.appnav a.current { background: #fff3e4; font-weight: 700; }
.appnav a:active { background: #fff8ee; }
.appnav a.logout { margin-top: auto; color: #b3261e; border-top: 1px solid #ece6dc; }
/* いちばん下の段：左にログアウト、右に通知音 */
.appnav-foot { margin-top: auto; display: flex; border-top: 1px solid #ece6dc; }
.appnav-foot a.logout { flex: 1; margin-top: 0; border-top: none; }
.appnav-foot a.appnav-push { flex: 0 0 auto; border-left: 1px solid #ece6dc; grid-template-columns: 26px auto; column-gap: 6px; padding: 14px 16px; font-size: .95rem; }
/* トップ：アート記事を横に3つ */
.post-list.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-list.three .post-card .body { padding: 12px 14px 16px; }
.post-list.three .post-card h3 { font-size: .96rem; }
@media (max-width: 900px) { .post-list.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .post-list.three { grid-template-columns: 1fr; } }
/* ===== トップ（アート掲示板）：建築写真のポートフォリオのような、静かでモダンな見た目 ===== */
body.home { background: #f4f5f6; }
body.home .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; background: transparent; border-bottom: none; box-shadow: none; }
body.home .site-header .logo { color: #fff; letter-spacing: .12em; font-weight: 400; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
body.home .site-header .logo small { color: rgba(255,255,255,.75); letter-spacing: .08em; }
body.home .site-header .nav a { color: rgba(255,255,255,.85); letter-spacing: .12em; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
body.home .site-header .nav a:hover, body.home .site-header .nav a.current { color: #fff; }
body.home .site-header .nav a.current { border-bottom: 1px solid #fff; }
body.home .btn-login { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
body.home .btn-login:hover { background: rgba(255,255,255,.12); }
body.home .btn-signup { background: #fff; color: #2b3138; }

.hero { position: relative; height: 100vh; min-height: 560px; max-height: 980px; overflow: hidden; color: #fff; background: #3c74b4; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-text { position: absolute; left: 6vw; top: 50%; transform: translateY(-50%); }
.hero-title { margin: 0; font-family: "Jost", "Helvetica Neue", sans-serif; font-weight: 300; font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: .22em; line-height: 1.1; }
.hero-sub { margin: 18px 0 6px; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: .32em; font-weight: 400; }
.hero-name { margin: 0; font-family: "Jost", sans-serif; font-size: .95rem; letter-spacing: .2em; font-weight: 500; opacity: .9; }
.hero-year { position: absolute; left: 6vw; bottom: 6vh; margin: 0; font-family: "Jost", sans-serif; letter-spacing: .2em; font-weight: 500; }
.hero-scroll { position: absolute; right: 5vw; bottom: 6vh; color: #fff; font-family: "Jost", sans-serif; font-size: .75rem; letter-spacing: .3em; text-decoration: none; padding-bottom: 46px; }
.hero-scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 38px; background: rgba(255,255,255,.8); animation: scrollLine 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

.mod-section { max-width: 1160px; margin: 0 auto; padding: 90px 24px 40px; }
.mod-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 34px; border-bottom: 1px solid #c9ced3; padding-bottom: 14px; }
.mod-head h2 { margin: 0; font-size: 1rem; font-weight: 400; letter-spacing: .25em; color: #3a4148; }
.mod-en { font-family: "Jost", sans-serif; font-size: 1.9rem; font-weight: 300; letter-spacing: .25em; color: #1f2429; }
.mod-head.small .mod-en { font-size: 1.3rem; }
.mod-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.mod-card { display: block; color: #22272c; text-decoration: none; }
.mod-card:hover { text-decoration: none; }
.mod-card .eyecatch { aspect-ratio: 4 / 3; border-radius: 0; filter: saturate(.7); transition: filter .4s, transform .6s; }
.mod-card:hover .eyecatch { filter: saturate(1); }
.mod-card .eyecatch span { display: none; }
.mod-meta { display: flex; justify-content: space-between; margin: 16px 0 8px; font-family: "Jost", sans-serif; font-size: .78rem; letter-spacing: .15em; color: #6b747c; }
.mod-card h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 500; line-height: 1.7; letter-spacing: .04em; }
.mod-card p { margin: 0; font-size: .85rem; color: #6b747c; line-height: 1.8; }
.mod-card:hover h3 { color: #3c74b4; }

.mod-bottom { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; padding-top: 60px; padding-bottom: 110px; }
.mod-list { list-style: none; margin: 0; padding: 0; }
.mod-list li { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #dde1e5; }
.mod-list a { display: block; padding: 14px 0; color: #2b3138; text-decoration: none; letter-spacing: .06em; font-size: .95rem; }
.mod-list a:hover { color: #3c74b4; }
.mod-list span { font-family: "Jost", sans-serif; color: #8a939b; letter-spacing: .15em; font-size: .85rem; }
.mod-head.with-btn { align-items: center; }
.geo-btn { margin-left: auto; width: 54px; height: 54px; border: 1px solid #2b3138; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; transition: background .3s, transform .5s; }
.geo-btn svg { width: 30px; height: 30px; fill: none; stroke: #2b3138; stroke-width: 1.6; transition: transform .5s; }
.geo-btn:hover { background: #2b3138; }
.geo-btn:hover svg { stroke: #fff; }
.geo-btn[aria-expanded="true"] { background: #2b3138; }
.geo-btn[aria-expanded="true"] svg { stroke: #fff; transform: rotate(135deg); }
.recent-list { max-height: 0; overflow: hidden; transition: max-height .6s cubic-bezier(.2,.7,.2,1); }
.recent-list.open { max-height: 600px; }
.recent-list li { opacity: 0; transform: translateX(-16px); transition: opacity .4s, transform .4s; }
.recent-list.open li { opacity: 1; transform: none; }
.recent-list.open li:nth-child(2) { transition-delay: .06s; } .recent-list.open li:nth-child(3) { transition-delay: .12s; }
.recent-list.open li:nth-child(4) { transition-delay: .18s; } .recent-list.open li:nth-child(5) { transition-delay: .24s; }
.geo-hint { margin: 0; color: #8a939b; font-size: .85rem; letter-spacing: .08em; }
body.home .site-footer { background: #1f2429; color: #9aa3ab; border-top: none; letter-spacing: .15em; font-family: "Jost", sans-serif; }

@media (max-width: 900px) {
  .mod-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .mod-bottom { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .hero { height: 82vh; min-height: 520px; }
  .hero-text { left: 7vw; top: 56%; }
  .hero-sub { letter-spacing: .22em; }
  .mod-section { padding: 64px 18px 30px; }
  .mod-cards { grid-template-columns: 1fr; }
  .mod-en { font-size: 1.5rem; }
}
.hero-title { font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
.hero-text { text-shadow: 0 2px 18px rgba(0,0,0,.25); }
@media (max-width: 640px) { .hero-art { object-position: left; } }

/* トップ：メニューと大きな文字を、明るい壁の上でも読みやすく */
body.home .site-header { background: linear-gradient(180deg, rgba(18,22,27,.55) 0%, rgba(18,22,27,.25) 65%, rgba(18,22,27,0) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(18,22,27,.35) 0%, rgba(18,22,27,.12) 45%, rgba(18,22,27,0) 65%); }
.hero-text, .hero-year, .hero-scroll { z-index: 2; }
@media (max-width: 640px) {
  .hero::before { background: linear-gradient(90deg, rgba(18,22,27,.55) 0%, rgba(18,22,27,.35) 60%, rgba(18,22,27,.15) 100%); }
}
/* ===== トップ：旅・イタリアの風景・イタリアの色 ===== */
body.it-theme {
  --it-terra: #b5532f; --it-terra-d: #8a3a20; --it-ochre: #d9a441; --it-olive: #6f7a45;
  --it-cypress: #2f4a3a; --it-blue: #2c5d8a; --it-cream: #f8f0e1; --it-stone: #efe3cc; --it-ink: #3b2a20;
  background: var(--it-cream); color: var(--it-ink);
}
body.it-theme .site-header { background: linear-gradient(180deg, rgba(248,240,225,.85) 0%, rgba(248,240,225,.4) 70%, rgba(248,240,225,0) 100%); }
body.it-theme .site-header .logo { color: var(--it-terra-d); text-shadow: none; font-family: "Cormorant Garamond", "Yu Mincho", serif; font-weight: 500; }
body.it-theme .site-header .logo small { color: #8b6a55; }
body.it-theme .site-header .nav a { color: var(--it-ink); text-shadow: none; }
body.it-theme .site-header .nav a:hover, body.it-theme .site-header .nav a.current { color: var(--it-terra); }
body.it-theme .site-header .nav a.current { border-bottom-color: var(--it-terra); }
body.it-theme .btn-login { color: var(--it-terra-d); border-color: var(--it-terra); }
body.it-theme .btn-login:hover { background: rgba(181,83,47,.08); }
body.it-theme .btn-signup { background: var(--it-terra); color: #fff; }

.hero.it { background: #f4d8b0; color: var(--it-ink); height: 92vh; }
.hero.it::before { background: linear-gradient(90deg, rgba(248,240,225,.55) 0%, rgba(248,240,225,.2) 40%, rgba(248,240,225,0) 60%); }
.hero.it .hero-text { top: 36%; text-shadow: 0 1px 14px rgba(255,246,227,.8); }
.hero-kicker { margin: 0 0 6px; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: clamp(.9rem, 1.4vw, 1.15rem); letter-spacing: .28em; color: var(--it-terra); }
.hero.it .hero-title { font-family: "Cormorant Garamond", "Yu Mincho", serif; font-weight: 300; font-size: clamp(3rem, 8vw, 7rem); letter-spacing: .14em; color: var(--it-terra-d); line-height: 1; }
.hero.it .hero-sub { margin: 16px 0 8px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; color: var(--it-ink); letter-spacing: .3em; }
.hero.it .hero-name { color: var(--it-olive); font-family: "Cormorant Garamond", serif; font-size: 1rem; letter-spacing: .3em; }
.hero.it .hero-scroll { color: var(--it-cream); text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.hero.it .hero-scroll::after { background: var(--it-cream); }

/* 記事カード：動かさず横に3枚 */
.it-cards { position: relative; z-index: 4; max-width: 1160px; margin: 0 auto; padding: 70px 24px 20px; }
.it-cards-head, body.it-theme .mod-head { display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid #d9c6a6; padding-bottom: 14px; margin-bottom: 34px; }
.it-en, body.it-theme .mod-en { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 2.2rem; font-weight: 400; letter-spacing: .14em; color: var(--it-terra-d); }
.it-cards-head h2, body.it-theme .mod-head h2 { margin: 0; font-size: 1rem; font-weight: 400; letter-spacing: .25em; color: var(--it-ink); }
.it-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.it-card { display: block; text-decoration: none; color: var(--it-ink); background: #fffaf0; border: 1px solid #e8d9bd; box-shadow: 0 10px 26px rgba(90,50,20,.08); transition: box-shadow .3s, border-color .3s; }
.it-card:hover { text-decoration: none; box-shadow: 0 16px 34px rgba(90,50,20,.16); border-color: var(--it-ochre); }
.it-card .eyecatch { aspect-ratio: 4 / 3; border-radius: 0; }
.it-card .eyecatch span { display: none; }
.it-card .ec-3 { background: radial-gradient(circle at 78% 30%, #fff1d2 0 12%, transparent 13%), linear-gradient(180deg, #f2c48d 0%, #e59a5b 55%, #b5532f 100%); }
.it-card .ec-4 { background: radial-gradient(circle at 35% 58%, #6b4a33 0 16%, transparent 17%), radial-gradient(circle at 65% 58%, #d9a441 0 16%, transparent 17%), linear-gradient(135deg, #efe3cc, #c9a978); }
.it-card .ec-5 { background: radial-gradient(circle at 50% 45%, #f2d0b4 0 20%, transparent 21%), linear-gradient(135deg, #2c5d8a, #1d3f5f); }
.it-body { padding: 16px 18px 20px; }
.it-meta { display: block; font-family: "Cormorant Garamond", serif; font-size: .85rem; letter-spacing: .18em; color: var(--it-olive); margin-bottom: 6px; }
.it-card h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 500; line-height: 1.7; }
.it-card:hover h3 { color: var(--it-terra); }
.it-card p { margin: 0; font-size: .85rem; line-height: 1.8; color: #7a6656; }

/* 下の段（カテゴリ・最近の記事）もイタリアの色に */
body.it-theme .mod-list li { border-bottom-color: #e3d3b6; }
body.it-theme .mod-list a { color: var(--it-ink); }
body.it-theme .mod-list a:hover { color: var(--it-terra); }
body.it-theme .mod-list span { color: var(--it-olive); }
body.it-theme .geo-btn { border-color: var(--it-terra); }
body.it-theme .geo-btn svg { stroke: var(--it-terra); }
body.it-theme .geo-btn:hover, body.it-theme .geo-btn[aria-expanded="true"] { background: var(--it-terra); }
body.it-theme .geo-btn:hover svg, body.it-theme .geo-btn[aria-expanded="true"] svg { stroke: #fff; }
body.it-theme .geo-hint { color: #9a8370; }
body.it-theme .site-footer { background: var(--it-cypress); color: #d8ccb2; }

@media (max-width: 900px) { .it-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .hero.it { height: 78vh; }
  .hero.it .hero-text { top: 30%; }
  .hero.it::before { background: linear-gradient(180deg, rgba(248,240,225,.5) 0%, rgba(248,240,225,.15) 55%, rgba(248,240,225,0) 70%); }
  .it-grid { grid-template-columns: 1fr; gap: 22px; }
  .it-cards { padding: 50px 18px 10px; }
  .it-en, body.it-theme .mod-en { font-size: 1.7rem; }
}
/* ===== 記事：写真・一覧・プレビュー ===== */
.eyecatch.has-photo { padding: 0; overflow: hidden; display: block; }
.eyecatch.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post .eyecatch.has-photo { aspect-ratio: 16 / 9; }
.post-photo { margin: 26px 0; }
.post-photo img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 4px; }
.post-photo figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); text-align: center; }
.post-body ul:not(.tips) { padding-left: 1.4em; line-height: 1.9; }
.post-preview-bar { margin: 0; padding: 10px 16px; background: #fff3cd; color: #6b4e00; text-align: center; font-size: .9rem; }
.list-title { font-size: 1.4rem; margin: 10px 0 22px; }
.list-title small { margin-left: 12px; font-size: .9rem; color: var(--muted); font-weight: 400; }
.post-list { display: grid; gap: 22px; }
.post-list .post-card { display: grid; grid-template-columns: 220px 1fr; gap: 18px; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.post-list .post-card .eyecatch { aspect-ratio: 16 / 10; height: 100%; border-radius: 0; }
.post-list .post-card .eyecatch span { display: none; }
.post-card-body { padding: 14px 16px 14px 0; }
.post-card-body h2 { font-size: 1.05rem; margin: 6px 0; line-height: 1.6; }
.post-card-body p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.8; }
.post-list .post-card:hover h2 { color: var(--accent); }
.it-card .eyecatch.has-photo { aspect-ratio: 4 / 3; }
@media (max-width: 640px) {
  .post-list .post-card { grid-template-columns: 1fr; gap: 0; }
  .post-card-body { padding: 12px 14px 16px; }
}
/* マイページ：変更・キャンセルは「新しく申請」のすぐ下に */
.next-new { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.next-new .change-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.next-new .change-btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 560px) { .next-new { align-items: stretch; } .next-new .btn, .next-new .change-btn { justify-content: center; text-align: center; } }
@media (max-width: 560px) { .next-new .change-btn { padding: 12px 16px; font-size: inherit; } }

/* ===== マイページ：添削ギャラリーを日付ごとに（押すと開く） ===== */
.crit-days { display: grid; gap: 10px; }
.crit-daybox { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.crit-daybox > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 12px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.crit-daybox > summary::-webkit-details-marker { display: none; }
.crit-daybox > summary:hover { background: #fbf6ef; }
.cd-thumbs { display: flex; flex: none; }
.cd-thumbs img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); background: #eee; }
.cd-thumbs img + img { margin-left: -18px; }
.cd-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cd-text strong { font-size: 1rem; }
.cd-text small { color: var(--muted); font-size: .82rem; }
.cd-arrow { width: 10px; height: 10px; border-right: 2px solid #b5532f; border-bottom: 2px solid #b5532f; transform: rotate(45deg); margin: 0 6px 4px 0; transition: transform .25s; flex: none; }
.crit-daybox[open] > summary { border-bottom: 1px solid var(--line); background: #fbf6ef; }
.crit-daybox[open] .cd-arrow { transform: rotate(-135deg); margin-bottom: -4px; }
.crit-daybox .crit-grid { padding: 14px; margin: 0; animation: cdOpen .3s ease; }
@keyframes cdOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.crit-daybox .crit-item figcaption { font-size: .82rem; }

/* ===== マイページ：3D展示室の入口 ===== */
.room-entry { padding: 0; overflow: hidden; }
.room-entry-link { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); text-decoration: none; color: inherit; }
.room-entry-link:hover { text-decoration: none; }
.re-scene { position: relative; min-height: 190px; overflow: hidden; perspective: 420px;
  background: linear-gradient(180deg, #fbf6ee 0%, #f3e8d8 58%, #c46a43 58%, #a9522f 100%); }
.re-floor { position: absolute; left: -20%; right: -20%; bottom: 0; height: 42%;
  background: repeating-linear-gradient(90deg, rgba(255,240,220,.35) 0 2px, transparent 2px 40px), repeating-linear-gradient(0deg, rgba(255,240,220,.35) 0 2px, transparent 2px 22px);
  transform: rotateX(55deg); transform-origin: bottom; }
.re-art { position: absolute; top: 24%; width: 22%; aspect-ratio: 4 / 3; background: #e8dfd2; border: 4px solid #3b2a1e; box-shadow: 0 4px 10px rgba(0,0,0,.25); overflow: hidden; }
.re-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.re-a0 { left: 4%; transform: rotateY(38deg) scale(1.15); }
.re-a1 { left: 27%; transform: rotateY(28deg) scale(.82); top: 28%; }
.re-a2 { right: 4%; transform: rotateY(-38deg) scale(1.15); }
.re-a3 { right: 27%; transform: rotateY(-28deg) scale(.82); top: 28%; }
.re-banner { position: absolute; left: 50%; top: 8%; transform: translateX(-50%); background: #b5532f; color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.re-body { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px 22px; }
.re-en { font-family: "Cormorant Garamond", serif; font-style: italic; letter-spacing: .2em; color: #b5532f; font-size: .9rem; }
.re-body strong { font-size: 1.2rem; }
.re-body strong::after { content: " →"; color: #b5532f; transition: margin .2s; }
.room-entry-link:hover .re-body strong::after { margin-left: 6px; }
.re-body small { color: var(--muted); line-height: 1.7; font-size: .86rem; }
@media (max-width: 560px) {
  .room-entry-link { grid-template-columns: 1fr; }
  .re-scene { min-height: 170px; }
  .cd-thumbs img { width: 40px; height: 40px; }
}
/* マイページ：3D展示室の移動ボタンの位置 */
.pad-side { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.pad-side > span { font-size: .9rem; font-weight: 700; }
.pad-side > span small { font-weight: 400; color: var(--muted); font-size: .78rem; margin-left: 4px; }
.pad-side-btns { display: flex; gap: 8px; }
.pad-side-btns button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 116px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: .95rem; font-weight: 700; color: #2b2825; cursor: pointer; }
.pad-side-btns button small { font-size: .7rem; font-weight: 400; color: var(--muted); }
.pad-side-btns button[aria-pressed="true"] { border-color: #b5532f; background: #fbeee6; color: #8a3a20; }
.pad-side-btns button[aria-pressed="true"]::before { content: "✓ "; }
@media (max-width: 560px) { .pad-side { padding: 14px 16px 16px; } .pad-side-btns { width: 100%; } .pad-side-btns button { flex: 1; min-width: 0; } }.pad-side-btns button { position: relative; }
.pad-side-btns button[aria-pressed="true"]::before { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); content: "✓"; font-size: 1rem; }

/* ===== ギャラリーの3D展示室：会員の3D展示室と同じ操作（文字つき移動ボタン・左右の位置・拡大・縮小） ===== */
.g3d-pad { grid-template-columns: repeat(3, 66px); grid-template-rows: repeat(2, 60px); }
.g3d-pad button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; line-height: 1.1; }
.g3d-pad button b { font-size: 1.05rem; font-weight: 400; }
.g3d-pad button small { font-size: .6rem; color: #5a4f45; white-space: nowrap; letter-spacing: -.02em; }
.g3d-pad button small i { font-style: normal; font-weight: 700; display: inline-block; min-width: 15px; padding: 0 3px; margin-right: 3px; border: 1px solid #b9ad9e; border-radius: 4px; background: #fff; color: #2b2825; font-size: .62rem; line-height: 1.35; }
@media (hover: none) and (pointer: coarse) { .g3d-pad button small i { display: none; } }
html.pad-left .g3d-pad { left: 12px; right: auto; }
html.pad-left .g3d-info { left: auto; right: 12px; }
.g3d-zoom { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); border: none; border-radius: 999px; background: rgba(30,26,22,.78); color: #fff; font: inherit; font-size: .82rem; font-weight: 700; padding: 8px 16px; cursor: pointer; z-index: 2; }
.g3d .room-wheel { position: absolute; right: 12px; bottom: 12px; display: none; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 12px; background: rgba(255,255,255,.92); box-shadow: 0 4px 14px rgba(0,0,0,.18); pointer-events: none; }
html.pad-right .g3d .room-wheel { right: auto; left: 12px; }
.g3d .rw-mouse { width: 44px; height: 64px; overflow: visible; }
.g3d .rw-wheel { animation: rwRoll 2.4s ease-in-out infinite; }
.g3d .rw-up { animation: rwUp 2.4s ease-in-out infinite; }
@keyframes rwRoll { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-3px); } 50% { transform: translateY(0); } 75% { transform: translateY(3px); } }
@keyframes rwUp { 0%, 100% { opacity: .35; } 25% { opacity: 1; } 75% { opacity: .2; } }
.g3d .rw-text p { margin: 0; font-size: .8rem; color: #4a4038; line-height: 1.7; white-space: nowrap; }
.g3d .rw-text .rw-arrow { display: inline-block; width: 14px; color: #b5532f; }
.g3d .rw-text strong { margin-left: 6px; color: #8a3a20; font-size: .9rem; }
.g3d .rw-text .rw-note { font-size: .68rem; color: #8a7d70; }
@media (hover: hover) and (pointer: fine) and (min-width: 641px) { .g3d .room-wheel { display: flex; } }
@media (prefers-reduced-motion: reduce) { .g3d .rw-wheel, .g3d .rw-up { animation: none; } }
.g3d-info:not([hidden]) ~ .room-wheel { display: none !important; }
@media (max-width: 640px) { html.pad-left .g3d-info { left: 12px; right: 12px; } }
/* ===== ギャラリーの3D展示室：右下の小さなミュートボタン ===== */
.g3d .g3d-mute { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.9); color: #2b2825; display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 3; }
.g3d .g3d-mute svg { width: 20px; height: 20px; }
.g3d .g3d-mute.is-muted { color: #b5532f; }
html.pad-right .g3d .g3d-mute { bottom: 148px; }
.g3d .room-wheel { right: 62px; }
html.pad-right .g3d .room-wheel { left: 12px; right: auto; }
@media (min-width: 641px) { html.pad-left .g3d-info { bottom: 62px; } }
@media (max-width: 640px) { .g3d .g3d-mute { width: 36px; height: 36px; } .g3d .g3d-mute svg { width: 18px; height: 18px; } }
/* ===== ギャラリー：展示作品リスト（押すと文字で並ぶ） ===== */
.works-list { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.works-list > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; }
.works-list > summary::-webkit-details-marker { display: none; }
.works-list > summary:hover { background: #fbf6ef; }
.wl-title { font-size: 1.1rem; font-weight: 700; }
.works-list summary small { color: var(--muted); font-size: .85rem; }
.wl-arrow { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid #b5532f; border-bottom: 2px solid #b5532f; transform: rotate(45deg); transition: transform .25s; margin-bottom: 4px; }
.works-list[open] > summary { border-bottom: 1px solid var(--line); background: #fbf6ef; }
.works-list[open] .wl-arrow { transform: rotate(-135deg); margin-bottom: -4px; }
.wl-lead { margin: 12px 20px 4px; font-size: .85rem; color: var(--muted); }
.wl-items { list-style: none; margin: 0; padding: 4px 8px 12px; animation: cdOpen .3s ease; }
.wl-items li + li { border-top: 1px dashed #eadfce; }
.wl-items button { width: 100%; display: flex; align-items: baseline; gap: 14px; padding: 12px; border: none; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.wl-items button:hover { background: #fbf6ef; }
.wl-no { font-family: "Cormorant Garamond", serif; color: #b5532f; font-size: .95rem; min-width: 22px; }
.wl-name { font-weight: 700; }
.wl-meta { color: var(--muted); font-size: .85rem; }
.wl-go { margin-left: auto; color: #b5532f; font-size: .8rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) {
  .wl-items button { flex-wrap: wrap; gap: 4px 10px; }
  .wl-meta { width: calc(100% - 40px); margin-left: 32px; order: 3; }
}
/* 予約：内容の確認の「お振込み」の案内 */
.pay-note { margin: 18px 0 4px; padding: 14px 18px; border: 1px solid #e8c9b4; border-left: 4px solid #b5532f; border-radius: 8px; background: #fdf6f0; }
.pay-note p { margin: 0; }
.pay-ttl { font-weight: 700; color: #8a3a20; }
.pay-banks { margin-top: 4px !important; font-size: .95rem; color: #2b2825; letter-spacing: .04em; }

/* ===== ギャラリー：今後の展示予定・過去の展示 ===== */
.exh-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 22px; }
.exh-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 14px; }
.exh-list h2 { margin: 0 0 10px; font-size: 1.05rem; display: flex; flex-direction: column; gap: 2px; }
.exh-en { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 400; letter-spacing: .18em; color: #b5532f; font-size: .85rem; }
.exh-list ul { list-style: none; margin: 0; padding: 0; }
.exh-list li { padding: 12px 0; border-top: 1px dashed #eadfce; }
.exh-list li:first-child { border-top: none; padding-top: 4px; }
.exh-list li strong { display: block; font-size: .98rem; }
.exh-period { display: block; font-size: .78rem; color: #b5532f; font-weight: 700; margin-bottom: 2px; letter-spacing: .03em; }
.exh-list li p { margin: 4px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.7; }
.exh-poster-link { display: inline-block; margin-top: 4px; font-size: .8rem; color: #b5532f; }
.exh-list .exh-empty { color: var(--muted); font-size: .88rem; }
@media (max-width: 700px) { .exh-lists { grid-template-columns: 1fr; } }
/* ===== マイページ：今日の講評室 ===== */
.atelier-entry { background: linear-gradient(120deg, #fbf1e1 0%, #f4dcc0 100%); border-color: #e3c49e; }
.ae-body { padding: 20px 22px; }
.ae-en { font-family: "Cormorant Garamond", serif; font-style: italic; letter-spacing: .2em; color: #b5532f; font-size: .9rem; }
.atelier-entry h2 { margin: 2px 0 8px; border: none; padding: 0; }
.ae-body p { margin: 0 0 12px; line-height: 1.8; font-size: .92rem; }
.ae-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ae-btns .btn { font-weight: 700; }
.ae-btns .btn.zoom { background: #2d8cff; border-color: #2d8cff; }
.ae-tip { display: block; margin-top: 10px; color: #7a6656; font-size: .8rem; }
/* 月額ミックス：上の月額プランのカードと同じ実線の枠にして、すぐ下につなげる */
.course.mix .box { border-style: solid; border-color: #cfdcf3; background: #fff; }
.mix-wrap { margin-top: 12px; }

/* ===== スマホ・iPad：360度スティック（ゲーム機のコントローラー風） ===== */
.as-stick { display: block !important; width: 148px !important; height: 148px !important; grid-template-columns: none !important; grid-template-rows: none !important; }
.stick-base { position: relative; width: 148px; height: 148px; border-radius: 50%; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.62), rgba(255,255,255,.3) 70%); border: 1px solid rgba(0,0,0,.14);
  box-shadow: inset 0 3px 12px rgba(0,0,0,.2), 0 4px 14px rgba(0,0,0,.22); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.stick-ring { position: absolute; inset: 24%; border-radius: 50%; border: 1.5px dashed rgba(60,45,35,.25); }
.stick-arrows i { position: absolute; font-style: normal; font-size: 11px; color: rgba(60,45,35,.5); line-height: 1; }
.stick-arrows i:nth-child(1) { top: 7px; left: 50%; transform: translateX(-50%); }
.stick-arrows i:nth-child(2) { right: 8px; top: 50%; transform: translateY(-50%); }
.stick-arrows i:nth-child(3) { bottom: 7px; left: 50%; transform: translateX(-50%); }
.stick-arrows i:nth-child(4) { left: 8px; top: 50%; transform: translateY(-50%); }
.stick-knob { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #6a6460 0%, #3a3532 45%, #1c1917 100%);
  box-shadow: 0 6px 12px rgba(0,0,0,.45), inset 0 -4px 7px rgba(0,0,0,.55), inset 0 2px 3px rgba(255,255,255,.18);
  transition: transform .14s ease-out; pointer-events: none; }
.stick-knob::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 50% 60%, #2a2624, #3e3936);
  box-shadow: inset 0 3px 5px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.12); }
.stick-base.on .stick-knob { transition: none; }
.stick-base.on { background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.75), rgba(255,255,255,.4) 70%); }
html.pad-right .g3d .g3d-mute { bottom: 170px; }
/* ギャラリー：3D展示室のすぐ下に展示作品リスト、その下に予定・過去 */
.g3d + .works-list { margin-top: 92px; }
@media (max-width: 640px) { .g3d + .works-list { margin-top: 56px; } }   /* スマホは少しつめる */   /* 3D展示室のすぐ下に余白をとって、前の「今後の展示予定」の位置から始める（パソコン・スマホ同じ） */
.works-list + .exh-lists { margin-top: 18px; }

/* ギャラリー：予定・過去の展示のポスター */
.exh-list li.has-poster { display: grid; grid-template-columns: 76px 1fr; column-gap: 14px; align-items: start; }
.exh-list li.has-poster > :not(.exh-thumb) { grid-column: 2; }
.exh-thumb { grid-row: 1 / span 4; display: block; }
.exh-thumb img { width: 76px; height: 106px; object-fit: cover; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.15); display: block; transition: transform .2s; }
.exh-thumb:hover img { transform: scale(1.04); }
/* ===== マイページ：絵画の旅の冒険 ===== */
.rpg { background: linear-gradient(180deg, #fbf4e6, #f4e7cd); border-color: #e3cfa6; }
.rpg-hero { padding: 18px 22px 4px; }
.rpg-en { font-family: "Cormorant Garamond", serif; font-style: italic; letter-spacing: .22em; color: #b5532f; font-size: .9rem; }
.rpg-hero h2 { margin: 2px 0 6px; border: none; padding: 0; }
.rpg-hero p { margin: 0; color: #6b5a4a; font-size: .88rem; line-height: 1.7; }
#rpg-root { padding: 12px 22px 22px; }
.rpg-loading { color: #8a7d70; }
.rpg-head { display: flex; gap: 16px; align-items: center; background: #3b2a20; color: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: inset 0 0 0 2px #c99a52, 0 4px 14px rgba(0,0,0,.18); }
.rpg-badge { flex: 0 0 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6d27a, #c9902c 70%); color: #3b2a20; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff3d0, 0 3px 8px rgba(0,0,0,.35); }
.rpg-badge small { font-size: .7rem; font-weight: 700; line-height: 1; }
.rpg-badge strong { font-size: 1.7rem; line-height: 1; font-family: "Cormorant Garamond", serif; }
.rpg-info { flex: 1; min-width: 0; }
.rpg-title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; letter-spacing: .06em; color: #ffe6a8; }
.rpg-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
.rpg-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7fc06b, #e6d35a); transition: width 1s ease; }
.rpg-xp { margin: 6px 0 0; font-size: .78rem; opacity: .9; }
.rpg-next { margin: 3px 0 0; font-size: .78rem; color: #ffd98a; }
.rpg-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 12px; }
.rpg-chips span { font-size: .74rem; background: #fff; border: 1px solid #e6d3ae; border-radius: 999px; padding: 3px 10px; color: #6b5a4a; }
.rpg-map-wrap { border-radius: 14px; overflow: hidden; border: 3px solid #8a6a45; box-shadow: inset 0 0 30px rgba(120,80,30,.25), 0 4px 14px rgba(0,0,0,.15); background: #b7cfcf; }
.rpg-map { display: block; width: 100%; height: auto; }
.rpg-map-hint { margin: 0; padding: 7px 12px; font-size: .78rem; color: #6b5a4a; background: #f1e3c4; border-top: 1px solid #c9ad80; }
.rpg-sea { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 26px; fill: #5e7f86; letter-spacing: .08em; opacity: .85; }
.rpg-n { font-family: "Cormorant Garamond", serif; font-size: 18px; fill: #8a6a45; font-weight: 700; }
.rpg-stop .rpg-dot { fill: #d8cbb4; stroke: #9c8a70; stroke-width: 2.5; }
.rpg-stop .rpg-mark { font-size: 15px; font-weight: 700; fill: #8a7d70; pointer-events: none; }
.rpg-stop .rpg-town { font-size: 17px; font-weight: 700; fill: #4a3a2c; paint-order: stroke; stroke: #f6ecd6; stroke-width: 4px; pointer-events: none; }
.rpg-stop.locked { opacity: .45; }
.rpg-stop.got { cursor: pointer; }
.rpg-stop.got .rpg-dot { fill: #b5532f; stroke: #fff3d0; stroke-width: 3; }
.rpg-stop.got .rpg-mark { fill: #fff; }
.rpg-stop.got:hover .rpg-dot, .rpg-stop.got:focus .rpg-dot { fill: #d2653a; }
.rpg-stop.next .rpg-dot { fill: #f2c12e; stroke: #8a5a10; }
.rpg-stop.next .rpg-mark { fill: #6b4210; }
.rpg-pulse { animation: rpgPulse 1.8s ease-in-out infinite; transform-origin: center; }
@keyframes rpgPulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.rpg-avatar { animation: rpgBob 1.6s ease-in-out infinite; }
@keyframes rpgBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.rpg-sub { margin: 18px 0 8px; font-size: 1rem; }
.rpg-inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.rpg-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 8px; border-radius: 12px; border: 2px solid #d9c39b; background: #fffaf0; font: inherit; color: #3b2a20; cursor: pointer; text-align: center; transition: transform .15s, box-shadow .15s; }
.rpg-item:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(120,80,30,.18); }
.rpg-item .ic { font-size: 2rem; line-height: 1.1; }
.rpg-item small { font-size: .68rem; color: #b5532f; font-weight: 700; }
.rpg-item strong { font-size: .86rem; line-height: 1.4; }
.rpg-item em { font-style: normal; font-size: .7rem; color: #8a7d70; }
.rpg-item.chest { border-color: #c99a52; background: linear-gradient(180deg, #fff6dc, #f7e2ae); animation: rpgShine 2s ease-in-out infinite; }
@keyframes rpgShine { 0%, 100% { box-shadow: 0 0 0 rgba(242,193,46,0); } 50% { box-shadow: 0 0 16px rgba(242,193,46,.7); } }
.rpg-item.locked { background: #efe7d8; border-style: dashed; color: #9a8f84; cursor: default; }
.rpg-item.locked .ic { font-size: 1.6rem; color: #b8ab98; font-weight: 700; }
/* 宝物・宝箱の窓 */
body.rpg-lock { overflow: hidden; }
.rpg-modal { position: fixed; inset: 0; z-index: 200; background: rgba(30,20,12,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rpg-modal-box { position: relative; width: min(720px, 100%); max-height: 92vh; overflow: auto; background: #fbf4e6; border-radius: 16px; padding: 22px 22px 20px; box-shadow: 0 0 0 3px #c99a52, 0 20px 50px rgba(0,0,0,.45); text-align: center; }
.rpg-close { position: absolute; right: 10px; top: 8px; border: none; background: none; font-size: 1.6rem; color: #8a7d70; cursor: pointer; }
.rpg-kind { margin: 0; font-family: "Cormorant Garamond", serif; letter-spacing: .14em; color: #b5532f; font-weight: 700; }
.rpg-modal-box h3 { margin: 4px 0 10px; font-size: 1.25rem; }
.rpg-desc { color: #6b5a4a; font-size: .9rem; line-height: 1.7; }
.rpg-video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; margin-top: 8px; }
.rpg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rpg-open { margin-top: 10px; display: inline-block; font-weight: 700; }
.rpg-pw { margin: 12px 0 0; font-size: .9rem; }
.rpg-pw strong { background: #fff; border: 1px solid #e0d0b0; border-radius: 6px; padding: 2px 8px; margin: 0 6px; letter-spacing: .05em; }
.rpg-copy { border: 1px solid #d9c39b; background: #fff; border-radius: 6px; font: inherit; font-size: .78rem; padding: 3px 8px; cursor: pointer; }
.rpg-chest { position: relative; width: 150px; height: 120px; margin: 14px auto 6px; }
.rpg-chest .body { position: absolute; left: 10px; right: 10px; bottom: 0; height: 66px; border-radius: 6px 6px 10px 10px; background: linear-gradient(180deg, #a5642c, #6e3d17); box-shadow: inset 0 0 0 4px #e0b04a, 0 6px 12px rgba(0,0,0,.35); }
.rpg-chest .lock { position: absolute; left: 50%; top: 8px; width: 18px; height: 22px; margin-left: -9px; border-radius: 4px; background: #f2c12e; box-shadow: inset 0 -4px 0 #c9902c; }
.rpg-chest .lid { position: absolute; left: 10px; right: 10px; bottom: 60px; height: 44px; border-radius: 40px 40px 6px 6px; background: linear-gradient(180deg, #b8743a, #7d4519); box-shadow: inset 0 0 0 4px #e0b04a; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.3,1.6,.5,1); z-index: 2; }
.rpg-chest.open .lid { transform: rotateX(70deg) translateY(-18px) rotate(-12deg); }
.rpg-chest .sparks i { position: absolute; left: 50%; bottom: 60px; width: 8px; height: 8px; border-radius: 50%; background: #ffe27a; opacity: 0; }
.rpg-chest.open .sparks i { animation: rpgSpark .9s ease-out forwards; }
.rpg-chest .sparks i:nth-child(1) { --dx: -60px; --dy: -70px; } .rpg-chest .sparks i:nth-child(2) { --dx: -25px; --dy: -95px; } .rpg-chest .sparks i:nth-child(3) { --dx: 10px; --dy: -100px; }
.rpg-chest .sparks i:nth-child(4) { --dx: 45px; --dy: -85px; } .rpg-chest .sparks i:nth-child(5) { --dx: 70px; --dy: -55px; } .rpg-chest .sparks i:nth-child(6) { --dx: -80px; --dy: -40px; }
@keyframes rpgSpark { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }
.rpg-chest.open .body { animation: rpgGlowBox 1s ease-out; }
@keyframes rpgGlowBox { 0% { box-shadow: inset 0 0 0 4px #e0b04a, 0 0 0 rgba(255,215,106,0); } 40% { box-shadow: inset 0 0 0 4px #e0b04a, 0 0 40px rgba(255,215,106,.9); } 100% { box-shadow: inset 0 0 0 4px #e0b04a, 0 6px 12px rgba(0,0,0,.35); } }
.rpg-got { display: grid; gap: 8px; margin-top: 12px; text-align: left; animation: cdOpen .4s ease; }
.rpg-got-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; border: 2px solid #c99a52; background: #fff; font: inherit; cursor: pointer; }
.rpg-got-item .ic { font-size: 1.8rem; }
.rpg-got-item .tx { display: flex; flex-direction: column; }
.rpg-got-item small { color: #b5532f; font-size: .72rem; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .rpg-pulse, .rpg-avatar, .rpg-item.chest { animation: none; } }
@media (max-width: 560px) {
  .rpg-head { padding: 12px; gap: 12px; }
  .rpg-badge { flex-basis: 58px; height: 58px; }
  .rpg-badge strong { font-size: 1.4rem; }
  #rpg-root { padding: 10px 14px 18px; }
  .rpg-inv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}.rpg-pulse { transform-box: fill-box; transform-origin: center; }
.rpg-sea { font-size: 23px; }
.rpg-world-btn { display: inline-block; margin-top: 10px; font-weight: 700; background: #3b2a20; border-color: #3b2a20; }
.rpg-world-btn:hover { background: #5a4030; }

/* =====================================================================
   ヴェネツィアの色（サイト全体の配色）
   しっくいのクリーム・レンガのテラコッタ・運河のティール・サーモンピンク・黄土色・よろい戸の緑
   ===================================================================== */
:root {
  --bg: #f6ede1; --fg: #34261f; --muted: #7d6a5c; --line: #ead8c2;
  --card: #fffaf3; --accent: #b8492e; --accent-soft: #f8e0d4; --head: #f3e4d1;
  --v-brick: #b8492e; --v-brick-d: #8f3622; --v-salmon: #e8a088; --v-rose: #f6d9cc;
  --v-ochre: #dfa03e; --v-ochre-soft: #f8e6bf; --v-canal: #2a8a86; --v-canal-d: #1d5f61; --v-canal-soft: #d9ede9;
  --v-sky: #3a86c8; --v-green: #2f6b4f; --v-stone: #fbf5ec;
}
body { background: linear-gradient(180deg, #f8f0e5 0%, #f4e8d8 100%) fixed; }

/* ヘッダー：建物の壁の色を並べた帯 */
.site-header { background: var(--v-stone); border-bottom: none; position: relative; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--v-brick) 0 18%, var(--v-ochre) 18% 34%, var(--v-salmon) 34% 52%, var(--v-canal) 52% 70%, var(--v-green) 70% 82%, var(--v-sky) 82% 100%); }
body.home .site-header::after { display: none; }
.logo { color: var(--v-brick-d); }
.nav a:hover { color: var(--v-canal); text-decoration: none; }
.nav a.current { color: var(--v-brick); }

/* フッター：夕方の運河 */
.site-footer { background: linear-gradient(180deg, var(--v-canal-d), #154446); color: #e9dcc6; border-top: none; }
.site-footer a { color: #ffe0b8; }

/* ボタン */
.btn { background: var(--v-brick); border-color: var(--v-brick); }
.btn.secondary { color: var(--v-canal-d); border-color: var(--v-canal); background: #fff; }
.btn.secondary:hover { background: var(--v-canal-soft); }

/* 記事の一覧のカード：壁の色を順番に（テラコッタ・黄土色・運河・サーモン） */
.post-card, .post-list .post-card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--v-brick); }
.post-card:nth-child(4n+2), .post-list .post-card:nth-child(4n+2) { border-top-color: var(--v-ochre); background: linear-gradient(180deg, #fffaf0, #fdf1d9); }
.post-card:nth-child(4n+3), .post-list .post-card:nth-child(4n+3) { border-top-color: var(--v-canal); background: linear-gradient(180deg, #fbfdfc, #e9f4f1); }
.post-card:nth-child(4n+4), .post-list .post-card:nth-child(4n+4) { border-top-color: var(--v-salmon); background: linear-gradient(180deg, #fffaf6, #fbe9e0); }
.post-card:hover h2, .post-card:hover h3 { color: var(--v-canal-d); }

/* 記事のページ：しっくいの紙、見出しは運河、引用は水面の色 */
.post { background: var(--v-stone); border-color: var(--line); box-shadow: 0 6px 22px rgba(120,70,40,.08); }
.post .meta .cat { background: var(--v-canal); color: #fff; }
.post h1 { color: #3a2418; }
.post h2 { border-left-color: var(--v-brick) !important; border-bottom-color: var(--v-ochre-soft) !important; color: var(--v-brick-d); }
.post h3 { color: var(--v-canal-d); }
.post blockquote { background: var(--v-canal-soft); border-left-color: var(--v-canal) !important; color: #1f4a4a; }
.post .tags span { background: var(--v-rose); color: var(--v-brick-d); }
.post a { color: var(--v-canal-d); }
.notice { background: var(--v-ochre-soft); border-color: #ecd09a; color: #6b4a14; }

/* 右側の欄：見出しの線を運河と黄土色に */
.widget { background: var(--v-stone); }
.widget h4 { border-bottom-color: var(--v-canal); color: var(--v-canal-d); }
.widget:nth-child(even) h4 { border-bottom-color: var(--v-ochre); color: #8a5a10; }
.widget a { color: var(--fg); }
.widget a:hover { color: var(--v-brick); }

/* 授業予約などの入力の欄 */
.panel { background: var(--v-stone); }
.panel > h2 { border-bottom-color: var(--v-brick); color: var(--v-brick-d); }

/* マイページのカード：上の帯の色を順番に */
.mp-card { background: var(--v-stone); border-color: var(--line); border-top: 4px solid var(--v-canal); }
.mp-card:nth-of-type(4n+2) { border-top-color: var(--v-brick); }
.mp-card:nth-of-type(4n+3) { border-top-color: var(--v-ochre); }
.mp-card:nth-of-type(4n+4) { border-top-color: var(--v-salmon); }
.mp-card h2 { color: #3a2418; }
.crit-daybox { background: #fffdf8; }

/* ギャラリー */
.exhibit, .works-list, .exh-list { background: var(--v-stone); }
.exh-list:first-child { border-top: 4px solid var(--v-canal); }
.exh-list:last-child { border-top: 4px solid var(--v-salmon); }

/* 記事のアイキャッチ（色の絵）もヴェネツィアの色に */
.ec-1 { background: radial-gradient(circle at 75% 35%, #ffe0a8 0 16%, transparent 17%), linear-gradient(135deg, #b8492e, #e8a088) !important; }
.ec-2 { background: radial-gradient(circle at 30% 45%, #fff6e8 0 14%, transparent 15%), linear-gradient(160deg, #3a86c8, #2a8a86) !important; }
.ec-3 { background: radial-gradient(circle at 78% 28%, #fff1d2 0 12%, transparent 13%), linear-gradient(180deg, #f2c48d 0%, #e8a088 55%, #b8492e 100%) !important; }
.ec-4 { background: radial-gradient(circle at 35% 58%, #2f6b4f 0 15%, transparent 16%), radial-gradient(circle at 65% 58%, #dfa03e 0 15%, transparent 16%), linear-gradient(135deg, #f8e6bf, #e8c894) !important; }
.ec-5 { background: radial-gradient(circle at 50% 45%, #f6d9cc 0 18%, transparent 19%), linear-gradient(135deg, #2a8a86, #1d5f61) !important; }.chat-btn { background: var(--v-canal) !important; color: #fff !important; }
.chat-btn:hover { background: var(--v-canal-d) !important; }

/* 白い部分をもっと明るく（色の帯・テラコッタ・運河の色はそのまま） */
:root { --bg: #fcf8f2; --card: #ffffff; --v-stone: #fffdfa; --line: #efe3d3; --head: #f8efe4; }
body { background: linear-gradient(180deg, #fefbf7 0%, #faf3ea 100%) fixed; }
.site-header { background: #ffffff; }
.post, .widget, .panel, .mp-card, .exhibit, .works-list, .exh-list, .crit-daybox { background: #ffffff; }
.post-card, .post-list .post-card { background: #ffffff; }
.post-card:nth-child(4n+2), .post-list .post-card:nth-child(4n+2) { background: linear-gradient(180deg, #ffffff, #fffaf0); }
.post-card:nth-child(4n+3), .post-list .post-card:nth-child(4n+3) { background: linear-gradient(180deg, #ffffff, #f6fbfa); }
.post-card:nth-child(4n+4), .post-list .post-card:nth-child(4n+4) { background: linear-gradient(180deg, #ffffff, #fff6f2); }
.post h2 { background: #fdf5ec; }
/* =====================================================================
   地中海の海と空・白い石灰岩の印象（赤・オレンジはヴェネツィアの建物の色のまま）
   ===================================================================== */
:root {
  --bg: #fbfaf7; --card: #ffffff; --fg: #24343a; --muted: #6a7a7f; --line: #e2ecee; --head: #eef7f8;
  --v-canal: #0f7f92; --v-canal-d: #0a5a6a; --v-canal-soft: #e2f5f8; --v-sky: #1fb5d6; --v-sand: #efe6d8; --v-stone: #ffffff;
}
body { background: linear-gradient(180deg, #ffffff 0%, #f6fbfc 60%, #f3f8f8 100%) fixed; color: var(--fg); }
/* ヘッダーの帯：建物（テラコッタ・オレンジ）から、白い岩・空・海へ */
.site-header::after { background: linear-gradient(90deg, #b8492e 0 14%, #e58a3a 14% 26%, #efe6d8 26% 40%, #6fd3e6 40% 58%, #1fb5d6 58% 76%, #0f7f92 76% 90%, #0a5a6a 90% 100%); }
.nav a { color: #24343a; }
.nav a:hover { color: var(--v-canal); }
/* フッター：深い海 */
.site-footer { background: linear-gradient(180deg, #0c6474, #08404d); color: #d9f1f5; }
/* 見出し・引用・欄：海と空 */
.post h3 { color: var(--v-canal-d); }
.post blockquote { background: var(--v-canal-soft); border-left-color: var(--v-sky) !important; color: #0d4651; }
.post .meta .cat { background: var(--v-canal); }
.post a { color: var(--v-canal); }
.post h2 { background: linear-gradient(90deg, #fff4ec, #ffffff); }
.widget h4 { border-bottom-color: var(--v-sky); color: var(--v-canal-d); }
.widget:nth-child(even) h4 { border-bottom-color: #e58a3a; color: #a2531c; }
.widget, .post, .panel, .mp-card { border-color: var(--line); box-shadow: 0 6px 22px rgba(15,95,110,.07); }
.mp-card { border-top-color: var(--v-sky); }
.mp-card:nth-of-type(4n+3) { border-top-color: #e58a3a; }
.mp-card:nth-of-type(4n+4) { border-top-color: var(--v-canal); }
/* 記事の一覧のカード：白い岩・空・海・建物の色を順番に */
.post-card:nth-child(4n+2), .post-list .post-card:nth-child(4n+2) { border-top-color: var(--v-sky); background: linear-gradient(180deg, #ffffff, #f0fafc); }
.post-card:nth-child(4n+3), .post-list .post-card:nth-child(4n+3) { border-top-color: #e58a3a; background: linear-gradient(180deg, #ffffff, #fff6ee); }
.post-card:nth-child(4n+4), .post-list .post-card:nth-child(4n+4) { border-top-color: var(--v-canal); background: linear-gradient(180deg, #ffffff, #f7f3ec); }
.post-card:hover h2, .post-card:hover h3 { color: var(--v-canal); }
.notice { background: #fff4e6; border-color: #f2d3ae; color: #7a4614; }
.chat-btn { background: var(--v-sky) !important; }
.chat-btn:hover { background: var(--v-canal) !important; }
.btn.secondary { color: var(--v-canal-d); border-color: var(--v-sky); }
/* 記事の色の絵：海と空の色も */
.ec-2 { background: radial-gradient(circle at 30% 45%, #ffffff 0 14%, transparent 15%), linear-gradient(180deg, #4fc8e3 0%, #1fb5d6 45%, #0f7f92 46%, #0a5a6a 100%) !important; }
.ec-5 { background: radial-gradient(circle at 50% 45%, #efe6d8 0 18%, transparent 19%), linear-gradient(135deg, #0f7f92, #08404d) !important; }
/* ===== トップ：ヴェネツィアの運河（雲・波・船がゆっくり動く） ===== */
.hero.it { background: #a9d6f2; }
.hero.it::before { background: linear-gradient(90deg, rgba(250,246,238,.78) 0%, rgba(250,246,238,.45) 34%, rgba(250,246,238,0) 56%); }
.hero.it .hero-text { text-shadow: 0 1px 12px rgba(255,255,255,.9); }
.hero.it .hero-name { color: #1d5f61; }
.hero.it .hero-scroll { color: #fff; text-shadow: 0 1px 4px rgba(0,40,50,.5); }
.hero-art.venice { overflow: hidden; }
/* 雲：右から左へゆっくり（2組を並べて、継ぎ目なくくり返す） */
.v-clouds { animation: vCloud 150s linear infinite; }
.v-clouds.slow { animation-duration: 240s; }
@keyframes vCloud { from { transform: translateX(0); } to { transform: translateX(-1600px); } }
/* 波：1つの波の長さぶんずらしてくり返す */
.v-wave { animation: vWave 7s linear infinite; }
.v-wave.b { animation-duration: 9s; animation-direction: reverse; }
@keyframes vWave { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--p))); } }
/* 船：運河を行き来する（右へ・左へ）。波で上下に揺れる */
.v-boat { animation: vBoatR 70s linear infinite; }
.v-boat.r1 { animation-duration: 64s; animation-delay: -18s; }
.v-boat.l1 { animation-name: vBoatL; animation-duration: 80s; animation-delay: -50s; }
.v-boat.r2 { animation-duration: 95s; animation-delay: -60s; }
.v-boat.l2 { animation-name: vBoatL; animation-duration: 110s; animation-delay: -20s; }
@keyframes vBoatR { from { transform: translateX(-260px); } to { transform: translateX(1860px); } }
@keyframes vBoatL { from { transform: translateX(1860px); } to { transform: translateX(-260px); } }
.v-bob { animation: vBob 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes vBob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(4px) rotate(1deg); } }
/* 「視差効果を減らす」を設定している人には動かさない */
@media (prefers-reduced-motion: reduce) { .v-clouds, .v-wave, .v-boat, .v-bob { animation: none; } .v-boat.r1 { transform: translateX(1050px); } .v-boat.l1 { transform: translateX(380px); } .v-boat.r2 { transform: translateX(760px); } .v-boat.l2 { transform: translateX(900px); } }
@media (max-width: 640px) { .hero.it::before { background: linear-gradient(180deg, rgba(250,246,238,.7) 0%, rgba(250,246,238,.3) 45%, rgba(250,246,238,0) 60%); } }@media (max-width: 640px) { .hero.it .hero-text { top: 205px; transform: none; } .hero.it { min-height: 640px; } }

/* アプリから開いたページ：管理画面で設定したアプリの色 */
html.in-app.app-colored .site-header, html.in-app.app-colored body.home .site-header, html.in-app.app-colored body.it-theme .site-header { background: var(--app-h) !important; }
html.in-app.app-colored .site-header::after { display: none; }
html.in-app.app-colored .site-header .logo, html.in-app.app-colored .site-header .logo small { color: var(--app-hi) !important; text-shadow: none; }
html.in-app.app-colored .appnav-burger { background: rgba(0,0,0,.12); }
html.in-app.app-colored .appnav-burger span { background: var(--app-hi); }
html.in-app.app-colored .site-footer { background: var(--app-f) !important; color: var(--app-fi) !important; }
html.in-app.app-colored .site-footer a { color: var(--app-fi) !important; }
html.in-app.app-colored .appnav a.current { background: color-mix(in srgb, var(--app-h) 14%, #fff); }html.in-app.app-colored .profile-cover { background-color: var(--app-h); background-image: linear-gradient(135deg, color-mix(in srgb, var(--app-h) 55%, #fff), var(--app-h) 60%, var(--app-h2)); background-size: cover; background-position: center; }
html.in-app.app-colored .avatar-badge { background: var(--app-h); color: var(--app-hi); }
html.in-app .site-footer { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.rpg-sub2 { margin: 14px 0 8px; font-size: .92rem; color: #5a4636; }
.rpg-item.page.got { border-color: #d9b46a; }
.rpg-item.video.got { border-color: #7fbfcc; background: #f6fbfc; }
.rpg-item.video.got small { color: #0f7f92; }
.rpg-note { margin: 0; padding: 0 22px 20px; color: #6b5a4a; font-size: .86rem; line-height: 1.7; }
@media (max-width: 560px) { .rpg-note { padding: 0 14px 18px; } }
.rpg-hero { padding-bottom: 0; }
.rpg-world-wrap { margin: 12px 0 2px; }
.rpg-world-wrap .rpg-world-btn { margin-top: 0; }
.rpg-world-wrap { margin: 14px 0 4px; text-align: center; }

/* ブラウザ版のチャット：管理画面「デザイン」の色（スマホアプリと同じ） */
.chat-panel.colored .chat-head { background: var(--ch); color: var(--chi); }
.chat-panel.colored .chat-close { color: var(--chi); }
.chat-panel.colored .chat-body { background: var(--cb); }
.chat-panel.colored .chat-form { background: var(--cf); border-top-color: rgba(0,0,0,.08); }
.chat-panel.colored .chat-attach { color: var(--cfi); }
.chat-panel.colored .chat-attach:hover { background: rgba(0,0,0,.06); }
.chat-panel.colored .chat-send { background: var(--ch); color: var(--chi); box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.chat-panel.colored .chat-row.out .chat-bubble { background: color-mix(in srgb, var(--ch) 40%, #fff); }
.chat-panel.colored .chat-avatar.small:not(.has-photo) { background: color-mix(in srgb, var(--ch) 18%, #fff); }
.chat-panel.colored .chat-form textarea:focus { outline-color: var(--ch); }
/* ===== 「ホーム」：ヴェネツィアの絵だけを表示（下の記事は出さない） ===== */
html.only-hero #articles, html.only-hero #more, html.only-hero .hero-scroll, html.only-hero .site-footer { display: none !important; }
html.only-hero .hero { height: 100vh; height: 100svh; min-height: 0; }
html.only-hero body { overflow: hidden; }
/* ===== イベントページ ===== */
.ev-page { max-width: 1080px; margin: 0 auto; padding: 0 20px 72px; }
.ev-hero { position: relative; border-radius: 16px; overflow: hidden; margin: 24px 0 56px; min-height: 240px; display: flex; align-items: center; }
.ev-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ev-hero-text { position: relative; padding: 32px 36px 70px; max-width: 560px; }
.ev-hero-text h1 { font-family: "Cormorant Garamond", "Noto Serif JP", serif; font-weight: 500; font-size: 2.2rem; letter-spacing: .12em; margin: 0 0 6px; color: #8f3a22; }
.ev-hero-text p { margin: 0; color: #3d3a35; }
.ev-en { display: block; font-family: "Cormorant Garamond", serif; font-style: italic; letter-spacing: .3em; font-size: .85rem; color: #b8492e; }
.ev-hero-text .ev-en { margin: 0 0 4px; }
.ev-head { text-align: center; margin: 0 0 28px; }
.ev-head h2 { margin: 4px 0 0; font-size: 1.6rem; letter-spacing: .1em; }
.ev-planning { position: relative; text-align: center; background: #fffaf2; border: 1.5px dashed #d9a98a; border-radius: 18px; padding: 44px 24px 40px; box-shadow: 0 10px 30px rgba(120, 70, 40, .07); }
.ev-planning-icon svg { width: 64px; height: 64px; }
.ev-badge { display: inline-block; margin: 10px 0 6px; padding: 4px 14px; border-radius: 999px; background: #2f97a6; color: #fff; font-size: .72rem; letter-spacing: .2em; }
.ev-planning h3 { font-size: 1.7rem; letter-spacing: .25em; margin: 6px 0 10px; color: #8f3a22; }
.ev-planning p { margin: 0; color: #5b554c; line-height: 1.9; }
.ev-soon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.ev-soon-card { border: 1px solid #e6dccd; border-radius: 12px; padding: 18px; background: rgba(255, 255, 255, .6); text-align: center; opacity: .75; }
.ev-soon-card b { display: block; font-size: 1.05rem; margin: 6px 0 2px; color: #3d3a35; }
.ev-soon-card small { color: #9a8f80; letter-spacing: .15em; }
.ev-soon-date { font-family: "Cormorant Garamond", serif; color: #b8a58c; letter-spacing: .2em; }
@media (prefers-reduced-motion: no-preference) {
  .ev-planning-icon { animation: evFloat 4s ease-in-out infinite; }
}
@keyframes evFloat { 50% { transform: translateY(-4px); } }
@media (max-width: 640px) {
  .ev-soon { grid-template-columns: 1fr; }
  .ev-hero-text { padding: 24px 20px 70px; }
  .ev-hero-text h1 { font-size: 1.8rem; }
}.ev-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(240,248,252,.9) 0%, rgba(240,248,252,.55) 45%, rgba(240,248,252,0) 70%); pointer-events: none; }
.ev-hero-text { z-index: 1; }
@media (max-width: 640px) { .ev-hero::after { background: linear-gradient(180deg, rgba(240,248,252,.88) 0%, rgba(240,248,252,.7) 60%, rgba(240,248,252,0) 85%); } }
/* ===== イベントの絵：雲と波が動き、見る時間帯で空が変わる ===== */
.ev-hero { --ov: 240,248,252; }
.ev-hero::after { background: linear-gradient(90deg, rgba(var(--ov),.9) 0%, rgba(var(--ov),.55) 45%, rgba(var(--ov),0) 70%); }
@media (max-width: 640px) { .ev-hero::after { background: linear-gradient(180deg, rgba(var(--ov),.88) 0%, rgba(var(--ov),.7) 60%, rgba(var(--ov),0) 85%); } }
.ev-hero .sky1 { stop-color: #7cbfe6; } .ev-hero .sky2 { stop-color: #e9f4f8; }
.ev-hero .ev-sun { transform: translate(560px, 46px); }
.ev-hero .ev-sun-disc { fill: #fff6cf; }
.ev-hero .ev-moon, .ev-hero .ev-stars { display: none; }
.ev-hero .ev-moon-cut { fill: #1a2b52; }
.ev-hero .ev-cloud { fill: #fff; opacity: .92; }
.ev-hero .ev-shade { fill: transparent; }
.ev-hero .ev-win { fill: #fff; opacity: .55; }
.ev-hero .ev-water { fill: #2f97a6; }
.ev-hero .ev-reflect { opacity: .15; }
.ev-hero .sky1, .ev-hero .sky2, .ev-hero .ev-water { transition: stop-color 1s, fill 1s; }

/* 朝焼け（5〜8時） */
.ev-dawn { --ov: 255,244,238; }
.ev-dawn .sky1 { stop-color: #f2b3a3; } .ev-dawn .sky2 { stop-color: #fde8cc; }
.ev-dawn .ev-sun { transform: translate(640px, 196px); }
.ev-dawn .ev-sun-disc { fill: #ffd1a3; }
.ev-dawn .ev-cloud { fill: #ffeae2; }
.ev-dawn .ev-shade { fill: rgba(255, 170, 140, .14); }
.ev-dawn .ev-water { fill: #6fb1bc; }
.ev-dawn .ev-reflect { opacity: .4; }
/* 夕焼け（16〜19時） */
.ev-dusk { --ov: 255,240,228; }
.ev-dusk .sky1 { stop-color: #e9805a; } .ev-dusk .sky2 { stop-color: #ffd49c; }
.ev-dusk .ev-sun { transform: translate(640px, 182px); }
.ev-dusk .ev-sun-disc { fill: #ffab5e; }
.ev-dusk .ev-cloud { fill: #ffd0b4; }
.ev-dusk .ev-shade { fill: rgba(200, 80, 40, .18); }
.ev-dusk .ev-win { fill: #ffe2a0; opacity: .75; }
.ev-dusk .ev-water { fill: #3f7f96; }
.ev-dusk .ev-reflect { opacity: .5; }
/* 夜（19〜5時） */
.ev-night { --ov: 14,24,50; }
.ev-night .sky1 { stop-color: #0d1a38; } .ev-night .sky2 { stop-color: #2d4272; }
.ev-night .ev-sun { display: none; }
.ev-night .ev-moon, .ev-night .ev-stars { display: inline; }
.ev-night .ev-moon-cut { fill: #13234a; }
.ev-night .ev-cloud { fill: #7b8bb3; opacity: .4; }
.ev-night .ev-shade { fill: rgba(8, 16, 44, .55); }
.ev-night .ev-win { fill: #ffd36b; opacity: 1; }
.ev-night .ev-water { fill: #15385a; }
.ev-night .ev-reflect { opacity: .22; }
.ev-night .ev-hero-text h1 { color: #ffd9a8; }
.ev-night .ev-hero-text p { color: #e8e4dc; }
.ev-night .ev-hero-text .ev-en { color: #ffb08a; }

/* 動き（動きを減らす設定の人には出さない） */
.ev-hero .ev-cloud, .ev-hero .ev-waves path { transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  .ev-hero .ev-cloud { animation: evDrift 150s linear infinite; }
  .ev-hero .ev-cloud.c2 { animation-duration: 190s; animation-delay: -70s; }
  .ev-hero .ev-cloud.c3 { animation-duration: 170s; animation-delay: -120s; }
  .ev-hero .ev-cloud.c4 { animation-duration: 230s; animation-delay: -40s; }
  .ev-hero .ev-waves .w1 { animation: evWave 7s linear infinite; }
  .ev-hero .ev-waves .w2 { animation: evWave 10s linear infinite reverse; }
  .ev-hero .ev-waves .w3 { animation: evWave 14s linear infinite; }
  .ev-hero .ev-reflect { animation: evShimmer 5s ease-in-out infinite; }
  .ev-night .ev-stars circle:nth-child(3n) { animation: evTwinkle 3.5s ease-in-out infinite; }
  .ev-night .ev-stars circle:nth-child(3n+1) { animation: evTwinkle 5s ease-in-out infinite -2s; }
}
@keyframes evDrift { from { transform: translateX(-1300px); } to { transform: translateX(1300px); } }
@keyframes evWave { from { transform: translateX(0); } to { transform: translateX(-120px); } }
@keyframes evShimmer { 50% { transform: scaleX(1.25); filter: brightness(1.2); } }
@keyframes evTwinkle { 50% { opacity: .25; } }
.ev-hero .ev-reflect { transform-box: fill-box; transform-origin: center; }/* 建物の色味だけを時間帯で変える（空には影響させない） */
.ev-dawn .ev-town { filter: sepia(.15) saturate(1.05) brightness(1.02); }
.ev-dusk .ev-town { filter: sepia(.35) saturate(1.2) brightness(.88); }
.ev-night .ev-town { filter: brightness(.42) saturate(.6) hue-rotate(-12deg); }
/* ===== 塔の灯りと窓の明かりが、ちかちか瞬く（夕方・夜） ===== */
.ev-hero .ev-lamp-win { fill: #c9b9a0; }
.ev-hero .ev-beam, .ev-hero .ev-lamp-glow { opacity: 0; }
.ev-dusk .ev-lamp-win, .ev-night .ev-lamp-win { fill: #ffd36b; }
.ev-dusk .ev-lamp-glow { opacity: .55; }
.ev-night .ev-lamp-glow { opacity: 1; }
.ev-night .ev-beam { opacity: .7; }
.ev-night .ev-win rect, .ev-dusk .ev-win rect { filter: drop-shadow(0 0 4px rgba(255, 205, 100, .85)); }
.ev-hero .ev-lamp-glow, .ev-hero .ev-beam { transform-box: fill-box; }
.ev-hero .ev-lamp-glow { transform-origin: center; }
.ev-hero .ev-beam { transform-origin: 100% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .ev-night .ev-lamp-glow, .ev-dusk .ev-lamp-glow { animation: evLamp 2.6s ease-in-out infinite; }
  .ev-night .ev-lamp-win, .ev-dusk .ev-lamp-win { animation: evFlick 3.2s steps(1) infinite; }
  .ev-night .ev-beam { animation: evBeam 6s ease-in-out infinite; }
  .ev-night .ev-win rect, .ev-dusk .ev-win rect { animation: evFlick 4.2s steps(1) infinite; }
  .ev-night .ev-win rect:nth-child(2n) { animation-duration: 5.3s; animation-delay: -1.7s; }
  .ev-night .ev-win rect:nth-child(3n) { animation-duration: 3.7s; animation-delay: -2.9s; }
  .ev-night .ev-win rect:nth-child(5n) { animation-duration: 6.1s; animation-delay: -.8s; }
  .ev-dusk .ev-win rect:nth-child(2n) { animation-duration: 5.3s; animation-delay: -1.7s; }
  .ev-dusk .ev-win rect:nth-child(3n) { animation-duration: 3.7s; animation-delay: -2.9s; }
}
@keyframes evFlick { 0% { opacity: 1; } 62% { opacity: .55; } 66% { opacity: 1; } 70% { opacity: .7; } 73% { opacity: 1; } }
@keyframes evLamp { 0%, 100% { transform: scale(1); opacity: 1; } 40% { transform: scale(1.18); opacity: .8; } 46% { opacity: 1; } 52% { opacity: .65; } 58% { opacity: 1; } }
@keyframes evBeam { 0%, 100% { opacity: .25; transform: rotate(-4deg); } 50% { opacity: .75; transform: rotate(4deg); } }
/* ===== 月の光（と塔の灯り）が水面に映る ===== */
.ev-hero .ev-moonpath, .ev-hero .ev-lamppath { display: none; }
.ev-night .ev-moonpath { display: inline; opacity: 1; filter: drop-shadow(0 0 3px rgba(253, 243, 208, .8)); }
.ev-night .ev-lamppath { display: inline; opacity: .6; filter: drop-shadow(0 0 3px rgba(255, 205, 100, .8)); }
.ev-night .ev-moon > circle:first-child { opacity: .6 !important; }
.ev-night .ev-reflect { opacity: .3; }
.ev-hero .ev-moonpath rect, .ev-hero .ev-lamppath rect { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .ev-night .ev-moonpath rect, .ev-night .ev-lamppath rect { animation: evGlint 3s ease-in-out infinite; }
  .ev-night .ev-moonpath rect:nth-child(2n), .ev-night .ev-lamppath rect:nth-child(2n) { animation-duration: 2.3s; animation-delay: -1s; }
  .ev-night .ev-moonpath rect:nth-child(3n), .ev-night .ev-lamppath rect:nth-child(3n) { animation-duration: 3.8s; animation-delay: -2.2s; }
}
@keyframes evGlint { 0%, 100% { opacity: 1; transform: translateX(0) scaleX(1); } 35% { opacity: .35; transform: translateX(4px) scaleX(.7); } 60% { opacity: .9; transform: translateX(-3px) scaleX(1.15); } }
/* ===== 月を黄色く明るく光らせる ===== */
.ev-night .ev-moon-disc { filter: drop-shadow(0 0 6px rgba(255, 220, 110, 1)) drop-shadow(0 0 16px rgba(255, 210, 90, .8)); }
.ev-night .ev-moon-halo { opacity: .9; }
.ev-night .ev-moonpath { filter: drop-shadow(0 0 4px rgba(255, 220, 110, .95)); }
.ev-hero .ev-moon-halo { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .ev-night .ev-moon-halo { animation: evMoonGlow 5s ease-in-out infinite; }
}
@keyframes evMoonGlow { 50% { transform: scale(1.12); opacity: .7; } }
/* ===== ログイン中だけ出る、ヘッダーの下の会員メニュー ===== */
.member-subnav { position: relative; z-index: 9; background: rgba(255, 252, 247, .94); border-bottom: 1px solid rgba(120, 80, 50, .12); box-shadow: 0 4px 14px rgba(60, 30, 10, .06); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.msn-inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; display: flex; justify-content: center; gap: 6px 30px; flex-wrap: wrap; }
.member-subnav a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 2px 9px; font-size: .88rem; letter-spacing: .08em; color: #5a4636; text-decoration: none; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.member-subnav a svg { width: 17px; height: 17px; opacity: .8; }
.member-subnav a:hover { color: #b8492e; text-decoration: none; }
.member-subnav a.current { color: #b8492e; border-bottom-color: #b8492e; }
/* 会員サイトのホーム（絵が画面いっぱい）では、ヘッダーのすぐ下に重ねる */
body.home .member-subnav, body.it-theme .member-subnav { position: absolute; left: 0; right: 0; top: 96px; z-index: 11; background: rgba(255, 252, 247, .72); }
html.amt-night body.it-theme .member-subnav { background: rgba(10, 18, 40, .55); border-bottom-color: rgba(255, 255, 255, .12); }
html.amt-night body.it-theme .member-subnav a { color: #f3e8d6; }
html.amt-night body.it-theme .member-subnav a.current, html.amt-night body.it-theme .member-subnav a:hover { color: #ffc48a; border-bottom-color: #ffc48a; }
html.in-app .member-subnav { display: none; }
@media (max-width: 600px) { .msn-inner { gap: 4px 18px; } .member-subnav a { font-size: .8rem; } .member-subnav a svg { width: 15px; height: 15px; } }
/* 会員サイトのホーム（絵だけの画面）では、会員メニューの帯は出さない */
html.only-hero .member-subnav { display: none !important; }

/* ログイン中は、上のメニューの「授業予約」を出さない（下の会員メニューにあるため） */
html.is-member:not(.in-app) .site-header .nav a[href$="reserve.html"] { display: none; }

/* 獲得アイテムの下に地図：間をあける */
.rpg-inv + .rpg-map-wrap, .rpg-chips + .rpg-map-wrap { margin-top: 28px; }

.mp-lead.crit-help { margin: 12px 4px 0; font-size: .85rem; }

/* ===== レベルアップの知らせ ===== */
.rpg-lvups { display: grid; gap: 10px; margin: 6px 0 4px; max-height: 50vh; overflow-y: auto; padding: 4px; }
.rpg-lvup { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 12px; text-align: left;
  background: linear-gradient(135deg, #3d2a1e, #5a3a22); color: #fff3d8; box-shadow: 0 0 0 2px #d9a441 inset, 0 8px 20px rgba(60, 30, 5, .25);
  opacity: 0; animation: rpgLvIn .6s cubic-bezier(.2, .9, .3, 1.3) forwards; }
.rpg-lvup-medal { flex: 0 0 56px; height: 56px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fff1b8, #e0a83a 55%, #a86d1a); color: #4a2a0a; box-shadow: 0 0 0 3px #fff3d0, 0 0 18px rgba(255, 210, 110, .7); }
.rpg-lvup-medal small { font-size: .65rem; line-height: 1; }
.rpg-lvup-medal b { font-family: "Cormorant Garamond", serif; font-size: 1.6rem; line-height: 1; }
.rpg-lvup .tx small { display: block; font-size: .72rem; color: #e8c88a; letter-spacing: .2em; }
.rpg-lvup .tx strong { font-size: 1.15rem; color: #ffe6a8; }
@keyframes rpgLvIn { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
/* ===== マイページの3D展示室カード：ルネサンスの宮廷（窓から日が差す広間と、奥のアーチの庭） ===== */
.re-scene { background: #e6dccb url("room-card.svg") center / cover no-repeat !important; perspective: 420px; }
.re-floor { display: none !important; }
.re-art { border: 4px solid #8a6a2e !important; box-shadow: 0 0 0 2px #e8c97a inset, 0 6px 12px rgba(40, 20, 5, .35) !important; top: 30% !important; }
.re-a0 { left: 2% !important; transform: rotateY(42deg) scale(1.05) !important; }
.re-a1 { left: 22% !important; top: 36% !important; transform: rotateY(40deg) scale(.62) !important; }
.re-a2 { right: 2% !important; transform: rotateY(-42deg) scale(1.05) !important; }
.re-a3 { right: 22% !important; top: 36% !important; transform: rotateY(-40deg) scale(.62) !important; }
.re-banner { top: 20% !important; background: #b5532f !important; border: 2px solid #f0d9a8; border-radius: 2px; letter-spacing: .05em; }
.re-scene { background-image: url("room-card.svg?v=2") !important; }

.re-scene { background-image: url("room-card.svg?v=4") !important; }

/* ===== 旅の特典：章の一覧（ひらいた章／封印された章） ===== */
.tc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.tc-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 14px 18px; border-radius: 14px; text-decoration: none; overflow: hidden; }
.tc-no { font-family: "Cormorant Garamond", serif; letter-spacing: .28em; font-size: .78rem; }
.tc-ic { display: grid; place-items: center; width: 58px; height: 58px; margin: 6px 0 4px; border-radius: 50%; }
.tc-ic svg { width: 30px; height: 30px; }
.tc-card strong { font-family: "Noto Serif JP", "Yu Mincho", serif; font-size: 1.15rem; letter-spacing: .12em; }
.tc-card em { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: .85rem; letter-spacing: .15em; }
.tc-card small { margin-top: 8px; font-size: .78rem; }
.tc-card.open { color: #3b2414; background: radial-gradient(ellipse at 50% 0%, #fff7e2, #f3e2bd 70%); box-shadow: inset 0 0 0 2px #d9a441, 0 10px 24px rgba(120, 70, 20, .18); transition: transform .25s, box-shadow .25s; }
.tc-card.open:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px #e8b84e, 0 14px 30px rgba(120, 70, 20, .28), 0 0 24px rgba(255, 210, 110, .35); text-decoration: none; }
.tc-card.open .tc-no { color: #b8492e; }
.tc-card.open .tc-ic { color: #fff; background: radial-gradient(circle at 35% 30%, #f6d98a, #c98a2a 70%); box-shadow: 0 0 0 3px #fff3d0, 0 0 18px rgba(255, 200, 90, .6); }
.tc-card.open em { color: #8a6a3a; }
.tc-card.open small { color: #b8492e; font-weight: 700; }
.tc-card.sealed { color: #b8b2a8; background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 10px, rgba(0,0,0,.05) 10px 20px), linear-gradient(160deg, #3a342e, #23201c); box-shadow: inset 0 0 0 2px #5a5148; cursor: not-allowed; }
.tc-card.sealed::before, .tc-card.sealed::after { /* 封印の鎖 */
  content: ""; position: absolute; left: -10%; right: -10%; top: 50%; height: 10px; pointer-events: none;
  background: repeating-linear-gradient(90deg, #7a6f62 0 14px, transparent 14px 18px); opacity: .55; }
.tc-card.sealed::before { transform: rotate(24deg); } .tc-card.sealed::after { transform: rotate(-24deg); }
.tc-card.sealed .tc-ic { color: #8a8278; background: #2e2a25; box-shadow: inset 0 0 0 2px #4a433b; }
.tc-card.sealed strong, .tc-card.sealed em, .tc-card.sealed .tc-no { opacity: .55; }
.tc-seal { position: absolute; z-index: 1; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; color: #f6e3c6;
  background: radial-gradient(circle at 35% 30%, #c4483a, #8a1f17 70%); box-shadow: 0 0 0 4px rgba(138, 31, 23, .35), 0 4px 10px rgba(0, 0, 0, .5); }
.tc-seal svg { width: 26px; height: 26px; }
.tc-card.sealed small { position: relative; z-index: 1; color: #d8cfc2; }
.tc-back { display: inline-block; margin-bottom: 6px; font-size: .85rem; color: #b8492e; text-decoration: none; }
.tc-back:hover { text-decoration: underline; }
@media (max-width: 700px) { .tc-list { grid-template-columns: 1fr; } }
.tc-seal { top: 100px; }
.tc-card.sealed::before, .tc-card.sealed::after { top: 100px; }

/* 3D展示室カード：ギルランダイオの室内画のような背景。作品は奥の木の腰板に正面から掛ける */
.re-scene { background-image: url("room-card.svg?v=5") !important; perspective: none !important; }
.re-art { top: 41% !important; width: 13% !important; transform: none !important; border: 3px solid #b8893c !important; }
.re-a0 { left: 39% !important; right: auto !important; }
.re-a1 { left: 54% !important; right: auto !important; top: 41% !important; }
.re-a2 { left: 69% !important; right: auto !important; }
.re-a3 { left: 84% !important; right: auto !important; top: 41% !important; }
.re-banner { top: 3% !important; }
.tc-back { display: block; width: fit-content; }
/* 旅の特典の下の章（同じ文字の大きさ）。開いているときだけ出す */
.msn-item { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.msn-sub { display: none; gap: 14px; padding: 0 0 8px; font-size: .88rem; letter-spacing: .08em; white-space: nowrap; }
.msn-item.open .msn-sub { display: flex; }
.msn-sub a { color: #5a4636; text-decoration: none; padding: 0 0 2px; border-bottom: 2px solid transparent; }
.msn-sub a:hover { color: #b8492e; }
.msn-sub a.current { color: #b8492e; border-bottom-color: #b8492e; }
.msn-sub .sealed { color: #a89e92; cursor: not-allowed; }
.msn-inner { align-items: flex-start; }
/* 章の行は下に重ねて、上の項目の間隔を変えない */
.msn-sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); }
.member-subnav:has(.msn-item.open) { padding-bottom: 28px; }

/* 3D展示室カード：アントネロ「書斎の聖ヒエロニムス」のような背景。作品は書斎の棚に飾る */
.re-scene { background-image: url("room-card.svg?v=6") !important; }
.re-art { top: 23% !important; width: 10.5% !important; border: 2px solid #8a5e30 !important; box-shadow: 0 0 0 1px #e0b878 inset, 0 3px 6px rgba(0,0,0,.4) !important; }
.re-a0 { left: 36% !important; } .re-a1 { left: 47.5% !important; } .re-a2 { left: 56% !important; } .re-a3 { left: 67% !important; }
.re-banner { top: 7% !important; }
/* 章：右に巻物の絵。封印中の章を押すと「封印されています」 */
.msn-sub a, .msn-sub .sealed { display: inline-flex; align-items: center; gap: 5px; }
.msn-sub .sealed { background: none; border: 0; padding: 0 0 2px; font: inherit; letter-spacing: inherit; color: #a89e92; cursor: pointer; }
.msn-sub .sealed:hover { color: #8a7e72; }
.msn-sub .sealed .msn-scroll { filter: grayscale(.5); opacity: .75; }
.msn-scroll { width: 22px; height: 16px; flex: 0 0 auto; }
.msn-tip { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); z-index: 20; padding: 6px 14px; border-radius: 999px; background: #3a2a1e; color: #fff3d8; font-size: .8rem; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.msn-tip[hidden] { display: none; }
/* 3D展示室カード：受胎告知のようなルネサンスの回廊。作品は列柱の奥の壁に掛ける */
.re-scene { background-image: url("room-card.svg?v=8") !important; }
.re-art { top: 37% !important; width: 9% !important; border: 2px solid #c9a24a !important; box-shadow: 0 0 0 1px #f2d98a inset, 0 3px 6px rgba(0,0,0,.45) !important; }
.re-a0 { left: 21% !important; } .re-a1 { left: 31% !important; } .re-a2 { left: 60% !important; } .re-a3 { left: 70% !important; }
.re-banner { top: 6% !important; }
.msn-scroll { width: 24px; height: 18px; }
.msn-sub .sealed .msn-scroll { filter: none; opacity: 1; }

.msn-scroll { width: 30px; height: 22px; }

/* 3D展示室カード：彫刻家のアトリエの写真。添削画像は大きく、額に入れて飾る */
.re-scene { background: #d8cfc0 url("room-card.jpg?v=2") center 40% / cover no-repeat !important; min-height: 230px !important; }
.re-art { width: 27% !important; top: 14% !important; border: 4px solid #6b4a2a !important; box-shadow: 0 0 0 2px #e0c08a inset, 0 10px 22px rgba(0,0,0,.45) !important; background: #f3efe6 !important; }
.re-art img { object-fit: contain !important; background: #f3efe6; }
.re-a0 { left: 3% !important; top: 16% !important; }
.re-a1 { left: 32% !important; top: 30% !important; width: 21% !important; }
.re-a2 { left: auto !important; right: 3% !important; top: 16% !important; }
.re-a3 { left: auto !important; right: 32% !important; top: 30% !important; width: 21% !important; z-index: 0; }
.re-a0, .re-a2 { z-index: 1; }
.re-banner { top: 4% !important; z-index: 2; }
@media (max-width: 700px) { .re-scene { min-height: 210px !important; } }
.member-subnav a.is-sealed { color: #a89e92; }

/* スマホアプリ：ヘッダーの下の段に「ホーム・掲示板・ギャラリー・イベント」を出す（授業予約とチャットは≡メニューにあるので出さない） */
html.in-app .site-header .header-inner { flex-wrap: wrap; }
html.in-app .site-header .nav { display: flex !important; order: 3; flex: 0 0 100%; justify-content: center; gap: 4px 22px; margin: 2px 0 0; padding: 0 0 6px; flex-wrap: wrap; }
html.in-app .site-header .nav a[href$="reserve.html"], html.in-app .site-header .nav .chat-btn { display: none !important; }
html.in-app .site-header .nav a { font-size: .9rem; letter-spacing: .08em; padding: 4px 0; }
html.in-app.app-colored .site-header .nav a { color: var(--app-hi) !important; opacity: .85; text-shadow: none !important; border-bottom: 2px solid transparent; }
html.in-app.app-colored .site-header .nav a.current { opacity: 1; border-bottom-color: var(--app-hi) !important; }
/* ===== アプリから開いた会員サイトのホーム：ヘッダーを半透明にして、後ろの空が透けて見える ===== */
html.in-app body.home .site-header, html.in-app.app-colored body.home .site-header, html.in-app.app-colored body.it-theme.home .site-header {
  position: absolute !important; left: 0; right: 0; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--app-h, #2193af) 52%, transparent) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.15); backdrop-filter: blur(8px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25);
}
/* アプリのヘッダー：下の段（ホーム・掲示板…）の上下をつめる */
html.in-app .site-header .header-inner { padding-bottom: 0 !important; row-gap: 0 !important; min-height: 0 !important; }
html.in-app .site-header .nav { margin: -4px 0 0 !important; padding: 0 0 2px !important; }
html.in-app .site-header .nav a { padding: 2px 0 3px !important; line-height: 1.4; }

/* 上の行と下の段の間を、最初と前回の中間に */
html.in-app .site-header .nav { margin: 0 !important; padding: 0 0 4px !important; }
html.in-app .site-header .nav a { padding: 3px 0 4px !important; }
html.in-app .site-header .header-inner { padding-bottom: 2px !important; }

html.in-app .site-header .nav { margin: 2px 0 0 !important; padding: 0 0 5px !important; }
html.in-app .site-header .nav a { padding: 4px 0 5px !important; }

/* アプリ：ホームでも「絵画の旅」の段はほかの画面と同じ色。透けるのは下の段（ホーム・掲示板…）だけ */
html.in-app body.home .site-header, html.in-app.app-colored body.home .site-header, html.in-app.app-colored body.it-theme.home .site-header {
  background: linear-gradient(180deg, var(--app-h, #2193af) 0, var(--app-h, #2193af) calc(100% - 37px), color-mix(in srgb, var(--app-h, #2193af) 52%, transparent) calc(100% - 37px)) !important;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html.in-app body.home .site-header .nav { -webkit-backdrop-filter: blur(8px) saturate(1.15); backdrop-filter: blur(8px) saturate(1.15); margin-left: -20px !important; margin-right: -20px !important; }
/* 掲示板（/member/?board）では、下の段も透けさせない（ホームの絵の画面だけ透ける） */
html.in-app:not(.only-hero) body.home .site-header, html.in-app.app-colored:not(.only-hero) body.home .site-header, html.in-app.app-colored:not(.only-hero) body.it-theme.home .site-header {
  background: var(--app-h, #2193af) !important;
}
html.in-app:not(.only-hero) body.home .site-header .nav { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* ホーム（絵だけの画面）：上の段も下の段も、ヘッダー全体を半透明に */
html.in-app.only-hero body.home .site-header, html.in-app.app-colored.only-hero body.home .site-header, html.in-app.app-colored.only-hero body.it-theme.home .site-header {
  background: color-mix(in srgb, var(--app-h, #2193af) 52%, transparent) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.15) !important; backdrop-filter: blur(8px) saturate(1.15) !important;
}
html.in-app.only-hero body.home .site-header .nav { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* アプリ：下の段のメニューはいつも中央に（左へずれていたのを直す） */
html.in-app body.home .site-header .nav, html.in-app .site-header .nav { margin-left: 0 !important; margin-right: 0 !important; justify-content: center !important; width: 100%; }

/* アプリの中だけ：旅の特典の章の並び（ヘッダーの会員メニューの代わり） */
.app-chapters { display: none; }
html.in-app .app-chapters { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 10px; font-size: .85rem; }
html.in-app .app-chapters b { color: #b8492e; }
html.in-app .app-chapters span { color: #a89e92; }

/* 3D展示室カード：フィレンツェのアトリエの絵。添削画像は右の壁の絵のあたりに掛ける */
.re-scene { background-image: url("room-card.jpg?v=3") !important; background-position: center 35% !important; }
.re-a0 { left: 3% !important; right: auto !important; top: 16% !important; }
.re-a1 { left: 31% !important; right: auto !important; top: 22% !important; }
.re-a2 { left: auto !important; right: 3% !important; top: 16% !important; }
.re-a3 { left: auto !important; right: 31% !important; top: 22% !important; }
/* 添削画像の額を、カードの高さの真ん中に */
.re-art, .re-a0, .re-a1, .re-a2, .re-a3 { top: 50% !important; translate: 0 -50%; }
.re-banner { z-index: 3; }

/* ===== デッサン・マスターへの旅：地図のポイント ===== */
.jp { cursor: pointer; }
.jp .jp-dot { fill: #f6ead0; stroke: #8a3a20; stroke-width: 2; }
.jp-t1 .jp-dot { fill: #b5532f; stroke: #fff3d8; stroke-width: 2.5; }
.jp-t2 .jp-dot { fill: #e0a43c; stroke: #6b3418; stroke-width: 2; }
.jp-t3 .jp-dot { fill: #fff8e8; stroke: #8a6a45; stroke-width: 1.5; }
.jp-star { fill: #fff3d0; font-size: 13px; font-weight: 700; pointer-events: none; }
.jp-name { font-family: "Noto Serif JP", "Yu Mincho", serif; fill: #3b2414; paint-order: stroke; stroke: rgba(255, 248, 232, .92); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.jp-t1 .jp-name { font-size: 22px; font-weight: 800; fill: #6b2410; }
.jp-t2 .jp-name { font-size: 15px; font-weight: 700; }
.jp-t3 .jp-name { font-size: 12px; fill: #6b5440; }
.jp-ahead .jp-dot { opacity: .75; }
.jp-ahead .jp-name { opacity: .8; }
.jp-done.jp-t2 .jp-dot, .jp-done.jp-t1 .jp-dot { stroke: #3f7a3a; }
.jp:hover .jp-dot, .jp:focus .jp-dot { stroke-width: 4; }
.jp:focus { outline: none; }
/* 小さい地図では、寄り道の名前は出さない（大きくすると出る） */
.rpg-map-wrap:not(.big) .jp-t3 .jp-name { display: none; }
.jp-scroll { overflow: hidden; border-radius: 10px; }
.rpg-map-wrap.big .jp-scroll { overflow: auto; max-height: 78vh; }
.rpg-map-wrap.big .jp-scroll .rpg-map { width: 1600px; max-width: none; height: auto; }
.jp-big { display: block; margin: 8px auto 0; padding: 6px 16px; border-radius: 999px; border: 1px solid #c9a46a; background: #fff8ea; color: #6b3418; font-weight: 700; cursor: pointer; }
.jp-illu { width: 180px; max-width: 60%; margin: 6px auto 4px; }
.jp-illu svg { width: 100%; height: auto; display: block; border-radius: 10px; background: #fbf4e4; box-shadow: inset 0 0 0 2px #e6d4b0; }
.jp-era { margin: 2px 0 0; text-align: center; color: #b5532f; font-weight: 700; font-size: .85rem; letter-spacing: .08em; }
.jp-text { text-align: left; line-height: 1.85; }
.jp-state { margin: 6px 0 0; text-align: center; font-weight: 700; color: #6b3418; }
/* ===== 旅の地図：絵の地図の上にポイント。ホイールで拡大・縮小 ===== */
.jp-map { display: block; width: 100%; height: auto; aspect-ratio: 1493 / 1053; touch-action: pan-y; cursor: grab; background: #bfe0f0; }
.jp-map.z2 { touch-action: none; }
.jp-map.dragging { cursor: grabbing; }
.jp-map .jp-name { font-size: calc(var(--fs, 15px) / var(--z, 1)); }
.jp-map .jp-t1 .jp-name { --fs: 24px; }
.jp-map .jp-t2 .jp-name { --fs: 17px; }
.jp-map .jp-t3 .jp-name { --fs: 13px; display: none; }
.jp-map.z2 .jp-t3 .jp-name { display: inline; }
.jp-map .jp-dot { vector-effect: non-scaling-stroke; }
.jp-zoom { position: absolute; right: 12px; top: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.jp-zoom button { min-width: 40px; height: 36px; padding: 0 8px; border-radius: 10px; border: 1px solid #c9a46a; background: rgba(255, 250, 238, .94); color: #6b3418; font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.jp-zoom button:last-child { font-size: .78rem; }
.rpg-map-wrap { position: relative; }
.jp-map .jp-name { font-size: var(--fs, 15px); }
.jp-map .jp-dot { vector-effect: none; }

.jp-map .jp-img { image-rendering: auto; }

/* 冒険の見出し：丸の中はレベルのイラスト、肩書きの横にレベル */
.rpg-badge.rpg-badge-img { flex: 0 0 96px; height: 96px; overflow: hidden; padding: 0; background: #f6d27a; box-shadow: 0 0 0 3px #f3d08a, 0 0 0 5px #fff3d0, 0 3px 10px rgba(0,0,0,.4); }
.rpg-badge-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rpg-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.rpg-lvtag { display: inline-flex; align-items: baseline; padding: 1px 10px; border-radius: 999px; background: linear-gradient(180deg, #f6d27a, #c9902c); color: #3b2a20; font-size: .85rem; letter-spacing: .04em; font-family: "Cormorant Garamond", serif; font-weight: 700; box-shadow: 0 0 0 1.5px #fff3d0; }
.rpg-lvup-medal.has-img { position: relative; overflow: visible; background: #f6d27a; }
.rpg-lvup-medal.has-img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rpg-lvup-medal.has-img em { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .66rem; font-weight: 700; padding: 0 6px; border-radius: 999px; background: #3b2a20; color: #ffe6a8; white-space: nowrap; }
@media (max-width: 600px) {
  .rpg-badge.rpg-badge-img { flex-basis: 76px; height: 76px; }
}

/* 3Dの冒険で集めたカード・街の秘密 */
.rpg-empty { margin: 6px 0 14px; font-size: .85rem; color: #7a6a5a; line-height: 1.7; }
.rpg-item .rpg-thumb { width: 100%; height: 72px; object-fit: cover; border-radius: 6px; margin-bottom: 4px; }
.rpg-item.card-image { background: linear-gradient(160deg, #3b2a5a, #5a3f86); color: #ffe6a8; }
.rpg-item.card-image em { color: #e8d4ff; }
.rpg-item.secret { background: linear-gradient(160deg, #fff4cf, #f2cd6c); }
.rpg-card-img { display: block; max-width: 100%; max-height: 52vh; margin: 8px auto 12px; border-radius: 8px; box-shadow: 0 0 0 3px #d9a441, 0 6px 18px rgba(0,0,0,.2); }

/* 旅の地図：地域の解説 */
.jp-guide-h { margin: 14px 0 4px; font-size: .95rem; color: #8a3a20; text-align: left; }
.jp-guide { white-space: pre-line; text-align: left; }

/* ===== 受講履歴・添削ギャラリー・授業予約：アトリエの写真を背景に。画面に固定し、うすい光の幕で文字を読みやすく ===== */
body.mypage-bg { background: #e9e2d6; }
body.mypage-bg::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: url("mypage-bg-illust.svg?v=1") center 40% / cover no-repeat;
}
body.mypage-bg::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(250, 246, 238, .35) 0%, rgba(250, 246, 238, .62) 22%, rgba(250, 246, 238, .62) 78%, rgba(250, 246, 238, .35) 100%);
}
/* 画面ごとのイラスト：受講履歴＝旅の日記の書斎／旅の特典＝冒険の景色／授業予約＝絵画教室 */
body.mypage-bg.bg-history::before { background-image: url("mypage-bg-history.svg?v=1"); }
/* 授業予定（受講履歴）は、スマホではイラストを出さない（パソコンのブラウザでは出す） */
@media (max-width: 700px) {
  body.mypage-bg.bg-history { background: #f6f1e8; }
  body.mypage-bg.bg-history::before, body.mypage-bg.bg-history::after { display: none; }
}
body.mypage-bg.bg-rpg::before { background-image: url("mypage-bg-rpg.svg?v=1"); }
body.mypage-bg.bg-reserve::before { background-image: url("mypage-bg-reserve.svg?v=1"); }
body.mypage-bg .page-single, body.mypage-bg .mypage, body.mypage-bg .site-footer { position: relative; }
/* 中身が少ないとき（封印中など）も、下の「© 2026 絵画の旅」の帯がいつも画面のいちばん下に来るように */
body.mypage-bg { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.mypage-bg > .site-footer { margin-top: auto; }
/* 授業予約：「入力内容を確認する」の上の、お支払い方法のお知らせ */
.pay-note { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 520px; margin: 8px auto 14px; padding: 12px 18px;
  background: #fff8e8; border: 2px solid #e9a23b; border-radius: 12px; color: #5a3a10; font-size: 1.05rem; font-weight: 700; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.pay-note span { font-size: 1.3rem; }
body.bg-reserve .actions { margin-bottom: 40px; }   /* 授業予約：「入力内容を確認する」ボタンの下を少しあける */
.pay-note strong { color: #b8492e; font-size: 1.12em; margin: 0 .1em; }
/* 縦に並べたとき、中身の列が縮まないように（幅は今までと同じ：最大幅＋左右の余白） */
body.mypage-bg > .mypage { width: 100%; box-sizing: border-box; max-width: calc(920px + 32px); }
body.mypage-bg > .page-single { width: 100%; box-sizing: border-box; max-width: calc(880px + 32px); }
@media (max-width: 700px) { body.mypage-bg::after { background: rgba(250, 246, 238, .6); } }
/* ===== ギャラリーの3D展示室：ページの枠を越えて、画面の横幅いっぱいに表示（余白なし） ===== */
/* 上の2枚のカード（ギャラリーの見出し・現在の展示）はそのまま。その下の3D展示室との間をあける */
.gallery-page .g3d { margin-top: 56px; }
.gallery-page .g3d {
  --g3d-gap: 0px; --vw: calc(100vw - var(--sbw, 0px)); border-radius: 0;
  width: calc(var(--vw) - var(--g3d-gap) * 2);
  margin-left: calc(50% - var(--vw) / 2 + var(--g3d-gap));
}

/* ===== 3D展示室：右下の「音楽」ボタン（効果音のミュートボタンの上） ===== */
.g3d .g3d-music { position: absolute; right: 12px; bottom: 60px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.9); color: #2b2825; display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 3; }
.g3d .g3d-music svg { width: 20px; height: 20px; }
.g3d .g3d-music.is-off { color: #b5532f; }
html.pad-right .g3d .g3d-music { bottom: 218px; }
@media (max-width: 640px) { .g3d .g3d-music { width: 36px; height: 36px; bottom: 56px; } .g3d .g3d-music svg { width: 18px; height: 18px; } html.pad-right .g3d .g3d-music { bottom: 214px; } }
/* ===== 3D展示室：ベンチに座っているときのお知らせ ===== */
.g3d .g3d-seat { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: calc(100% - 140px);
  background: rgba(30,26,22,.72); color: #fff; font-size: .82rem; padding: 7px 14px; border-radius: 999px; pointer-events: none; z-index: 3; text-align: center; }
@media (max-width: 640px) { .g3d .g3d-seat { bottom: auto; top: 12px; font-size: .75rem; } }
/* 作品の説明が長いときは、説明の欄の中でスクロール */
.g3d-info .desc { max-height: min(40vh, 320px); overflow-y: auto; white-space: pre-line; }
/* スマホ：説明は3D展示室のすぐ上に（3Dの画面にかぶせない） */
.g3d-info.g3d-info-out { position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; width: auto !important; margin: 0 12px 10px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.g3d-info.g3d-info-out .desc { max-height: 26vh; }

/* ===== 3D展示室：「ベンチに座りますか？」の確認 ===== */
.g3d .g3d-ask { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4;
  background: rgba(255,255,255,.96); color: #2b2825; border-radius: 12px; padding: 16px 20px 14px; box-shadow: 0 8px 28px rgba(0,0,0,.25); text-align: center; min-width: 220px; }
.g3d .g3d-ask p { margin: 0 0 12px; font-weight: 700; font-size: 1rem; }
.g3d .g3d-ask div { display: flex; gap: 8px; justify-content: center; }
.g3d .g3d-ask button { border: none; border-radius: 8px; padding: 8px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.g3d .g3d-ask .yes { background: #b8492e; color: #fff; }
.g3d .g3d-ask .no { background: #eee8df; color: #2b2825; }
/* ===== 3D展示室：曲を選ぶボタンと一覧（音楽ボタンの左） ===== */
.g3d .g3d-music-pick { position: absolute; right: 60px; bottom: 64px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.9); color: #2b2825; display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 3; }
.g3d .g3d-music-pick svg { width: 17px; height: 17px; }
.g3d .g3d-music-menu { position: absolute; right: 12px; bottom: 108px; z-index: 5; background: rgba(255,255,255,.97); border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25); min-width: 210px; }
.g3d .g3d-music-menu p { margin: 2px 6px 6px; font-size: .78rem; color: #77716a; font-weight: 700; }
.g3d .g3d-music-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; border-radius: 8px; padding: 8px 10px 8px 28px; cursor: pointer; font: inherit; color: #2b2825; position: relative; }
.g3d .g3d-music-menu button:hover { background: #f4ede2; }
.g3d .g3d-music-menu button b { display: block; font-size: .9rem; }
.g3d .g3d-music-menu button small { font-size: .74rem; color: #8a7d70; }
.g3d .g3d-music-menu button.on::before { content: '♪'; position: absolute; left: 10px; top: 9px; color: #b8492e; font-weight: 700; }
html.pad-right .g3d .g3d-music-pick { bottom: 222px; }
html.pad-right .g3d .g3d-music-menu { bottom: 262px; }
@media (max-width: 640px) { .g3d .g3d-music-pick { right: 54px; bottom: 58px; } }
/* 記事の文字の大きさ（記事を書く画面で選んだもの） */
.post .fs-s { font-size: .85em; } .post .fs-l { font-size: 1.25em; } .post .fs-xl { font-size: 1.6em; line-height: 1.5; }

/* 記事の文字の色（記事を書く画面で選んだもの） */
.post .fc-red { color: #c0392b; } .post .fc-blue { color: #2e6fa8; } .post .fc-green { color: #3f7d4a; } .post .fc-orange { color: #d9822b; } .post .fc-purple { color: #7a4ac8; } .post .fc-brown { color: #8a5a32; } .post .fc-gray { color: #77716a; }

/* 記事のページ：カテゴリー・最近の記事は、右ではなく本文のいちばん下に（横に並べる） */
.layout { max-width: 860px; grid-template-columns: minmax(0, 1fr); }
.layout > .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; border-top: 1px solid #e4ded5; padding-top: 28px; }
.post .post-spacer { min-height: 1.9em; }   /* すき間の段落：ふつうの段落1つ分の高さ（ビジュアルの画面と同じ） */

/* 記事の一覧：横長のカード（上にアイキャッチ、下に題名と本文の抜粋）。2列に並べる */
.post-list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.post-list .post-card { display: flex; flex-direction: column; grid-template-columns: none; gap: 0; }
.post-list .post-card .eyecatch { width: 100%; height: auto; aspect-ratio: 2 / 1; padding: 0; overflow: hidden; flex: none; }
.post-list .post-card .eyecatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-list .post-card .post-card-body { padding: 12px 16px 16px; }
.post-list .post-card .post-card-body .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-list .post-card .post-card-body .cat { white-space: nowrap; }
.post-list .post-card .post-card-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 720px) { .post-list { grid-template-columns: 1fr; } }
/* 授業予約：「1. 授業を選ぶ」の横の料金の注意書き */
.price-note { margin-left: 10px; font-size: .78rem; font-weight: 500; color: var(--muted, #7a7066); letter-spacing: .02em; vertical-align: 2px; }
@media (max-width: 560px) { .price-note { display: block; margin: 4px 0 0; } }
.price-note[hidden] { display: none; }
.price-note { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(122, 112, 102, .45); }
.price-note:hover { color: #1d6fa5; text-decoration-color: currentColor; }

/* 掲示板・ギャラリー・イベント（ログイン前）：スマホのブラウザでは「ログイン」「無料登録」をメニューの文字と同じに（assets/member.js が .nav-auth を足す） */
.nav .nav-auth { display: none; }
@media (max-width: 700px) {
  html.auth-in-nav:not(.in-app) .nav .nav-auth { display: inline-block; }
  html.auth-in-nav:not(.in-app) .site-header .header-actions { display: none; }
  /* メニューにはじめから書いてあるページ：読み込みの途中から新しい形で出す（前の大きなボタンが一瞬見えないように） */
  html:not(.only-hero):not(.in-app) .nav:has(.nav-auth) .nav-auth { display: inline-block; }
  html:not(.only-hero):not(.in-app) .site-header:has(.nav .nav-auth) .header-actions:has(.btn-signup) { display: none; }
}
html.only-hero .nav .nav-auth, html.in-app .nav .nav-auth { display: none !important; }

/* スマホ・掲示板：メニューの字の間を少し詰めて、「授業予約」を1行目（イベントの右）に入れる（ホームの表紙はそのまま） */
@media (max-width: 700px) {
  html:not(.only-hero):not(.in-app) body.home .site-header .nav { column-gap: 16px; }
  html:not(.only-hero):not(.in-app) body.home .site-header .nav a { letter-spacing: .03em; }
}

/* スマホ・会員サイトのホーム（表紙）：「授業予約」を2行目にして、水色のチャットマークの左に並べる */
@media (max-width: 700px) {
  html.only-hero:not(.in-app) body.home .site-header .nav::after { content: ""; order: 1; flex-basis: 100%; height: 0; }
  html.only-hero:not(.in-app) body.home .site-header .nav a[href$="reserve.html"] { order: 2; align-self: center; }
  html.only-hero:not(.in-app) body.home .site-header .nav .chat-btn { order: 3; }
}

/* スマホ：会員メニュー（受講履歴・添削ギャラリー・旅の特典・授業予約）を1行に並べる（授業予約だけ2行目に落ちないように） */
@media (max-width: 700px) {
  html:not(.in-app) .msn-inner { flex-wrap: nowrap; justify-content: space-around; gap: 4px 8px; padding: 0 6px; }
  html:not(.in-app) .member-subnav a { gap: 4px; padding-left: 0; padding-right: 0; letter-spacing: .01em; font-size: min(.8rem, 3.5vw); white-space: nowrap; }
  html:not(.in-app) .member-subnav a svg { width: 14px; height: 14px; flex: none; }
}

/* スマホ：「旅の特典」の下に出る章（デッサン・水彩・油彩）を、右にはみ出さないよう、会員メニューの幅の中央に出す */
@media (max-width: 700px) {
  html:not(.in-app) .member-subnav .msn-item { position: static; }
  html:not(.in-app) .member-subnav .msn-sub { left: 0; right: 0; top: auto; bottom: 4px; transform: none; justify-content: center; gap: 18px; font-size: min(.84rem, 3.6vw); letter-spacing: .04em; padding: 0; }
  html:not(.in-app) .member-subnav:has(.msn-item.open) { padding-bottom: 32px; }
}
