/* =========================================================
   BUNKASAI, Inc. — Corporate Site
   Concept: 文化祭のパンフレット（PROGRAM）× きちんとした会社案内
   ========================================================= */

:root {
  --paper: #fbf7ee;        /* 生成り（模造紙） */
  --paper-2: #f3ecdc;
  --ink: #1f2340;          /* 藍墨 */
  --ink-soft: #4a4e6a;
  --line: #e2d9c4;
  --shu: #e8553d;          /* 朱 */
  --yamabuki: #f2b632;     /* 山吹 */
  --wakatake: #3fa27a;     /* 若竹 */
  --sora: #3b7dd8;         /* 空 */
  --white: #ffffff;

  --font-body: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  --font-head: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --font-logo: "Dela Gothic One", "Zen Maru Gothic", sans-serif;

  --wrap: 1080px;
  --radius: 14px;
  --shadow: 4px 4px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  font-feature-settings: "palt";
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--sora); outline-offset: 3px; border-radius: 4px; }

/* ---------- 要記入プレースホルダ（公開前に必ず消す） ---------- */
.todo {
  background: linear-gradient(transparent 55%, #ffe36e 55%);
  color: #b3261e;
  font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--font-logo); font-size: 22px; letter-spacing: .06em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 15px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--shu); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-cta { background: var(--ink); color: var(--paper); padding: 8px 18px; border-radius: 999px; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--shu); }

.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 28px; height: 28px; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 64px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 16px 20px; }
  .nav li a { display: block; padding: 14px 4px; border-bottom: 1px dashed var(--line); }
  .nav li:last-child a { border-bottom: 0; margin-top: 12px; text-align: center; }
}

/* ---------- Garland (旗飾り) ---------- */
.garland { width: 100%; height: 70px; overflow: visible; }
.garland .flag { transform-origin: top center; transform-box: fill-box; animation: sway 3.2s ease-in-out infinite; }
.garland .flag:nth-child(2n) { animation-delay: -1.1s; }
.garland .flag:nth-child(3n) { animation-delay: -2.0s; }
@keyframes sway { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 24px 0 96px; overflow: hidden; }
.hero-inner { position: relative; text-align: center; padding-top: 48px; }
.hero-kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .2em;
  border: 2px solid var(--ink); border-radius: 999px; padding: 4px 16px; background: var(--white);
}
.hero h1 {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(38px, 7.4vw, 84px); line-height: 1.25; letter-spacing: .02em;
  margin: 28px 0 24px;
}
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .32em; z-index: -1;
  background: var(--yamabuki); border-radius: 6px; transform: rotate(-1.2deg);
}
.hero h1 .ul {
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--shu);
  text-decoration-thickness: .1em;
  text-underline-offset: .14em;
  text-decoration-skip-ink: none;
}
.hero-lead { max-width: 640px; margin: 0 auto; color: var(--ink-soft); font-size: clamp(15px, 1.8vw, 17px); }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.confetti span { position: absolute; border-radius: 3px; opacity: .9; }
.confetti span:nth-child(1) { width: 14px; height: 14px; background: var(--shu); top: 34%; left: 8%; transform: rotate(20deg); }
.confetti span:nth-child(2) { width: 10px; height: 22px; background: var(--wakatake); top: 62%; left: 14%; transform: rotate(-30deg); }
.confetti span:nth-child(3) { width: 18px; height: 18px; background: var(--sora); border-radius: 50%; top: 28%; right: 10%; }
.confetti span:nth-child(4) { width: 12px; height: 12px; background: var(--yamabuki); top: 70%; right: 16%; transform: rotate(45deg); }
.confetti span:nth-child(5) { width: 8px; height: 20px; background: var(--shu); top: 52%; right: 6%; transform: rotate(18deg); }
@media (max-width: 760px) { .confetti { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 14px 28px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--white); color: var(--ink); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--shu); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Section common ---------- */
.section { padding: 96px 0; }
.section + .section { border-top: 2px dashed var(--line); }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 48px; flex-wrap: wrap; }
.program-no {
  font-family: var(--font-logo); font-size: 14px; letter-spacing: .12em; color: var(--white);
  background: var(--ink); padding: 4px 12px; border-radius: 6px; transform: rotate(-3deg); display: inline-block;
}
.section-head h2 { font-family: var(--font-head); font-weight: 900; font-size: clamp(28px, 4vw, 40px); margin: 0; line-height: 1.3; }
.section-head .en { font-family: var(--font-head); font-weight: 700; color: var(--ink-soft); font-size: 14px; letter-spacing: .2em; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-copy h3 { font-family: var(--font-head); font-size: clamp(22px, 3vw, 30px); line-height: 1.5; margin: 0 0 20px; }
.about-copy p { margin: 0 0 16px; }
.ticket {
  position: relative; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--yamabuki); padding: 36px 32px; transform: rotate(1.5deg);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); transform: translateY(-50%);
}
.ticket::before { left: -15px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -15px; clip-path: inset(0 50% 0 0); }
.ticket-label { font-family: var(--font-logo); font-size: 12px; letter-spacing: .2em; color: var(--shu); }
.ticket-word { font-family: var(--font-logo); font-size: clamp(34px, 5vw, 48px); line-height: 1.2; margin: 6px 0 14px; }
.ticket dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.ticket dt { font-weight: 700; }
.ticket dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } .ticket { transform: none; } }

