@charset "UTF-8";
/*====================================================================
base / variable
馬込文士村 公式ガイド（スマホ専用）
色・サイズは Figma の変数および実測値から取得
====================================================================*/
/*-----------------------------------------------
色
------------------------------------------------*/
/*-----------------------------------------------
影・罫線（Figma の Effect をそのまま定義）
------------------------------------------------*/
/*-----------------------------------------------
レイアウト
------------------------------------------------*/
/*-----------------------------------------------
フォント
Zen Kaku Gothic New … 本文・UI全般
Noto Serif JP       … 見出し・ランク名（明朝）
------------------------------------------------*/
/*-----------------------------------------------
z-index
------------------------------------------------*/
/*====================================================================
base / font
====================================================================*/
@font-face {
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
}
/* デザインB（タブレット） */
@media screen and (min-width: 600px) {
  /* タブレット用レイアウト 600px以上の範囲に収めるデザインはこの中に記述 */
}
/* デザインC(PC) */
@media screen and (min-width: 1025px) {
  /* PC用レイアウト 1,025px以上の範囲に収めるデザインはこの中に記述 */
}
.sa {
  opacity: 0;
  transition: all 0.5s ease;
}

.sa.show {
  opacity: 1;
  transform: none;
}

.sa__up {
  transform: translate(0, 100px);
}

.sa__down {
  transform: translate(0, -100px);
}

.sa__scaleUp {
  transform: scale(0.5);
}

@keyframes anim_dian {
  0% {
    transform: translate(0, 0px);
  }
  100% {
    transform: translate(0, -35px);
  }
}
@keyframes dian-move {
  0% {
    top: 10%; /*スタート地点（サンプルは[class:cp_arrows]height300pxの35%）*/
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes rotate-anime {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(45deg);
  }
  100% {
    transform: rotate(90deg);
  }
}
@keyframes fluffy {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes fluffyUp {
  0% {
    transform: translateY(0);
  }
  5% {
    transform: translateY(0);
  }
  10% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(-15px);
  }
  25% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-15px);
  }
  50% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes rotateIn {
  from {
    transform-origin: center;
    transform: rotate3d(0, 0, 1, 90deg);
  }
  to {
    transform-origin: center;
    transform: translate3d(0, 0, 0);
  }
}
.rotateIn {
  -webkit-animation-name: rotateIn;
  animation-name: rotateIn;
}

/*====================================================================
mixin / manuscriptBg
QRランディング・オンボーディング・利用規約で共通の「teal地＋原稿用紙」の背景。
Figma（260916_最新デザイン 20:3995 / 20:2764 / 20:2980）はどの画面も
原稿用紙を x=-87 y=-48 571.776×1046・不透明度50%で置いている。
ただしブラウザで 50% にすると Figma の画面よりかなり薄い（素材の線が白・アルファ最大128と淡い）。
Figma の画面と画素の濃さを比べ、同じ画像を2枚重ねて不透明度 75% で揃えた。

3画面で置き方（位置・拡大率）を完全に揃えているので、画面が切り替わっても
原稿用紙のマス目が動かず、上に乗った絵やカードだけが入れ替わって見える。
以前はQRランディングだけFigmaの座標、残り2画面は cover で敷いていたため、
切り替えの瞬間にマス目の大きさが変わっていた。

  --u … デザイン上の 1px（アプリの幅 ÷ 390。430px で頭打ち）

使う側には position と overflow を付ける（原稿用紙は ::before で、要素の外へはみ出す）。
中身は ::before より後ろに描かれるよう position: relative を付けておくこと。
====================================================================*/
.visualEditArea {
  font-size: 1.4rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: justify;
  color: #1e3c7d;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .visualEditArea {
    font-size: 1.6rem;
    line-height: 1.8;
  }
}
.visualEditArea {
  margin: 20px auto;
}
.visualEditArea * {
  margin-top: 1.75em;
}
.visualEditArea *:nth-child(1) {
  margin-top: 0;
}
.visualEditArea a {
  transition: 0.6s;
}
@media screen and (min-width: 769px) {
  .visualEditArea a:hover {
    opacity: 0.6;
  }
}
.visualEditArea a {
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: justify;
  color: #1e3c7d;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .visualEditArea a {
    font-size: 1.6rem;
    line-height: 1.8;
  }
}
.visualEditArea h1, .visualEditArea h2, .visualEditArea h3, .visualEditArea h4, .visualEditArea h5, .visualEditArea h6 {
  font-weight: bold;
}
.visualEditArea h1 {
  font-size: 32px;
  line-height: 1.4;
}
.visualEditArea h2 {
  margin-top: 2em;
  font-size: 27px;
  line-height: 1.6;
}
.visualEditArea h3 {
  font-size: 22px;
  line-height: 1.6;
}
.visualEditArea h4, .visualEditArea h5, .visualEditArea h6 {
  font-size: 16px;
  line-height: 1.6;
}
.visualEditArea h1 + h2,
.visualEditArea h2 + h3,
.visualEditArea h3 + h4,
.visualEditArea h4 + h5,
.visualEditArea h5 + h6 {
  margin-top: 0.5em;
}
.visualEditArea p {
  margin-top: 0.5em;
  font-size: 1.4rem;
  line-height: 1.6;
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: justify;
  color: #1e3c7d;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .visualEditArea p {
    font-size: 1.6rem;
    line-height: 1.8;
  }
}
.visualEditArea p span {
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: justify;
  color: #1e3c7d;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .visualEditArea p span {
    font-size: 1.6rem;
    line-height: 1.8;
  }
}
.visualEditArea p strong {
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: justify;
  color: #1e3c7d;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .visualEditArea p strong {
    font-size: 1.6rem;
    line-height: 1.8;
  }
}
.visualEditArea p del {
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: justify;
  color: #1e3c7d;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .visualEditArea p del {
    font-size: 1.6rem;
    line-height: 1.8;
  }
}
.visualEditArea strong {
  font-weight: bold;
}
.visualEditArea em {
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: justify;
  color: #1e3c7d;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .visualEditArea em {
    font-size: 1.6rem;
    line-height: 1.8;
  }
}
.visualEditArea ul {
  list-style-type: disc;
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: justify;
  color: #1e3c7d;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .visualEditArea ul {
    font-size: 1.6rem;
    line-height: 1.8;
  }
}
.visualEditArea ol {
  list-style-type: decimal;
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: justify;
  color: #1e3c7d;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .visualEditArea ol {
    font-size: 1.6rem;
    line-height: 1.8;
  }
}
.visualEditArea ul, .visualEditArea ol {
  margin-top: 1em;
  padding-left: 1.4em;
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: justify;
  color: #1e3c7d;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .visualEditArea ul, .visualEditArea ol {
    font-size: 1.6rem;
    line-height: 1.8;
  }
}
.visualEditArea ul li, .visualEditArea ol li {
  margin-top: 0.6em;
  line-height: 1.5;
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: justify;
  color: #1e3c7d;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .visualEditArea ul li, .visualEditArea ol li {
    font-size: 1.6rem;
    line-height: 1.8;
  }
}
.visualEditArea i {
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: justify;
  color: #1e3c7d;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .visualEditArea i {
    font-size: 1.6rem;
    line-height: 1.8;
  }
}
.visualEditArea sup, .visualEditArea sub {
  font-size: 10px;
}
.visualEditArea table {
  margin-top: 3em;
  width: 100% !important;
  height: auto !important;
  border-collapse: collapse;
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: justify;
  color: #1e3c7d;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .visualEditArea table {
    font-size: 1.6rem;
    line-height: 1.8;
  }
}
.visualEditArea table thead th, .visualEditArea table thead td {
  font-weight: bold;
  text-align: center;
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: justify;
  color: #1e3c7d;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .visualEditArea table thead th, .visualEditArea table thead td {
    font-size: 1.6rem;
    line-height: 1.8;
  }
}
.visualEditArea table tr th, .visualEditArea table tr td {
  padding: 15px 20px;
  border: #1e3c7d 1px solid;
  line-height: 1.5;
  text-align: left;
  vertical-align: middle;
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: justify;
  color: #1e3c7d;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .visualEditArea table tr th, .visualEditArea table tr td {
    font-size: 1.6rem;
    line-height: 1.8;
  }
}
.visualEditArea table tr th {
  width: 25%;
  font-weight: bold;
  text-align: center;
}
.visualEditArea img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-top: 2em;
}
.visualEditArea img.alignnone, .visualEditArea img.alignleft {
  margin-top: 2em;
}
.visualEditArea img.aligncenter {
  display: block;
  margin: 2em auto 0;
}
.visualEditArea img.alignright {
  display: block;
  margin: 2em 0 0 auto;
}

/*====================================================================
Reset
====================================================================*/
html {
  color: #1e3c7d;
  background: #fff;
}

html, body, div, figure, section, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 10px;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
  line-height: 100%;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

b, strong {
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", （何かしらのゴシック体）;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset,
img {
  border: 0;
}

/*
TODO think about hanlding inheritence differently, maybe letting IE6 fail a bit...
*/
address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var {
  font-style: normal;
  font-weight: normal;
}

ol,
ul {
  list-style: none;
}

caption,
th {
  text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

q:before,
q:after {
  content: "";
}

abbr,
acronym {
  border: 0;
  font-variant: normal;
}

sup {
  font-size: 10px;
  vertical-align: text-top;
}

sub {
  vertical-align: text-bottom;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

input,
textarea,
select {
  *font-size: 100%;
}

legend {
  color: #1e3c7d;
}

ol, ul {
  list-style: none;
}

a {
  color: #1e3c7d;
  text-decoration: none;
}

input,
button,
textarea,
select {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  line-height: 100%;
  box-sizing: border-box;
}

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

/*====================================================================
COMMON
スマホ専用。PC/SP の出し分けは行わない。
====================================================================*/
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 10px;
  background: #fffcf9;
}

div,
section,
article,
aside,
nav,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
dl,
dt,
dd,
ol,
ul,
li,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
figure,
figcaption {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

body {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt" 1;
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.6;
  color: #1e3c7d;
  background: #ebeff4;
  overflow-x: hidden;
}
body.is-noScroll {
  overflow: hidden;
}

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

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

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

a[href^="tel:"] {
  pointer-events: auto;
}

/*-----------------------------------------------
汎用ユーティリティ
------------------------------------------------*/
.u-visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.u-scrollX {
  display: flex;
  margin-inline: -16px;
  padding-inline: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.u-scrollX::-webkit-scrollbar {
  display: none;
}
.u-scrollX > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/*====================================================================
layout / app
アプリ全体の器。PCで開いてもスマホ幅で中央に表示する。
====================================================================*/
:root {
  --headerH: 68px;
  --tabbarH: 64px;
  --safeTop: env(safe-area-inset-top, 0px);
  --safeBottom: env(safe-area-inset-bottom, 0px);
}

.l-app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin-inline: auto;
  background: #fffcf9;
  overflow-x: hidden;
}

/*-----------------------------------------------
原稿用紙テクスチャ
スクロールに追従させたくないので fixed で敷く

不透明度について：Figma の書き出しは 30% だが、素材そのものの罫線が
すでに薄い（アルファ最大 77/255）ため、30% だと実機では地の色との差が
最大でも 8/255 しかなく、ほぼ見えない。
Figma の画面（260930 20:3832）と画素の濃さを比べて、100%（不透明度なし）で揃えた。
薄くしたくなった場合もここ1か所で調整できる。
------------------------------------------------*/
.l-app__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  max-width: 430px;
  margin-inline: auto;
  background: url("../images/common/bg_genko.png") repeat-y top center/100% auto;
  background-image: image-set(url("../images/common/bg_genko.webp") type("image/webp"), url("../images/common/bg_genko.png") type("image/png"));
  pointer-events: none;
}

/*-----------------------------------------------
メイン
ヘッダー／タブバーはどちらも fixed なので、その分を padding で逃がす
------------------------------------------------*/
.l-main {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding-top: calc(var(--headerH) + var(--safeTop));
  padding-bottom: calc(var(--tabbarH) + var(--safeBottom));
}

.l-main--bare {
  padding-top: var(--safeTop);
  padding-bottom: var(--safeBottom);
}

.l-main--noTabbar {
  padding-top: calc(var(--headerH) + var(--safeTop));
  padding-bottom: var(--safeBottom);
}

/*-----------------------------------------------
左右 16px の基本余白
------------------------------------------------*/
.l-inner {
  padding-inline: 16px;
}

/*====================================================================
layout / header
中身（タイトル・メニュー）は高さ48px、その上下に10pxの余白（$headerPadT / $headerPadB）。
iOSのステータスバー分は safe-area で上に伸ばす。
（Figmaの「9:41」表示はOS側のものなので実装しない）
====================================================================*/
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  max-width: 430px;
  height: calc(var(--headerH) + var(--safeTop));
  margin-inline: auto;
  padding-top: calc(var(--safeTop) + 10px);
  padding-bottom: 10px;
  background: #ebeff4;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*-----------------------------------------------
タイトル。ホームへのリンク（aタグ）（Figma 260928 52:3199）
上に「馬込文士村 公式ガイドアプリ」（明朝12px）、下に「まごめぐり」のロゴ。
左にペン、下に飾り罫。位置はペンの左端（390px 幅で x=81）を基準にした Figma の px。
飾り罫は装飾なので疑似要素で置く
------------------------------------------------*/
.l-header__title {
  position: relative;
  display: block;
  width: 228px;
  height: 48px;
}
.l-header__title::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 38px;
  width: 227px;
  height: 9.5px;
  background: url("../images/common/title_line.svg") no-repeat center/contain;
}

.l-header__pen {
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 28px;
}

.l-header__titleSub {
  position: absolute;
  left: 0;
  top: -2px;
  width: 100%;
  font-family: "Noto Serif JP", serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 20px;
  color: #1e3c7d;
  text-align: center;
  white-space: nowrap;
}

.l-header__titleMain {
  position: absolute;
  left: 54px;
  top: 19px;
  width: 111.52px;
  height: 22.594px;
}

/*-----------------------------------------------
ハンバーガー（設定モーダルを開く）
------------------------------------------------*/
.l-header__menu {
  position: absolute;
  top: calc(var(--safeTop) + 34px);
  right: 16px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  color: #1e3c7d;
}
.l-header__menu svg {
  width: 100%;
  height: 100%;
}

/*====================================================================
layout / tabbar
5項目。Figmaでは1項目73px幅・5つで365pxを中央寄せ（左右12.5px余り）。
下端の余白はホームインジケータ分なので safe-area で確保する。
====================================================================*/
.l-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  max-width: 430px;
  margin-inline: auto;
  padding-bottom: var(--safeBottom);
  background: #ebeff4;
  display: flex;
  justify-content: center;
  transition: transform 0.35s ease;
}

.l-app:has(.c-mapSheet.is-open) .l-tabbar {
  transform: translateY(100%);
}

.l-tabbar__item {
  width: 73px;
  height: var(--tabbarH);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #1e3c7d;
}
.l-tabbar__item.is-current {
  color: #1e968a;
}

.l-tabbar__icon {
  width: 24px;
  height: 24px;
}
.l-tabbar__icon svg {
  width: 100%;
  height: 100%;
}

.l-tabbar__label {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/*====================================================================
modules / thumb
画像プレースホルダ。デザインの「images」入りグレーボックスを再現する。
実画像を入れるときは .c-thumb__ph を削除して <img class="c-thumb__img"> を置く。
WordPress連携時はここが the_post_thumbnail() に置き換わる想定。
====================================================================*/
.c-thumb {
  position: relative;
  display: block;
  background: #b0b0b0;
  border-radius: 4px;
  overflow: hidden;
}

.c-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.c-thumb__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
}

