@charset "UTF-8";

/*!
 * レイアウト（コンテナ・ヘッダー・フッター・セクションの器）
 * ヨシケイひろば / yoshikei-hiroba
 */

/* -----------------------------------
   layout
   ----------------------------------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--sp-5); }
.container--narrow { max-width: 720px; }
.section { padding: var(--sp-8) 0; }
.section--tight { padding: var(--sp-7) 0; }
.section--surface { background: var(--c-bg-surface); }
.rule { height: 1px; background: var(--c-line); margin: var(--sp-7) 0; border: 0; }

/* -----------------------------------
   header
   ----------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--c-bg-surface);
  border-bottom: 1px solid var(--c-line);
  z-index: 100;
  display: flex;
  align-items: center;
}
.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.logo { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.logo__mark { width: 28px; height: 25px; flex: none; }
.logo__tx { display: flex; flex-direction: column; line-height: 1.2; }
.logo__tag { font-size: 10px; color: var(--c-brand); }
.logo__wm { font-size: 17px; font-weight: 900; color: var(--c-brand); }
.logo__wm em { font-style: normal; color: var(--c-text); margin-left: 3px; }

/* グローバルナビ（メガナビ） */
.gnav { margin-left: auto; display: flex; align-items: center; gap: var(--sp-1); }
.gnav__item { position: relative; }
.gnav__link {
  display: flex; align-items: center; gap: 5px;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-small); font-weight: 500;
  color: var(--c-text-muted);
  border-radius: var(--r-pill);
  transition: .15s;
  cursor: pointer;
  border: 0; background: transparent;
}
.gnav__link:hover { color: var(--c-brand); background: var(--c-brand-tint); }
.gnav__link.is-current { background: var(--c-brand); color: #fff; font-weight: 700; }
.gnav__caret { width: 12px; height: 12px; transition: transform .2s; }
.gnav__item.is-open .gnav__caret { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 260px;
  background: var(--c-bg-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 40px -20px rgba(51,51,51,.28);
  padding: var(--sp-4);
  opacity: 0; visibility: hidden;
  transition: .18s;
}
.gnav__item.is-open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega::before {
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.mega__head {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--c-text-subtle); padding: var(--sp-2) var(--sp-3);
}
.mega__link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  color: var(--c-text);
  transition: .15s;
}
.mega__link:hover { background: var(--c-brand-tint); color: var(--c-brand); }
.mega__link.is-current { background: var(--c-brand-tint); color: var(--c-brand); font-weight: 700; }
.mega__num {
  font-size: 11px; font-weight: 700; color: var(--c-text-subtle);
  min-width: 1.8em; font-feature-settings: "tnum";
}
.mega__link.is-current .mega__num { color: var(--c-brand); }
.mega__desc { display: block; font-size: var(--fs-caption); color: var(--c-text-subtle); line-height: 1.5; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; cursor: pointer; margin-left: auto;
  background: transparent; border: 0;
}
.hamburger span { width: 24px; height: 2px; background: var(--c-text); transition: .25s; display: block; }
.hamburger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.drawer {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--c-bg-surface);
  z-index: 99;
  overflow-y: auto;
  padding: var(--sp-5) 0 var(--sp-8);
}
.drawer.is-active { display: block; }
.drawer__head {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--c-text-subtle);
  padding: var(--sp-5) var(--sp-5) var(--sp-2);
}
.drawer__link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-small);
  border-bottom: 1px solid var(--c-line);
}
.drawer__link.is-current { background: var(--c-brand-tint); color: var(--c-brand); font-weight: 700; }

/* -----------------------------------
   footer
   ----------------------------------- */
.footer { background: var(--c-pink-l); border-top: 1px solid var(--c-line); padding: var(--sp-7) 0 var(--sp-6); }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2) var(--sp-5); margin-bottom: var(--sp-6); }
.footer__links a { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-small); color: var(--c-text-muted); padding: var(--sp-2) 0; }
.footer__links a .ico { width: 13px; height: 13px; color: var(--c-brand); flex: none; }
.footer__copy { font-size: var(--fs-caption); color: var(--c-text-subtle); line-height: 1.8; }

/* -----------------------------------
   ページトップへ戻る
   ----------------------------------- */
.pagetop {
  position: fixed;
  right: var(--sp-5); bottom: var(--sp-5);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-brand); color: #fff;
  border: 0; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px rgba(230,0,18,.55);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .25s;
  z-index: 90;
}
.pagetop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.pagetop:hover { filter: brightness(1.08); }
.pagetop .ico { width: 22px; height: 22px; }

/* -----------------------------------
   白いパネル（セクションの器）
   ----------------------------------- */
.panel-block {
  background: var(--c-bg-surface);
  border-radius: 28px;
  padding: var(--sp-8) var(--sp-7);
  box-shadow: 0 20px 50px -40px rgba(51,51,51,.3);
}

/* -----------------------------------
   セクション見出し（アイコン付き）
   ----------------------------------- */
.sec-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.sec-head .ico { width: 28px; height: 28px; color: var(--c-brand); flex: none; }
.sec-head h2 { font-size: 22px; font-weight: 900; }

/* -----------------------------------
   背景
   ----------------------------------- */
.bg-soft {
  background:
    radial-gradient(1100px 420px at 78% -8%, #FDE9EA 0%, rgba(253,233,234,0) 62%),
    radial-gradient(900px 380px at 8% 42%, #FBE3E4 0%, rgba(251,227,228,0) 60%),
    var(--c-pink-l);
}

/* -----------------------------------
   下層ページの見出しブロック
   ----------------------------------- */
.page-head__grid { display: grid; grid-template-columns: 1fr 160px; gap: var(--sp-6); align-items: center; text-align: left; }
.page-head__grid.is-solo { grid-template-columns: 1fr; text-align: center; }
.page-head__art { width: 160px; justify-self: center; }
.page-head__tx .page-title { text-align: left; }
.page-head__tx .page-lead { text-align: left; }
.page-head__grid.is-solo .page-title,
.page-head__grid.is-solo .page-lead { text-align: center; }

/* パネル内の余白調整 */
.panel-block + .panel-block { margin-top: var(--sp-5); }
.panel-block .sec-head:not(:first-child) { margin-top: var(--sp-7); }
.panel-block > :last-child { margin-bottom: 0; }

/* 1位カード */
.champion { position: relative; }
.champion__crown {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 56px; z-index: 2;
}
.champion .card__body { padding-top: var(--sp-6); }

/* 管理画面の器 */
.admin-wrap {
  border: 1px solid var(--c-line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 50px -40px rgba(51,51,51,.35); background: #fff;
}
/* ===================================
   見出しの折り返し制御
   意味のまとまりの途中で改行されないようにします
   =================================== */
.nw { display: inline-block; white-space: nowrap; }
.page-title, .hero__lede h1, .feature__title, .card__title, .ecard__title, .sec-title {
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}
