:root {
  --ink: #172045;
  --ink-soft: #5d6480;
  --paper: #f7f8fc;
  --white: #fff;
  --purple: #5d4dcc;
  --purple-deep: #322577;
  --purple-pale: #edeafa;
  --coral: #ef765f;
  --line: #e4e6ef;
  --danger: #b44235;
  --ok: #297052;
  --shadow: 0 20px 55px rgba(31, 33, 75, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans JP", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.site-header { height: 82px; padding: 0 5.5vw; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(34,36,78,.08); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; position: relative; overflow: hidden; }
.brand-mark:before { content: ""; width: 25px; height: 25px; border-radius: 50%; border: 2px solid white; position: absolute; }
.brand-mark:after { content: ""; width: 45px; height: 13px; border: 2px solid var(--coral); border-radius: 50%; transform: rotate(-22deg); position: absolute; }
.brand-mark span { width: 5px; height: 5px; border-radius: 50%; background: white; position: absolute; top: 9px; right: 9px; }
.brand-text { font-size: 21px; font-weight: 800; line-height: 1.1; letter-spacing: .04em; }
.brand-text small { font-size: 8px; display: block; margin-top: 4px; color: var(--ink-soft); letter-spacing: .08em; font-weight: 600; }
.header-nav { display: flex; align-items: center; gap: 34px; font-size: 13px; font-weight: 600; }
.header-nav > a { transition: color .2s; }
.header-nav > a:hover { color: var(--purple); }
.submit-button { border: 0; border-radius: 7px; padding: 13px 20px; background: var(--ink); color: white; cursor: pointer; font-weight: 700; box-shadow: 0 8px 18px rgba(23,32,69,.16); transition: transform .2s, background .2s; }
.submit-button:hover { background: var(--purple); transform: translateY(-2px); }
.menu-button { display: none; border: 0; background: none; width: 38px; height: 38px; cursor: pointer; }

.hero { min-height: 520px; padding: 92px max(6vw, calc((100vw - 1180px)/2)); position: relative; display: flex; align-items: center; overflow: hidden; background: linear-gradient(118deg, #f4f2fc 0%, #fff 52%, #eeeffa 100%); }
.hero:before { content: ""; width: 530px; height: 530px; border-radius: 50%; border: 1px solid rgba(93,77,204,.14); position: absolute; right: -90px; top: -170px; box-shadow: 0 0 0 95px rgba(93,77,204,.025), 0 0 0 190px rgba(93,77,204,.02); }
.hero:after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); position: absolute; top: 90px; left: 42%; box-shadow: 80px 90px 0 -1px var(--coral), -160px 60px 0 -2px var(--purple), 460px 280px 0 -2px var(--purple); }
.hero-copy { width: 62%; position: relative; z-index: 2; }
.eyebrow, .section-kicker { color: var(--purple); letter-spacing: .18em; font: 700 11px "DM Sans", sans-serif; margin: 0 0 20px; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.35; letter-spacing: .02em; margin: 0; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--purple); position: relative; }
.hero h1 em:after { content: ""; position: absolute; left: 2px; right: 0; bottom: -7px; height: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='8' viewBox='0 0 300 8'%3E%3Cpath d='M2 6C70 0 190 0 298 5' fill='none' stroke='%23ef765f' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.hero-lead { color: var(--ink-soft); font-size: 14px; line-height: 2; margin: 34px 0 0; }
.hero-feature { width: 310px; height: 340px; margin-left: auto; border-radius: 16px; color: white; background: linear-gradient(155deg, #171b42, #34307c); box-shadow: 0 28px 65px rgba(32,28,86,.3); position: relative; overflow: hidden; transform: rotate(2deg); z-index: 3; }
.hero-feature:after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 25%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 72% 13%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 62% 38%, #fff 0 .7px, transparent 1px); background-size: 90px 80px; opacity: .65; }
.feature-label { position: absolute; z-index: 3; left: 20px; top: 16px; margin: 0; padding: 6px 10px; border-radius: 3px; background: var(--coral); font-size: 10px; font-weight: 700; }
.mini-planet { position: absolute; right: -45px; top: -20px; width: 195px; height: 195px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #b9a9fc, #5f52bd 53%, #2a276d); box-shadow: inset -20px -20px 40px rgba(18,12,58,.65), 0 0 55px rgba(145,123,255,.3); z-index: 2; }
.mini-planet:after { content: ""; position: absolute; width: 245px; height: 52px; border: 7px solid rgba(228,218,255,.75); border-radius: 50%; left: -42px; top: 66px; transform: rotate(-15deg); }
.feature-content { position: absolute; left: 25px; bottom: 24px; z-index: 4; }
.feature-content p { margin: 0 0 7px; font: 600 23px "DM Sans", sans-serif; }
.feature-content p span { font-size: 10px; color: #c4bee6; }
.feature-content h2 { font-size: 20px; margin: 0 0 20px; line-height: 1.55; }
.feature-content a { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: #dcd9f1; }
.feature-content .icon { width: 14px; }

.search-panel { width: 100%; margin: 30px 0 28px; min-height: 104px; display: grid; grid-template-columns: minmax(210px, 1.7fr) repeat(4, minmax(125px, .9fr)) auto; align-items: stretch; position: relative; z-index: 10; background: white; border-radius: 12px; padding: 13px; box-shadow: var(--shadow); }
.search-field, .filter-field { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 0 14px; border-right: 1px solid var(--line); }
.field-label, .filter-field > span { color: #7b8093; font-size: 11px; font-weight: 700; }
.search-input-row { display: flex; align-items: center; gap: 9px; }
.search-input-row .icon { width: 18px; flex: 0 0 auto; color: var(--purple); }
.search-field input, .filter-field select { width: 100%; min-width: 0; height: 32px; border: 0; outline: 0; color: var(--ink); background: white; font-size: 14px; font-weight: 600; }
.search-field input::placeholder { color: #999eae; font-weight: 400; }
.filter-field select { cursor: pointer; padding: 0 22px 0 0; }
.search-button { border: 0; border-radius: 7px; background: var(--purple); color: white; padding: 0 22px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.search-button:hover { background: var(--purple-deep); transform: translateY(-1px); }

.event-section { max-width: 1120px; margin: 0 auto; padding: 82px 0 110px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; }
.section-kicker { margin-bottom: 10px; }
.section-header h2 { margin: 0; font-size: 32px; letter-spacing: .03em; }
.view-tabs { display: flex; gap: 5px; background: #eceef4; padding: 4px; border-radius: 8px; }
.view-tab { border: 0; border-radius: 6px; padding: 10px 14px; display: flex; align-items: center; gap: 7px; color: #777c91; background: transparent; font-size: 11px; font-weight: 600; cursor: pointer; }
.view-tab .icon { width: 16px; }
.view-tab.is-active { color: var(--ink); background: white; box-shadow: 0 3px 10px rgba(30,32,67,.08); }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; color: var(--ink-soft); font-size: 11px; }
.results-bar p { margin: 0; }
.results-bar p strong { font: 700 20px "DM Sans", sans-serif; color: var(--ink); margin-right: 3px; }
.results-bar button { border: 0; background: none; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 11px; }
.results-bar .icon { width: 12px; transform: rotate(90deg); }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.event-grid[hidden] { display: none; }
.event-grid > [data-card-category] { min-width: 0; }
.event-card { width: 100%; min-width: 0; height: 100%; background: white; border: 1px solid #e9eaf1; border-radius: 9px; overflow: hidden; box-shadow: 0 5px 20px rgba(27,30,68,.04); }
.event-visual { aspect-ratio: 16 / 7; display: block; position: relative; overflow: hidden; background: #262454; color: white; }
.event-visual.has-card-image { background-size: cover; background-position: center; }
.event-visual:after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.4px); background-size: 41px 37px; opacity: .4; }
.visual-object { position: absolute; z-index: 2; }
.visual-orbit { position: absolute; z-index: 3; }
.visual-shade { position: absolute; inset: 0; z-index: 4; background: linear-gradient(180deg, rgba(14,16,44,.25) 0%, rgba(14,16,44,.05) 36%, rgba(12,14,38,.88) 100%); }
.visual-stars { background: linear-gradient(#312d73, #171936); }
.visual-stars .visual-object { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #afa1f6, #6858be 55%, #29255e); right: -13px; bottom: -30px; }
.visual-stars .visual-orbit { width: 180px; height: 58px; border: 3px solid rgba(240,230,255,.67); border-radius: 50%; right: -43px; bottom: 19px; transform: rotate(-17deg); }
.visual-rocket { background: linear-gradient(135deg, #efd7ca, #f3997d); }
.visual-rocket .visual-object { width: 30px; height: 110px; border-radius: 50% 50% 20% 20%; background: linear-gradient(90deg, #e9e9ed, white, #c7cbd5); left: 49%; top: 30px; transform: rotate(40deg); box-shadow: -14px 32px 0 -7px #e25342, 14px 32px 0 -7px #e25342; }
.visual-rocket .visual-orbit { width: 9px; height: 65px; background: linear-gradient(#ffd780, transparent); left: 35%; top: 104px; transform: rotate(40deg); filter: blur(2px); }
.visual-earth { background: linear-gradient(#96cbd3, #315984); }
.visual-earth .visual-object { width: 170px; height: 170px; border-radius: 50%; right: -20px; bottom: -76px; background: radial-gradient(circle at 35% 27%, #92cfc7 0 8%, #5a9bab 9% 17%, #32718d 18% 100%); box-shadow: inset -20px -20px 35px #183b68, 0 0 35px rgba(157,221,235,.35); }
.visual-earth .visual-orbit { width: 180px; height: 60px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; right: -30px; bottom: 5px; transform: rotate(-16deg); }
.visual-moon { background: linear-gradient(135deg, #e9c97d, #9e6b34); }
.visual-moon .visual-object { width: 142px; height: 142px; border-radius: 50%; left: 80px; top: 22px; background: radial-gradient(circle at 32% 28%, #efe0b0 0 5%, transparent 6%), radial-gradient(circle at 63% 62%, #b89962 0 9%, transparent 10%), #dbc28e; box-shadow: inset -24px -18px 30px #8f6e3d; }
.visual-meteor { background: linear-gradient(145deg, #35465e, #172b3b); }
.visual-meteor .visual-object { width: 85px; height: 85px; border-radius: 45% 55% 50% 40%; left: 145px; top: 45px; transform: rotate(25deg); background: radial-gradient(circle at 30% 30%, #a08d71, #665c51 55%, #39373a); box-shadow: -50px -28px 35px rgba(239,166,85,.5), -90px -48px 45px rgba(239,118,77,.28); }
.visual-meteor .visual-orbit { width: 160px; height: 20px; left: -4px; top: 52px; background: linear-gradient(90deg, transparent, rgba(255,184,97,.8)); transform: rotate(25deg); filter: blur(7px); }
.visual-night { background: linear-gradient(#121c46, #394386); }
.visual-night .visual-object { width: 3px; height: 3px; background: white; border-radius: 50%; left: 75%; top: 30%; box-shadow: -30px 20px 0 white, -80px 50px 0 #dad6ff, 15px 55px 0 #fff; }
.visual-night .visual-orbit { width: 180px; height: 2px; background: linear-gradient(90deg, transparent, white, transparent); left: 70px; top: 83px; transform: rotate(-20deg); box-shadow: 0 0 8px #fff; }
.visual-tags { position: absolute; z-index: 6; top: 11px; left: 11px; right: 11px; display: flex; align-items: center; gap: 6px; }
.format-badge, .event-category { display: inline-flex; align-items: center; min-height: 27px; font-size: 11px; line-height: 1; font-weight: 700; padding: 6px 9px; border-radius: 4px; backdrop-filter: blur(5px); }
.event-category { color: white; background: rgba(15,18,50,.68); border-left: 3px solid var(--accent); }
.format-badge { margin-left: auto; background: rgba(255,255,255,.92); color: var(--ink); }
.visual-copy { position: absolute; z-index: 6; left: 16px; right: 16px; bottom: 14px; }
.event-card h3 { margin: 0 0 10px; color: white; font-size: 18px; line-height: 1.5; min-height: 0; letter-spacing: .01em; text-shadow: 0 2px 8px rgba(4,7,28,.55); }
.event-date { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; color: white; font-size: 14px; line-height: 1.45; font-weight: 700; text-shadow: 0 2px 7px rgba(4,7,28,.55); }
.event-date span { color: rgba(255,255,255,.8); font-size: 12px; font-weight: 600; }
.event-card-body { padding: 14px 16px 13px; }
.event-meta { margin: 0; padding: 0 0 11px; border-bottom: 1px solid var(--line); }
.event-meta div { display: grid; grid-template-columns: 52px minmax(0, 1fr); margin: 5px 0; font-size: 12px; line-height: 1.65; }
.event-meta dt { color: #777d91; font-weight: 600; }
.event-meta dd { margin: 0; color: #444b63; min-width: 0; }
.event-meta dd a { color: var(--purple); font-weight: 700; word-break: break-all; }
.event-meta dd a:hover { text-decoration: underline; text-underline-offset: 2px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 11px; min-height: 34px; }
.heat-button { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: #73798d; cursor: pointer; font-size: 12px; font-weight: 600; padding: 4px 0; transition: color .2s, transform .2s; }
.heat-button .icon { width: 17px; }
.heat-button.is-hot { color: var(--coral); transform: scale(1.03); }
.heat-button.is-hot .icon { fill: rgba(239,118,95,.18); }
.detail-link { font-size: 12px; font-weight: 700; color: var(--purple); display: flex; gap: 4px; align-items: center; padding: 5px 0; }
.detail-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.detail-link .icon { width: 14px; }
.view-content { display: none; }
.view-content.is-active { display: block; animation: viewIn .35s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

.calendar-header { display: flex; justify-content: center; align-items: center; gap: 30px; margin: 25px 0; }
.calendar-header h3 { font-size: 20px; margin: 0; }
.calendar-header a { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: white; border-radius: 50%; width: 36px; height: 36px; color: var(--ink); transition: background .2s, color .2s; }
.calendar-header a:hover { background: var(--ink); color: white; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: white; }
.weekday { padding: 12px; text-align: center; font-size: 10px; color: var(--ink-soft); background: #f0f1f6; border-right: 1px solid var(--line); }
.calendar-day { min-height: 105px; padding: 9px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); font: 600 11px "DM Sans", sans-serif; }
.calendar-day.is-muted { color: #b5b8c3; background: #fafafd; }
.calendar-day a { display: block; width: 100%; margin-top: 6px; padding: 6px 7px; border-radius: 4px; background: var(--purple-pale); color: var(--purple-deep); text-align: left; font-size: 9px; line-height: 1.4; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-day a:hover { background: var(--purple); color: white; }
.calendar-day.is-today span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); color: white; }
.mobile-calendar-list { display: none; }
.no-results { margin: 28px 0 0; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink-soft); text-align: center; font-size: 14px; line-height: 1.8; }

/* --- 投稿フォーム --- */
.submit-section { padding: 82px max(6vw, calc((100vw - 1120px)/2)); display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px 60px; align-items: start; background: white; }
.submit-copy h2 { margin: 0 0 16px; font-size: 30px; line-height: 1.5; }
.submit-copy > p:last-child { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
.submit-form { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); grid-column: 2; }
.submit-form.is-success { display: none; }
.form-row { margin: 0 0 16px; }
.form-row > label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; color: var(--ink); }
.form-row .req { color: var(--coral); margin-left: 4px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid #d7dae6; border-radius: 7px; background: white; color: var(--ink); font-size: 14px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.form-row textarea { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.7; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(93,77,204,.12); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-help { margin: 7px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.form-error { margin: 7px 0 0; color: var(--danger); font-size: 12px; font-weight: 700; line-height: 1.6; }
.form-error-box { margin: 0 0 16px; padding: 16px 18px; border-radius: 8px; background: #fde8e6; }
.form-error-box[hidden] { display: none; }
.form-error-box h3 { margin: 0 0 8px; font-size: 14px; color: var(--danger); }
.form-error-box ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.9; }
/* 参加費フィールド: 有料選択時のみ金額入力を表示 */
.form-grid-price .form-price-amount[data-show="0"] { display: none; }
.form-grid-price:has(.form-price-amount[data-show="0"]) { grid-template-columns: 1fr; }

/* 小カテゴリ連動フィールド: 開催地域 / 配信形式 / クラファンPF */
.form-region[data-show="0"], .form-streaming[data-show="0"], .form-crowdfunding[data-show="0"] { display: none; }
.form-region select:disabled { background: #f0f1f6; color: #b5b8c3; cursor: not-allowed; }

/* カード: タイトル・メタの省略表示 */
.card-title-ellipsis { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.meta-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 管理画面: 編集リンク・編集フォーム */
.admin-edit { display: inline-flex; align-items: center; border: 1px solid var(--purple); border-radius: 6px; padding: 9px 18px; font-size: 12px; font-weight: 700; color: var(--purple); background: white; }
.admin-edit:hover { background: var(--purple-pale); }
.admin-edit-form { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.admin-edit-form .submit-form { grid-column: auto; padding: 0; border: 0; background: transparent; }
.submit-button-large { width: 100%; min-height: 50px; border: 0; border-radius: 7px; background: var(--purple); color: white; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.submit-button-large:hover { background: var(--purple-deep); transform: translateY(-1px); }
.submit-button-large:disabled { opacity: .6; cursor: wait; }
.submit-success { grid-column: 2; padding: 36px 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-align: center; }
.submit-success[hidden] { display: none; }
.submit-success h3 { margin: 0 0 12px; font-size: 20px; color: var(--ok); }
.submit-success p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
.submit-success a { display: inline-block; margin-top: 18px; color: var(--purple); font-weight: 700; font-size: 13px; }

/* 注目カードセクション */
.featured-section { max-width: 1120px; margin: 0 auto; padding: 50px 0 0; }
.featured-header { margin-bottom: 24px; }
.featured-header h2 { margin: 0; font-size: 28px; letter-spacing: .03em; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.featured-card-wrap { min-width: 0; }
/* スマホ: 1カードのみ表示（2枚目以降は非表示） */
@media (max-width: 640px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .featured-card-wrap:nth-child(n+2) { display: none; }
  .featured-section { padding: 30px 18px 0; }
}

/* 月切り替えUI（検索セクション用） */
.month-switcher { display: flex; justify-content: center; align-items: center; gap: 30px; margin: 0 0 18px; }
.month-switcher h3 { font-size: 20px; margin: 0; font-weight: 700; }
.month-switcher a { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: white; border-radius: 50%; width: 36px; height: 36px; color: var(--ink); transition: background .2s, color .2s; }
.month-switcher a:hover { background: var(--ink); color: white; }
.month-switcher a:first-child .icon { transform: rotate(0deg); }

/* ヒーローPR画像背景 */
.hero-feature.has-hero-image { background-size: cover; background-position: center; }
.hero-feature.has-hero-image:after { background: linear-gradient(155deg, rgba(23,27,69,.85), rgba(52,48,124,.7)); }
/* 管理画面: 検索フォーム・画像アップロード */
.admin-search { display: flex; gap: 10px; margin: 0 0 20px; }
/* AdSense広告スロット */
.adsense-slot { max-width: 1120px; margin: 16px auto; min-height: 0; text-align: center; overflow: hidden; }
.adsense-top { margin-top: 12px; }
.adsense-bottom { margin-bottom: 12px; }
/* 管理画面: 設定タブ */
.admin-settings { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.admin-settings .form-row { margin-bottom: 20px; }
.admin-settings textarea { font-family: monospace; font-size: 12px; line-height: 1.6; }
.admin-search input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 1px solid #d7dae6; border-radius: 7px; font-size: 14px; }
.admin-search button { border: 0; border-radius: 7px; padding: 0 18px; background: var(--ink); color: white; font-weight: 700; cursor: pointer; }
.hero-upload-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; margin-top: 4px; }
.hero-upload-form input[type="file"] { font-size: 11px; flex: 1; min-width: 120px; }
.hero-upload-note { font-size: 10px; color: var(--ink-soft); }
.hero-upload-current { font-size: 10px; color: var(--ok); font-weight: 700; }

.cta-section { min-height: 340px; padding: 75px max(6vw, calc((100vw - 1120px)/2)); display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; color: white; background: var(--ink); position: relative; overflow: hidden; }
.cta-section:after { content: ""; width: 390px; height: 390px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; position: absolute; right: -90px; top: -130px; box-shadow: 0 0 0 75px rgba(255,255,255,.025), 0 0 0 150px rgba(255,255,255,.018); }
.cta-section .section-kicker { color: #a99df0; }
.cta-section h2 { margin: 0; font-size: 28px; line-height: 1.65; }
.cta-section > div { position: relative; z-index: 2; }
.cta-section > div:last-child { border-left: 1px solid rgba(255,255,255,.15); padding-left: 65px; }
.cta-section p:not(.section-kicker) { color: #b9bdd0; font-size: 12px; line-height: 2; }
.cta-button { margin-top: 18px; background: var(--coral); color: white; border: 0; border-radius: 6px; padding: 14px 20px; font-size: 11px; font-weight: 700; display: flex; gap: 17px; align-items: center; cursor: pointer; }
.cta-button .icon { width: 14px; }

/* CTA内 掲載可能な種類の例（アコーディオン） */
.cta-accordion { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; }
.cta-accordion > summary { list-style: none; cursor: pointer; font-size: 12px; font-weight: 700; color: #a99df0; display: inline-flex; align-items: center; gap: 6px; }
.cta-accordion > summary::-webkit-details-marker { display: none; }
.cta-accordion > summary:before { content: "▶"; font-size: 9px; transition: transform .2s; }
.cta-accordion[open] > summary:before { transform: rotate(90deg); }
.cta-accordion-body { margin-top: 12px; }
.cta-accordion-body > p { color: #b9bdd0; font-size: 12px; line-height: 1.9; margin: 0 0 10px; }
.cta-accordion-body ul { margin: 0 0 10px; padding-left: 18px; color: #d4d7e6; font-size: 12px; line-height: 2; }
.cta-accordion-body ul strong { color: white; }
.cta-accordion-note { font-size: 11px !important; opacity: .8; }
/* 支援するセクション */
.donate-section { padding: 70px max(6vw, calc((100vw - 1120px)/2)); background: linear-gradient(135deg, #f4f2fc, #eeeffa); text-align: center; }
.donate-inner { max-width: 680px; margin: 0 auto; }
.donate-inner .section-kicker { margin-bottom: 12px; }
.donate-inner h2 { margin: 0 0 18px; font-size: 28px; }
.donate-inner > p { margin: 0 0 28px; color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
.donate-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.donate-button { display: inline-flex; align-items: center; justify-content: center; min-width: 200px; padding: 16px 28px; border-radius: 8px; font-size: 15px; font-weight: 700; color: white; transition: transform .2s, box-shadow .2s; }
.donate-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.donate-stripe { background: #635bff; }
.donate-paypal { background: #0070ba; }
/* 確認画面のカンパ案内 */
.confirm-donate { margin: 0 0 20px; padding: 18px 20px; border-radius: 10px; background: #e8f8f0; border: 1px solid #c6ecd6; }
.confirm-donate p { margin: 0 0 6px; font-size: 13px; line-height: 1.8; color: #1a6b42; }
.confirm-donate p:last-of-type { margin-bottom: 14px; }
.confirm-donate .donate-buttons { justify-content: flex-start; }
.confirm-donate .donate-button { min-width: 160px; padding: 12px 20px; font-size: 13px; }

.site-footer { min-height: 150px; padding: 42px 5.5vw; display: flex; align-items: center; gap: 40px; background: white; color: var(--ink-soft); font-size: 9px; }
.footer-brand { margin-right: auto; }
.copyright { margin-left: 15px; }

/* --- 管理画面 --- */
.admin-wrap { max-width: 880px; margin: 0 auto; padding: 56px 5.5vw 80px; }
.admin-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--purple); margin-bottom: 22px; }
.admin-title { margin: 0 0 6px; font-size: 26px; }
.admin-sub { margin: 0 0 28px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.login-form { max-width: 380px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.login-form label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.login-form input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #d7dae6; border-radius: 7px; font-size: 14px; }
.login-form button { margin-top: 16px; width: 100%; height: 46px; border: 0; border-radius: 7px; background: var(--ink); color: white; font-weight: 700; cursor: pointer; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.admin-item { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.admin-item h3 { margin: 0 0 6px; font-size: 17px; }
.admin-item .admin-meta { margin: 0 0 12px; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.admin-item .admin-desc { margin: 0 0 14px; font-size: 13px; line-height: 1.8; color: #444b63; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-actions button, .admin-actions a { border: 0; border-radius: 6px; padding: 10px 18px; font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-approve { background: var(--ok); color: white; }
.admin-reject { background: white; color: var(--danger); border: 1px solid var(--danger); }
.admin-delete { background: white; color: #888; border: 1px solid var(--line); }
.admin-delete:hover { color: var(--danger); border-color: var(--danger); }
.admin-delete-form { margin-left: auto; }
.admin-empty { padding: 40px 24px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; color: var(--ink-soft); font-size: 14px; background: white; }

/* 管理画面タブ */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.admin-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; background: #eceef4; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.admin-tab.is-active { background: var(--ink); color: white; }
.admin-tab .tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.25); font-size: 11px; }
.admin-tab:not(.is-active) .tab-count { background: white; color: var(--ink-soft); }

/* ステータスタグ */
.status-tag { display: inline-block; margin-left: 10px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: middle; }
.status-pending { background: #fff3cd; color: #8a6d0b; }
.status-approved { background: #d4edda; color: var(--ok); }
.status-rejected { background: #fde8e6; color: var(--danger); }

/* 投稿確認画面 */
.confirm-card { grid-column: 2; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.confirm-list { margin: 0 0 20px; display: grid; gap: 10px; }
.confirm-list div { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.confirm-list dt { color: var(--ink-soft); font-weight: 600; }
.confirm-list dd { margin: 0; color: var(--ink); word-break: break-all; }
.confirm-list .confirm-ip { font-family: "DM Sans", monospace; color: var(--purple-deep); }
.confirm-notice { margin: 0 0 20px; padding: 16px 18px; border-radius: 8px; background: #fff3cd; border: 1px solid #ffe69c; }
.confirm-notice p { margin: 0 0 8px; font-size: 13px; color: #6b5400; }
.confirm-notice ul { margin: 0; padding-left: 18px; color: #6b5400; font-size: 12px; line-height: 1.9; }
.confirm-actions { display: flex; flex-direction: column; gap: 12px; }
.confirm-back { display: inline-block; text-align: center; padding: 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); font-weight: 700; font-size: 13px; }
.confirm-back:hover { background: white; }

/* カード: 応援カウント・投稿者ミニ・URL省略 */
.heat-button .cheer-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: rgba(239,118,95,.15); color: var(--coral); font-size: 11px; font-weight: 700; }
.heat-button.is-hot .cheer-count { background: var(--coral); color: white; }
.submitter-mini { margin: 0; font-size: 11px; color: #9aa0b4; font-weight: 600; max-width: 50%; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-meta dd a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; max-width: 100%; vertical-align: bottom; }

/* 削除依頼（アコーディオン） */
/* お問い合わせセクション */
.contact-section { max-width: 1120px; margin: 0 auto; padding: 60px 0 70px; }
.contact-header { text-align: center; margin-bottom: 28px; }
.contact-header h2 { margin: 8px 0 0; font-size: 28px; }
.contact-accordion { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.contact-accordion > summary { list-style: none; cursor: pointer; padding: 20px 24px; font-size: 16px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; user-select: none; }
.contact-accordion > summary::-webkit-details-marker { display: none; }
.contact-accordion > summary .icon { transform: rotate(180deg); transition: transform .2s; width: 16px; }
.contact-accordion[open] > summary .icon { transform: rotate(270deg); }
.contact-body { padding: 0 24px 24px; }
.contact-body > p { margin: 0 0 16px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.inquiry-form, .delete-request-form { display: block; }
.inquiry-status, .delete-request-status { min-height: 20px; margin: 8px 0 0; color: var(--purple-deep); font-size: 12px; font-weight: 700; }
.inquiry-status.is-error, .delete-request-status.is-error { color: var(--danger); }
.inquiry-status[hidden], .delete-request-status[hidden] { display: none; }

/* 確認画面: 同意チェックボックス */
.confirm-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 600; color: #6b5400; cursor: pointer; }
.confirm-consent input { margin-top: 2px; }
#iq-submit:disabled { opacity: .5; cursor: not-allowed; }

/* 管理画面: 注目ボタン・注目タグ */
.admin-feature { background: white; color: #8a6d0b; border: 1px solid #ffe69c; }
.admin-feature.is-on { background: #fff3cd; border-color: #8a6d0b; }
.admin-pr { background: white; color: var(--purple); border: 1px solid var(--purple-pale); }
.admin-pr.is-on { background: var(--purple-pale); border-color: var(--purple); }
.status-featured { background: #fff3cd; color: #8a6d0b; }
.status-pr { background: var(--purple-pale); color: var(--purple-deep); }

/* 単体レンダリング時の確認・完了画面の背景 */
main > .submit-section:only-child { padding-top: 60px; padding-bottom: 60px; min-height: calc(100vh - 200px); }
.admin-status { margin-bottom: 22px; font-size: 13px; color: var(--ink-soft); }
.admin-status .badge { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--purple-pale); color: var(--purple-deep); font-weight: 700; font-size: 11px; }
.admin-notice { margin: 0 0 20px; padding: 12px 16px; border-radius: 8px; background: var(--purple-pale); color: var(--purple-deep); font-size: 13px; font-weight: 600; }
.admin-notice.is-error { background: #fde8e6; color: var(--danger); }

@media (max-width: 900px) {
  .header-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; position: fixed; inset: 82px 0 auto 0; background: white; padding: 8px 5.5vw 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(27,30,68,.12); }
  .header-nav.is-open { display: flex; }
  .header-nav > a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .header-nav > .submit-button { margin-top: 16px; text-align: center; border-bottom: 0; }
  .menu-button { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
  .menu-button span { height: 2px; width: 24px; background: var(--ink); transition: transform .25s, opacity .25s; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(0) rotate(-45deg); }
  .hero { padding: 70px 6vw 115px; }
  .hero-copy { width: 66%; }
  .hero-feature { width: 270px; height: 320px; }
  .event-section { width: calc(100% - 8vw); }
  .search-panel { grid-template-columns: repeat(3, 1fr); }
  .search-field { grid-column: span 2; }
  .filter-field { min-height: 64px; border-bottom: 1px solid var(--line); }
  .audience-filter { border-right: 0; }
  .search-button { grid-column: 1 / -1; min-height: 46px; margin-top: 8px; }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .featured-card-wrap:nth-child(n+2) { display: none; }
  .submit-section { grid-template-columns: 1fr; padding-left: 6vw; padding-right: 6vw; }
  .submit-form, .submit-success { grid-column: auto; }
  .cta-section { padding-left: 6vw; padding-right: 6vw; }
}

@media (max-width: 640px) {
  .site-header { height: 68px; padding: 0 18px; }
  .header-nav { inset: 68px 0 auto 0; padding: 8px 18px 22px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-text { font-size: 18px; }
  .hero { min-height: 0; padding: 54px 18px 36px; display: block; overflow: hidden; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: 36px; }
  .hero-lead { font-size: 12px; }
  .desktop-only { display: none; }
  .hero-feature { position: relative; width: 100%; height: 230px; right: auto; bottom: auto; margin: 38px 0 0; transform: none; }
  .mini-planet { width: 130px; height: 130px; }
  .mini-planet:after { width: 175px; height: 40px; top: 46px; }
  .feature-content { bottom: 14px; left: 18px; }
  .feature-content h2 { font-size: 15px; margin-bottom: 10px; }
  .feature-content p { font-size: 17px; }
  .search-panel { width: 100%; margin: 24px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 12px; }
  .search-field { grid-column: 1 / -1; min-height: 68px; border: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .filter-field { min-height: 72px; border-right: 0; border-bottom: 1px solid var(--line); padding: 9px 8px; }
  .filter-field:nth-of-type(even) { border-left: 1px solid var(--line); }
  .audience-filter { grid-column: 1 / -1; }
  .search-field input, .filter-field select { font-size: 16px; }
  .field-label, .filter-field > span { font-size: 12px; }
  .search-button { grid-column: 1 / -1; width: 100%; height: 50px; margin: 10px 0 0; font-size: 15px; }
  .event-section { width: auto; padding: 75px 18px; }
  .section-header { display: block; }
  .section-header h2 { font-size: 26px; }
  .view-tabs { margin-top: 23px; width: 100%; }
  .view-tab { flex: 1; justify-content: center; }
  .event-grid { grid-template-columns: 1fr; }
  .event-visual { aspect-ratio: 16 / 7; min-height: 150px; }
  .visual-tags { top: 13px; left: 13px; right: 13px; }
  .format-badge, .event-category { min-height: 30px; font-size: 12px; }
  .visual-copy { left: 17px; right: 17px; bottom: 16px; }
  .event-card h3 { margin-bottom: 11px; font-size: 21px; line-height: 1.5; }
  .event-date { font-size: 15px; }
  .event-date span { font-size: 13px; }
  .event-card-body { padding: 16px 17px 15px; }
  .event-meta div { grid-template-columns: 58px minmax(0, 1fr); margin: 6px 0; font-size: 14px; }
  .event-meta dd { word-break: break-word; }
  .heat-button, .detail-link { font-size: 14px; }
  .heat-button .icon { width: 19px; }
  .calendar-grid { display: none; }
  #calendar-view { overflow: visible; }
  .mobile-calendar-list { display: grid; gap: 12px; }
  .mobile-calendar-list article { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 14px; padding: 16px 14px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 5px 18px rgba(27,30,68,.04); }
  .mobile-calendar-list time { min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; background: var(--purple-pale); color: var(--purple-deep); }
  .mobile-calendar-list time strong { font: 800 28px "DM Sans", sans-serif; line-height: 1; }
  .mobile-calendar-list time span { margin-top: 5px; font-size: 12px; font-weight: 700; }
  .mobile-calendar-list article > div { min-width: 0; }
  .calendar-format { display: inline-flex; margin-bottom: 7px; padding: 4px 8px; border-radius: 4px; background: #e7f4ed; color: #297052; font-size: 12px; font-weight: 700; }
  .calendar-format.online { background: var(--purple-pale); color: var(--purple-deep); }
  .mobile-calendar-list h3 { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.55; text-shadow: none; }
  .mobile-calendar-list p { margin: 7px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; word-break: break-word; }
  .submit-section { padding: 60px 18px; gap: 26px; }
  .submit-copy h2 { font-size: 25px; }
  .submit-form { padding: 16px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-row input, .form-row select, .form-row textarea { font-size: 16px; }
  .cta-section { grid-template-columns: 1fr; gap: 30px; padding: 60px 24px; }
  .cta-section h2 { font-size: 23px; }
  .cta-section > div:last-child { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); padding: 25px 0 0; }
  .site-footer { display: block; padding: 35px 20px; }
  .site-footer > p { margin-top: 22px; }
  .copyright { margin-left: 0; }
}

@media (max-width: 360px) {
  .search-panel { grid-template-columns: 1fr; }
  .search-field, .audience-filter { grid-column: auto; }
  .filter-field:nth-of-type(even) { border-left: 0; }
  .form-row input, .form-row select { font-size: 15px; }
}