.c-thumb__phIcon {
  width: 32px;
  height: 25px;
}
.c-thumb__phIcon svg {
  width: 100%;
  height: 100%;
}

.c-thumb__phText {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}

.c-thumb.c-thumb--contain {
  height: auto;
  aspect-ratio: auto;
  background: transparent;
}
.c-thumb.c-thumb--contain .c-thumb__img {
  display: block;
  height: auto;
  object-fit: contain;
}

/*====================================================================
modules / avatar
文士の似顔絵。淡色の丸の上に、下だけ丸い「U字」に切り抜いた似顔絵を
少しはみ出させて重ねる（頭が丸から出るデザイン）。
Figmaでは36x46のマスクSVGだが、border-radius で同じ形が作れるので画像は使わない。

丸の色は白いカードの上では #EBEFF4（Figma 260916_最新デザイン 20:2310 など）、
緑のプロフィールカード（c-profileCard）の上では白（modules/_profileCard.scss）。
====================================================================*/
.c-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  background: #ebeff4;
  border-radius: 50%;
}

.c-avatar__img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 46px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 0 0 18px 18px;
}

/*-----------------------------------------------
サイズ違い
------------------------------------------------*/
.c-avatar--lg {
  width: 56px;
  height: 56px;
}
.c-avatar--lg .c-avatar__img {
  width: 56px;
  height: 72px;
  border-radius: 0 0 28px 28px;
}

.c-avatar--xl {
  width: 64px;
  height: 64px;
}
.c-avatar--xl .c-avatar__img {
  width: 64px;
  height: 78px;
  border-radius: 0 0 32px 32px;
}

/*====================================================================
modules / sectionTitle
セクション見出し。多くは一覧ページへのリンクなので > が付く。
====================================================================*/
.c-sectionTitle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: #1e3c7d;
}

.c-sectionTitle--lg {
  font-size: 1.8rem;
}

.c-sectionTitle__arrow {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.c-sectionTitle__arrow svg {
  width: 100%;
  height: 100%;
}

/*====================================================================
modules / writerCard
文士カード（ホームの「馬込の文士たち」、文士一覧で使用）
似顔絵がカード上辺からはみ出すので overflow は切らないこと。
====================================================================*/
.c-writerCard {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 203px;
  height: 44px;
  padding-inline: 6px 8px;
  background: #fff;
  border-bottom: 1px solid #1e968a;
  box-shadow: 2px 4px 8px rgba(36, 69, 141, 0.15);
}

.c-writerCard__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.c-writerCard__name {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.c-writerCard__works {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*====================================================================
modules / facilityCard
施設カード（ホームの「主な施設」の横スクロール内で使用）
====================================================================*/
.c-facilityCard {
  display: block;
  width: 116px;
}

.c-facilityCard__thumb {
  height: 80px;
}

.c-facilityCard__thumb .c-thumb__img {
  object-fit: cover;
  object-position: center;
}

.c-facilityCard__name {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}

.c-facilityCard__text {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
}

/*====================================================================
modules / rankCard
文士村ランクの黄色いカード（ホームの下部、マイページで使用）
背景はノイズ入りのため Figma 書き出しのSVGをそのまま使う。
四隅の飾りは縦向きのSVGを -90度回転させて置く。
====================================================================*/
.c-rankCard {
  position: relative;
  padding: 16px;
  background: url("../images/common/rank_card_frame.svg") no-repeat center/100% 100%;
}

/*-----------------------------------------------
四隅の飾り
SVGは横向きに作り直してあるので、CSS側で回転させる必要はない。
（縦向きのまま transform で回すと、はみ出した要素の中央揃えが
  ブラウザの safe alignment で効かず位置がずれる）
------------------------------------------------*/
.c-rankCard__corner {
  position: absolute;
  width: 62px;
  height: 29.5px;
  opacity: 0.6;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}
.c-rankCard__corner--tl {
  top: 4px;
  left: 4px;
  background-image: url("../images/common/rank_corner_d.svg");
  background-position: left top;
}
.c-rankCard__corner--tr {
  top: 4px;
  right: 4px;
  background-image: url("../images/common/rank_corner_a.svg");
  background-position: right top;
}
.c-rankCard__corner--bl {
  bottom: 4px;
  left: 4px;
  background-image: url("../images/common/rank_corner_c.svg");
  background-position: left bottom;
}
.c-rankCard__corner--br {
  bottom: 4px;
  right: 4px;
  background-image: url("../images/common/rank_corner_b.svg");
  background-position: right bottom;
}

/*-----------------------------------------------
ランク名（文士見習い／文士エキスパート など）
------------------------------------------------*/
.c-rankName {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: #6f6134;
  justify-content: center;
}

/*-----------------------------------------------
ランクのアイコン（Figma 20-4198「ico」）

白丸の中に紺＋teal の線画。絵柄はランクごとに違うので、テンプレート側で
`c-rankIcon--<スラッグ>` を付けて差し替える（mbg_rank_slug()）。
ホームの小さいランク表示（24px）とマイページの大きい表示（100px）で
同じ素材を使う。

修飾クラスが付かなかったとき（想定外のランク名）は、
これまで通りグレーの丸が出るだけで崩れない。
------------------------------------------------*/
.c-rankIcon,
.c-rankName__icon {
  flex: 0 0 auto;
  display: block;
  border-radius: 50%;
  background: #b0b0b0 no-repeat center/100% 100%;
}

.c-rankIcon--shoshinsha {
  background-image: url("../images/common/rank_shoshinsha.svg");
  background-color: transparent;
}

.c-rankIcon--minarai {
  background-image: url("../images/common/rank_minarai.svg");
  background-color: transparent;
}

.c-rankIcon--hosa {
  background-image: url("../images/common/rank_hosa.svg");
  background-color: transparent;
}

.c-rankIcon--annaijin {
  background-image: url("../images/common/rank_annaijin.svg");
  background-color: transparent;
}

.c-rankIcon--kenkyuin {
  background-image: url("../images/common/rank_kenkyuin.svg");
  background-color: transparent;
}

.c-rankIcon--hakase {
  background-image: url("../images/common/rank_hakase.svg");
  background-color: transparent;
}

.c-rankName__icon {
  width: 24px;
  height: 24px;
}

/*====================================================================
modules / progress
訪問状況のバーと「6 / 20スポット」のカウンタ。
バーの進捗は style="--progress: 30%" で渡す（後でJS/APIから差し込む）。
====================================================================*/
.c-progress {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.c-progress::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 0%);
  border-radius: 6px;
  background: #1e3c7d;
}

/*-----------------------------------------------
6 / 20スポット
------------------------------------------------*/
.c-visitCount {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  color: #6f6134;
  line-height: 1;
}

.c-visitCount__num {
  font-size: 2rem;
  font-weight: 700;
}

.c-visitCount__slash {
  width: 1px;
  height: 16px;
  margin-inline: 3px;
  background: #6f6134;
  transform: rotate(37.3deg);
}

.c-visitCount__total {
  font-size: 1.2rem;
  font-weight: 500;
}

.c-visitCount__unit {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.08em;
}

/*====================================================================
modules / tab
文士 / 施設 の上部タブ切り替え。
選択中は背が高く（48px）teal塗りで下のコンテンツ帯と一体化し、
非選択は少し低く（40px）EBEFF4塗りで下がって見える。
JSは data-tabgroup / data-tab（main.js の initTab）で連動。
====================================================================*/
.c-tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding-inline: 8px;
  padding-top: 24px;
}

.c-tab__btn {
  flex: 1 1 0;
  height: 40px;
  background: #ebeff4;
  border-radius: 8px 8px 0 0;
  font-size: 2rem;
  font-weight: 700;
  color: #1e3c7d;
  line-height: 1;
}
.c-tab__btn.is-current {
  height: 48px;
  background: #1e968a;
  color: #fff;
}

/*====================================================================
modules / boxTitle
一文字ずつ枠で囲んだ見出し（「馬込の[文士]たち」など）。
teal帯の上に白抜きで置く前提。強調したい文字だけ紺塗り＋明朝にする。
※ maypage の「文士村ランク」見出しでも使う想定
====================================================================*/
.c-boxTitle {
  display: flex;
  justify-content: center;
}

.c-boxTitle__char {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #fff;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
  color: #fff;
}
.c-boxTitle__char + .c-boxTitle__char {
  margin-left: -1px;
}

.c-boxTitle__char--fill {
  background: #1e3c7d;
  font-family: "Noto Serif JP", serif;
}

.c-boxTitle__char--teal {
  background: #1e968a;
  border-color: #fff;
}

/*-----------------------------------------------
単語ごとにまとめて囲む版（英語。マイページの「Bunshimura｜Rank」）
1文字ずつの枠は日本語向けなので、英語は単語1つを1つの枠にする。
高さ・枠線・塗り分けは1文字版と同じ
------------------------------------------------*/
.c-boxTitle__word {
  display: grid;
  place-items: center;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #fff;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: #fff;
}
.c-boxTitle__word + .c-boxTitle__word {
  margin-left: -1px;
}

.c-boxTitle__word--fill {
  background: #1e3c7d;
  font-family: "Noto Serif JP", serif;
}

.c-boxTitle__word--teal {
  background: #1e968a;
}

/*====================================================================
modules / visitBadge
訪問状況の丸バッジ（Figma 260916_最新デザイン「スタンプ」20:1170 ほか）。
文士一覧・散策マップのボトムシートで使う。

  未訪問 … 白地＋紺の枠。「未」が上、「訪問」が下。全体を不透明度75%
  訪問済 … 地なし＋紺の枠。「訪問」が上、「済」が下。全体を不透明度40%

訪問済みかどうかは端末の訪問記録で決まるので、main.js（initVisitedBadges）と
map.js が --todo / --done と文字（未／済）を書き換える。
並び順（未は上、済は下）は CSS の order で入れ替えているので、HTMLは同じまま。
====================================================================*/
.c-visitBadge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 3px solid #1e3c7d;
  border-radius: 50%;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 900;
  line-height: 1;
  color: #1e3c7d;
  text-align: center;
}

.c-visitBadge__mark {
  font-size: 2rem;
}

.c-visitBadge__label {
  font-size: 1.2rem;
}

.c-visitBadge--todo {
  gap: 2px;
  background: #fff;
  opacity: 0.75;
}

.c-visitBadge--done {
  padding-bottom: 4px;
  background: transparent;
  opacity: 0.4;
}
.c-visitBadge--done .c-visitBadge__label {
  order: -1;
}

.c-visitBadge--lg {
  width: 68px;
  height: 68px;
  border-width: 6px;
  transform: rotate(3.5deg);
}
.c-visitBadge--lg .c-visitBadge__mark {
  font-size: 3.2rem;
}
.c-visitBadge--lg .c-visitBadge__label {
  font-size: 1.4rem;
}
.c-visitBadge--lg.c-visitBadge--todo {
  gap: 1px;
  padding: 4px 0 0;
  opacity: 0.76;
}
.c-visitBadge--lg.c-visitBadge--done {
  padding: 0 0 11px;
  background: #fff;
}

/*====================================================================
modules / corners
帯やカードの四隅に置く飾り罫。
親要素に position:relative を付けてこの中に置く。
（rank card も同種の飾りだが、あちらは 4px inset 固定で個別実装済み。
  共通化するならこの c-corners に寄せる）
====================================================================*/
.c-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.c-corners__item {
  position: absolute;
  width: 62px;
  height: 29.5px;
  opacity: 0.6;
  background-repeat: no-repeat;
  background-size: contain;
}
.c-corners__item--tl {
  top: 4px;
  left: 4px;
  background-image: url("../images/common/rank_corner_d.svg");
  background-position: left top;
}
.c-corners__item--tr {
  top: 4px;
  right: 4px;
  background-image: url("../images/common/rank_corner_a.svg");
  background-position: right top;
}
.c-corners__item--bl {
  bottom: 4px;
  left: 4px;
  background-image: url("../images/common/rank_corner_c.svg");
  background-position: left bottom;
}
.c-corners__item--br {
  bottom: 4px;
  right: 4px;
  background-image: url("../images/common/rank_corner_b.svg");
  background-position: right bottom;
}

/*====================================================================
modules / writerRow
文士一覧の1行カード（Figma 05_スポット（文士））。
似顔絵がカード上辺からはみ出すので overflow は切らない。
ホームの c-writerCard（横203pxの小型）とは別物なので分けてある。
====================================================================*/
.c-writerRow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 78px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #1e968a;
  box-shadow: 2px 4px 8px rgba(36, 69, 141, 0.15);
  overflow: visible;
}

.c-writerRow__avatar {
  flex: 0 0 auto;
  align-self: center;
}

.c-writerRow__body {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 52px;
}

.c-writerRow__head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  padding-bottom: 5px;
  margin-bottom: -5px;
}

.c-writerRow__name {
  flex: 0 0 auto;
  min-width: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 0.25em;
  margin-bottom: -0.25em;
}

