@charset "UTF-8";
/* =========================================================
   私立桜咲学院 - 公開サイト スタイル
   テーマカラーは header.php から --pink として注入されます
   ========================================================= */

:root {
  --pink: #FBA7B6;
  --pink-deep: #E9808F;
  --pink-soft: #FFF1F4;
  --pink-line: #F6D9DF;
  --ink: #4E3A3F;
  --ink-2: #8B747A;
  --paper: #FFFCFC;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(226, 150, 165, .14);
  --shadow-hover: 0 10px 30px rgba(226, 150, 165, .26);
  --max: 1040px;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(251, 167, 182, .14), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(251, 167, 182, .10), transparent 38%);
  background-attachment: fixed;
  line-height: 1.9;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--pink-deep); }
a:hover { opacity: .85; }

h1, h2, h3, h4 { line-height: 1.5; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pink-line);
}
.header-inner {
  width: min(100% - 32px, 1160px); margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
  min-height: 68px;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; }
.site-logo img { height: 46px; width: auto; }
.site-logo .logo-text { font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: stretch; gap: 4px; }
.nav-list a {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 12px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem;
  line-height: 1.4; letter-spacing: .02em; transition: background .2s, color .2s;
}
.nav-list a:hover { background: var(--pink-soft); opacity: 1; }
.nav-list a[aria-current="page"] { background: var(--pink); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--pink-line); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  margin-inline: auto; transition: transform .25s, opacity .25s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0; z-index: 5;
    background: #fff; border-bottom: 1px solid var(--pink-line);
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.is-open { max-height: 70vh; overflow-y: auto; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px 16px 20px; }
  .nav-list a { justify-content: flex-start; padding: 14px 12px; border-radius: 12px; }
  .site-logo img { height: 40px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, var(--pink-soft) 0%, rgba(255, 255, 255, 0) 100%);
  padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 44px);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--pink) 0 18px, transparent 18px 36px);
  opacity: .35;
}
.hero-inner {
  width: min(100% - 40px, var(--max)); margin-inline: auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(16px, 4vw, 40px);
  align-items: center;
}
.hero-badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--pink-line); color: var(--pink-deep);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; margin-bottom: 14px;
}
.hero-logo { max-width: 460px; width: 100%; margin-bottom: 12px; }
.hero-title { font-size: clamp(1.6rem, 4.4vw, 2.3rem); margin-bottom: 10px; letter-spacing: .04em; }
.hero-title--img { margin-bottom: 14px; }
.hero-name-logo { max-width: min(100%, 330px); }
.hero-catch { font-size: clamp(.95rem, 2.4vw, 1.1rem); color: var(--ink-2); margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { text-align: center; }
.hero-visual img { max-height: 460px; width: auto; filter: drop-shadow(0 12px 24px rgba(180, 120, 132, .22)); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-logo { margin-inline: auto; max-width: 340px; }
  .hero-visual img { max-height: 320px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: .95rem; border: 2px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); opacity: 1; }
.btn-primary { background: var(--pink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--pink-deep); box-shadow: var(--shadow-hover); }
.btn-ghost { background: #fff; color: var(--pink-deep); border-color: var(--pink); }
.btn-ghost:hover { background: var(--pink-soft); }
.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- section ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section--tint { background: linear-gradient(180deg, rgba(255, 241, 244, .7), rgba(255, 255, 255, 0)); }

.section-head { text-align: center; margin-bottom: clamp(24px, 4vw, 40px); }
.section-sub {
  display: block; font-size: .72rem; letter-spacing: .22em;
  color: var(--pink-deep); font-weight: 700; margin-bottom: 6px;
}
.section-title {
  font-size: clamp(1.35rem, 3.4vw, 1.75rem); letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: 12px;
}
.section-title::before, .section-title::after {
  content: ""; width: 26px; height: 1px; background: var(--pink-line);
}
.section-lead { margin-top: 12px; color: var(--ink-2); font-size: .95rem; }

/* ---------- card ---------- */
.card {
  background: var(--white); border: 1px solid var(--pink-line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
}

/* 罫線ノート風パネル（学院案内） */
.notebook {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(180deg, transparent 0 37px, var(--pink-line) 37px 38px),
    var(--white);
  background-position: 0 12px;
  border-left: 6px solid var(--pink);
}
.notebook .welcome-lead {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem); font-weight: 700;
  color: var(--pink-deep); margin-bottom: 18px;
}
.notebook .welcome-body { font-size: 1rem; line-height: 38px; }

/* ---------- profile ---------- */
.profile { display: grid; grid-template-columns: 220px 1fr; gap: clamp(18px, 3vw, 34px); align-items: center; }
.profile-figure { text-align: center; }
.profile-figure img { max-height: 240px; }
.profile-list { display: grid; gap: 0; }
.profile-list div {
  display: grid; grid-template-columns: 130px 1fr; gap: 12px;
  padding: 12px 4px; border-bottom: 1px dashed var(--pink-line);
}
.profile-list div:last-child { border-bottom: none; }
.profile-list dt { color: var(--pink-deep); font-weight: 700; font-size: .9rem; }
.profile-list dd { margin: 0; }
.profile-note { margin-top: 14px; color: var(--ink-2); font-size: .88rem; }
@media (max-width: 700px) {
  .profile { grid-template-columns: 1fr; }
  .profile-figure img { max-height: 180px; }
  .profile-list div { grid-template-columns: 100px 1fr; }
}

/* ---------- sns ---------- */
.sns-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.sns-item {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--pink-line); border-radius: 14px;
  padding: 14px 18px; box-shadow: 0 3px 12px rgba(226, 150, 165, .10);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.sns-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--pink); opacity: 1; }
