/*
Theme Name: HOSHINO KII
Theme URI: https://hoshinokii.com/
Description: 星乃きぃ Official Website のテーマ。お知らせ（NEWS）・ディスコグラフィ・プロフィールの管理画面を含みます。
Version: 1.0.21
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: hoshinokii
*/
:root {
  --pink: #e98bbd;
  --pink-deep: #d1609c;
  --pink-soft: #fbe3ef;
  --yellow: #f4e46a;
  --yellow-soft: #fdf8d6;
  --sky: #7fcfe8;
  --sky-soft: #e1f4fa;
  --lav: #b79fd9;
  --ink: #3b3341;
  --ink-sub: #756b7b;
  --bg: #fffdf8;
  --card: #ffffff;
  --line: #efe6ea;
  --radius: 20px;
  --hh: 68px;
  --en: "Quicksand", "Zen Maru Gothic", sans-serif;
  --ja: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  font-family: var(--ja);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.is-sub { padding-top: var(--hh); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 36px; }
.empty { text-align: center; color: var(--ink-sub); background: var(--card); border-radius: var(--radius); padding: 32px 20px; margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.header.is-scrolled, .is-sub .header { background: rgba(255,253,248,.94); backdrop-filter: blur(8px); box-shadow: 0 2px 16px rgba(59,51,65,.06); }
.admin-bar .header { top: var(--wp-admin--admin-bar--height, 32px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--hh); }
.logo { font-family: var(--en); font-weight: 700; font-size: 22px; letter-spacing: .08em; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo__star { width: 20px; height: 20px; color: var(--pink); }
.nav { display: flex; align-items: center; gap: 28px; font-family: var(--en); font-weight: 700; font-size: 14px; letter-spacing: .12em; }
.nav > a { position: relative; padding: 4px 0; }
.nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--pink); transform: scaleX(0); transition: transform .25s; }
.nav > a:hover::after, .nav > a.is-cur::after { transform: scaleX(1); }
.nav .nav__sns { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: var(--card); border-radius: 50%; box-shadow: 0 2px 10px rgba(59,51,65,.1); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.menu-btn span:nth-child(1) { top: 16px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- SNS icons ---------- */
.sns-ico { display: flex; flex-wrap: wrap; gap: 10px; }
.sns-ico a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line); transition: transform .2s, border-color .2s; }
.sns-ico a:hover { transform: translateY(-3px); border-color: var(--pink); }
.sns-ico svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: var(--hh); }
/* PC: 16:9 across the full width (photos prepared at 16:9 show whole; others are cropped, keeping the top) */
.hero__slides { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--yellow-soft); }
.slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.4s ease; }
.slide.is-active { opacity: 1; }
.slide picture { display: block; width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero__card { position: absolute; left: max(16px, calc((100% - 1080px) / 2)); bottom: -36px; background: var(--card); border-radius: var(--radius); padding: 22px 30px 20px; box-shadow: 0 10px 30px rgba(59,51,65,.10); }
.hero__name { margin: 0; font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; letter-spacing: .12em; line-height: 1.3; }
.hero__en { font-family: var(--en); font-weight: 700; letter-spacing: .3em; font-size: 13px; color: var(--pink-deep); }
.hero__copy { margin: 6px 0 0; font-size: 14px; color: var(--ink-sub); }
.hero__dots { position: absolute; right: max(24px, calc((100% - 1080px) / 2)); bottom: 20px; display: flex; gap: 8px; z-index: 1; }
.hero__dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.hero__dots button.is-active { background: #fff; }

/* ---------- Section common ---------- */
.section { padding: 96px 0 0; position: relative; }
.sec-title { text-align: center; margin: 0 0 40px; font-weight: 700; }
.sec-title__en { display: block; font-family: var(--en); font-weight: 700; font-size: clamp(30px, 5vw, 44px); letter-spacing: .14em; line-height: 1.2; }
.sec-title__en::after { content: ""; display: block; width: 64px; height: 6px; margin: 12px auto 0; border-radius: 6px; background: linear-gradient(90deg, var(--pink) 0 25%, var(--yellow) 25% 50%, var(--sky) 50% 75%, var(--lav) 75%); }
.sec-title__ja { display: block; font-size: 13px; font-weight: 500; color: var(--ink-sub); letter-spacing: .2em; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; border-radius: 999px; font-family: var(--en); font-weight: 700; letter-spacing: .12em; font-size: 14px; background: var(--ink); color: #fff; border: 2px solid var(--ink); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59,51,65,.18); }
.btn--pink { background: var(--pink-deep); border-color: var(--pink-deep); }
.btn--ghost { background: transparent; color: var(--ink); }
.stripes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.stripes i { position: absolute; width: 14px; height: 340px; border-radius: 14px; transform: rotate(35deg); opacity: .55; }
.stripes i:nth-child(1) { background: var(--pink); left: 4%; top: 40px; }
.stripes i:nth-child(2) { background: var(--yellow); left: 9%; top: 120px; height: 220px; }
.stripes i:nth-child(3) { background: var(--sky); right: 6%; top: 0; }
.stripes i:nth-child(4) { background: var(--lav); right: 11%; top: 160px; height: 200px; }

/* ---------- News：カード（左に大きな日付・ラベル・タイトル・→） ---------- */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sch__body .tag { padding: 2px 12px; margin-bottom: 6px; }
.sch__kind { display: block; font-family: var(--ja); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--pink-deep); margin-bottom: 2px; }
.tag { display: inline-block; font-family: var(--en); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-align: center; border-radius: 999px; padding: 3px 0; color: #fff; background: #4fb3d4; line-height: 1.6; }
.tag--event { background: var(--pink-deep); }
.tag--topics { background: #4fb3d4; }
.tag--music { background: #c9a92a; }
.tag--media { background: #9478c4; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 28px; }
.tabs a { font-family: var(--en); font-weight: 700; font-size: 13px; letter-spacing: .12em; padding: 7px 20px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); }
.tabs a:hover { border-color: var(--pink); }
.tabs a.is-cur { background: var(--ink); border-color: var(--ink); color: #fff; }

.sch { display: grid; grid-template-columns: 112px 1fr auto; gap: 24px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 20px 26px; border: 2px solid var(--line); transition: border-color .2s, transform .2s; }
a.sch:hover { border-color: var(--pink); transform: translateY(-2px); }
.sch__date { display: block; text-align: center; font-family: var(--en); font-weight: 700; line-height: 1.1; }
.sch__date b { display: block; font-size: 34px; letter-spacing: .02em; }
.sch__date small { font-size: 12px; letter-spacing: .1em; color: var(--ink-sub); }
.sch__title { font-weight: 700; font-size: 16px; margin: 0; }
.sch__arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--pink-soft); display: grid; place-items: center; color: var(--pink-deep); font-weight: 700; }

/* ---------- Release ---------- */
.releases { display: grid; gap: 32px; }
.release { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; background: var(--card); border-radius: 32px; padding: 40px; box-shadow: 0 10px 40px rgba(59,51,65,.06); }
.release__jacket { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--pink-soft); }
.release__jacket img { width: 100%; height: 100%; object-fit: cover; }
.release__badge { position: absolute; top: 14px; left: 14px; background: var(--yellow); font-family: var(--en); font-weight: 700; font-size: 12px; letter-spacing: .12em; padding: 4px 12px; border-radius: 999px; }
.release__label { font-family: var(--en); font-weight: 700; color: var(--pink-deep); letter-spacing: .2em; font-size: 13px; }
.release__title { font-size: clamp(26px, 3.4vw, 36px); margin: 4px 0; letter-spacing: .06em; line-height: 1.4; }
.release__cw { margin: 0 0 18px; color: var(--ink-sub); font-size: 15px; }
.release__text { font-size: 15px; margin: 0 0 18px; }
.release__text p { margin: 0 0 .6em; }
.credits { font-size: 13px; color: var(--ink-sub); margin: 0 0 26px; padding: 14px 18px; background: var(--bg); border-radius: 12px; }

/* ---------- Profile ---------- */
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.profile__photo { position: relative; isolation: isolate; }
/* プロフィール写真：切り抜かずに写真全体を表示（角を少し丸めた長方形） */
.profile__photo img { border-radius: 24px; width: 100%; height: auto; }
.profile__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 24px; background: repeating-linear-gradient(135deg, var(--yellow-soft) 0 14px, var(--pink-soft) 14px 28px); z-index: -1; }
/* トップの PROFILE 欄：名前と写真からプロフィールページへ */
a.profile__photo { display: block; }
a.profile__photo img { transition: filter .25s, transform .4s; }
a.profile__photo:hover img { filter: brightness(1.06); transform: translateY(-3px); }
.profile__head { display: block; width: fit-content; }
.profile__head .profile__name, .profile__head .profile__kana { transition: color .2s; }
.profile__head:hover .profile__name { color: var(--pink-deep); }
.profile__link:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; border-radius: 12px; }
.profile__name { font-size: 32px; margin: 0; letter-spacing: .12em; }
.profile__kana { font-family: var(--en); font-weight: 700; color: var(--pink-deep); letter-spacing: .3em; font-size: 13px; margin: 0 0 24px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px; }
.fact { background: var(--card); border-radius: 16px; padding: 14px 10px; text-align: center; border: 2px solid var(--line); }
.fact dt { font-family: var(--en); font-weight: 700; font-size: 11px; color: var(--ink-sub); letter-spacing: .1em; }
.fact dd { margin: 0; font-weight: 700; font-size: 17px; }
/* 趣味・特技：折り返した2行目以降も、ラベルの右側の線にそろえる */
.profile__item { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin: 0 0 14px; font-size: 15px; }
.profile__item b { font-size: 12px; color: #fff; background: var(--ink); border-radius: 999px; padding: 1px 12px; margin-top: 3px; letter-spacing: .1em; white-space: nowrap; }
.policy { margin: 24px 0 28px; padding: 18px 22px; border-radius: 16px; background: var(--yellow-soft); font-weight: 700; font-size: 17px; }
.policy small { display: block; font-family: var(--en); font-size: 11px; letter-spacing: .2em; color: var(--ink-sub); font-weight: 700; }
.profile--page { align-items: start; }
.profile__table { margin: 0; background: var(--card); border-radius: 20px; padding: 6px 24px; }
.profile__table div { display: grid; grid-template-columns: 6em 1fr; gap: 16px; padding: 14px 0; }
.profile__table div + div { border-top: 1px dashed var(--line); }
.profile__table dt { font-weight: 700; color: var(--pink-deep); }
.profile__table dd { margin: 0; }
.profile__more { margin-top: 8px; }
/* プロフィールの写真ギャラリー：高さをそろえた横一列のスライダー（写真は切らずに全体、幅は写真の縦横比どおり） */
.gallery-wrap { margin-top: 72px; }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.gallery-head .pg__h { margin: 0; }
.gallery-nav { display: flex; gap: 8px; }
.gallery-nav button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; transition: border-color .2s, opacity .2s; }
.gallery-nav button:hover { border-color: var(--pink); }
.gallery-nav button:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--pink) transparent; }
.gallery:focus-visible { outline: 3px solid var(--pink-soft); outline-offset: 4px; border-radius: 12px; }
.gallery__item { flex: none; height: 230px; scroll-snap-align: start; border-radius: 12px; overflow: hidden; background: var(--pink-soft); transition: filter .25s; }
.gallery__item img { height: 100%; width: auto; max-width: none; }
.gallery__item:hover { filter: brightness(1.06); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(30,24,34,.88); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 86vh; width: auto; height: auto; border-radius: 12px; }
.lightbox button { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 16px; top: 16px; }
@media (max-width: 860px) { .gallery { gap: 8px; margin-right: -14px; padding-right: 14px; } .gallery__item { height: 165px; border-radius: 10px; } .gallery-wrap { margin-top: 48px; } .gallery-nav { display: none; } .lightbox button { width: 44px; height: 44px; font-size: 24px; } }