.c-writerRow__years {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 1.2rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-writerRow__meta,
.c-writerRow__works {
  display: block;
  font-size: 1.2rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-writerRow__meta {
  margin-top: 4px;
}

.c-writerRow__badge {
  position: absolute;
  top: 8px;
  right: 8px;
}

/*====================================================================
modules / facilityRow
施設一覧の1行カード（Figma 05_スポット（施設））。
サムネイル＋施設名＋概要＋訪問バッジ。
ホームの c-facilityCard（縦型116px）とは別物なので分けてある。
====================================================================*/
.c-facilityRow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 2px 4px 8px rgba(36, 69, 141, 0.15);
}

.c-facilityRow__thumb {
  flex: 0 0 auto;
  width: 90px;
  height: 62px;
}

.c-facilityRow__body {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 0;
}

.c-facilityRow__name {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.c-facilityRow__text {
  margin-top: 2px;
  font-size: 1.2rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.c-facilityRow__badge {
  position: absolute;
  top: 40%;
  right: 8px;
  transform: translateY(-50%);
}

/*====================================================================
modules / termsScroll
スクロールできるテキスト枠＋自作スクロールバー。
ネイティブのスクロールバーは隠し、右側に track/thumb を自前で描く
（デザインが常時表示の細いバーで、位置が読み進みに追従するため）。
JS（main.js の initTermsAgree）が thumb 位置と、
最下部到達での同意ボタン活性化を担当する。
====================================================================*/
.c-termsScroll {
  position: relative;
  background: #fff;
  border: 1px solid rgba(30, 60, 125, 0.1);
  border-radius: 8px;
  padding: 16px 22px 16px 16px;
}

.c-termsScroll__viewport {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.c-termsScroll__viewport::-webkit-scrollbar {
  display: none;
}

.c-termsScroll__text {
  font-size: 1.8rem;
  line-height: 1.7;
  color: #1e3c7d;
}
.c-termsScroll__text p {
  margin: 0;
}
.c-termsScroll__text > p + p {
  margin-top: 1em;
}
.c-termsScroll__text.c-editor > * + * {
  margin-top: 1em;
}

/*-----------------------------------------------
自作スクロールバー
------------------------------------------------*/
.c-termsScroll__track {
  position: absolute;
  top: 16px;
  right: 8px;
  bottom: 16px;
  width: 6px;
  border-radius: 5.5px;
  background: #ebeff4;
}

.c-termsScroll__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  border-radius: 4px;
  background: #1e3c7d;
  opacity: 0.9;
  height: var(--thumbH, 40%);
  transform: translateY(var(--thumbTop, 0px));
}

/*-----------------------------------------------
枠なし版（モーダル内などで、囲みの白box無しに本文＋スクロールバーだけ使う）
------------------------------------------------*/
.c-termsScroll--bare {
  height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 20px 0 0;
}
.c-termsScroll--bare .c-termsScroll__track {
  top: 0;
  right: 0;
  bottom: 0;
}

/*====================================================================
modules / agreeBtn
「同意してはじめる」のピルボタン。
既定は非活性（紺30%＋白枠）。最下部まで読むとJSが is-active を付けて
紺の塗りに変わり、押せるようになる。
====================================================================*/
.c-agreeBtn {
  display: block;
  width: 300px;
  max-width: 100%;
  height: 48px;
  margin-inline: auto;
  border-radius: 32px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background: rgba(30, 60, 125, 0.3);
  border: 1px solid #fff;
  cursor: not-allowed;
}
.c-agreeBtn.is-active {
  background: #1e3c7d;
  border-color: transparent;
  cursor: pointer;
}

/*====================================================================
modules / profileCard
文士のプロフィールカード（詳細ページ上部）。
白地＋teal/金の二重線フレーム。似顔絵がカード上辺からはみ出す。
音声ガイド再生・マップのボトムシートでも使う想定。
====================================================================*/
.c-profileCard {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 86px;
  padding: 0 12px;
  background: url("../images/common/writer_card_frame.svg") no-repeat center/100% 100%;
}

.c-profileCard__avatar {
  flex: 0 0 auto;
  background: #fff;
}

.c-profileCard__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #1e3c7d;
}

/*-----------------------------------------------
本文の各行

どの行も **折り返さず、1行に収まらなければ三点リーダーで省略**する。
カードの高さが固定（86px）なので、折り返すとフレームからはみ出してしまう。
散策マップのボトムシートでは代表作までこのカードに入るため、
右肩の訪問バッジと重ならないよう page/_map.scss 側で余白も取っている。
------------------------------------------------*/
.c-profileCard__role,
.c-profileCard__name,
.c-profileCard__birth {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 0.25em;
  margin-bottom: -0.25em;
}

.c-profileCard__role {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
}

.c-profileCard__name {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.c-profileCard__name span {
  font-size: 1.2rem;
  font-weight: 500;
}

.c-profileCard__birth {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
}

/*====================================================================
modules / spotCard
施設名のカード（施設詳細・散策マップのボトムシート）。
文士の c-profileCard と対になる部品で、こちらは水色の二重線フレーム。
施設名が長いときは2段になるので、高さは中身に合わせて伸びる。
====================================================================*/
.c-spotCard {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 16px 22px;
  background: url("../images/common/facility_card_frame.svg") no-repeat center/100% 100%;
}

.c-spotCard__name {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1e3c7d;
}

/*====================================================================
modules / tagLabel
「代表作」「居住地」などの見出しチップ。淡い金地。
====================================================================*/
.c-tagLabel {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  height: 22px;
  padding: 0 8px;
  background: rgba(213, 199, 140, 0.6);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  color: #1e3c7d;
}

/*====================================================================
modules / btn
案件で繰り返し使うボタン。
- c-btnQr  … 紺塗り＋QRアイコン＋2行ラベル（音声ガイド開始）
             訪問済みは --visited でアイコンが「訪問済」の丸バッジに変わる（Figma 1-299）
- c-btnLine… 淡色地＋紺枠（Google map導線など）
====================================================================*/
.c-btnQr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 300px;
  max-width: 100%;
  height: 60px;
  margin-inline: auto;
  background: #1e3c7d;
  border-radius: 32px;
  color: #fff;
  cursor: pointer;
}

.c-btnQr__icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}
.c-btnQr__icon img,
.c-btnQr__icon svg {
  width: 100%;
  height: 100%;
}

.c-btnQr__label {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

/*-----------------------------------------------
ラベルが1行になる版
  --visited … 訪問済みの「音声ガイドを開始」（Figma 1-299）。
              QRアイコンの代わりに「訪問済」の丸バッジが入る。
  --ar      … ARスポットの「ARを見る」。
              アイコンもバッジも無く、文字だけを中央に置く。
  --solo    … 施設の「音声ガイドを開始」。施設の音声は常に解放されていて
              「訪問済」で開くわけではないので、バッジもアイコンも付けない。
------------------------------------------------*/
.c-btnQr--visited .c-btnQr__label,
.c-btnQr--ar .c-btnQr__label,
.c-btnQr--solo .c-btnQr__label {
  text-align: center;
}

/*-----------------------------------------------
ARを見る（--ar）の活性 / 非活性

現在地がスポットから一定距離以内に入ったときだけ押せる。
既定は非活性で出力し、main.js の initArButton が
GPSを見て disabled を外す。

非活性の見た目は「同意してはじめる」（.c-agreeBtn）に揃えている
（紺30%＋白枠）。
------------------------------------------------*/
.c-btnQr--ar:disabled {
  background: rgba(30, 60, 125, 0.3);
  border: 1px solid #fff;
  cursor: not-allowed;
}
.c-btnQr--ar.is-active {
  background: #1e3c7d;
  border-color: transparent;
  cursor: pointer;
}

.c-btnQr__badge {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 40px;
  height: 40px;
  border: 2px solid #ebeff4;
  border-radius: 50%;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 900;
  line-height: 1;
  color: #ebeff4;
  transform: rotate(-5deg);
}

.c-btnQr__badgeLabel {
  font-size: 1.1rem;
}

.c-btnQr__badgeMark {
  font-size: 2rem;
}

.c-btnLine {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  max-width: 100%;
  height: 48px;
  margin-inline: auto;
  background: #ebeff4;
  border: 1px solid #1e3c7d;
  border-radius: 32px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e3c7d;
  cursor: pointer;
}

.c-btnLine__icon {
  position: absolute;
  top: 42%;
  left: 20px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
}
.c-btnLine__icon svg {
  width: 100%;
  height: 100%;
}

.c-btnPrimary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  max-width: 100%;
  height: 48px;
  margin-inline: auto;
  background: #1e3c7d;
  border-radius: 32px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

/*====================================================================
modules / mapPin
地図上のピン。丸マーカー＋三角＋名前ラベル。
詳細ページの地図プレビューと、散策マップページで使う。

デザイン（Figma 20-1548 の「ピン」20-2188 ほか、
色見本は 20-4195〜20-4197）では、**色はスポットの種別だけで決まる**。
訪問済みでも色は変わらず、写真の上に薄い膜と「済」が乗るだけ。

  （既定）    文士      紺   #1E3C7D ／ ラベル黄・両端に縦棒
  --facility  施設      水色 #5BA5DA ／ ラベル白・縦棒なし
  --ar        ARスポット 橙   #FB970B ／ ラベル白・縦棒なし
  --place     スポット  桃   #C2549D ／ ラベル白・縦棒なし
  --info      総合案内  紫   #7A5BA8 ／ ラベル白・縦棒なし
  --visited   訪問済み  色は据え置き。ラベルを白にして写真に「済」を重ねる
  --below     三角が上を向く（同じ座標に2件あるときの重なり回避）
====================================================================*/
.c-mapPin {
  --pinColor: #1e3c7d;
  --pinLabelBg: #fff194;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.c-mapPin--facility {
  --pinColor: #5ba5da;
  --pinLabelBg: #fff;
}

.c-mapPin--ar {
  --pinColor: #fb970b;
  --pinLabelBg: #fff;
}

.c-mapPin--place {
  --pinColor: #c2549d;
  --pinLabelBg: #fff;
}

.c-mapPin--info {
  --pinColor: #7a5ba8;
  --pinLabelBg: #fff;
  pointer-events: none;
  cursor: default;
}

.c-mapPin--visited {
  --pinLabelBg: #fff;
}

.c-mapPin--ar.c-mapPin--arNear {
  --pinColor: #9acd32;
}
.c-mapPin--ar.c-mapPin--arNear .c-mapPin__marker::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--pinColor);
  animation: mapPinArPulse 1.4s ease-out infinite;
  pointer-events: none;
}

@keyframes mapPinArPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70%, 100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .c-mapPin--ar.c-mapPin--arNear .c-mapPin__marker::before {
    display: none;
  }
}
/*-----------------------------------------------
名前ラベル
------------------------------------------------*/
.c-mapPin__label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 16px;
  padding: 0 2px;
  background: var(--pinLabelBg);
  border: 1px solid var(--pinColor);
  font-size: 1rem;
  font-weight: 500;
  color: var(--pinColor);
  white-space: nowrap;
}
.c-mapPin__label::before, .c-mapPin__label::after {
  content: "";
  width: 1px;
  height: 16px;
  background: var(--pinColor);
}

.c-mapPin--facility .c-mapPin__label,
.c-mapPin--ar .c-mapPin__label,
.c-mapPin--place .c-mapPin__label,
.c-mapPin--info .c-mapPin__label {
  padding: 0 4px;
}
.c-mapPin--facility .c-mapPin__label::before, .c-mapPin--facility .c-mapPin__label::after,
.c-mapPin--ar .c-mapPin__label::before,
.c-mapPin--ar .c-mapPin__label::after,
.c-mapPin--place .c-mapPin__label::before,
.c-mapPin--place .c-mapPin__label::after,
.c-mapPin--info .c-mapPin__label::before,
.c-mapPin--info .c-mapPin__label::after {
  display: none;
}

/*-----------------------------------------------
丸マーカー＋下向き三角
------------------------------------------------*/
.c-mapPin__marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--pinColor);
  margin-top: -3px;
  z-index: -1;
}
.c-mapPin__marker::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: -5px;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: var(--pinColor);
}

/*-----------------------------------------------
下向きピン（--below）
同じ座標に2件あるとき、片方をこれにして重なりを避ける。
上向きを上下そのまま反転させた形：
ラベルが下、三角が上を向いて座標を指す。
マーカーの位置合わせは map.js の iconAnchor 側でも対応している。
------------------------------------------------*/
.c-mapPin--below {
  flex-direction: column-reverse;
}
.c-mapPin--below .c-mapPin__marker {
  margin-top: 0;
  margin-bottom: -3px;
}
.c-mapPin--below .c-mapPin__marker::after {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: -5px;
  border-top-color: transparent;
  border-bottom-color: var(--pinColor);
}

/*-----------------------------------------------
写真（似顔絵 / 施設写真）
------------------------------------------------*/
.c-mapPin__photo {
  display: inline-block;
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 50%;
  overflow: hidden;
  background: #ebeff4;
  position: relative;
}
.c-mapPin__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.c-mapPin__photo::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  border: 0.5px solid var(--pinColor);
  width: calc(100% - 5px);
  height: calc(100% - 5px);
  border-radius: 50%;
  z-index: 2;
}

.leaflet-container .leaflet-marker-pane .c-mapPin__photo img {
  width: 100%;
}

.c-mapPin__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: "Noto Serif JP", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e3c7d;
}

.c-mapPin__noPhoto {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #bdbdbd;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

/*-----------------------------------------------
訪問済み（写真の上に薄い膜＋「済」）
------------------------------------------------*/
.c-mapPin--visited .c-mapPin__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(235, 239, 244, 0.5);
}

.c-mapPin__done {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--pinColor);
  opacity: 0.8;
}

.c-mapPin:not(.c-mapPin--visited) .c-mapPin__done {
  display: none;
}

/*-----------------------------------------------
ピンを点にした表示（散策マップの「ピンを隠す」ボタン）
map.js の initPinDotToggle が地図の入れ物（#js-map）に .is-pinDot を付け外しする。
似顔絵・写真・ラベル・三角は消して、ピンの種類の色（--pinColor）の点だけにする。

アイコンの箱（54×72）の中で、地点に当たる位置に点の中心を置く
（通常は三角の先端＝箱の下端中央、上向きのピンは箱の上端より5px上）。
点は小さいので、押せる範囲だけ ::after で広げている。
------------------------------------------------*/
.is-pinDot .c-mapPin {
  position: absolute;
  left: 21px;
  top: 66px;
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--pinColor);
  box-shadow: 0 1px 3px rgba(36, 69, 141, 0.35);
}
.is-pinDot .c-mapPin > * {
  display: none;
}
.is-pinDot .c-mapPin::after {
  content: "";
  position: absolute;
  inset: -10px;
}

.is-pinDot .c-mapPin--below {
  top: -11px;
}

/*-----------------------------------------------
現在地（Figma 227-1486）
黄色い丸に緑の枠＋緑の点。ピンではなく地図に貼り付く小さな印。

Figmaの原寸は16pxだったが、屋外だと見つけにくいため
2倍の32pxにした。素材はSVGなので拡大しても粗くならない。
サイズを変えるときは map.js の iconSize / iconAnchor も合わせること
（合わせないと印の中心が実際の現在地からずれる）。
------------------------------------------------*/
.c-mapHere {
  display: block;
  width: 32px;
  height: 32px;
  background: url("../images/common/map_here.svg") no-repeat center/100% 100%;
}

/*====================================================================
modules / libraryCard
ライブラリーの写真カード（画像＋キャプション）。
詳細ページ・音声ガイドページで横スクロールに並べる。
====================================================================*/
.c-libraryCard {
  display: block;
  width: 213px;
}

.c-libraryCard__thumb {
  height: 120px;
  border-radius: 8px;
}

.c-libraryCard__caption {
  display: block;
  margin-top: 12px;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #1e3c7d;
}

/*====================================================================
modules / modal
モーダルの土台。既定は中央カード型。--drawer で右ドロワー型。
JS（main.js の initModal）が is-open / 背景クリック / Escで開閉する。
アプリ幅（430px）に合わせて中央寄せする。
====================================================================*/
.c-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}
.c-modal.is-open {
  display: block;
}

.c-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.c-modal__inner {
  position: relative;
  max-width: 430px;
  height: 100%;
  margin-inline: auto;
  pointer-events: none;
}