.sns-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
}
.sns-icon svg { width: 21px; height: 21px; }
.sns-icon--img { background: transparent; overflow: hidden; }
.sns-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sns-body { min-width: 0; }
.sns-name { font-weight: 700; font-size: .95rem; line-height: 1.4; }
.sns-handle {
  font-size: .8rem; color: var(--ink-2); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- guide cards ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.guide-card {
  display: block; text-decoration: none; color: var(--ink); text-align: center;
  background: #fff; border: 1px solid var(--pink-line); border-radius: var(--radius);
  padding: 26px 18px; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.guide-card:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: var(--shadow-hover); opacity: 1; }
.guide-emoji { font-size: 2rem; line-height: 1; display: block; margin-bottom: 12px; }
.guide-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.guide-card p { font-size: .85rem; color: var(--ink-2); margin: 0; }

/* ---------- page header ---------- */
.page-head {
  background: linear-gradient(180deg, var(--pink-soft), rgba(255, 255, 255, 0));
  padding: clamp(30px, 5vw, 52px) 0 clamp(24px, 4vw, 40px);
  text-align: center;
}
.page-head .section-title::before, .page-head .section-title::after { width: 34px; }

/* ---------- activity ---------- */
.year-block + .year-block { margin-top: 34px; }
.year-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700; color: var(--pink-deep);
  padding: 4px 16px; background: #fff; border: 1px solid var(--pink-line);
  border-radius: 999px; margin-bottom: 16px;
}
.timeline { border-left: 2px solid var(--pink-line); padding-left: clamp(14px, 3vw, 26px); }
.timeline-item { position: relative; padding: 0 0 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: calc(-1 * clamp(14px, 3vw, 26px) - 7px); top: 20px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--pink); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--pink-line);
}
.timeline-card {
  background: #fff; border: 1px solid var(--pink-line); border-radius: 14px;
  padding: 16px 20px; box-shadow: 0 3px 12px rgba(226, 150, 165, .10);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
a.timeline-card { display: block; text-decoration: none; color: inherit; }
a.timeline-card:hover { transform: translateY(-2px); border-color: var(--pink); box-shadow: var(--shadow-hover); opacity: 1; }
.timeline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.timeline-date { font-size: .85rem; color: var(--ink-2); font-weight: 700; letter-spacing: .04em; }
.tag {
  font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--pink-soft); color: var(--pink-deep); border: 1px solid var(--pink-line);
}
.timeline-title { font-size: 1.02rem; margin-bottom: 4px; }
.timeline-desc { font-size: .9rem; color: var(--ink-2); margin: 0; }
.timeline-link { font-size: .85rem; font-weight: 700; color: var(--pink-deep); margin-top: 8px; display: inline-block; }
.timeline-thumb { margin-top: 12px; border-radius: 10px; overflow: hidden; }

/* ---------- empty ---------- */
.empty {
  text-align: center; color: var(--ink-2); font-size: .95rem;
  background: #fff; border: 1px dashed var(--pink-line); border-radius: var(--radius);
  padding: 40px 20px;
}

/* ---------- music ---------- */
.setlink-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.setlink-card .desc { color: var(--ink-2); margin-bottom: 0; }
.setlink-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
@media (max-width: 700px) { .setlink-card { grid-template-columns: 1fr; text-align: center; } }