/* ---------- Business ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.biz-card {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px 32px 32px; position: relative;
}
.biz-card .tag {
  position: absolute; top: -16px; left: 24px; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  padding: 4px 14px; border-radius: 999px; border: 2px solid var(--ink); color: var(--white);
}
.biz-card:nth-child(1) .tag { background: var(--wakatake); }
.biz-card:nth-child(2) .tag { background: var(--sora); }
.biz-icon { width: 56px; height: 56px; margin-bottom: 14px; }
.biz-card h3 { font-family: var(--font-head); font-size: 24px; margin: 0 0 12px; line-height: 1.4; }
.biz-card p { margin: 0 0 16px; color: var(--ink-soft); }
.biz-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.biz-card li { font-size: 13px; font-weight: 700; background: var(--paper-2); border-radius: 999px; padding: 4px 12px; }
@media (max-width: 760px) { .biz-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Message ---------- */
.message { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.message-name { font-family: var(--font-head); }
.portrait {
  margin: 0 0 20px; border: 2px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; box-shadow: 8px 8px 0 var(--sora); background: var(--white); transform: rotate(-1.5deg);
}
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.message-name .role { font-size: 13px; color: var(--ink-soft); display: block; }
.message-name .name { font-size: 24px; font-weight: 900; letter-spacing: .12em; display: block; }
.message-name .name-en { font-size: 12px; letter-spacing: .2em; color: var(--ink-soft); }
.message-body p { margin: 0 0 16px; }
.message-body .quote { font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; line-height: 1.6; margin-bottom: 24px; }
@media (max-width: 760px) { .message { grid-template-columns: 1fr; gap: 28px; } .portrait { max-width: 240px; } }

/* ---------- Company ---------- */
.company-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.company-table th, .company-table td { text-align: left; vertical-align: top; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: 0; }
.company-table th { width: 200px; font-family: var(--font-head); font-weight: 700; background: var(--paper-2); white-space: nowrap; }
@media (max-width: 640px) {
  .company-table, .company-table tbody, .company-table tr, .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { padding: 12px 18px 4px; border-bottom: 0; background: transparent; font-size: 13px; color: var(--ink-soft); }
  .company-table td { padding: 0 18px 14px; }
  .company-table tr { border-bottom: 1px solid var(--line); }
  .company-table tr:last-child { border-bottom: 0; }
}

/* ---------- Contact ---------- */
.contact-box { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--shu); padding: clamp(24px, 5vw, 56px); max-width: 760px; margin-inline: auto; }
.contact-intro { margin: 0 0 32px; color: var(--ink-soft); }
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.req { display: inline-block; font-size: 11px; color: var(--white); background: var(--shu); border-radius: 4px; padding: 0 6px; margin-left: 8px; vertical-align: 2px; }
.opt { display: inline-block; font-size: 11px; color: var(--ink-soft); background: var(--paper-2); border-radius: 4px; padding: 0 6px; margin-left: 8px; vertical-align: 2px; }
.form-row input[type=text], .form-row input[type=email], .form-row input[type=tel], .form-row select, .form-row textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, background .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--sora); background: var(--white); }
.form-row textarea { min-height: 180px; resize: vertical; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .form-2col { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 8px 0 28px; }
.consent input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--shu); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { text-align: center; }
.form-status { margin-top: 20px; text-align: center; font-weight: 700; min-height: 1.9em; }
.form-status.ok { color: var(--wakatake); }
.form-status.ng { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 0 0 36px; margin-top: 40px; }
.site-footer .garland { height: 56px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-top: 32px; }
.footer-logo { font-family: var(--font-logo); font-size: 26px; letter-spacing: .06em; }
.footer-sub { font-size: 13px; opacity: .75; margin: 4px 0 0; }
.footer-links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; font-size: 14px; }
.footer-links a { text-decoration: none; opacity: .85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.copyright { font-size: 12px; opacity: .6; margin-top: 28px; }

/* ---------- Doc page (privacy) ---------- */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-family: var(--font-head); font-weight: 900; font-size: clamp(26px, 4vw, 36px); line-height: 1.4; margin: 0 0 32px; }
.doc h2 { font-family: var(--font-head); font-size: 22px; margin: 64px 0 20px; padding-top: 32px; border-top: 2px dashed var(--line); }
.doc h3 { font-family: var(--font-head); font-size: 18px; margin: 36px 0 10px; }
.doc h4 { font-size: 16px; margin: 20px 0 6px; }
.doc ol, .doc ul { padding-left: 1.5em; }
.doc li { margin-bottom: 6px; }
.doc .sign { text-align: right; margin-top: 28px; }
.doc .meta { color: var(--ink-soft); font-size: 14px; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 700; text-decoration: none; font-family: var(--font-head); }
.back-link:hover { color: var(--shu); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