/*-----------------------------------------------
中央カード型（既定）
------------------------------------------------*/
.c-modal__panel {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-height: calc(100% - 48px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(7.5px);
  -webkit-backdrop-filter: blur(7.5px);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

/*-----------------------------------------------
右ドロワー型（設定メニュー）
タブバーは覆わず、その直上まで。角丸は左側。
------------------------------------------------*/
.c-modal--drawer .c-modal__panel {
  top: calc(var(--safeTop) + 12px);
  left: auto;
  right: -20px;
  bottom: calc(var(--tabbarH) + var(--safeBottom));
  transform: none;
  width: min(84%, 328px);
  max-height: none;
  height: auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
  padding-right: 40px;
}

/*-----------------------------------------------
閉じるボタン（×）
------------------------------------------------*/
.c-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 24px;
  height: 24px;
  color: #1e3c7d;
}
.c-modal__close svg {
  width: 100%;
  height: 100%;
}

.c-modal--drawer .c-modal__close {
  top: 18px;
  right: 30px;
  width: 20px;
  height: 20px;
}

/*-----------------------------------------------
確認ポップアップ（c-confirm）
言語切替・散策データの初期化で使う。
Figma 3-838 / 3-869 / 3-910：ミント地・角丸16・左右32pxずつ内側
------------------------------------------------*/
.c-modal__panel--mint {
  width: calc(100% - 64px);
  padding: 48px 32px;
  background: rgba(165, 213, 208, 0.9);
  border-radius: 16px;
  box-shadow: none;
}

.c-confirm__title {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.45;
  color: #1e3c7d;
}

.c-confirm__title--center {
  text-align: center;
}

.c-confirm__note {
  margin-top: 8px;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.45;
  color: #1e3c7d;
}

.c-confirm__btn {
  margin-top: 24px;
}

.c-confirm__back {
  display: block;
  width: 100%;
  margin-top: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.45;
  color: #1e3c7d;
  text-align: center;
  cursor: pointer;
}

.c-confirm__step--done {
  padding: 32px 0;
}

/*====================================================================
modules / rankUp
ランクアップのお知らせポップアップ（Figma 260917 29-2578）

現地QRで文士詳細を開いたとき、ランクが上がっていたら出す。
確認ポップアップ（c-modal__panel--mint）の地に、ランクのアイコン・
「◯◯になりました」・ノベルティの案内・閉じるボタンを並べる。
案内はノベルティが受け取れる3ランクのときだけ出る（mbg_novelty_ranks）。

土台は c-modal。表示の切り替えは main.js（maybeShowRankUpModal）が `u-active` を付けて行う
（template-parts/modal-rankup.php のコメント参照）。
main.js から開いた場合は c-modal 共通の is-open が付く。
====================================================================*/
.c-modal--rankUp.u-active {
  display: block;
}

.c-rankUp {
  text-align: center;
}

.c-modal--rankUp .c-modal__panel--mint {
  padding: 28px 12px 29px;
}

/*-----------------------------------------------
ランクのアイコン
絵柄は c-rankIcon--{スラッグ}（modules/_rankCard.scss）で差し替わる。
マイページのランク表示（.p-mypage__rankAvatar）と同じ100px。
------------------------------------------------*/
.c-rankUp__icon {
  width: 100px;
  height: 100px;
  margin-inline: auto;
}

.c-rankUp__text {
  margin-top: 11px;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.45;
  color: #1e3c7d;
}

/*-----------------------------------------------
ノベルティの受け取り案内（受け取れるランクのときだけ出る）
Figma 260917 29-2711
------------------------------------------------*/
.c-rankUp__note {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 276px;
  margin-top: 12px;
  margin-inline: auto;
  padding: 5px 6px;
  border-radius: 6px;
  background: #fff;
  text-align: left;
}

.c-rankUp__noteIcon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  background: url("../images/common/icon_gift_mint.svg") no-repeat center/contain;
}

.c-rankUp__noteText {
  font-family: "Noto Serif JP", serif;
  font-size: 1rem;
  line-height: 1.4;
  color: #1e3c7d;
}

.c-rankUp__btn {
  width: 100%;
  max-width: 262px;
  margin-top: 17px;
  margin-inline: auto;
}

/*====================================================================
modules / qrScan
QRコード読み取りモーダル（.c-modal の中身）。
カメラ映像を正方形で見せ、中央に目安の枠を重ねるだけの簡易な構成。
枠自体はスタイルだけで、実際の読み取り範囲を制限してはいない
（assets/js/map.js 側で画面全体を対象にQRコードを探している）。
====================================================================*/
.c-qrScan {
  padding: 24px;
  text-align: center;
}

.c-qrScan__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e3c7d;
}

.c-qrScan__camera {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 12px;
  background: #ebeff4;
}

.c-qrScan__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-qrScan__frame {
  position: absolute;
  inset: 15%;
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.c-qrScan__note {
  margin-top: 16px;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #1e3c7d;
}

.c-qrScan__note--error {
  color: #c0392b;
}

/*====================================================================
modules / settings
設定ドロワーの中身（設定タイトル＋メニュー＋リンク）。
c-modal--drawer の panel に載せる。
====================================================================*/
.c-settings {
  display: flex;
  flex-direction: column;
  padding: 56px 32px 32px;
}

.c-settings__frame {
  position: absolute;
  inset: 6px;
  border: 14px solid transparent;
  border-image-source: url("../images/common/frame.svg");
  border-image-slice: 14;
  border-image-width: 14px;
  border-image-repeat: stretch;
  pointer-events: none;
}

.c-settings__title {
  position: relative;
  z-index: 1;
  padding-right: 32px;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: #1e3c7d;
}

/*-----------------------------------------------
メニュー（使い方ガイド / LANGUAGE / 進捗リセット）
------------------------------------------------*/
.c-settingsMenu {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

.c-settingsMenu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid #fff;
  color: #1e3c7d;
}
.c-settingsMenu__item:last-child {
  border-bottom: 1px solid #fff;
}

.c-settingsMenu__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}
.c-settingsMenu__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.c-settingsMenu__label {
  flex: 1 1 auto;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.c-settingsMenu__item--long {
  container-type: inline-size;
}
.c-settingsMenu__item--long .c-settingsMenu__label {
  font-size: min(2rem, (100cqw - 64px) / 10);
  white-space: nowrap;
}

.c-settingsMenu__arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}
.c-settingsMenu__arrow img {
  display: block;
  width: 100%;
  height: 100%;
}

/*-----------------------------------------------
下部リンク
------------------------------------------------*/
.c-settings__links {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.c-settings__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.6rem;
  font-weight: 500;
  color: #1e3c7d;
}
.c-settings__link img {
  width: 16px;
  height: 16px;
}

/*-----------------------------------------------
著作権表示（パネルの右下）
項目が多くても下のリンクと重ならないよう、絶対配置ではなく margin-top: auto で下端へ寄せる
------------------------------------------------*/
.c-settings__ota {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  width: 100px;
  height: auto;
  margin-top: auto;
  padding-top: 24px;
  box-sizing: content-box;
}
.c-settings__ota + .c-settings__copy {
  margin-top: 0;
}

.c-settings__copy {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  margin-top: auto;
  padding-top: 24px;
  font-size: 1.2rem;
  line-height: 1;
  color: #1e3c7d;
}

/*====================================================================
modules / audioPlayer
音声ガイドのプレイヤー（タイトル＋シークバー＋再生ボタン）。
文士詳細・音声ガイド再生ページ・初回音声ガイダンスの3か所で使う。
再生は main.js の initAudio が data-audio-src の音声を <audio> に繋いで行う。
音声ファイルが未登録のときはアイコンの切り替えだけの見た目動作になる。
====================================================================*/
.c-audioPlayer {
  text-align: center;
}

.c-audioPlayer__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1e3c7d;
}

/*-----------------------------------------------
シークバー
------------------------------------------------*/
.c-audioPlayer__bar {
  margin-top: 20px;
}

.c-audioPlayer__bar[data-audioseek] {
  cursor: pointer;
  touch-action: none;
}

.c-audioPlayer__track {
  position: relative;
  height: 8px;
  margin: 0 10px;
  border-radius: 6px;
  background: #ebeff4;
  border: 0.5px solid rgba(36, 69, 141, 0.1);
  overflow: hidden;
}

.c-audioPlayer__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 0%);
  background: #1e3c7d;
  border-radius: 6px;
}

.c-audioPlayer__times {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 1.2rem;
  color: #1e3c7d;
}

/*-----------------------------------------------
再生 / 一時停止ボタン
------------------------------------------------*/
.c-audioPlayer__toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 8px auto 0;
  border-radius: 50%;
  background: #1e3c7d;
  color: #fff;
  cursor: pointer;
}
.c-audioPlayer__toggle svg {
  width: 20px;
  height: 20px;
}
.c-audioPlayer__toggle .c-audioPlayer__iconPause {
  display: none;
}

.c-audioPlayer.is-error .c-audioPlayer__toggle {
  opacity: 0.4;
  cursor: default;
}
.c-audioPlayer.is-error .c-audioPlayer__bar[data-audioseek] {
  pointer-events: none;
}

.c-audioPlayer.is-playing .c-audioPlayer__toggle .c-audioPlayer__iconPlay {
  display: none;
}
.c-audioPlayer.is-playing .c-audioPlayer__toggle .c-audioPlayer__iconPause {
  display: block;
}

/*====================================================================
modules / guideCard
「解放済みの音声ガイド」の小カード（画像100角＋タイトル＋文士名）。
音声ガイドページの横スクロールで使う。
====================================================================*/
.c-guideCard {
  display: block;
  width: 100px;
}

.c-guideCard__thumb {
  width: 100px;
  height: 100px;
  border-radius: 4px;
}

.c-guideCard__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1e3c7d;
}

.c-guideCard__name {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: #1e3c7d;
}

/*-----------------------------------------------
解放済み（取得した）音声ガイドの出し分け

どのガイドを取得したかは端末の訪問記録（localStorage）にしかないので、
PHPは対象の文士を全件出しておき、既定では隠しておく。
訪問済みのカードにだけ main.js（initUnlockedGuides）が .u-active を付ける。
------------------------------------------------*/
[data-guide-list] > li {
  display: none;
}

[data-guide-list] > li.u-active {
  display: block;
}

/*====================================================================
modules / courseSwitch
散策マップのコース切替パネル。半透明白＋ぼかし。
既定は畳んだバー（文豪めぐりコース／コース切替▼）。
data-toggle でチェックボックス一覧を開閉する（main.js の initToggle）。
====================================================================*/
.c-courseSwitch {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 8px;
  box-shadow: 0 4px 4px rgba(36, 69, 141, 0.2);
  padding: 12px 16px;
}

.c-courseSwitch__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.c-courseSwitch {
  cursor: pointer;
}

.c-courseSwitch__list {
  cursor: auto;
}

.c-courseSwitch__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #1e3c7d;
}

.c-courseSwitch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.2rem;
  color: #1e3c7d;
}
.c-courseSwitch__toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s;
}
.c-courseSwitch__toggle .c-courseSwitch__labelClose {
  display: none;
}

/*-----------------------------------------------
チェックボックス一覧（開いた時だけ表示）
------------------------------------------------*/
.c-courseSwitch__list {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-left: 0;
}

.c-courseSwitch.is-open .c-courseSwitch__list {
  display: flex;
}
.c-courseSwitch.is-open .c-courseSwitch__labelOpen {
  display: none;
}
.c-courseSwitch.is-open .c-courseSwitch__labelClose {
  display: inline;
}
.c-courseSwitch.is-open .c-courseSwitch__toggle svg {
  transform: scaleY(-1);
}

.c-courseItem {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  row-gap: 4px;
  cursor: pointer;
}

.c-courseItem__main {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
}

.c-courseItem__box {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 2px;
  background: #ebeff4;
  border: 1px solid #1e3c7d;
  color: transparent;
}
.c-courseItem__box svg {
  width: 20px;
  height: 20px;
}

.c-courseItem__name {
  font-size: 1.6rem;
  color: #1e3c7d;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-courseItem__tag {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #1e3c7d;
  border-radius: 4px;
  font-size: 1.2rem;
  line-height: 1;
  color: #1e3c7d;
  white-space: nowrap;
}

.c-courseItem__input:checked ~ .c-courseItem__box {
  background: #1e968a;
  border-color: #1e968a;
  color: #fff;
}

.c-courseItem__input:checked ~ .c-courseItem__main .c-courseItem__tag {
  background: rgba(255, 231, 76, 0.25);
}

/*====================================================================
modules / surveyBanner
アンケートへのバナー（マイページのランクカードの下）
Figma 260917 29-2929

白地の右端が三角に尖り、その奥（薄グレー地）にチェックリストの
アイコンが覗く作り。三角は clip-path で白地側を削って作っている。
リンク先は外部フォームなので別タブ（PHP側で target="_blank"）。
====================================================================*/
.c-surveyBanner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 262px;
  max-width: 100%;
  min-height: 54px;
  margin-inline: auto;
  padding: 8px 12px;
  border-radius: 4px;
  background: #ebeff4;
  box-shadow: 2px 4px 8px rgba(36, 69, 141, 0.15);
}

.c-surveyBanner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 209px;
  max-width: 100%;
  border-radius: 4px 0 0 4px;
  background: #fff;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
}

.c-surveyBanner__text {
  position: relative;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.4;
  color: #1e3c7d;
}

.c-surveyBanner__accent {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e968a;
}

.c-surveyBanner__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 38px;
  margin-left: auto;
  background: url("../images/common/survey_icon.svg") no-repeat center/contain;
}

@counter-style mbg-paren-ja {
  system: extends decimal;
  prefix: "（";
  suffix: "）";
}
@counter-style mbg-paren-en {
  system: extends decimal;
  prefix: "(";
  suffix: ") ";
}
@counter-style mbg-circled {
  system: fixed;
  symbols: "①" "②" "③" "④" "⑤" "⑥" "⑦" "⑧" "⑨" "⑩" "⑪" "⑫" "⑬" "⑭" "⑮" "⑯" "⑰" "⑱" "⑲" "⑳";
  suffix: " ";
}
@counter-style mbg-bracket {
  system: extends decimal;
  prefix: "[";
  suffix: "] ";
}
/*====================================================================
modules / editorContent
WordPressの本文（the_content）を出す場所に付けるクラス。

base/_reset.scss で p / ul / strong などの見た目を潰しているため、
管理画面で入力した文章がそのままだと全部ベタ組みになる。
ここで最低限の体裁だけ戻す（フォントサイズ・色は置き場所側の指定を継ぐ）。

使う場所: 文士詳細の説明文 / 施設詳細 / 利用規約 / 汎用固定ページ
====================================================================*/
.c-editor > * + * {
  margin-top: 1em;
}
.c-editor strong,
.c-editor b {
  font-weight: 700;
}
.c-editor em,
.c-editor i {
  font-style: italic;
}
.c-editor a {
  color: inherit;
  text-decoration: underline;
}
.c-editor ul,
.c-editor ol {
  padding-left: 1.5em;
}
.c-editor ul > li {
  list-style: disc;
}
.c-editor ol > li {
  list-style: decimal;
}
.c-editor ol.mbg-list-paren {
  padding-left: 2.5em;
}
.c-editor ol.mbg-list-paren > li {
  list-style: mbg-paren-ja;
}
.c-editor ol.mbg-list-circled {
  padding-left: 1.5em;
}
.c-editor ol.mbg-list-circled > li {
  list-style: mbg-circled;
}
.c-editor ol.mbg-list-bracket {
  padding-left: 2.4em;
}
.c-editor ol.mbg-list-bracket > li {
  list-style: mbg-bracket;
}
.c-editor li > ol {
  margin-top: 0;
}
.c-editor h2,
.c-editor h3,
.c-editor h4 {
  margin-top: 1.5em;
  font-weight: 700;
  line-height: 1.4;
}
.c-editor h2 {
  font-size: 1.125em;
}
.c-editor img {
  max-width: 100%;
  height: auto;
}
.c-editor blockquote {
  padding-left: 12px;
  border-left: 2px solid rgba(30, 60, 125, 0.2);
}
.c-editor figcaption {
  margin-top: 4px;
  font-size: 0.875em;
  color: #6c6c6c;
}

/*====================================================================
page / home
ホーム画面（Figma 03_ホーム画面）
====================================================================*/
/*-----------------------------------------------
散策マップ／謎解きの大カード
------------------------------------------------*/
.p-home__feature {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding-inline: 16px;
  position: relative;
  z-index: 2;
}

.c-featureCard {
  position: relative;
  container-type: inline-size;
  flex: 1 1 0;
  min-width: 0;
  height: 196px;
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
}
.c-featureCard::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background: linear-gradient(180deg, rgba(217, 217, 217, 0) 44.9%, rgba(217, 217, 217, 0.62) 78%, rgb(217, 217, 217) 100%);
  pointer-events: none;
}

.c-featureCard--map {
  background: url("../images/common/feature_card_bg_map.svg") no-repeat center/100% 100%;
}
.c-featureCard--map .c-featureCard__text {
  text-shadow: 0 0 10px #279ea7;
}

