/* 地域交流会（koryu.php）… event.css の部品（木の看板・クリーム色・オレンジの主ボタン）に 上乗せ */
.kr { max-width: 1120px; word-break: keep-all; overflow-wrap: anywhere; overflow-x: clip; }
.kr p, .kr li, .kr dd { text-wrap: pretty; }
.kr .ev-sign { white-space: normal; }
.kr [hidden] { display: none !important; }

/* 上の絵＋見出し */
.kr-hero { position: relative; overflow: hidden; isolation: isolate; margin: 4px 0 26px; border-radius: 26px; min-height: 340px; display: flex; align-items: center; background: #9fd6f5;
  box-shadow: 0 0 0 5px #fff4d6, 0 0 0 9px #8a5222, 0 18px 36px rgba(0, 0, 0, .28); }
.kr-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.kr-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 250, 238, .94) 0, rgba(255, 250, 238, .82) 48%, rgba(255, 250, 238, 0) 78%); }
.kr-hero-in { padding: 30px 0 30px 40px; max-width: 66%; }
.kr-eyebrow { display: inline-block; margin: 0 0 8px; padding: 3px 14px 5px; border-radius: 8px; background: #6b3a12; color: #fff; font-weight: 900; font-size: 14px; letter-spacing: .08em; }
.kr-title { margin: 0; font-family: "Mochiy Pop One", "M PLUS Rounded 1c", sans-serif; font-weight: 400; font-size: clamp(38px, 5.6vw, 70px); line-height: 1.12; color: #e8412d; -webkit-text-stroke: 8px #fff; paint-order: stroke fill; filter: drop-shadow(0 5px 0 #8a2a12); }
.kr-title small { display: block; margin-top: 6px; font-size: .45em; color: #ff8a1f; -webkit-text-stroke: 6px #fff; filter: none; }
.kr-sub { margin: 14px 0 0; font-weight: 800; font-size: clamp(15px, 1.7vw, 19px); line-height: 1.8; color: #3b2a14; text-wrap: balance; }
.kr-dates { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kr-dates li { position: relative; padding: 8px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px #f1d9a8, 0 3px 0 #6b3a14; font-weight: 900; font-size: 17px; color: #6b3a12; }
.kr-dates li.is-next { background: #ffd23d; box-shadow: inset 0 0 0 2px #fff, 0 3px 0 #b8860b; }
.kr-dates em { position: absolute; left: -6px; top: -12px; padding: 1px 8px 2px; border-radius: 6px; background: #e8412d; color: #fff; font-style: normal; font-size: 11px; font-weight: 900; }
.kr-fee { display: inline-block; margin: 14px 0 0; padding: 6px 14px; border-radius: 10px; background: #6b3a12; color: #fff; font-weight: 900; font-size: 15px; }
.kr-where { margin: 10px 0 0; font-weight: 800; font-size: 15px; color: #3b2a14; }
.kr-where a { color: #1f6fd1; font-weight: 900; }
.kr-guide { position: absolute; right: 4%; bottom: 0; width: min(24%, 240px); filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .3)); animation: ev-fly 4.5s ease-in-out infinite; }

/* みんなの プロフィール */
.kr-people { margin: 0 0 30px; }
.kr-count { margin-left: 8px; padding: 2px 12px 4px; border-radius: 10px; background: #ffd23d; color: #8a2a12; text-shadow: none; font-size: .9em; white-space: nowrap; }
.kr-empty { margin: 0; padding: 22px 20px; border-radius: 20px; background: rgba(255, 250, 238, .96); box-shadow: inset 0 0 0 3px #f1d9a8, 0 5px 0 #6b3a14; font-weight: 800; line-height: 1.9; color: #3b2a14; }
.kr-empty small { color: #6b5a3e; font-weight: 700; }
.kr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kr-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; border-radius: 22px; background: linear-gradient(180deg, #fffdf6, #fbefd6); box-shadow: inset 0 0 0 3px #f1d9a8, 0 5px 0 #6b3a14, 0 12px 20px rgba(0, 0, 0, .15); transition: transform .3s cubic-bezier(.22, .61, .24, 1); }
@media (hover: hover) and (pointer: fine) { .kr-card:hover { transform: translateY(-4px); } }
.kr-av { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: linear-gradient(180deg, #bfe3fb, #8cc8f2); box-shadow: 0 0 0 4px #fff, 0 4px 0 4px #6b3a14; }
.kr-av > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kr-av-wait { display: grid; place-items: center; width: 100%; height: 100%; text-align: center; color: #3b5a78; font-weight: 800; }
.kr-av-wait img { width: 44px; height: 44px; margin-bottom: -10px; }
.kr-av-wait small { font-size: 11px; line-height: 1.3; margin-top: 12px; }
.kr-card-body { min-width: 0; }
.kr-card h3 { margin: 0; font-size: 22px; font-weight: 900; color: #3b2a14; line-height: 1.3; }
.kr-meta { margin: 2px 0 0; font-weight: 800; font-size: 14px; color: #8a5222; }
.kr-bio { margin: 8px 0 0; font-weight: 700; font-size: 15px; line-height: 1.75; color: #3b2a14; }
.kr-tag { margin: 8px 0 0; font-weight: 700; font-size: 14px; line-height: 1.6; color: #3b2a14; }
.kr-tag b { display: inline-block; margin-right: 8px; padding: 1px 9px 2px; border-radius: 8px; background: #3d7bff; color: #fff; font-size: 12px; font-weight: 900; }
.kr-tag--want b { background: #ff5a8a; }
.kr-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 12px; background: #fff; color: #1f6fd1; font-weight: 900; font-size: 14px; text-decoration: none; box-shadow: inset 0 0 0 2px #f1d9a8; min-height: 40px; }
.kr-link img { width: 22px; height: 22px; }
.kr-when { margin: 10px 0 0; font-weight: 800; font-size: 12px; color: #8a6a44; }

/* もうしこみ */
.kr-entry { margin: 0 0 30px; }
.kr-panel { padding: 20px; border-radius: 24px; background: repeating-linear-gradient(178deg, rgba(90, 40, 5, .08) 0 2px, transparent 2px 10px), linear-gradient(180deg, #c98a4b, #9a5d27); box-shadow: inset 0 0 0 3px #6b3a14, 0 12px 26px rgba(0, 0, 0, .2); }
.kr-set { margin: 0 0 14px; padding: 16px 16px 14px; border: 0; border-radius: 20px; background: #fffdf6; box-shadow: 0 4px 0 #6b3a14; }
.kr-set legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; font-weight: 900; font-size: 18px; color: #6b3a12; display: flex; align-items: center; gap: 10px; }
.kr-set legend + * { clear: both; }
.kr-set legend small { font-size: 12px; color: #8a6a44; font-weight: 800; }
.kr-step { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #ff8a1f; color: #fff; font-family: "Mochiy Pop One", sans-serif; font-size: 16px; box-shadow: 0 2px 0 #9a3a00; }
.kr-dateopts { display: flex; flex-wrap: wrap; gap: 10px; }
.kr-opt { position: relative; }
.kr-opt input { position: absolute; opacity: 0; inset: 0; }
.kr-opt span { display: block; min-height: 48px; padding: 10px 18px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 3px #f1d9a8; font-weight: 900; font-size: 17px; color: #6b3a12; cursor: pointer; }
.kr-opt input:checked + span { background: #ffd23d; box-shadow: inset 0 0 0 3px #ff8a1f; }
.kr-opt input:focus-visible + span { outline: 3px solid #3d7bff; outline-offset: 2px; }
.kr-photo { display: grid; gap: 8px; }
.kr-drop { position: relative; display: grid; place-items: center; width: min(100%, 260px); aspect-ratio: 1; border-radius: 24px; background: #fff3d6; box-shadow: inset 0 0 0 3px #f1d9a8; border: 3px dashed #e8a64a; cursor: pointer; overflow: hidden; text-align: center; }
.kr-drop > span { display: grid; justify-items: center; gap: 4px; padding: 14px; font-weight: 900; color: #6b3a12; }
.kr-drop > span img { width: 56px; height: 56px; }
.kr-drop small { font-size: 12px; font-weight: 700; color: #8a6a44; line-height: 1.5; }
.kr-drop #krPrev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kr-drop.has-img { border-style: solid; border-color: #fff; }
.kr-drop.has-img > span { display: none; }
.kr-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.kr-hint { margin: 0; font-size: 13px; font-weight: 700; color: #6b5a3e; line-height: 1.7; }
.kr-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0 0 12px; }
.kr-f { min-width: 0; margin: 0 0 12px; }
.kr-row .kr-f { margin: 0; }
.kr-f label { display: block; margin: 0 0 6px; font-weight: 900; font-size: 15px; color: #3b2a14; }
.kr-req, .kr-opt-t { margin-left: 6px; padding: 1px 8px 2px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 900; }
.kr-req { background: #e8412d; color: #fff; }
.kr-opt-t { background: #e9dcc0; color: #6b5a3e; }
.kr-len { float: right; font-size: 12px; color: #8a6a44; font-weight: 800; }
.kr-in { display: block; width: 100%; min-height: 50px; padding: 10px 14px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 3px #f1d9a8; font: inherit; font-weight: 700; font-size: 16px; color: #3b2a14; }
.kr-in::placeholder { color: #b0a088; font-weight: 700; }
.kr-in:focus { outline: 0; box-shadow: inset 0 0 0 3px #ff8a1f; }
.kr-ta { resize: vertical; min-height: 110px; line-height: 1.7; }
.kr-err { display: none; margin: 6px 0 0; font-weight: 800; font-size: 13px; color: #c62d18; }
.is-bad .kr-err, .kr-err.on { display: block; }
.is-bad .kr-in { box-shadow: inset 0 0 0 3px #e8412d; }
.kr-consent { margin: 0 0 14px; padding: 14px 16px; border-radius: 20px; background: #fffdf6; box-shadow: 0 4px 0 #6b3a14; display: grid; gap: 10px; }
.kr-check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 700; font-size: 14px; line-height: 1.7; color: #3b2a14; cursor: pointer; }
.kr-check input { width: 26px; height: 26px; margin: 0; accent-color: #ff8a1f; }
.kr-check b { color: #c62d18; white-space: nowrap; }
.kr-formerr { min-height: 1.4em; margin: 0 0 8px; padding: 0 4px; font-weight: 900; font-size: 15px; color: #fff; text-shadow: 0 2px 0 #7a1a10; }
.kr-formerr:empty { display: none; }
.kr-submit { width: 100%; min-height: 64px; font-size: 20px; }
.kr-submit .kr-spin { display: none; width: 22px; height: 22px; border: 3px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: kr-spin .8s linear infinite; }
.kr-submit.is-busy .kr-spin { display: inline-block; }
.kr-submit.is-busy img { display: none; }
.kr-submit:disabled { opacity: .85; animation: none; }
@keyframes kr-spin { to { transform: rotate(360deg); } }
.kr-note { margin: 12px 0 0; color: #fff; font-weight: 800; font-size: 12px; line-height: 1.7; text-shadow: 0 1px 0 #3d1f06; }
.kr-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.kr-done { padding: 26px 18px; border-radius: 20px; background: #fffdf6; text-align: center; box-shadow: 0 4px 0 #6b3a14; display: grid; gap: 10px; justify-items: center; }
.kr-done-ic { width: 88px; height: 88px; animation: ev-fly 3s ease-in-out infinite; }
.kr-done h3 { margin: 0; font-family: "Mochiy Pop One", sans-serif; font-weight: 400; font-size: 28px; color: #e8412d; }
.kr-done p { margin: 0; font-weight: 800; line-height: 1.8; color: #3b2a14; text-wrap: balance; }

@media (max-width: 899px) {
  .kr-hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .kr-hero::after { background: linear-gradient(180deg, rgba(255, 250, 238, .95) 0, rgba(255, 250, 238, .88) 70%, rgba(255, 250, 238, .3) 100%); }
  .kr-hero-in { max-width: none; padding: 22px 20px 12px; }
  .kr-guide { position: relative; right: auto; display: block; width: 130px; margin: 0 auto; }
  .kr-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .kr-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kr-row .kr-f { margin: 0 0 12px; }
  .kr-card { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .kr-av { width: 84px; height: 84px; }
  .kr-panel { padding: 12px; }
  .kr-set { padding: 14px 12px 12px; }
  .kr-fee { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .kr-guide, .kr-done-ic, .kr-card { animation: none; transition: none; } }

/* 管理画面（kanri_koryu.php） */
.krk-msg { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: #d9f7e3; color: #17643a; font-weight: 900; }
.krk-msg.is-err { background: #ffe0dc; color: #8a1b15; }
.krk-stats { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.krk-stats li { padding: 12px 8px; border-radius: 16px; background: #fffdf6; text-align: center; box-shadow: inset 0 0 0 2px #f1d9a8, 0 3px 0 #6b3a14; }
.krk-stats b { display: block; font-family: "Mochiy Pop One", sans-serif; font-weight: 400; font-size: 30px; color: #ff8a1f; line-height: 1.3; }
.krk-stats span { font-size: 12px; font-weight: 800; color: #6b5a3e; }
.krk-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.krk-list { display: grid; gap: 14px; }
.krk-card { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: 20px; background: #fffdf6; box-shadow: inset 0 0 0 3px #f1d9a8, 0 4px 0 #6b3a14; }
.krk-card.is-pending { box-shadow: inset 0 0 0 3px #ff8a1f, 0 4px 0 #6b3a14; }
.krk-card.is-hidden { opacity: .7; }
.krk-av { display: grid; gap: 4px; justify-items: center; align-content: start; text-align: center; }
.krk-av img { width: 120px; height: 120px; object-fit: cover; border-radius: 18px; background: #bfe3fb; }
.krk-av small, .krk-av span { font-size: 11px; font-weight: 800; color: #6b5a3e; }
.krk-main { min-width: 0; }
.krk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 4px; }
.krk-head b { font-size: 20px; font-weight: 900; }
.krk-st { padding: 1px 10px 2px; border-radius: 8px; background: #e9dcc0; font-size: 12px; font-weight: 900; }
.is-pending .krk-st { background: #ff8a1f; color: #fff; }
.is-published .krk-st { background: #2dbd6e; color: #fff; }
.krk-head small { font-size: 12px; font-weight: 700; color: #8a6a44; }
.krk-sub { margin: 2px 0; font-weight: 700; font-size: 14px; color: #3b2a14; }
.krk-bio { margin: 6px 0; font-weight: 700; font-size: 14px; line-height: 1.7; color: #3b2a14; }
.krk-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; }
.krk-btns .ev-cta, .krk-btns .ev-sub { min-height: 44px; padding: 0 16px; font-size: 15px; animation: none; }
.krk-del { color: #c62d18; }
.krk-up { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; border-top: 2px dashed #f1d9a8; }
.krk-up label { font-weight: 800; font-size: 13px; color: #6b3a12; }
.krk-up input { display: block; margin-top: 4px; font-size: 13px; max-width: 100%; }
.krk-up .ev-sub { min-height: 40px; font-size: 14px; }
@media (max-width: 560px) { .krk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .krk-card { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; } .krk-av img { width: 80px; height: 80px; } }

/* アバターの えらびかた・へんしゅう */
.kr-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 0 0 14px; }
.kr-mode { position: relative; }
.kr-mode input { position: absolute; opacity: 0; inset: 0; }
.kr-mode span { display: grid; place-items: center; min-height: 64px; padding: 8px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 3px #f1d9a8; font-weight: 900; font-size: 14px; line-height: 1.4; text-align: center; color: #6b3a12; cursor: pointer; }
.kr-mode input:checked + span { background: #ffd23d; box-shadow: inset 0 0 0 3px #ff8a1f; }
.kr-mode input:focus-visible + span { outline: 3px solid #3d7bff; outline-offset: 2px; }
.kr-pane[hidden] { display: none; }
.kr-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kr-pick { position: relative; }
.kr-pick input { position: absolute; opacity: 0; inset: 0; }
.kr-pick span { display: grid; justify-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 3px #f1d9a8; cursor: pointer; height: 100%; }
.kr-pick img { width: 64px; height: 64px; object-fit: contain; }
.kr-pick b { font-size: 12px; line-height: 1.3; color: #3b2a14; text-align: center; font-weight: 900; }
.kr-pick input:checked + span { background: #fff3d6; box-shadow: inset 0 0 0 4px #ff8a1f; }
.kr-pick input:focus-visible + span { outline: 3px solid #3d7bff; outline-offset: 2px; }
.kr-cur { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; background: linear-gradient(180deg, #bfe3fb, #8cc8f2); box-shadow: 0 0 0 4px #fff, 0 4px 0 4px #6b3a14; margin: 4px 0 12px; }
.kr-cur > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kr-av > img.is-preset { object-fit: contain; padding: 8%; }
.kr-editnote { margin: 0 0 12px; padding: 12px 16px; border-radius: 14px; background: #fff3d6; color: #6b3a12; font-weight: 800; font-size: 14px; line-height: 1.8; box-shadow: inset 0 0 0 2px #f1d9a8; }
.kr-cancel { width: 100%; margin-top: 12px; min-height: 52px; color: #c62d18; }
.kr-edit { width: 100%; padding: 14px; border-radius: 16px; background: #fff3d6; text-align: left; box-shadow: inset 0 0 0 2px #f1d9a8; }
.kr-edit p { margin: 0 0 10px; font-weight: 800; font-size: 14px; line-height: 1.8; }
.kr-edit small { font-weight: 700; color: #6b5a3e; }
.kr-edit-row { display: flex; gap: 8px; }
.kr-edit-row .kr-in { flex: 1; min-width: 0; font-size: 13px; }
.kr-copy { flex: none; min-height: 50px; padding: 0 16px; font-size: 15px; animation: none; }
@media (max-width: 560px) { .kr-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kr-edit-row { flex-direction: column; } .kr-copy { width: 100%; } }

/* 見た目の ほせい：枠の 計算を そろえる／見出しの 補足は 次の行へ */
.kr *, .kr *::before, .kr *::after { box-sizing: border-box; }
.kr-set legend { flex-wrap: wrap; }
.kr-set legend small { flex: 1 1 100%; padding-left: 40px; margin-top: -6px; }

/* 登録ずみの方の 1タップ申し込み */
.kr-quick { margin: 0 0 16px; padding: 16px 16px 14px; border-radius: 20px; background: #fffdf6; box-shadow: inset 0 0 0 4px #ffd23d, 0 4px 0 #6b3a14; display: grid; gap: 12px; }
.kr-quick h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 900; color: #6b3a12; line-height: 1.5; }
.kr-quick h3 img { width: 32px; height: 32px; flex: none; }
.kr-quick h3 b { color: #e8412d; }
.kr-quick .kr-hint { margin: 0; }
.kr-quick .kr-formerr { color: #c62d18; text-shadow: none; margin: 0; }
.kr-quick-or { text-align: center; }
.kr-quick .kr-submit { margin-top: 2px; }

/* FVの 下：次の 開催日・参加費 */
.kr-fvnext { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: -10px 0 26px; }
.kr-fvnext .kr-dates { margin: 0; }
.kr-fvnext .kr-fee { margin: 0; }
.kr-nb { white-space: nowrap; display: inline-block; max-width: 100%; }
