/* ねこ道ゆり通り 公式サイト（リニューアル版）共通スタイル
   配色：背景＝白 / 上下バー＝#FFEBF5 / カード＝白
   PC版・スマホ版：画面幅が狭いとき、または「スマホ版」を選んだとき（.mobile-view）にスマホ用レイアウトになります。 */

:root {
  --bar: #FFEBF5;
  --purple: #6a5ec4;
  --deep: #4a3f8f;
  --cta: #8b7fd1;
  --pink: #d6608a;
  --line: #eee;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
html.mobile-view { font-size: 17px; }
body {
  font-family: "Yu Gothic", "Meiryo", "Hiragino Sans", sans-serif;
  color: #333; background: #fff;
}
html.mobile-view body { background: #f2f0f7; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }

/* ページ本体（この幅を基準にレイアウトを切り替える） */
.page {
  container-type: inline-size;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; background: #fff;
}
html.mobile-view .page { max-width: 430px; margin: 0 auto; box-shadow: 0 0 24px rgba(0,0,0,.12); }
.page > * { --gut: 40px; }
.page > main { flex: 1; }
.wrap { width: min(calc(100% - 2 * var(--gut)), 1040px); margin-inline: auto; }

/* ヘッダー・フッター */
.site-header { background: var(--bar); border-bottom: 1px solid var(--line); }
.hdr-in {
  width: min(calc(100% - 2 * var(--gut)), 1040px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 20px; padding: 16px 0;
}
.site-header.center .hdr-in { justify-content: center; }
.logo { font-size: 1.25rem; font-weight: bold; color: var(--purple); letter-spacing: .06em; }
.site-header.center .logo { font-size: 1.4rem; letter-spacing: .1em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .9rem; color: #777; }
.site-nav a:hover { color: var(--pink); }
.site-nav .current { color: var(--pink); font-weight: bold; }
.site-footer {
  background: var(--bar); border-top: 1px solid var(--line);
  text-align: center; padding: 18px; font-size: .78rem; color: #aaa;
}

/* サブページの見出しバナー */
.page-hero {
  margin-top: 26px; border-radius: 16px; padding: 38px 24px; text-align: center;
  background: linear-gradient(120deg, #cfc7f2, #f8d7e6);
}
.page-hero h1 { font-size: 1.7rem; color: var(--deep); }
.page-hero p { font-size: .95rem; color: #6a5f9a; margin-top: 10px; }
.lead { text-align: center; font-size: .95rem; color: #666; margin-top: 20px; }

/* TOP：ヒーロー */
.top-hero {
  margin-top: 28px; border-radius: 16px; height: 310px; padding: 0 60px;
  background: linear-gradient(120deg, #cfc7f2, #f8d7e6);
  position: relative; overflow: hidden; display: flex; align-items: center;
}
.top-hero h1 { font-size: 1.85rem; color: var(--deep); line-height: 1.5; margin-bottom: 26px; }
.cta {
  display: inline-block; background: var(--cta); color: #fff; font-weight: bold;
  font-size: 1rem; padding: 11px 40px; border-radius: 40px;
}
.cta:hover { opacity: .9; }
.hero-img {
  position: absolute; right: 68px; top: 36px; width: 220px; aspect-ratio: 9 / 16; height: auto;
  border-radius: 12px; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.18);
  transform: rotate(8deg); transform-origin: 50% 0;
}

/* TOP：お知らせ */
.notice {
  margin-top: 30px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.06); padding: 22px 30px;
  display: flex; align-items: center; gap: 20px;
}
.notice-top { display: flex; align-items: center; gap: 20px; flex: 1; }
.notice-icon {
  width: 40px; height: 40px; border-radius: 50%; background: #f3edfb; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.notice-body { flex: 1; font-size: .92rem; color: #555; line-height: 1.9; }
.notice-link { font-size: .9rem; color: var(--cta); font-weight: bold; white-space: nowrap; }

/* TOP：カード */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 30px auto 46px; }
.card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0,0,0,.06); padding: 30px 20px; text-align: center;
  color: inherit; cursor: pointer; font: inherit; width: 100%;
}
a.card:hover, button.card:hover { box-shadow: 0 5px 16px rgba(0,0,0,.12); }
.card-icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.ctitle { font-size: 1.05rem; font-weight: bold; color: #333; margin-bottom: 8px; }
.csub { font-size: .82rem; color: #999; line-height: 1.6; }
.sns-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sns-links a {
  font-size: .8rem; color: var(--cta); font-weight: bold;
  border: 1px solid #e0dcf5; border-radius: 20px; padding: 5px 14px; background: #fff;
}
.sns-links a:hover { background: #faf9fe; }
.sns-links .short { display: none; }

/* 作品一覧 */
.works { max-width: 900px; margin: 34px auto 50px; display: flex; flex-direction: column; align-items: center; }
.work-card {
  display: flex; width: min(100%, 520px); text-align: left; cursor: pointer;
  border: 1px solid #ddd; border-radius: 14px; background: #fff; overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.08); font: inherit; color: inherit; padding: 0;
}
.work-card:hover { box-shadow: 0 5px 16px rgba(0,0,0,.14); }
.work-card .thumb { width: 165px; aspect-ratio: 2 / 3; flex-shrink: 0; background: #f7f5f2; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.work-card .info { padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; }
.work-card .ttitle { font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; }
.work-card .syn { font-size: .85rem; color: #666; line-height: 1.7; margin-bottom: 10px; }
.work-card .tap { font-size: .85rem; color: #4a6fd6; font-weight: bold; text-decoration: underline; }
.next {
  margin-top: 30px; width: min(100%, 520px); border: 2px dashed #ccc; border-radius: 14px;
  padding: 40px 20px; text-align: center; font-size: .95rem; letter-spacing: .06em; color: #999;
}

/* 作品一覧：タップ後（動画＋リンク） */
.tap-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6);
  display: none; align-items: center; justify-content: center;
}
.tap-modal.open { display: flex; }
.tap-close {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.9); color: #555; font-size: 1.3rem; cursor: pointer; z-index: 2;
}
.tap-stage { position: relative; background: #fbe4ee; line-height: 0; }
.tap-stage[data-mode="pc"] { width: min(96vw, calc(92vh * 1.4167), 1122px); aspect-ratio: 1122 / 792; }
.tap-stage[data-mode="sp"] { width: min(100vw, calc(100vh * .5625)); aspect-ratio: 9 / 16; }
.tap-stage video { width: 100%; height: 100%; display: block; object-fit: contain; }
.tap-stage .hot { position: absolute; display: none; }
.tap-stage.done .hot { display: block; }
.tap-stage .patch { background: #fff; }
.tap-stage .booth {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  background: #f1f1f1; border: 2px dashed #bbb; border-radius: 12px; line-height: 1.4; cursor: default;
}
.tap-stage.done .booth { display: flex; }
.booth .t1 { font-size: clamp(11px, 1.9vw, 17px); font-weight: bold; color: #999; }
.booth .t2 { font-size: clamp(9px, 1.4vw, 13px); color: #aaa; margin-top: 3px; }
/* PC版動画（1122×792）上の位置 */
.tap-stage[data-mode="pc"] .h-amazon { left: 45.9%; top: 80.8%; width: 16.7%; height: 13.9%; }
.tap-stage[data-mode="pc"] .h-patch  { left: 63.9%; top: 79.9%; width: 18.1%; height: 15.8%; }
.tap-stage[data-mode="pc"] .h-booth  { left: 64.5%; top: 80.8%; width: 16.8%; height: 13.9%; }
.tap-stage[data-mode="pc"] .h-back   { left: 6.9%;  top: 88.8%; width: 22.5%; height: 9.4%; }
/* スマホ版動画（1080×1920）上の位置 */
.tap-stage[data-mode="sp"] .h-amazon { left: 53.7%; top: 19.2%; width: 28.9%; height: 9.5%; }
.tap-stage[data-mode="sp"] .h-patch  { left: 53.5%; top: 29.9%; width: 30.3%; height: 10.3%; }
.tap-stage[data-mode="sp"] .h-booth  { left: 54.2%; top: 30.3%; width: 29%;   height: 9.6%; }
.tap-stage[data-mode="sp"] .h-back   { left: 67.3%; top: 6%;    width: 22.5%; height: 3.6%; }
.tap-stage[data-mode="sp"] .booth .t1 { font-size: clamp(11px, 3.6vw, 17px); }
.tap-stage[data-mode="sp"] .booth .t2 { font-size: clamp(9px, 2.8vw, 13px); }

/* 登場人物ギャラリー */
.char-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px auto 20px; }
.char-card { border: 1px solid #ddd; border-radius: 14px; padding: 16px; background: #fff; }
.card-top { display: flex; gap: 16px; }
.char-visual {
  width: 42%; aspect-ratio: 2 / 3; border: 1px solid #ccc; border-radius: 8px;
  overflow: hidden; background: #fff; flex-shrink: 0;
}
.char-visual img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.work-title { font-size: .85rem; color: var(--purple); font-weight: bold; overflow-wrap: break-word; }
.char-role { font-size: .78rem; color: #999; margin: 2px 0 8px; }
.char-name { font-size: 1.5rem; font-weight: bold; color: #333; }
.spacer { flex: 1; }
.debut { font-size: .78rem; color: #888; margin: 8px 0; }
.intro { font-size: .8rem; color: #555; line-height: 1.8; text-align: left; }
.card-bottom { margin-top: 14px; padding-top: 12px; border-top: 1px solid #eee; text-align: center; }
.click-link {
  font-size: .85rem; color: #4a6fd6; text-decoration: underline; font-weight: bold;
  background: none; border: none; cursor: pointer;
}
.options { display: none; justify-content: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.options.open { display: flex; }
.opt-btn {
  font-size: .8rem; color: var(--purple); border: 1px solid #d8d2f5; border-radius: 20px;
  padding: 6px 16px; background: #f8f6fd; cursor: pointer;
}
.opt-btn:hover { background: #efeafc; }
.coming-soon {
  display: none; margin-top: 8px; font-size: .8rem; color: var(--pink);
  background: #fdf1f5; border-radius: 6px; padding: 8px;
}
.coming-soon.show { display: block; }

/* サークルについて */
.about { padding: 44px 0 30px; }
.about-heading { font-size: 1.35rem; font-weight: bold; color: var(--deep); text-align: center; margin-bottom: 22px; }
.about-text { font-size: 1.02rem; color: #444; line-height: 2; max-width: 640px; margin: 0 auto; }
.about-text p { margin-bottom: 20px; }
.philosophy-box {
  max-width: 640px; margin: 14px auto 0; background: #fdf1f5; border: 1px solid #f3c6d7;
  border-radius: 14px; padding: 28px 32px; text-align: center; font-size: .98rem; color: #666; line-height: 1.9;
}
.philosophy-box b { color: var(--purple); }

/* お知らせ一覧 */
.news-wrap { max-width: 760px; margin: 30px auto 0; }
.news-item {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline;
  padding: 18px 8px; border-bottom: 1px solid var(--line);
}
.news-item:first-child { border-top: 1px solid var(--line); }
.news-date { font-size: .9rem; color: #9b8ee0; font-weight: bold; white-space: nowrap; }
.news-text { font-size: 1rem; color: #444; line-height: 1.7; }
.back { text-align: center; margin: 30px 0 44px; font-size: .92rem; color: var(--cta); font-weight: bold; }

/* 閲覧環境の選択画面・切り替えボタン・お知らせ表示 */
#select-screen {
  position: fixed; inset: 0; z-index: 200; background: #fff5fa;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
html.need-select #select-screen { display: flex; }
html.need-select .page { visibility: hidden; }
html.need-select, html.need-select body { overflow: hidden; height: 100%; }
.select-inner { text-align: center; max-width: 580px; width: 100%; }
.select-eyebrow { display: block; font-size: 1rem; font-weight: bold; color: var(--purple); letter-spacing: .1em; margin-bottom: 8px; }
.select-heading { font-size: 1.3rem; color: var(--deep); margin-bottom: 26px; }
.select-cards { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.select-card {
  flex: 1; min-width: 200px; background: #fff; border: 1px solid #f3c6d7; border-radius: 16px;
  padding: 26px 16px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: 0 3px 12px rgba(0,0,0,.06); color: #333;
}
.select-card:hover { box-shadow: 0 5px 16px rgba(0,0,0,.12); }
.select-card-icon { font-size: 2rem; line-height: 1; }
.select-card-name { font-size: 1.15rem; font-weight: bold; color: var(--deep); }
.select-card-desc { font-size: .8rem; color: #888; line-height: 1.5; }
#view-toggle {
  display: none; margin-top: 10px;
  background: #fff; color: var(--purple); border: 1px solid #d8d2f5; border-radius: 20px;
  padding: 7px 16px; font-size: .78rem; font-weight: bold; cursor: pointer;
}
#view-toggle.active { display: inline-block; }
.sp-br { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 300;
  background: #fff; color: var(--pink); border: 1px solid #f3c6d7; border-radius: 22px;
  padding: 10px 20px; font-size: .88rem; box-shadow: 0 3px 12px rgba(0,0,0,.18);
  opacity: 0; pointer-events: none; transition: opacity .25s; text-align: center; max-width: 92vw;
}
.toast.show { opacity: 1; }

/* ───── スマホ幅（画面が狭い or スマホ版を選択） ───── */
@container (max-width: 640px) {
  .page > * { --gut: 16px; }
  .hdr-in { padding: 12px 0; justify-content: center; }
  .site-nav { justify-content: center; width: 100%; gap: 6px 14px; font-size: .82rem; }
  .site-header.center .logo { font-size: 1.2rem; }

  .page-hero { margin-top: 16px; padding: 26px 16px; }
  .page-hero h1 { font-size: 1.35rem; }
  .page-hero p { font-size: .82rem; }

  .top-hero { margin-top: 14px; height: 250px; padding: 0 16px; border-radius: 14px; }
  .top-hero h1 { font-size: 1.02rem; margin-bottom: 16px; }
  .top-hero .cta { font-size: .8rem; padding: 8px 22px; }
  .hero-text { width: 52%; }
  .hero-img { width: 138px; right: 14px; top: 26px; border-radius: 9px; }

  .notice { margin-top: 14px; padding: 12px 14px; display: block; border-radius: 12px; }
  .notice-top { display: flex; align-items: center; gap: 10px; }
  .notice-icon { width: 26px; height: 26px; font-size: .75rem; }
  .notice-body { font-size: .72rem; line-height: 1.6; }
  .notice-body .n2 { display: none; }
  .notice-link { display: block; text-align: right; font-size: .68rem; margin-top: 4px; }

  .card-grid { gap: 10px; margin: 14px auto 24px; }
  .card { padding: 16px 4px 14px; border-radius: 12px; }
  .sp-br { display: inline; }
  .card-icon { width: 44px; height: 44px; font-size: 1.3rem; margin-bottom: 8px; }
  .ctitle { font-size: .74rem; line-height: 1.4; margin-bottom: 0; }
  .csub { display: none; }
  .csub.keep { display: block; font-size: .6rem; line-height: 1.45; margin-top: 3px; }
  .sns-links { gap: 4px; margin-top: 2px; }
  .sns-links a { padding: 0; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: .6rem; border-radius: 50%; }
  .sns-links .full { display: none; }
  .sns-links .short { display: inline; }

  .lead { font-size: .8rem; margin-top: 14px; }
  .works { margin: 18px auto 30px; }
  .work-card .thumb { width: 118px; }
  .work-card .info { padding: 12px 14px; }
  .work-card .ttitle { font-size: .95rem; margin-bottom: 6px; }
  .work-card .syn { font-size: .68rem; line-height: 1.6; margin-bottom: 6px; }
  .work-card .tap { font-size: .72rem; }
  .next { margin-top: 18px; padding: 26px 14px; font-size: .85rem; }

  .char-grid { grid-template-columns: 1fr; margin-top: 16px; }
  .char-card { padding: 12px; }
  .card-top { flex-direction: column; }
  .char-visual { width: 70%; margin: 0 auto; }
  .char-name { font-size: 1.35rem; }
  .intro { font-size: .8rem; }

  .about { padding: 26px 0 16px; }
  .about-heading { font-size: 1.15rem; }
  .about-text { font-size: .92rem; }
  .philosophy-box { padding: 20px 18px; font-size: .88rem; }

  .news-wrap { margin-top: 16px; }
  .news-item { grid-template-columns: 1fr; gap: 4px; padding: 14px 4px; }
  .news-text { font-size: .92rem; }
  .back { margin: 20px 0 30px; }
}

/* ───── 診断（心理テスト） ───── */
.quiz { max-width: 720px; margin: 30px auto 50px; }
.quiz-card {
  background: #fff; border: 1px solid #f3c6d7; border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0,0,0,.06); padding: 34px 30px; text-align: center;
}
.quiz-card[hidden] { display: none; }
.q-lead { font-size: 1rem; color: #555; line-height: 1.9; margin-bottom: 22px; }
.q-note { font-size: .8rem; color: #999; margin-top: 16px; }
.q-progress { height: 8px; background: #f3e6ef; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.q-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #cfc7f2, #ef9cb8); transition: width .3s; }
.q-count { font-size: .85rem; color: #9b8ee0; font-weight: bold; text-align: left; margin-bottom: 18px; }
.q-text { font-size: 1.3rem; font-weight: bold; color: var(--deep); line-height: 1.7; margin-bottom: 22px; text-align: left; }
.q-choice {
  display: block; width: 100%; text-align: left; padding: 16px 20px; margin-bottom: 12px;
  border: 1px solid #d8d2f5; background: #faf9fe; border-radius: 12px; font-size: 1rem; color: #444;
  cursor: pointer; line-height: 1.6;
}
.q-choice:hover { background: #efeafc; border-color: var(--cta); }
.q-back { background: none; border: none; color: #999; font-size: .85rem; text-decoration: underline; cursor: pointer; margin-top: 6px; }
.q-back[hidden] { display: none; }
.q-btn {
  display: inline-block; background: var(--cta); color: #fff; font-weight: bold; font-size: 1.05rem;
  padding: 13px 44px; border: none; border-radius: 40px; cursor: pointer;
}
.q-btn:hover { opacity: .9; }
.q-btn.sub { background: #fff; color: var(--purple); border: 1px solid #d8d2f5; }
.r-eyebrow { font-size: .9rem; color: #9b8ee0; font-weight: bold; letter-spacing: .08em; }
.r-title { font-size: 1.7rem; color: var(--pink); margin: 6px 0 20px; line-height: 1.5; }
.r-body { display: flex; gap: 24px; align-items: center; text-align: left; }
.r-img { width: 40%; flex-shrink: 0; aspect-ratio: 2 / 3; border: 1px solid #ddd; border-radius: 10px; overflow: hidden; background: #fff; }
.r-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.r-text { flex: 1; font-size: .98rem; color: #444; line-height: 1.95; }
.r-quote { margin-top: 14px; padding: 12px 16px; background: #fdf1f5; border-radius: 10px; color: var(--pink); font-weight: bold; font-size: .95rem; line-height: 1.7; }
.r-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

@container (max-width: 640px) {
  .quiz { margin: 16px auto 30px; }
  .quiz-card { padding: 22px 16px; }
  .q-text { font-size: 1.1rem; }
  .q-choice { padding: 14px 14px; font-size: .92rem; }
  .r-title { font-size: 1.35rem; }
  .r-body { flex-direction: column; }
  .r-img { width: 62%; }
  .r-actions .q-btn { width: 100%; }
}