.c-featureCard--quiz {
  background: url("../images/common/feature_card_bg_quiz.svg") no-repeat center/100% 100%;
}
.c-featureCard--quiz .c-featureCard__text {
  text-shadow: 0 0 10px #24458d;
}

.c-featureCard__thumb {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  border-radius: 0 0 50% 50%/0 0 24px 24px;
}

.c-featureCard__img {
  object-fit: cover;
  object-position: center top;
}

.c-featureCard__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("../images/common/card_frame.svg") no-repeat center/100% 100%;
  pointer-events: none;
}

.c-featureCard__title {
  position: relative;
  z-index: 3;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: min(1.8rem, 12.2448979592cqw);
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}

.c-featureCard__text {
  position: relative;
  z-index: 3;
  margin-top: 8px;
  font-size: min(1.2rem, 8.1632653061cqw);
  font-weight: 400;
  line-height: 1.3;
}

/*-----------------------------------------------
馬込の文士たち／主な施設
背景はノイズ入りの帯。大カードの下に潜り込ませる
------------------------------------------------*/
.p-home__discover {
  position: relative;
  z-index: 1;
  margin-top: -48px;
  padding: 64px 0 24px;
  display: flex;
  align-items: flex-start;
  background: url("../images/common/section_bg.svg") repeat-y top center/100% auto;
}

.p-home__writers {
  flex: 0 0 auto;
  width: 234px;
  padding-left: 16px;
}

.p-home__writerList {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.4s ease;
  will-change: opacity;
}
.p-home__writerList.is-swapping {
  opacity: 0;
}
.p-home__writerList > li:nth-child(2n) {
  margin-left: 11px;
}

.p-home__facilities {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 20px;
}