/* ---------- Store / SNS ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo--one { grid-template-columns: 1fr; }
.store { border-radius: 28px; padding: 40px 36px; background: linear-gradient(135deg, var(--pink-soft), var(--yellow-soft) 60%, var(--sky-soft)); }
.store h3, .sns h3 { font-family: var(--en); font-size: 28px; letter-spacing: .14em; margin: 0 0 6px; }
.store p, .sns p { margin: 0 0 22px; font-size: 14px; color: var(--ink-sub); }
.sns { border-radius: 28px; padding: 40px 36px; background: var(--card); border: 2px solid var(--line); }
.sns__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 420px; }
.sns__list a { aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line); transition: transform .2s, border-color .2s; }
.sns__list a:hover { transform: translateY(-3px); border-color: var(--pink); }
.sns__list svg { width: 24px; height: 24px; }

/* ---------- Contact / Footer ---------- */
.contact { text-align: center; background: var(--ink); color: #fff; border-radius: 32px; padding: 56px 24px; }
.contact h2 { font-family: var(--en); letter-spacing: .14em; font-size: 32px; margin: 0; }
.contact p { margin: 8px 0 26px; font-size: 14px; opacity: .85; }
.contact .btn { background: #fff; color: var(--ink); border-color: #fff; }
.footer { padding: 72px 0 40px; text-align: center; font-size: 12px; color: var(--ink-sub); }
.footer__logo { font-family: var(--en); font-weight: 700; font-size: 20px; letter-spacing: .12em; color: var(--ink); }
.footer__sns { justify-content: center; margin: 18px 0 22px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-family: var(--en); font-weight: 700; letter-spacing: .12em; font-size: 13px; color: var(--ink); margin-bottom: 14px; }
.footer nav a:hover { color: var(--pink-deep); }
.footer__pp { display: inline-block; margin-bottom: 10px; text-decoration: underline; }
.footer small { display: block; }

/* ---------- Sub pages ---------- */
.ph { position: relative; overflow: hidden; text-align: center; padding: 56px 16px 48px; background: linear-gradient(180deg, var(--pink-soft), var(--bg)); }
.ph__stripes i { position: absolute; width: 12px; height: 220px; border-radius: 12px; transform: rotate(35deg); opacity: .5; }
.ph__stripes i:nth-child(1) { background: var(--pink); left: 6%; top: -20px; }
.ph__stripes i:nth-child(2) { background: var(--yellow); left: 11%; top: 40px; height: 160px; }
.ph__stripes i:nth-child(3) { background: var(--sky); right: 8%; top: -30px; }
.ph__stripes i:nth-child(4) { background: var(--lav); right: 13%; top: 50px; height: 150px; }
.ph__en { position: relative; margin: 0; font-family: var(--en); font-weight: 700; font-size: clamp(32px, 6vw, 48px); letter-spacing: .14em; line-height: 1.2; }
.ph__en::after { content: ""; display: block; width: 64px; height: 6px; margin: 12px auto 0; border-radius: 6px; background: linear-gradient(90deg, var(--pink) 0 25%, var(--yellow) 25% 50%, var(--sky) 50% 75%, var(--lav) 75%); }
.ph__ja { position: relative; margin: 6px 0 0; font-size: 14px; font-weight: 500; color: var(--ink-sub); letter-spacing: .2em; }
.crumb { font-size: 12px; color: var(--ink-sub); padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.crumb i { font-style: normal; opacity: .6; }
.crumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.pg { padding: 40px 0 24px; }
.pg--narrow { max-width: 820px; }
.pg__lead { margin-bottom: 32px; }
.pg__h { font-family: var(--en); font-size: 24px; letter-spacing: .14em; margin: 48px 0 18px; display: flex; align-items: baseline; gap: 12px; }
.pg__h:first-child, .pg__lead + .pg__h { margin-top: 0; }
.pg__h small { font-family: var(--ja); font-size: 13px; font-weight: 500; color: var(--ink-sub); letter-spacing: .1em; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 32px; font-family: var(--en); font-weight: 700; }
.pager .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line); }
.pager .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.card { background: var(--card); border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 10px 40px rgba(59,51,65,.05); }

/* お知らせ記事 */
.post { background: var(--card); border-radius: 24px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 10px 40px rgba(59,51,65,.05); }
.post__meta { display: flex; align-items: center; gap: 12px; font-family: var(--en); font-weight: 700; color: var(--ink-sub); font-size: 14px; }
.post__meta { flex-wrap: wrap; }
.post__meta .tag { padding: 3px 14px; }
.post__event { font-family: var(--ja); color: var(--pink-deep); background: var(--pink-soft); border-radius: 999px; padding: 2px 14px; font-size: 13px; }
.post__title { font-size: clamp(20px, 3vw, 26px); line-height: 1.6; margin: 12px 0 24px; padding-bottom: 20px; border-bottom: 2px dashed var(--line); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.post-nav a { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 14px 18px; font-size: 14px; line-height: 1.6; transition: border-color .2s; }
.post-nav a:hover { border-color: var(--pink); }
.post-nav small { display: block; color: var(--ink-sub); font-size: 12px; }
.post-nav__next { grid-column: 2; text-align: right; }

/* 本文（ブロックエディタの内容） */
.entry { font-size: 15px; overflow-wrap: anywhere; }
.entry > * + * { margin-top: 1.2em; }
.entry p { margin: 0; }
.entry * + p { margin-top: 1.2em; }
.entry a { color: var(--pink-deep); text-decoration: underline; text-underline-offset: 3px; }
.entry h2 { font-size: 20px; margin: 2em 0 .6em; padding-left: 14px; border-left: 5px solid var(--pink); line-height: 1.5; }
.entry h3 { font-size: 17px; margin: 1.6em 0 .4em; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry img { border-radius: 14px; margin-inline: auto; }
.entry .wp-block-image { text-align: center; }
.entry .wp-block-embed { margin-inline: auto; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }

/* お問い合わせフォーム（テーマ専用） */
.card > .entry + .cform, .card > .entry + .cform-done { margin-top: 28px; }
.cform__row { margin-bottom: 20px; }
.cform__label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.cform__req, .cform__opt { font-size: 10px; font-weight: 700; letter-spacing: .08em; border-radius: 999px; padding: 1px 8px; line-height: 1.6; }
.cform__req { background: var(--pink-deep); color: #fff; }
.cform__opt { background: var(--line); color: var(--ink-sub); }
.cform input[type=text], .cform input[type=email], .cform textarea { display: block; width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.cform textarea { resize: vertical; min-height: 160px; line-height: 1.7; }
.cform input:focus, .cform textarea:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 0 3px var(--pink-soft); }
.cform [aria-invalid="true"] { border-color: #d6455d; background: #fff6f7; }
.cform__err { margin: 6px 0 0; color: #c0334b; font-size: 13px; font-weight: 700; }
.cform > .cform__err { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: #fff0f2; }
.cform__check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.cform__check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pink-deep); flex: none; }
.cform__check a { color: var(--pink-deep); text-decoration: underline; text-underline-offset: 3px; }
.cform__note { font-size: 12px; color: var(--ink-sub); margin: 0 0 18px; }
.cform__submit { text-align: center; }
.cform__submit .btn { padding: 15px 48px; font-size: 15px; }
.cform__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-done { text-align: center; padding: 12px 0 4px; }
.cform-done__title { font-family: var(--en); font-weight: 700; font-size: 22px; letter-spacing: .1em; color: var(--pink-deep); margin: 0 0 10px; }
.cform-done p { margin: 0 0 10px; }
.cform-done__note { font-size: 12px; color: var(--ink-sub); }

/* ---------- Fade-in (only when JavaScript runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .slide { transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) and (min-width: 861px) {
  .nav { gap: 18px; font-size: 13px; letter-spacing: .08em; }
  .logo { font-size: 20px; }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; gap: 22px; font-size: 22px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav .nav__sns { display: flex; justify-content: center; margin-top: 8px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .menu-open .header { backdrop-filter: none; } /* fixed なメニューがヘッダー内に閉じ込められるのを防ぐ */
  .menu-btn { display: block; z-index: 60; }
  .logo { z-index: 60; }
  .hero__slides { aspect-ratio: 4 / 5; border-radius: 0 0 32px 32px; }
  .slide img { object-position: 50% 20%; }
  .hero__card { right: 16px; padding: 18px 22px 16px; }
  .release, .profile, .duo { grid-template-columns: 1fr; }
  .release { padding: 22px; gap: 24px; border-radius: 24px; }
  .profile { gap: 40px; }
  .profile__photo { width: min(360px, 88%); margin-inline: auto; }
  .sch { grid-template-columns: 76px 1fr; gap: 16px; padding: 16px 18px; }
  .sch__date b { font-size: 26px; }
  .sch__arrow { display: none; }
  .news { gap: 12px; }
  .sch__title { font-size: 15px; }
  .store, .sns { padding: 32px 24px; }
  .section { padding-top: 84px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__next { grid-column: auto; }
}

/* スマホ：文字と余白をひと回り小さく（iPhone 13 mini＝幅375px で見てバランスを取る） */
@media (max-width: 860px) {
  :root { --hh: 58px; }
  body { font-size: 14px; line-height: 1.75; }
  .wrap { width: calc(100% - 28px); }   /* 枠（カード・四角い囲み）は画面のはしから 14px */
  /* 枠の外に直接のる文字は、枠の中の文字と同じくらい内側（はしから約 26px）から始める */
  .profile__name, .profile__kana, .profile__item, .crumb, .pg__h, .gallery-head, .pg--narrow > .entry, .pg__lead { padding-inline: 12px; }
  .gallery-head .pg__h { padding-inline: 0; }
  .logo { font-size: 18px; gap: 6px; }
  .logo__star { width: 16px; height: 16px; }
  .menu-btn { width: 40px; height: 40px; }
  .menu-btn span { left: 12px; right: 12px; }
  .menu-btn span:nth-child(1) { top: 14px; } .menu-btn span:nth-child(2) { top: 19px; } .menu-btn span:nth-child(3) { top: 24px; }
  .nav { font-size: 18px; gap: 18px; }

  .hero__card { padding: 14px 18px 12px; bottom: -28px; left: 14px; right: 14px; }
  .hero__en { font-size: 11px; }
  .hero__name { font-size: 26px; }
  .hero__copy { font-size: 12px; margin-top: 2px; }

  .section { padding-top: 64px; }
  .sec-title { margin-bottom: 24px; }
  .sec-title__en { font-size: 26px; }
  .sec-title__en::after { width: 48px; height: 5px; margin-top: 8px; }
  .sec-title__ja { font-size: 11px; }
  .center { margin-top: 24px; }
  .btn { padding: 11px 22px; font-size: 12px; gap: 8px; }
  .empty { padding: 22px 16px; font-size: 13px; }

  /* NEWS カード */
  .news { gap: 10px; }
  .sch { grid-template-columns: 58px 1fr; gap: 12px; padding: 12px 14px; border-radius: 14px; }
  .sch__date b { font-size: 21px; }
  .sch__date small { font-size: 10px; letter-spacing: .06em; }
  .sch__kind { font-size: 9px; }
  .sch__title { font-size: 13px; line-height: 1.6; }
  .sch__body .tag { font-size: 9px; padding: 1px 9px; margin-bottom: 4px; }
  .tabs { gap: 6px; margin-bottom: 20px; }
  .tabs a { font-size: 11px; padding: 5px 13px; }

  /* プロフィール */
  .profile { gap: 28px; }
  .profile__photo { width: min(300px, 82%); }
  .profile__name { font-size: 24px; }
  .profile__kana { font-size: 11px; margin-bottom: 16px; }
  .facts { gap: 8px; margin-bottom: 18px; }
  .fact { padding: 10px 6px; border-radius: 12px; }
  .fact dt { font-size: 10px; }
  .fact dd { font-size: 14px; }
  .profile__item { font-size: 13px; gap: 10px; margin-bottom: 10px; }
  .profile__item b { font-size: 11px; padding: 0 10px; }
  .policy { font-size: 14px; padding: 14px 16px; margin: 18px 0 22px; }
  .profile__table { padding: 2px 16px; border-radius: 16px; }
  .profile__table div { grid-template-columns: 4.5em 1fr; gap: 10px; padding: 11px 0; font-size: 13px; }

  /* リリース */
  .release { padding: 18px; gap: 18px; border-radius: 20px; }
  .release__title { font-size: 21px; }
  .release__label { font-size: 11px; }
  .release__cw, .release__text { font-size: 13px; }
  .release__badge { font-size: 10px; padding: 3px 10px; }
  .credits { font-size: 11px; padding: 10px 14px; margin-bottom: 18px; }

  /* ストア・SNS・お問い合わせ・フッター */
  .duo { gap: 14px; }
  .store, .sns { padding: 24px 20px; border-radius: 20px; }
  .store h3, .sns h3 { font-size: 20px; }
  .store p, .sns p { font-size: 12px; margin-bottom: 16px; }
  .sns__list { gap: 8px; }
  .sns__list svg { width: 20px; height: 20px; }
  .contact { padding: 36px 18px; border-radius: 22px; }
  .contact h2 { font-size: 24px; }
  .contact p { font-size: 12px; margin-bottom: 20px; }
  .footer { padding: 52px 0 32px; }
  .footer__logo { font-size: 17px; }
  .footer nav { font-size: 11px; gap: 6px 16px; }
  .sns-ico a { width: 38px; height: 38px; }
  .sns-ico svg { width: 17px; height: 17px; }

  /* 下層ページ */
  .ph { padding: 36px 14px 30px; }
  .ph__en { font-size: 28px; }
  .ph__en::after { width: 48px; height: 5px; margin-top: 8px; }
  .ph__ja { font-size: 12px; }
  .ph__stripes i { height: 150px; width: 9px; }
  .crumb { font-size: 11px; }
  .pg { padding: 26px 0 16px; }
  .pg__h { font-size: 19px; margin: 36px 0 14px; }
  .pg__h small { font-size: 11px; }
  .post { padding: 20px 18px; border-radius: 18px; }
  .post__meta { font-size: 12px; gap: 8px; }
  .post__title { font-size: 17px; margin: 10px 0 18px; padding-bottom: 14px; }
  .entry { font-size: 14px; }
  .entry h2 { font-size: 17px; }
  .post-nav a { font-size: 13px; padding: 12px 14px; }
  .card { padding: 22px 18px; border-radius: 18px; }
}
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