.embed-frame {
  margin-top: 20px; border: 1px solid var(--pink-line); border-radius: 14px;
  overflow: hidden; background: #fff;
}
.embed-frame iframe { display: block; width: 100%; border: 0; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.video-card {
  background: #fff; border: 1px solid var(--pink-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.video-frame { position: relative; padding-top: 56.25%; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-body { padding: 14px 18px 18px; }
.video-body h3 { font-size: .98rem; margin-bottom: 4px; }
.video-body p { font-size: .85rem; color: var(--ink-2); margin: 0; }

/* ---------- cheer ---------- */
.cta-card { text-align: center; }
.cta-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.cta-card .desc { color: var(--ink-2); }
.cta-card .btn { margin-top: 8px; }
.cta-image { max-width: 320px; margin: 0 auto 18px; }

.level-list { display: grid; gap: 14px; }
.level-item {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  background: #fff; border: 1px solid var(--pink-line); border-radius: 14px;
  padding: 18px 20px; box-shadow: 0 3px 12px rgba(226, 150, 165, .10);
}
.level-badge {
  min-width: 74px; text-align: center; padding: 8px 12px; border-radius: 12px;
  background: var(--pink); color: #fff; font-weight: 700; font-size: .9rem; line-height: 1.4;
}
.level-item h3 { font-size: 1rem; margin-bottom: 4px; }
.level-item p { font-size: .9rem; color: var(--ink-2); margin: 0; }
@media (max-width: 560px) {
  .level-item { grid-template-columns: 1fr; }
  .level-badge { justify-self: start; }
}

/* ---------- support / download ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.dl-card {
  background: #fff; border: 1px solid var(--pink-line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.dl-thumb {
  aspect-ratio: 4 / 3; max-height: 240px; overflow: hidden;
  display: grid; place-items: center; padding: 14px;
  background:
    linear-gradient(45deg, rgba(251, 167, 182, .10) 25%, transparent 25%, transparent 75%, rgba(251, 167, 182, .10) 75%),
    linear-gradient(45deg, rgba(251, 167, 182, .10) 25%, transparent 25%, transparent 75%, rgba(251, 167, 182, .10) 75%),
    var(--pink-soft);
  background-size: 20px 20px; background-position: 0 0, 10px 10px;
}
.dl-thumb img { width: 100%; height: 100%; object-fit: contain; }
.dl-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dl-body h3 { font-size: .98rem; }
.dl-body p { font-size: .85rem; color: var(--ink-2); margin: 0; }
.dl-body .btn { margin-top: auto; align-self: flex-start; padding: 9px 20px; font-size: .88rem; }

.note-box {
  background: var(--pink-soft); border: 1px solid var(--pink-line);
  border-radius: 14px; padding: 18px 22px; font-size: .9rem; color: var(--ink-2);
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--pink-soft));
  border-top: 1px solid var(--pink-line);
  padding: clamp(30px, 5vw, 48px) 0 24px;
  text-align: center;
}
.footer-mascot { max-height: 110px; margin-bottom: 8px; }
.footer-logo { max-width: 240px; margin-bottom: 12px; }
.footer-sns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.footer-sns a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--pink-line); color: var(--ink-2);
  transition: transform .18s, color .18s, border-color .18s;
}
.footer-sns a:hover { transform: translateY(-3px); color: var(--pink-deep); border-color: var(--pink); opacity: 1; }
.footer-sns svg { width: 19px; height: 19px; }
.footer-note { font-size: .85rem; color: var(--ink-2); }
.copyright { font-size: .78rem; color: var(--ink-2); margin: 10px 0 0; letter-spacing: .04em; }
.admin-link { font-size: .72rem; color: var(--pink-line); text-decoration: none; }

/* ---------- 桜の花びら ---------- */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.petal {
  position: absolute; top: -8vh; width: 12px; height: 12px;
  background: var(--pink); opacity: .55;
  border-radius: 12px 1px 12px 1px;
  animation: petal-fall linear infinite;
}
@keyframes petal-fall {
  0%   { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  100% { transform: translate3d(40px, 110vh, 0) rotate(420deg); }
}
@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ページ本体を花びらより前面に */
main, .site-footer { position: relative; z-index: 2; }

/* ---------- 配布素材の合言葉（素材ごと） ---------- */
.dl-thumb--locked {
  color: var(--pink-deep); font-size: 2rem; line-height: 1;
}
.dl-thumb--locked span { opacity: .55; }
.dl-lock { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.lock-hint {
  background: var(--pink-soft); border: 1px solid var(--pink-line); border-radius: 10px;
  padding: 7px 12px; font-size: .8rem; color: var(--ink-2); margin: 0;
}
.lock-error { color: #D4586B; font-weight: 700; font-size: .82rem; margin: 0; }
.dl-lock-form { display: flex; gap: 6px; flex-wrap: wrap; }
.dl-lock-form input[type="text"] {
  flex: 1 1 110px; min-width: 0; padding: 9px 14px; font: inherit; font-size: .9rem;
  border: 2px solid var(--pink-line); border-radius: 999px; background: #fff; color: inherit;
}
.dl-lock-form input[type="text"]:focus { outline: none; border-color: var(--pink); }
.dl-lock-form .btn { padding: 9px 18px; font-size: .88rem; flex-shrink: 0; }