.p-home__facilityList {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.p-home__facilityList::-webkit-scrollbar {
  display: none;
}
.p-home__facilityList > li {
  flex: 0 0 auto;
}

/*-----------------------------------------------
あなたの文士村ランク
------------------------------------------------*/
.p-home__rank {
  margin-top: 16px;
  margin-bottom: 21px;
  padding-inline: 16px;
}

.p-home__rankBody {
  margin-top: 12px;
  display: flex;
  gap: 16px;
}

.p-home__rankStatus {
  flex: 0 0 auto;
  width: 146px;
}

.p-home__rankStatusHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.p-home__rankLabel {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 3px;
}

.p-home__rankBar {
  margin-top: 8px;
}

.p-home__rankName {
  margin-top: 16px;
}

/*-----------------------------------------------
最近の訪問
------------------------------------------------*/
.c-recentVisit {
  width: 100%;
  min-width: 0;
  padding: 8px 8px 8px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 2px 4px 8px rgba(36, 69, 141, 0.15);
}

.c-recentVisit__label {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.c-recentVisit__body {
  margin-top: 6px;
  display: none;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.c-recentVisit__body.u-active {
  display: flex;
}

.c-recentVisit__thumb {
  flex: 0 0 auto;
  width: 70px;
  height: 53px;
}

.c-recentVisit__info {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.c-recentVisit__name {
  display: block;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.c-recentVisit__text {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/*====================================================================
page / list
一覧ページ（Figma 05_スポット 文士/施設）。
上部タブで文士・施設を切り替える。両タブ共通で teal のノイズ帯の上に
囲み見出し＋カード一覧を載せる。
====================================================================*/
.p-list {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--headerH) - var(--safeTop) - var(--tabbarH) - var(--safeBottom));
}

/*-----------------------------------------------
グリーン帯（選択タブ＋コンテンツ帯）

Figma 05_スポット（文士）の帯は、上の濃い teal から下の淡いアクアへ
はっきり色が変わる **縦グラデーション**。デザインカンプの実測値
（1画面ぶん＝パネル上端〜タブバー上端の 574px を 0〜100% とした値）は

     0%  #4DA197      45%  #9CCFCD
    10%  #59ACA4      60%  #A8D5D4
    20%  #72BAB4      75%  #B3DBDA
    30%  #8DC8C4     100%  #BEE0E1

で、序盤で一気に明るくなってから寝ていく。下のストップはこの実測から
白ノイズぶん（約3%）を戻した地の色。

**方眼紙（原稿用紙）はこのグリーンの中には出さない**。
マス目が出るのはタブより背面のベージュ地だけ＝ページ共通の .l-app__bg が担当する。

タブ（20-2397）はパネル上端とまったく同じ塗り。以前はタブだけ別の色
（#1a9c92）で、しかもノイズを要素幅にストレッチしていたため、
タブとパネルで粒の大きさと色が違って境目が見えていた。
ノイズは実寸タイル（$listNoiseTile）で敷いて、両者の粒を揃える。
------------------------------------------------*/
.p-list .c-tab__btn.is-current {
  background: url("../images/common/list_panel_noise.svg") repeat top center/390px 279px, rgb(20.5882352941%, 62.8235294118%, 58.4705882353%);
}

.p-list__panel {
  position: relative;
  flex: 1 1 auto;
  background: url("../images/common/list_panel_noise.svg") repeat top center/390px 279px, linear-gradient(180deg, rgb(20.5882352941%, 62.8235294118%, 58.4705882353%) 0%, #47a69c 10%, #62b6b0 20%, #83c4c0 30%, #96ccca 45%, #a4d2d1 60%, #b0d9d8 75%, #bbdedd 100%) no-repeat top center/100% calc(100dvh - var(--headerH) - var(--safeTop) - 72px - var(--tabbarH) - var(--safeBottom)), #bbdedd;
  padding: 28px 16px 32px;
}

/*-----------------------------------------------
四隅飾り（.p-list__corners / .p-list__cornersBottom / c-corners）
カンプ（05_スポット）どおり四隅とも出す。
inset は共通 4px → このページだけ 8px

上2つはパネルの上端に付く（スクロールで流れる）。
下2つは **画面の下端に固定**する（下記）。
------------------------------------------------*/
.p-list__corners .c-corners__item--tl {
  top: 8px;
  left: 8px;
}
.p-list__corners .c-corners__item--tr {
  top: 8px;
  right: 8px;
}

/*-----------------------------------------------
下2つの飾り

カンプは1画面ぶんしか無く、飾り枠は画面の中で閉じている。
一覧は縦に長いので、ページ最下部ではなく **表示中の画面の下端**
（タブバーのすぐ上）に固定する。カンプでは飾りの罫線がカードや
訪問バッジの上を横切っているので、カードより前面に出すのが正しい。

位置はカンプ実測：タブバー上端から 18px 上、左右はパネルと同じ 8px。
横位置は .l-tabbar と同じやり方でアプリ幅（430px）に中央寄せする。
------------------------------------------------*/
.p-list__cornersBottom {
  position: fixed;
  inset: auto 0 calc(var(--tabbarH) + var(--safeBottom)) 0;
  z-index: 99;
  max-width: 430px;
  height: 48px;
  margin-inline: auto;
}
.p-list__cornersBottom .c-corners__item--bl {
  bottom: 18px;
  left: 8px;
}
.p-list__cornersBottom .c-corners__item--br {
  bottom: 18px;
  right: 8px;
}

.p-list__title {
  margin-bottom: 16px;
}

.p-list__titleText {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
}
.p-list__titleText::before, .p-list__titleText::after {
  content: "";
  flex: 0 0 24px;
  height: 1px;
  background: #fff;
}

/*-----------------------------------------------
絞り込み（文士タブのみ）
------------------------------------------------*/
.p-list__filters {
  display: flex;
  gap: 8px;
}

.c-select {
  position: relative;
  flex: 1 1 0;
}
.c-select select {
  width: 100%;
  height: 40px;
  padding: 0 32px 0 12px;
  background: #fff;
  border-radius: 8px;
  font-size: 1.6rem;
  font-weight: 500;
  color: #1e3c7d;
  appearance: none;
  cursor: pointer;
}

.c-select__arrow {
  position: absolute;
  top: 40%;
  right: 12px;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  color: #1e3c7d;
  pointer-events: none;
}
.c-select__arrow svg {
  width: 100%;
  height: 100%;
}

.p-list__search {
  margin-top: 8px;
}

.c-search {
  display: flex;
  align-items: center;
  height: 40px;
  background: #fff;
  border-radius: 8px;
}

.c-search__field {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  background: #ebeff4;
  border-radius: 4px;
  font-size: 1.2rem;
  color: #1e3c7d;
  margin-left: 5px;
}
.c-search__field::placeholder {
  color: #888;
}

.c-search__btn {
  flex: 0 0 auto;
  width: 40px;
  height: 100%;
  display: grid;
  place-items: center;
  color: #1e3c7d;
}
.c-search__btn svg {
  width: 24px;
  height: 24px;
}

/*-----------------------------------------------
50音インデックスの見出し（あ行 など）
------------------------------------------------*/
.p-list__index {
  display: inline-flex;
  margin-top: 32px;
}

.p-list__indexChar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #fff;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}
.p-list__indexChar + .p-list__indexChar {
  margin-left: -1px;
}
.p-list__indexChar--kana {
  background: #1e3c7d;
  border-color: #1e3c7d;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
}
.p-list__indexChar--gyo {
  background: rgba(30, 150, 138, 0.7);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
}

/*-----------------------------------------------
カード一覧
------------------------------------------------*/
.p-list__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.p-list__cards.u-02 {
  margin-top: 24px;
  gap: 12px;
}

.p-list__empty {
  margin-top: 24px;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #fff;
}

/*-----------------------------------------------
施設一覧の写真
枠いっぱいに敷き、はみ出したぶんを中央基準で切る（余白を出さない）。
共通の .c-thumb__img は長辺合わせ（contain）。同じ .c-facilityRow をマイページの
訪れたスポット（似顔絵）でも使っているので、一覧の中だけに効かせる
------------------------------------------------*/
.p-list__cards .c-facilityRow__thumb .c-thumb__img {
  object-fit: cover;
  object-position: center;
}

/*====================================================================
page / terms
利用規約（Figma 02_オンボーディング）。
ヘッダー/タブバーを持たない独立画面。teal地＋方眼テクスチャの上に
白カードを中央配置し、カード内テキストを読み切ると同意ボタンが活性化する。
====================================================================*/
.p-terms {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  --u: calc(min(100vw, 430px) / 390);
  position: relative;
  overflow: hidden;
  background: #6cbfb5;
}
.p-terms::before {
  content: "";
  position: absolute;
  top: calc(var(--safeTop) + var(--u) * -108);
  left: calc(var(--u) * -87);
  width: calc(var(--u) * 571.776);
  height: max(var(--u) * 1046, 100% + var(--u) * 108);
  background: url("../images/common/bg_onboarding.png") no-repeat center top/cover, url("../images/common/bg_onboarding.png") no-repeat center top/cover;
  opacity: 0.75;
  pointer-events: none;
}
.p-terms {
  padding-top: max(10px, var(--safeTop));
  padding-bottom: max(10px, var(--safeBottom));
}

.p-terms__card {
  position: relative;
  width: 100%;
  max-width: 358px;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  background: url("../images/common/section_bg.svg") repeat-y top center/100% auto, #ebeff4;
}

/*-----------------------------------------------
四隅飾り（.p-terms__corners / c-corners）
共通は 4px inset。このページだけ 8px
------------------------------------------------*/
.p-terms__corners .c-corners__item--tl {
  top: 8px;
  left: 8px;
}
.p-terms__corners .c-corners__item--tr {
  top: 8px;
  right: 8px;
}
.p-terms__corners .c-corners__item--bl {
  bottom: 8px;
  left: 8px;
}
.p-terms__corners .c-corners__item--br {
  bottom: 8px;
  right: 8px;
}

/*-----------------------------------------------
タイトル
------------------------------------------------*/
.p-terms__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  color: #1e3c7d;
  text-align: center;
  line-height: 1.6;
}
.p-terms__title span {
  display: block;
}

.p-terms__titleMain {
  font-size: 2rem;
  word-break: keep-all;
}

.p-terms__titleSub {
  font-size: 1.8rem;
  font-family: "Zen Kaku Gothic New";
}

/*-----------------------------------------------
スクロール枠
高さは画面に合わせて可変（デザインは420px固定だが、
小さい端末でボタンが隠れないよう最大値として扱う）
------------------------------------------------*/
.p-terms__scroll {
  height: min(420px, 56vh);
  margin: 16px 0 24px;
}
.p-terms__scroll .c-termsScroll__text {
  font-size: 1.4rem;
  line-height: 1.45;
}

/*====================================================================
page / writer
文士詳細（Figma 06_文士詳細）。
このページはデザイン上ヘッダーのみで下部タブバーが無い長尺ページ。
プロフィール白帯 → 音声ガイド導線 → 地図 → ライブラリーの縦積み。
====================================================================*/
/*-----------------------------------------------
プロフィール（白帯）
帯の上辺からプロフィールカードがはみ出す
------------------------------------------------*/
.p-writer__profile {
  position: relative;
  margin-top: 89px;
  padding: 0 16px 24px;
  background: #fff;
  border-top: 1px solid #ebeff4;
  border-bottom: 1px solid #ebeff4;
}
.p-writer__profile .c-profileCard {
  margin-top: -42px;
}

.p-writer__meta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-writer__metaRow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.p-writer__metaText {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 3px;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #1e3c7d;
}

.p-writer__divider {
  height: 6px;
  margin: 16px auto;
  width: 80%;
  border: 0;
  background: url("../images/writers/line.svg") repeat-x center/auto 6px;
}

.p-writer__desc {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #1e3c7d;
}

/*-----------------------------------------------
音声ガイド（Figma 1-134 未訪問 / 1-299 訪問済 / 1-457 プレイヤー）

未訪問はQRの案内だけ。訪問済みは「音声ガイドを開始」が出て、
押すと .p-writer__guide が同じページ内で開く（main.js の initWriterGuide）。
------------------------------------------------*/
.p-writer__audio {
  padding-bottom: 24px;
}

.p-writer__audioBtn {
  margin-inline: auto;
}

/*-----------------------------------------------
開くと出てくるプレイヤー（Figma 1-457 の中身）
音声ガイド画面（p-audioGuide）と同じ体裁にそろえている。
------------------------------------------------*/
.p-writer__guide {
  margin-top: 24px;
}

.p-writer__guideImage {
  width: 230px;
  max-width: 100%;
  aspect-ratio: 1/1;
  margin: 0 auto;
  border-radius: 8px;
}

.p-writer__guidePlayer {
  margin-top: 24px;
}

.p-writer__guideActions {
  margin-top: 32px;
}

.p-writer__note {
  display: flex;
  gap: 2px;
  margin-top: 16px;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #6c6c6c;
  justify-content: center;
}

/*-----------------------------------------------
地図プレビュー（全幅）

座標が登録されていれば spot-map.js が Leaflet の実地図を描き、
親に .is-live が付く。座標が無いスポットでは従来どおり仮画像のまま。
ピンは地図の中心（＝このスポットの座標）に重ねる。
------------------------------------------------*/
.p-writer__map {
  position: relative;
  display: block;
  height: 186px;
  color: inherit;
  text-decoration: none;
  margin-top: 40px;
  overflow: hidden;
  background: url("../images/common/map_sample.png") no-repeat center/cover;
}
.p-writer__map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.p-writer__map.is-live {
  background-image: none;
}

.p-writer__mapCanvas {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

.p-writer__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  z-index: 3;
}

/*-----------------------------------------------
Google map ボタン
------------------------------------------------*/
.p-writer__gmap {
  padding: 24px 16px 0;
  /*
   * ライブラリーの写真が未登録だと、このボタンがページ最後の要素になる。
   * .l-main の padding-bottom はタブバーの高さちょうど（＝隠れないだけの値）で
   * 視覚的な余白は持たせていない。画面より短いページでは min-height:100dvh の
   * 余りが余白に見えるが、音声ガイドを開くなどしてページが画面より長くなると
   * ボタンがタブバーに接してしまうので、ここで余白を足す。
   * 40px はデザイン（Figma 1-299）のボタン〜ライブラリー間と同じ。
   */
}
.p-writer__gmap:last-child {
  padding-bottom: 40px;
}

/*-----------------------------------------------
ライブラリー
------------------------------------------------*/
.p-writer__library {
  padding: 40px 0 40px 16px;
}

.p-writer__libraryTitle {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e3c7d;
}

.p-writer__libraryList {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-right: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.p-writer__libraryList::-webkit-scrollbar {
  display: none;
}
.p-writer__libraryList > li {
  flex: 0 0 auto;
}

/*====================================================================
page(部品) / audioModal
QR読込後の導入音声ガイドモーダルの中身レイアウト。
c-modal（中央カード型）の panel に載せる。
====================================================================*/
.c-audioModal {
  position: relative;
  padding: 64px 24px 24px;
  text-align: center;
}

.c-audioModal__corners {
  inset: 40px 8px 96px;
}
.c-audioModal__corners .c-corners__item--tl {
  top: 0;
  left: 0;
}
.c-audioModal__corners .c-corners__item--tr {
  top: 0;
  right: 0;
}
.c-audioModal__corners .c-corners__item--bl {
  bottom: 0;
  left: 0;
}
.c-audioModal__corners .c-corners__item--br {
  bottom: 0;
  right: 0;
}

.c-audioModal__spot {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: #1e3c7d;
}

.c-audioModal__image {
  width: 230px;
  max-width: 100%;
  aspect-ratio: 1/1;
  margin: 20px auto 0;
  border-radius: 8px;
}

.c-audioModal__player {
  margin-top: 24px;
}

.c-audioModal__btn {
  margin-top: 52px;
}

/*====================================================================
page / audioGuide
音声ガイド再生ページ（Figma 07_音声ガイド）。
文士詳細と同じくヘッダーのみ・タブバー無しの長尺ページ。
プロフィール → 画像 → プレイヤー → 導線ボタン → ライブラリー →
解放済みの音声ガイド の縦積み。
====================================================================*/
.p-audioGuide {
  padding: 40px 16px 0;
}

.p-audioGuide__empty {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #1e3c7d;
}

.p-audioGuide__profile {
  margin-bottom: 24px;
}

.p-audioGuide__image {
  width: 230px;
  max-width: 100%;
  aspect-ratio: 1/1;
  margin: 0 auto;
  border-radius: 8px;
}

.p-audioGuide__player {
  margin-top: 24px;
}

.p-audioGuide__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

/*-----------------------------------------------
ライブラリー
------------------------------------------------*/
.p-audioGuide__library {
  padding: 40px 0 24px 16px;
}

.p-audioGuide__sectionTitle {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e3c7d;
}

.p-audioGuide__row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding-right: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.p-audioGuide__row::-webkit-scrollbar {
  display: none;
}
.p-audioGuide__row > li {
  flex: 0 0 auto;
}

/*-----------------------------------------------
解放済みの音声ガイド（全幅のパネル。Figma 260916_最新デザイン 20:1791 #EBEFF4）
------------------------------------------------*/
.p-audioGuide__unlocked {
  padding: 16px 0 24px 16px;
  background: #ebeff4;
}

.p-audioGuide + .p-audioGuide__unlocked {
  margin-top: 40px;
}

/*====================================================================
page(部品) / guideTextModal
音声ガイドの原稿テキストモーダル（Figma 07_音声ガイド_テキスト）。
c-modal（中央カード型）の panel に載せる。本文はスクロール、
下部の「詳細を見る」ボタンは固定。スクロールバーは c-termsScroll--bare を流用。
====================================================================*/
.c-guideTextModal {
  display: flex;
  flex-direction: column;
  height: min(700px, 100% - 48px);
  overflow: hidden;
  padding: 52px 24px 30px;
}

.c-guideTextModal__head {
  flex: 0 0 auto;
  text-align: center;
}

.c-guideTextModal__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1e3c7d;
}

.c-guideTextModal__narrator {
  margin-top: 8px;
  font-size: 1.4rem;
  color: #1e3c7d;
}

.c-guideTextModal__divider {
  display: block;
  width: 113px;
  height: 6px;
  margin: 24px auto 0;
  background: url("../images/common/line03.svg") no-repeat center/contain;
}

.c-guideTextModal__body {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 24px;
}

.c-guideTextModal__foot {
  flex: 0 0 auto;
  margin-top: 16px;
}

/*====================================================================
page / mypage
マイページ（Figma 08_マイページ）。デフォルト＝文士見習い。
※ランクによって内容が変わる仕様だが、詳細不明のため見習い版のみ実装。
　ノベルティボタンは見習いでは非活性（受取可/受取済は別ランクのデザイン待ち）。
ヘッダーのみ・タブバー無し。
====================================================================*/
.p-mypage {
  position: relative;
  padding-bottom: 40px;
}

/*-----------------------------------------------
タイトル（あなたの / 文士村ランク）
------------------------------------------------*/
.p-mypage__title {
  padding-top: 40px;
  text-align: center;
}

.p-mypage__titleLead {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #1e3c7d;
}

.p-mypage__titleBox {
  margin-top: 8px;
}

/*-----------------------------------------------
ランクカード（クリーム地＋四隅飾り）
帯の上辺からはみ出させず、そのまま置く
------------------------------------------------*/
.p-mypage__rankCard {
  position: relative;
  z-index: 1;
  margin: 16px 16px 0;
  padding: 20px 16px 20px;
  background: url("../images/common/haike_y.svg") no-repeat center/100% 100%;
}

.p-mypage__rankHead {
  display: flex;
  align-items: center;
  gap: 16px;
}

.p-mypage__rankAvatar {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
}

.p-mypage__rankName {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: #6f6134;
}

.p-mypage__rankComment {
  margin-top: 12px;
  font-size: 1.6rem;
  line-height: 1.4;
  color: #27324e;
}

.p-mypage__novelty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 300px;
  max-width: 100%;
  height: 48px;
  margin: 20px auto 0;
  border-radius: 32px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  background: #bcc5d8;
  border: 1px solid #fff;
  cursor: not-allowed;
}

.p-mypage__novelty[data-novelty-state=on] {
  background: #1e3c7d;
  border-color: #1e3c7d;
  cursor: pointer;
}

.p-mypage__noveltyIcon {
  width: 32px;
  height: 32px;
}
.p-mypage__noveltyIcon svg {
  width: 100%;
  height: 100%;
}

.p-mypage__noveltyIcon--done,
.p-mypage__novelty[data-novelty-state=done] .p-mypage__noveltyIcon--gift {
  display: none;
}

.p-mypage__novelty[data-novelty-state=done] .p-mypage__noveltyIcon--done {
  display: block;
}

.p-mypage__noveltyNote {
  display: flex;
  gap: 2px;
  margin-top: 8px;
  padding-inline: 2px;
  font-family: "Noto Serif JP", serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1e3c7d;
}

.p-mypage__noveltyNoteMark {
  flex: 0 0 auto;
}

.p-mypage__noveltyNoteLink {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.p-mypage__rankDate {
  margin-top: 8px;
  font-size: 1.2rem;
  line-height: 1;
  color: #6c6c6c;
  text-align: center;
}

/*-----------------------------------------------
訪問状況 〜 スポットカード（淡ミントの帯）
ランクカードの下に潜り込ませる
------------------------------------------------*/
.p-mypage__base {
  position: relative;
  margin-top: -70px;
  padding: 90px 16px 24px;
  background: url("../images/common/haike_gr.svg") no-repeat center/100% 100%;
}

.p-mypage__survey {
  margin-top: 20px;
  margin-bottom: 14px;
}

.p-mypage__visit {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 20px;
  row-gap: 12px;
}

.p-mypage__visitTitle {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e3c7d;
}

.p-mypage__visitCount {
  grid-column: 2;
  grid-row: 1/span 2;
  align-self: center;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  color: #6f6134;
  line-height: 1;
}

.p-mypage__visitNum {
  font-size: 3.6rem;
  font-weight: 700;
}

.p-mypage__visitSlash {
  width: 1px;
  height: 16px;
  margin-inline: 3px;
  background: #6f6134;
  transform: rotate(37.3deg);
}

.p-mypage__visitTotal {
  font-size: 1.6rem;
  font-weight: 500;
}

.p-mypage__visitUnit {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.08em;
}

.p-mypage__bar {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.p-mypage__bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 0%);
  border-radius: 6px;
  background: #1e3c7d;
}

/*-----------------------------------------------
バーの下の目盛り（Figma 260928_最新デザイン 20-2404）
  ・1件ごとの縦線（紺1px・高さ8px）。0〜32件の33本（--total＝32。いちばん上のランクの件数）
  ・ノベルティを受け取れる範囲に線（太さ4px・両端丸・80%）。
    「そのランクの件数の目盛り」の右から「次のギフトの目盛り」の手前まで
    （見習い 1→15、案内人 15→32）。博士は1件だけなので、32の目盛りのすぐ右に7pxの短い印
  ・範囲の中央の下にギフト（15px）と番号
  ・線とギフトの色は段階ごと（1 #FB970B → 2 #FF7B33 → 3 #FB3B0B）
------------------------------------------------*/
.p-mypage__scale {
  grid-column: 1;
  grid-row: 3;
  position: relative;
  height: 26px;
  margin-top: -10px;
}
.p-mypage__scale::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: -1px;
  height: 8px;
  background: linear-gradient(to right, #1e3c7d 1px, transparent 1px) 0 0/calc((100% - 1px) / var(--total)) 100% repeat-x;
}

.p-mypage__scaleRange {
  --rangeColor: #fb970b;
  position: absolute;
  top: 2px;
  left: calc(var(--from) + 1px);
  width: max(7px, var(--to) - var(--from) - 1px);
  height: 4px;
  border-radius: 2px;
  background: rgba(251, 151, 11, 0.8);
}
.p-mypage__scaleRange--2 {
  --rangeColor: #ff7b33;
  background: rgba(255, 123, 51, 0.8);
}
.p-mypage__scaleRange--3 {
  --rangeColor: #fb3b0b;
  background: rgba(251, 59, 11, 0.8);
}

.p-mypage__scaleGift {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 15px;
  height: 15px;
  translate: -50% 0;
}
.p-mypage__scaleGift::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rangeColor);
  mask: url("../images/common/novelty_gift.svg") no-repeat center/15px 15px;
}

.p-mypage__scaleNum {
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1;
  color: #fff;
  text-align: center;
}

.p-mypage__divider {
  height: 6px;
  margin: 24px auto;
  border: 0;
  width: 85%;
  background: url("../images/common/line02.svg") repeat-x center/auto 6px;
}

.p-mypage__spots {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-mypage__spots .c-facilityRow {
  display: none;
}

.p-mypage__spots .c-facilityRow.u-active {
  display: flex;
}

.p-mypage__base:not(:has(.p-mypage__spots .c-facilityRow.u-active)) .p-mypage__divider {
  display: none;
}

.p-mypage__spots .c-facilityRow__name {
  font-size: 1.6rem;
}

/*-----------------------------------------------
下部の音声ガイドカード（横スクロール）
------------------------------------------------*/
.p-mypage__slider {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-inline: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
}
.p-mypage__slider::-webkit-scrollbar {
  display: none;
}
.p-mypage__slider > li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.p-mypage__guideEmpty {
  margin-top: 24px;
  padding-inline: 16px;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #1e3c7d;
}

/*====================================================================
page / map
散策マップ（Figma 04_散策マップ CLOSE/OPEN）。
背景地図は Leaflet + OpenStreetMap / 国土地理院タイル（assets/js/map.js）。
UI（コース切替・検索・ピン・ボトムシート）を上に重ねる構成。
====================================================================*/
.p-map {
  position: relative;
  height: 100dvh;
  overflow: hidden;
}

/*-----------------------------------------------
背景マップ（Leaflet）
中心座標・初期ズームは map.html 側の data-lat / data-lng / data-zoom
（もしくは assets/js/map.js の初期値）で変更する
------------------------------------------------*/
.p-map__mapCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #ebeff4;
}
.p-map__mapCanvas.leaflet-container {
  font-family: "Zen Kaku Gothic New", sans-serif;
  background: #ebeff4;
}
.p-map__mapCanvas .leaflet-bottom {
  margin-bottom: calc(var(--tabbarH) + var(--safeBottom) + 12px);
}
.p-map__mapCanvas .leaflet-control-attribution {
  max-width: 60vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*-----------------------------------------------
上部UI（コース切替＋検索）
------------------------------------------------*/
.p-map__top {
  position: absolute;
  top: calc(12px + var(--safeTop));
  left: 0;
  right: 0;
  z-index: 10;
  padding-inline: 16px;
}

/*-----------------------------------------------
検索
既定は丸ボタン（CLOSE）。is-open で横長の入力バー（OPEN）
------------------------------------------------*/
.p-map__search {
  margin-top: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 4px rgba(30, 60, 125, 0.2);
  overflow: hidden;
  transition: width 0.25s ease, border-radius 0.25s ease, padding 0.25s ease;
}
.p-map__search .c-search__field {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 8px 0 16px;
  background: #fff;
  border-radius: 0;
  font-size: 1.2rem;
  color: #1e3c7d;
}
.p-map__search .c-search__field::placeholder {
  color: #888;
}
.p-map__search .c-search__btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}
.p-map__search.is-open {
  width: 100%;
  border-radius: 8px;
  padding: 0 4px 0 0;
  background: rgba(255, 255, 255, 0.6);
}
.p-map__search.is-open .c-search__field {
  display: block;
}

/*-----------------------------------------------
検索候補（map.js の initSpotSearch）

入力するたびに絞り込んだ文士が並ぶ。選ぶとそのピンが地図の中央に来る。
件数の上限は設けていない（文士は34件しかないため）が、
1文字だけの入力だと全件近く並ぶので縦スクロールできるようにしてある。

.p-map__search は開閉アニメのため overflow:hidden なので、
このリストはフォームの中ではなく兄弟要素として置いている。
------------------------------------------------*/
.p-map__searchList {
  margin-top: 8px;
  max-height: 40vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 4px rgba(36, 69, 141, 0.2);
}

.p-map__searchItem + .p-map__searchItem {
  border-top: 1px solid rgba(30, 60, 125, 0.15);
}

.p-map__searchBtn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  font-size: 1.4rem;
  line-height: 1.4;
  color: #1e3c7d;
  cursor: pointer;
}

.p-map__searchEmpty {
  padding: 12px 16px;
  font-size: 1.3rem;
  line-height: 1.4;
  color: rgba(30, 60, 125, 0.7);
}

/*-----------------------------------------------
現在地ボタン（map.js の initLocateButton）と短い案内
ボタンは検索と同じ40pxの丸。右下、出典表記のすぐ上（タブバーより上）に置く。
ボトムシートを開いているあいだはシート（z-index 20）の下に隠れる。
------------------------------------------------*/
.p-map__locate {
  position: absolute;
  right: 16px;
  bottom: calc(var(--tabbarH) + var(--safeBottom) + 40px);
  z-index: 10;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 4px rgba(30, 60, 125, 0.2);
  color: #1e3c7d;
  cursor: pointer;
}
.p-map__locate svg {
  width: 22px;
  height: 22px;
}

.p-map__toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tabbarH) + var(--safeBottom) + 96px);
  z-index: 15;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(36, 69, 141, 0.88);
  font-size: 1.3rem;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  opacity: 0;
  translate: -50% 8px;
  transition: opacity 0.25s ease, translate 0.25s ease;
  pointer-events: none;
}
.p-map__toast.is-show {
  opacity: 1;
  translate: -50% 0;
}

/*-----------------------------------------------
ピンの一括非表示トグル（map.js の initPinToggle）

検索ボタンの下に置く小さなピル。押すと地図上のスポットのピンが全部消え、
コースの線と地図だけになる（引きで見たときにコースを追えるように）。
ONかどうかは aria-pressed で持たせ、見た目もその属性で切り替える。
------------------------------------------------*/
.p-map__pinToggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0 12px;
  height: 32px;
  border: 1px solid #1e3c7d;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 4px rgba(30, 60, 125, 0.2);
  font-size: 1.2rem;
  line-height: 1;
  color: #1e3c7d;
  cursor: pointer;
}
.p-map__pinToggle svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.p-map__pinToggleOn {
  display: none;
}

.p-map__pinToggle[aria-pressed=true] {
  background: #1e968a;
  border-color: #1e968a;
  color: #fff;
}
.p-map__pinToggle[aria-pressed=true] .p-map__pinToggleOff {
  display: none;
}
.p-map__pinToggle[aria-pressed=true] .p-map__pinToggleOn {
  display: inline;
}

.p-map__pinToggle:not(.p-map__pinDotToggle) {
  display: none;
}

/*-----------------------------------------------
マップ上の文士ピン（Leafletマーカー）
座標に応じた位置はLeaflet側で制御するため、ここではLeafletの
既定アイコン枠（.leaflet-div-icon）の白背景／枠線だけ打ち消す。
ピン自体の見た目は modules/_mapPin.scss（.c-mapPin）を参照。
------------------------------------------------*/
.p-map__pinIcon {
  background: none;
  border: none;
}
.p-map__pinIcon.leaflet-marker-icon {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.p-map__pinIcon .c-mapPin {
  flex: none;
}

.p-map__hereIcon {
  background: none;
  border: none;
}

/*-----------------------------------------------
ボトムシート（スポット詳細）
既定は下に隠れており、ピンを押すと せり上がる
------------------------------------------------*/
.c-mapSheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  max-width: 430px;
  margin-inline: auto;
  padding: 16px 16px calc(24px + var(--safeBottom));
  background: #fff;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -4px 4px rgba(36, 69, 141, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  touch-action: none;
}
.c-mapSheet.is-open {
  transform: translateY(0);
}

.c-mapSheet__handle {
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 4px;
  background: #ebeff4;
  cursor: pointer;
}

.c-mapSheet__profile {
  position: relative;
}

.c-mapSheet__spotCard {
  padding-right: 72px;
}

.c-mapSheet__profile .c-profileCard__body {
  padding-right: 72px;
}

.c-mapSheet--noBadge .c-mapSheet__spotCard {
  padding-right: 22px;
}
.c-mapSheet--noBadge .c-mapSheet__profile .c-profileCard__body {
  padding-right: 16px;
}
.c-mapSheet--noBadge .c-mapSheet__profile .c-profileCard__name {
  white-space: normal;
  overflow: visible;
  line-height: 1.2;
}

.c-mapSheet__badge {
  position: absolute;
  top: -26px;
  right: 15px;
  z-index: 2;
}

.c-mapSheet__spot {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.c-mapSheet__thumb {
  flex: 0 0 auto;
  width: 171px;
  height: 98px;
  border-radius: 8px;
}

.c-mapSheet__thumb .c-thumb__img {
  object-fit: cover;
  object-position: center;
}

.c-mapSheet__spotTitle {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1e3c7d;
}

.c-mapSheet__spotText {
  margin-top: 8px;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #1e3c7d;
}

.c-mapSheet__spotAddress {
  margin-top: 8px;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #6c6c6c;
}

.c-mapSheet__actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.c-mapSheet__actionRow {
  display: flex;
  gap: 16px;
  width: 100%;
}

.c-mapSheet__actionRow .c-btnPrimary {
  width: auto;
  flex: 1 1 0;
  margin-inline: 0;
}

.c-mapSheet__actionRow .c-btnPrimary--wide {
  flex: 0 0 auto;
  width: 300px;
  max-width: 100%;
  margin-inline: auto;
}

.c-mapSheet__qr {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  height: 48px;
  background: #1e3c7d;
  border-radius: 28px;
  color: #fff;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  padding-bottom: 6px;
}

.c-mapSheet__qrSmall {
  font-size: 1rem;
  font-weight: 400;
}

.c-mapSheet__qrMain {
  font-size: 1.4rem;
  font-weight: 700;
}

.c-mapSheet__qr--solo {
  padding-bottom: 0;
}

.c-mapSheet__qr:disabled {
  background: rgba(30, 60, 125, 0.3);
  border: 1px solid #fff;
  cursor: not-allowed;
}

/*====================================================================
page / splash
QRコードランディング画面（Figma 260930_最新デザイン 47:3882「01_QRコードランディング画面」。大田区ロゴ入り）。
QRを読み取って最初に開く導入画面。

公開前ティザー（teaser/assets/css/teaser.css）と同じ組み方の一枚絵。
Figma の 390×844 の座標をそのまま使い、画面幅に合わせて全体を拡大・縮小する。

  --u … デザイン上の 1px。アプリの幅 ÷ 390（アプリ本体と同じく 430px で頭打ち）
        calc(var(--u) * 80) と書けば Figma の 80px になる

縦方向：Figma の上端 60px はステータスバーなので画面外に出す（ホーム画面に追加した
全画面表示ではセーフエリアぶん下げる）。題字もピンも本も上揃えで固定し、
画面が低い端末では本の下から切れる（ティザーと同じ見え方）。

【素材】
  - common/splash_pin_0925.svg … ピン（Figma の部品を合成。右の輪は Magome Bunshimura）
  - common/ota_logo_white.svg  … 大田区ロゴ（Figma 260930 75:3906 の部品を合成）
  - common/splash_book.png … 本と似顔絵（ティザーの illust_book.png と同じもの）
  - common/bg_onboarding.png … 原稿用紙（mixin/_u-manuscriptBg.scss。オンボーディング・利用規約と共通）
====================================================================*/
.p-splash {
  --u: calc(min(100vw, 430px) / 390);
  position: relative;
  overflow: hidden;
  background: #6cbfb5;
}
.p-splash::before {
  content: "";
  position: absolute;
  top: calc(var(--safeTop) + var(--u) * -108);
  left: calc(var(--u) * -87);
  width: calc(var(--u) * 571.776);
  height: max(var(--u) * 1046, 100% + var(--u) * 108);
  background: url("../images/common/bg_onboarding.png") no-repeat center top/cover, url("../images/common/bg_onboarding.png") no-repeat center top/cover;
  opacity: 0.75;
  pointer-events: none;
}
.p-splash {
  display: block;
  height: 100vh;
  height: 100dvh;
  color: inherit;
  text-decoration: none;
}

.p-splash__stage {
  position: relative;
  display: block;
  overflow-x: clip;
  height: calc(var(--u) * 844);
  margin-top: calc(var(--safeTop) + var(--u) * -44);
}

.p-splash__book {
  position: absolute;
  top: calc(var(--u) * 355);
  left: calc(var(--u) * -188);
  width: calc(var(--u) * 721.5);
  height: calc(var(--u) * 559.5);
  max-width: none;
}

/*-----------------------------------------------
題字（馬込文士村 公式ガイドアプリ）
字間は 0.05em。CSS は最後の文字の後ろにも字間が付くので、
左にも同じだけ余白を足して Figma と中心を合わせる
------------------------------------------------*/
.p-splash__title {
  position: absolute;
  inset: 0;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  color: #6f6134;
}

.p-splash__titleSub,
.p-splash__titleMain {
  position: absolute;
  left: 50%;
  padding-left: 0.05em;
  letter-spacing: 0.05em;
  white-space: nowrap;
  translate: -50% 0;
}

.p-splash__titleSub {
  top: calc(var(--u) * 95);
  font-size: calc(var(--u) * 28);
  line-height: calc(var(--u) * 28);
}

.p-splash__titleMain {
  top: calc(var(--u) * 131);
  font-size: calc(var(--u) * 40);
  line-height: calc(var(--u) * 36);
}

.p-splash__kern {
  letter-spacing: -0.15em;
}

.p-splash__logo {
  position: absolute;
  top: calc(var(--u) * 62);
  left: calc(var(--u) * 139);
  width: calc(var(--u) * 112.061);
  height: calc(var(--u) * 23);
  max-width: none;
}

.p-splash__pin {
  position: absolute;
  top: calc(var(--u) * 182);
  left: calc(var(--u) * 35);
  width: calc(var(--u) * 320);
  height: calc(var(--u) * 375.023);
  max-width: none;
}

/*-----------------------------------------------
次の画面へのフェード

初回は2秒後に自動で、待たずにタップしたときもその場で、
main.js（initSplashLink）が .is-leaving を付けてから遷移する。

消すのは絵（題字・ピン・本）だけで、teal地と原稿用紙は残す。
以前は画面全体（.p-splash）を消していたので、消えたあと次の画面が
表示されるまで白い地（.l-app の $paper）が見えていた。
オンボーディングも同じ背景（mixin/_u-manuscriptBg.scss）なので、絵だけが入れ替わって見える。
時間は main.js の fade と揃える。
------------------------------------------------*/
.p-splash__stage {
  transition: opacity 0.2s ease;
}

.p-splash.is-leaving .p-splash__stage {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .p-splash__stage {
    transition: none;
  }
}
/*====================================================================
page / onboarding
オンボーディング3画面（02_オンボーディング）。
QRランディングと利用規約のあいだに入る導入。
teal地＋方眼テクスチャは splash / terms と同じ素材を使う。

1ページの中に3枚を並べ、main.js の initOnboarding が hidden で出し分ける。
====================================================================*/
.p-onboarding {
  --u: calc(min(100vw, 430px) / 390);
  position: relative;
  overflow: hidden;
  background: #6cbfb5;
}
.p-onboarding::before {
  content: "";
  position: absolute;
  top: calc(var(--safeTop) + var(--u) * -108);
  left: calc(var(--u) * -87);
  width: calc(var(--u) * 571.776);
  height: max(var(--u) * 1046, 100% + var(--u) * 108);
  background: url("../images/common/bg_onboarding.png") no-repeat center top/cover, url("../images/common/bg_onboarding.png") no-repeat center top/cover;
  opacity: 0.75;
  pointer-events: none;
}
.p-onboarding {
  min-height: 100dvh;
}

.p-onboarding__main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 0 16px;
  padding-top: calc(min(120px, 15dvh) + var(--safeTop));
  padding-bottom: calc(min(120px, 15dvh) + var(--safeBottom));
}

.p-onboarding__slide {
  flex: 1 1 auto;
}

/*-----------------------------------------------
カード（Figma: 358px幅・白60%＋#EBEFF4・四隅の飾りは8px内側）
利用規約のカード（page/_terms.scss）と同じ地
------------------------------------------------*/
.p-onboarding__card {
  position: relative;
  padding: 32px 24px 36px;
  background: url("../images/common/section_bg.svg") repeat-y top center/100% auto, #ebeff4;
}

.p-onboarding__corners .c-corners__item--tl {
  top: 8px;
  left: 8px;
}
.p-onboarding__corners .c-corners__item--tr {
  top: 8px;
  right: 8px;
}
.p-onboarding__corners .c-corners__item--bl {
  bottom: 8px;
  left: 8px;
}
.p-onboarding__corners .c-corners__item--br {
  bottom: 8px;
  right: 8px;
}

.p-onboarding__title {
  position: relative;
  font-family: "Noto Serif JP", serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.6;
  color: #1e3c7d;
  text-align: center;
}

.p-onboarding__text {
  position: relative;
  margin-top: 24px;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #1e3c7d;
}

.p-onboarding__accent {
  color: #1e968a;
}

.p-onboarding__accent--strong {
  font-weight: 700;
}

/*-----------------------------------------------
下部（次へ＋ページ点）
------------------------------------------------*/
.p-onboarding__foot {
  flex: 0 0 auto;
  margin-top: 32px;
}

.p-onboarding__next {
  display: block;
  width: 100%;
  max-width: 300px;
  height: 48px;
  margin-inline: auto;
  border-radius: 32px;
  background: #ebeff4;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: #1e3c7d;
  cursor: pointer;
}

.p-onboarding__dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.p-onboarding__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.p-onboarding__dot.is-current {
  background: #1e3c7d;
}

/*-----------------------------------------------
スプラッシュから切り替わったときのフェードイン
（.p-splash 側のフェードアウトと対になる）
------------------------------------------------*/
@keyframes mbgOnboardingIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.p-onboarding__main {
  animation: mbgOnboardingIn 0.2s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .p-onboarding__main {
    animation: none;
  }
}
.p-onboarding__main--usage {
  padding-bottom: calc(32px + var(--tabbarH) + var(--safeBottom));
}

/*====================================================================
page / facility
施設詳細（Figma 3-656 ／ 2026-08-18 追加分）。

縦の組み立ては文士詳細（page/_writer.scss）と同じ。
先頭が「プロフィールカード」ではなく「施設名カード」になり、
代表作・居住地の行が「住所」1行になる。
数値を変えるときは _writer.scss と揃っているか確認すること。
====================================================================*/
/*-----------------------------------------------
施設名＋住所＋説明（白帯）
帯の上辺から施設名カードがはみ出す
------------------------------------------------*/
.p-facility__head {
  position: relative;
  margin-top: 89px;
  padding: 0 16px 24px;
  background: #fff;
  border-top: 1px solid #ebeff4;
  border-bottom: 1px solid #ebeff4;
}

.p-facility__card {
  margin-top: -49px;
}

.p-facility__meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
}

.p-facility__metaText {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 3px;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #1e3c7d;
}

.p-facility__divider {
  height: 6px;
  margin: 16px auto;
  width: 80%;
  border: 0;
  background: url("../images/writers/line.svg") repeat-x center/auto 6px;
}

.p-facility__desc {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #1e3c7d;
}

/*-----------------------------------------------
音声ガイド（「音声ガイドを開始」＋注釈＋プレイヤー）

施設の音声は常に解放されているので、文士詳細と違って未訪問の状態が無い。
中身のマークアップは文士詳細と共通（template-parts/audio-guide.php）なので、
数値は page/_writer.scss の .p-writer__audio 一式と揃えてある。
------------------------------------------------*/
.p-facility__audio {
  padding-bottom: 24px;
}

.p-facility__audioBtn {
  margin-inline: auto;
}

.p-facility__guide {
  margin-top: 24px;
}

.p-facility__guideImage {
  width: 230px;
  max-width: 100%;
  aspect-ratio: 1/1;
  margin: 0 auto;
  border-radius: 8px;
}

.p-facility__guidePlayer {
  margin-top: 24px;
}

.p-facility__guideActions {
  margin-top: 32px;
}

.p-facility__note {
  display: flex;
  gap: 2px;
  margin-top: 16px;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #6c6c6c;
  justify-content: center;
}

/*-----------------------------------------------
地図プレビュー（全幅）
仕様は文士詳細（page/_writer.scss）と同じ。
------------------------------------------------*/
.p-facility__map {
  position: relative;
  display: block;
  height: 186px;
  color: inherit;
  text-decoration: none;
  margin-top: 40px;
  overflow: hidden;
  background: url("../images/common/map_sample.png") no-repeat center/cover;
}
.p-facility__map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.p-facility__map.is-live {
  background-image: none;
}

.p-facility__mapCanvas {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

.p-facility__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  z-index: 3;
}

/*-----------------------------------------------
Google map ボタン
------------------------------------------------*/
.p-facility__gmap {
  padding: 24px 16px 0;
  /*
   * ライブラリーの写真が未登録だと、このボタンがページ最後の要素になる。
   * .l-main の padding-bottom はタブバーの高さちょうど（＝隠れないだけの値）で
   * 視覚的な余白は持たせていない。画面より短いページでは min-height:100dvh の
   * 余りが余白に見えるが、音声ガイドを開くなどしてページが画面より長くなると
   * ボタンがタブバーに接してしまうので、ここで余白を足す。
   * 40px はデザイン（Figma 1-299）のボタン〜ライブラリー間と同じ。
   */
}
.p-facility__gmap:last-child {
  padding-bottom: 40px;
}

/*-----------------------------------------------
ライブラリー
------------------------------------------------*/
.p-facility__library {
  padding: 40px 0 40px 16px;
}

.p-facility__libraryTitle {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e3c7d;
}

.p-facility__libraryList {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-right: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.p-facility__libraryList::-webkit-scrollbar {
  display: none;
}
.p-facility__libraryList > li {
  flex: 0 0 auto;
}

/*====================================================================
page / language
設定 →「LANGUAGE」（Figma 3-752 / 3-872）。
表示中の言語に ▶ が付く。もう一方を押すと確認ポップアップ（c-confirm）。
====================================================================*/
.p-language {
  padding: 40px 16px 0;
}

.p-language__title {
  justify-content: center;
}

.p-language__list {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.p-language__item {
  position: relative;
}

.p-language__label {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1e3c7d;
  cursor: pointer;
}

.p-language__item.is-current .p-language__label {
  cursor: default;
}

.p-language__item.is-current::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 4px);
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left: 12px solid #1e968a;
  border-right: 0;
}

/*====================================================================
page / reset
設定 →「進捗リセット」＝散策データの初期化（Figma 3-789 / 3-813 / 3-844、
文字の大きさ・余白は 260916_最新デザイン 20:3869）。
確認・完了のポップアップは modules/_modal.scss の c-confirm。
====================================================================*/
.p-reset {
  padding: 40px 23px 40px;
}

/*-----------------------------------------------
見出し（散策データの[初][期][化]）
------------------------------------------------*/
.p-reset__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.p-reset__titleLead {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1e3c7d;
}
.p-reset__titleLead:empty {
  display: none;
}

.p-reset__titleBox {
  flex: 0 0 auto;
}

/*-----------------------------------------------
本文
------------------------------------------------*/
.p-reset__lead {
  margin-top: 63px;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.45;
  color: #1e3c7d;
}

.p-reset__box {
  margin-top: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid #ebeff4;
}

.p-reset__boxTitle {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.45;
  color: #1e3c7d;
}

.p-reset__boxList {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.45;
  color: #1e3c7d;
}
.p-reset__boxList > li::before {
  content: "・";
}

.p-reset__note {
  margin-top: 8px;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.45;
  color: #1e3c7d;
}

/*-----------------------------------------------
ボタン（キャンセル／リセット）
------------------------------------------------*/
.p-reset__actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/*====================================================================
page / page
デザインが用意されていないWordPressの画面用の最小限のレイアウト。
（プライバシーポリシーなどの汎用固定ページ / 404 / フォールバック一覧）

デザインが出たら、その画面用のSCSSを別に作って差し替えること。
====================================================================*/
.p-page {
  padding: 24px 16px 40px;
}

.p-page__title {
  margin-bottom: 16px;
  font-family: "Noto Serif JP", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1e3c7d;
}

.p-page__body {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #1e3c7d;
}

.p-page__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-page__link {
  font-size: 1.6rem;
  line-height: 1.5;
  color: #1e3c7d;
  text-decoration: underline;
}

.p-page__action {
  margin-top: 24px;
}

/*====================================================================
english
英語表示（`<html lang="en-US">`）のときだけ効かせる調整。

日本語の文言に合わせた文字サイズのままだと、英語は語数が増えるぶん
枠からはみ出したり、折り返して隣の要素に重なる箇所がある。
ここでやるのは**文字サイズを小さくして収めること**だけで、
余白や配置は日本語と同じに保つ。

言語の判定は `<html>` の lang 属性（inc/i18n.php がロケールを切り替え、
WordPressの language_attributes() が出力する）。
日本語は lang="ja" なので影響しない。

読み込みは style.scss のいちばん最後。
（`html[lang^="en"] .c-◯◯` はクラス単体より強いので順番に関係なく勝つが、
　英語専用の調整だとひと目で分かるよう末尾にまとめている）

数値は 390px 幅（iPhone 14 などの実寸）で実測して決めた。
====================================================================*/
html[lang^=en] {
  /*-----------------------------------------------
  ホームの大カードの見出し（page/_home.scss）

  18px だと "Meandering through Magome Map" が3行（54px）になり、
  上の画像エリア（高さ90px）に食い込んでいた。2行に収める。
  ------------------------------------------------*/
}
html[lang^=en] .c-featureCard__title {
  font-size: 1.3rem;
  white-space: normal;
}
html[lang^=en] .c-featureCard {
  height: auto;
  min-height: 196px;
  padding-top: 100px;
}
html[lang^=en] {
  /*-----------------------------------------------
  ホームの見出し「主な施設」（modules/_sectionTitle.scss）

  右の列（幅約140px）に対して "Main Facilities" ＋矢印が収まらず2行になっていた。
  左の "List of Writers" と揃えて小さくし、1行に固定する。
  ------------------------------------------------*/
}
html[lang^=en] .p-home__discover .c-sectionTitle {
  font-size: 1.4rem;
  white-space: nowrap;
}
html[lang^=en] {
  /*-----------------------------------------------
  ランク名（ホームの小さいカード／マイページ）

  "Writers’ Village Scholar" などが、ホーム（幅146px・16px）でも
  マイページ（24px）でも3行になっていた。2行に収める。
  ------------------------------------------------*/
}
html[lang^=en] .c-rankName {
  font-size: 1.3rem;
  line-height: 1.2;
}
html[lang^=en] .p-mypage__rankName {
  font-size: 2rem;
  line-height: 1.15;
}
html[lang^=en] {
  /*-----------------------------------------------
  スポット詳細の見出しラベル「代表作」（modules/_tagLabel.scss）

  高さ22px固定の枠に "Major works" が2行で入り、枠からはみ出していた。
  ------------------------------------------------*/
}
html[lang^=en] .c-tagLabel {
  flex-shrink: 0;
  font-size: 1.2rem;
  white-space: nowrap;
}
html[lang^=en] {
  /*-----------------------------------------------
  施設一覧の施設名（modules/_facilityRow.scss）

  20px だと "Kitanokobato Children Park" が3行になる。
  ------------------------------------------------*/
}
html[lang^=en] .c-facilityRow__name {
  font-size: 1.6rem;
  line-height: 1.2;
}
html[lang^=en] {
  /*-----------------------------------------------
  利用規約の題字（page/_terms.scss）

  英語のサイト名は4行（約150px）になり、規約本文のスクロール枠が狭くなっていた。
  ------------------------------------------------*/
}
html[lang^=en] .p-terms__titleMain {
  font-size: 1.6rem;
}
html[lang^=en] {
  /*-----------------------------------------------
  訪問状況の単位（modules/_progress.scss）

  「解説板」に対して英語は "Information boards" と長く、1行に収めると
  小さくなりすぎる。文字は 10px にして、数字の下の行（右寄せ）に送る。
  ------------------------------------------------*/
}
html[lang^=en] .c-visitCount {
  flex-wrap: wrap;
  justify-content: flex-end;
}
html[lang^=en] .c-visitCount__unit {
  flex-basis: 100%;
  margin-top: 2px;
  font-size: 1rem;
  letter-spacing: 0;
  text-align: right;
}
html[lang^=en] {
  /*-----------------------------------------------
  訪問バッジ・地図ピンの「済」（Figma 260925_最新デザイン 567:3106「英語版ピン」）

  日本語は「未／訪問」「訪問／済」の漢字だが、英語は
    未訪問 … 「Not / Visited」
    訪問済 … 「Visited」＋チェック
  のスタンプにする。状態は日本語と同じクラス（--todo / --done、--visited）で
  main.js・map.js が切り替えるので、ここでは表示だけを差し替える（HTMLは共通）。
  文字は Noto Serif JP の Black（900）。
  ------------------------------------------------*/
}
html[lang^=en] .c-visitBadge {
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
}
html[lang^=en] .c-visitBadge .c-visitBadge__mark,
html[lang^=en] .c-visitBadge .c-visitBadge__label {
  display: none;
}
html[lang^=en] .c-visitBadge::before, html[lang^=en] .c-visitBadge::after {
  display: block;
  line-height: 12px;
  white-space: nowrap;
}
html[lang^=en] .c-visitBadge--todo {
  gap: 0;
}
html[lang^=en] .c-visitBadge--todo::before {
  content: "Not";
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}
html[lang^=en] .c-visitBadge--todo::after {
  content: "Visited";
  font-size: 1rem;
  letter-spacing: -0.04em;
}
html[lang^=en] .c-visitBadge--done {
  gap: 0;
  padding: 2px 0 0;
}
html[lang^=en] .c-visitBadge--done::before {
  content: "Visited";
  font-size: 1rem;
  letter-spacing: -0.04em;
}
html[lang^=en] .c-visitBadge--done::after {
  content: "";
  width: 17px;
  height: 12px;
  background: currentColor;
  mask: url("../images/common/visited_check.svg") no-repeat center/contain;
}
html[lang^=en] .c-visitBadge--lg.c-visitBadge--todo {
  gap: 2px;
  padding: 0;
}
html[lang^=en] .c-visitBadge--lg.c-visitBadge--todo::before {
  font-size: 2rem;
  line-height: 1;
  rotate: 3.5deg;
}
html[lang^=en] .c-visitBadge--lg.c-visitBadge--todo::after {
  font-size: 1.5rem;
  line-height: 1;
  rotate: 4deg;
}
html[lang^=en] .c-visitBadge--lg.c-visitBadge--done {
  gap: 2px;
  padding: 0 0 4px;
}
html[lang^=en] .c-visitBadge--lg.c-visitBadge--done::before {
  font-size: 1.5rem;
  line-height: 1;
  rotate: 4.35deg;
}
html[lang^=en] .c-visitBadge--lg.c-visitBadge--done::after {
  width: 23px;
  height: 17px;
  margin-left: 6px;
  rotate: 21.4deg;
}
html[lang^=en] .c-mapPin__done {
  align-content: center;
  gap: 1px;
  font-size: 0;
  opacity: 1;
}
html[lang^=en] .c-mapPin__done::before {
  content: "Visited";
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 12px;
  letter-spacing: -0.04em;
}
html[lang^=en] .c-mapPin__done::after {
  content: "";
  justify-self: center;
  width: 16.764px;
  height: 12.171px;
  background: var(--pinColor);
  mask: url("../images/common/visited_check.svg") no-repeat center/contain;
}
html[lang^=en] .c-settingsMenu__item--long .c-settingsMenu__label {
  font-size: 1.8rem;
  line-height: 1.2;
  white-space: normal;
}
html[lang^=en] {
  /*-----------------------------------------------
  文士詳細のプロフィールカード（modules/_profileCard.scss）

  英語は肩書き（role）などが長く、1行に収まらず三点リーダーで省略されていた。
  ここでしか読めない情報なので、文士詳細では折り返して全部出す。
  カードは高さ固定（86px）をやめて中身に合わせて伸ばす（最低 86px は保つ）。
  散策マップのボトムシートのカードは従来どおり1行で省略する。
  ------------------------------------------------*/
}
html[lang^=en] .p-writer__profile .c-profileCard {
  height: auto;
  min-height: 86px;
  padding-block: 12px;
}
html[lang^=en] .p-writer__profile .c-profileCard__role,
html[lang^=en] .p-writer__profile .c-profileCard__name,
html[lang^=en] .p-writer__profile .c-profileCard__birth {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
  padding-bottom: 0;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
html[lang^=en] .p-writer__profile .c-profileCard__name span {
  display: inline-block;
  white-space: nowrap;
}
html[lang^=en] {
  /*-----------------------------------------------
  散策マップのボトムシートの文士カード（page/_map.scss）

  英語の名前は下にはみ出す字（g・y など）が多く、下の生没年・肩書きの行と
  くっついて見える。名前の下を 2px 空けて離す
  （modules/_profileCard.scss のマイナス余白を上書き）。
  ------------------------------------------------*/
}
html[lang^=en] .c-mapSheet__profile .c-profileCard__name {
  margin-bottom: 2px;
}
html[lang^=en] .c-editor ol.mbg-list-paren {
  padding-left: 2em;
}
html[lang^=en] .c-editor ol.mbg-list-paren > li {
  list-style: mbg-paren-en;
}

/*====================================================================
page / homeFeatureSimple
ホームのメイン導線2枚（まごめぐりマップ／文士村謎解き）をシンプルにした見た目。
先方が DevTools で試した参考CSS（0930_chosei.css）を元にしている：
上に絵（高さ96px）、下に色帯の見出し（高さ52px・右に ›）、説明文は出さない。

元の見た目（page/_home.scss の .c-featureCard）はそのまま残してあり、
このファイルは後から上書きしているだけ。
【元に戻すとき】style.scss の @import "page/homeFeatureSimple"; の1行を消して再ビルドする。
====================================================================*/
.c-featureCard--map,
.c-featureCard--quiz {
  background: #fff;
  background-image: none;
}

.c-featureCard {
  height: 148px;
  padding: 0;
  justify-content: flex-start;
  color: #1e3c7d;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(30, 60, 125, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.c-featureCard::after {
  content: none;
}
.c-featureCard:active {
  transform: scale(0.985);
}

.c-featureCard__frame {
  display: none;
}

.c-featureCard__thumb {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  height: 96px;
  flex: 0 0 96px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
}

.c-featureCard .c-thumb {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.c-featureCard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.c-featureCard__title {
  width: 100%;
  min-width: 0;
  height: 52px;
  min-height: 52px;
  margin: 0;
  padding: 0 26px 0 10px;
  display: flex;
  align-items: center;
  color: #fff;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.c-featureCard__title::before {
  content: "›";
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 2;
  transform: translateY(-52%);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
}
.c-featureCard--map .c-featureCard__title {
  background: linear-gradient(90deg, #16b2a3 0%, #14978c 100%);
}
.c-featureCard--quiz .c-featureCard__title {
  background: linear-gradient(90deg, #2956a8 0%, #22458f 100%);
}

.c-featureCard__text {
  display: none;
}

@container (max-width: 170px) {
  .c-featureCard__title {
    padding-left: 8px;
    padding-right: 24px;
  }
  .c-featureCard__title::before {
    right: 7px;
    font-size: 2rem;
  }
}
html[lang^=en] .c-featureCard {
  height: 148px;
  min-height: 0;
  padding-top: 0;
}
html[lang^=en] .c-featureCard__title {
  font-size: max(1rem, min(1.6rem, (100cqw - 36px) / 9));
  white-space: normal;
  line-height: 1.1;
}
