@charset "utf-8";

/* ===========================================================================
   Sirius 参加登録システム 共通基盤 CSS（デザイン刷新版）
   - デザイントークン／フォント／body／ヘッダー／フッター／pagetop／ローディング
   - ページ固有のスタイルは各ページCSS（login/mailform/add/…）に置く
   - 第33回肝細胞研究会・第40回肝類洞壁細胞研究会学術集会 合同大会
   =========================================================================== */

@import url("https://cdn.jsdelivr.net/npm/yakuhanjp@3.3.1/dist/css/yakuhanjp.min.css");
@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700&family=Zen+Old+Mincho:wght@600;700&family=Inter:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css?family=Noto+Sans+JP:100,300,400,500,700,900");
@import url("https://fonts.googleapis.com/css2?family=Sawarabi+Mincho&display=swap");

/* -- デザイントークン ------------------------------------------------------ */
:root {
  --c-text: #2b2b2b;
  --c-accent: #f35d40;   /* コーラル（差し色・pagetop・強調） */
  --c-radio: #46b8da;    /* ラジオ・アクセント青 */
  --c-cta: #27ae60;      /* 緑CTA */
  --c-cta-hover: #219150;
  --c-required: #d9534f; /* 必須バッジ */
  --c-optional: #337ab7; /* 任意バッジ */
  --c-line: #cccccc;
  --c-input-bg: #fafafa;
  --c-error: #da3c41;
  --c-note: #01388b;
  --c-link: #2f6fb0;
}

*:focus {
  outline: none !important;
  box-shadow: none !important;
}

body {
  font-family: YakuHanJP, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", Meiryo, sans-serif;
  font-weight: 400;
  font-size: clamp(0.938rem, 0.915rem + 0.11vw, 1rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.75;
  color: var(--c-text);
  background: #f7f5f1;
}

a {
  color: var(--c-link);
}

/* -- ヘッダー -------------------------------------------------------------- */

header {
  width: 100%;
  margin: 15px auto;
}

h1 {
  font-family: "Sawarabi Mincho", serif;
  font-size: clamp(1.125rem, 1rem + 0.63vw, 1.75rem);
  font-weight: bold;
  text-align: center;
  color: #2c2c2c;
  border-top: none;
  border-bottom: none;
  padding: 0.5em 0;
}

/* 2段ヘッダー（将来のビュー刷新用）：上＝画面名ピル／下＝大会名 */
header h1 .page-type {
  display: inline-block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.62em;
  font-weight: 700;
  color: #fff;
  background: var(--c-accent);
  letter-spacing: 0.08em;
  padding: 3px 16px;
  border-radius: 999px;
  margin-bottom: 11px;
  vertical-align: middle;
}
header h1 .event-name {
  display: block;
  line-height: 1.4;
  text-wrap: balance;
}

.registration-period {
  font-size: clamp(0.938rem, 0.9rem + 0.19vw, 1.063rem);
  font-weight: bold;
  text-align: center;
  border-top: 1px solid #686868;
  border-bottom: 1px solid #686868;
  padding: 0.75em 0;
  line-height: 1.45;
}

header span {
  display: inline-block;
}

/* -- フッター -------------------------------------------------------------- */

footer {
  width: 100%;
  padding: 15px 0;
  border-top: 1px solid #686868;
  text-align: center;
}

footer p {
  margin: 0;
  padding: 0;
  font-size: 0.8em;
  color: var(--c-text);
  line-height: 1;
  font-style: italic;
}

/* -- インフォメーション ---------------------------------------------------- */

div.note {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 25px 0;
}

div.note > ul {
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
}

div.note p.logo {
  text-indent: 0;
  margin: 45px 0 15px 0;
}

/* -- pagetop --------------------------------------------------------------- */

div#pagetop-scroll {
  display: none;
  position: fixed;
  right: 25px;
  bottom: 25px;
  color: #fff;
  width: 2.7em;
  height: 2.7em;
  border-radius: 50%;
  background: var(--c-accent);
  text-align: center;
  line-height: 2.7em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

div#pagetop-scroll > i {
  font-size: 1.15em !important;
  line-height: 1.25;
}

div#pagetop-scroll:hover {
  cursor: pointer;
  opacity: 0.9;
}

/* -- 表示ユーティリティ ---------------------------------------------------- */

.sp {
  display: none;
}

.pc {
  display: block;
}

.cb {
  clear: both;
}

.btadd {
  border-top: 1px solid var(--c-line) !important;
}

.bbno {
  border-bottom: none !important;
}

.btno {
  border-top: none !important;
}

.break:before {
  content: "\A";
  white-space: pre;
  line-height: 1;
}

/* -- 金額 ------------------------------------------------------------------ */
em {
  padding-left: 0.15em !important;
  padding-right: 0.35em !important;
}

/* -- ローディング（モーダルタイプ） ---------------------------------------- */
#modal_loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff90;
  z-index: 99999999999999999;
}
#modal_loading .content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  text-align: center;
}
#modal_loading .content .icon img {
  display: block;
  width: 80px;
  height: auto;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* ============================================================
   PRO案「Editorial Warm Minimal」共通トークン
   - 温かい紙色のフラット背景 × 純白カード × 墨色タイポグラフィ
   - 書体: Zen Kaku Gothic New(本文) / Zen Old Mincho(大会名) / Inter(数字)
   - アクションはコーラル1色に集約（ピル型）、青は情報・選択の補助色
   ============================================================ */

:root {
  --c-text: #14191f;
  --c-muted: #4b5563;
  --c-accent: #f35d40;
  --c-accent-deep: #e04b2f;
  --c-accent-tint: #fff4f1;
  --c-radio: #46b8da;
  --c-cta: #f35d40;        /* CTAもコーラルに一本化 */
  --c-cta-hover: #e04b2f;
  --c-required: #e04b2f;
  --c-optional: #47505a;
  --c-line: #e5e1d8;
  --c-hairline: #edeae3;
  --c-input-bg: #ffffff;
  --c-paper: #f7f5f1;
  --c-ink: #23272d;
  --font-body: YakuHanJP, "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --font-display: YakuHanJP, "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-num: "Inter", YakuHanJP, "Zen Kaku Gothic New", sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--c-paper); /* テクスチャ画像は使わないフラット紙色 */
  color: var(--c-text);
  font-size: 0.875rem;
  line-height: 1.9;
  letter-spacing: 0.015em;
}

/* 100vw フルブリード用（横スクロール抑止） */
html,
body {
  overflow-x: hidden;
}

/* ヘッダー＝白いアプリバー（明朝の大会名＋静かな会期表示）
   コンテナ内に置かれるページ（payment 等）でもブラウザ端まで届くフルブリード */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--c-hairline);
  margin: 0 0 28px;
  padding: 20px 0 0;
  /* 100vw は縦スクロールバーの幅を含むため、バーが出ると右へはみ出す。
     計算に依存しない全幅指定に変更する（overflow-x:hidden に頼らない）。 */
  width: auto;
  position: relative;
  left: auto;
  margin-left: 0;
  margin-right: 0;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
  letter-spacing: 0.06em;
  color: var(--c-ink);
  padding: 0.2em 0 0.4em;
}

.registration-period {
  border-top: none;
  border-bottom: none;
  background: none;
  color: var(--c-muted);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0 0 1em;
  line-height: 1.6;
}

footer {
  background: #ffffff;
  border-top: 1px solid var(--c-hairline);
  padding: 26px 0;
}
footer p {
  color: var(--c-muted);
  font-style: normal;
  letter-spacing: 0.08em;
}

div#pagetop-scroll {
  background: var(--c-ink);
  box-shadow: 0 4px 14px rgba(35, 39, 45, 0.25);
}
div#pagetop-scroll:hover {
  background: var(--c-accent);
  opacity: 1;
}

em {
  font-family: var(--font-num);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.01em;
}

a {
  color: #2e7ea6;
  text-underline-offset: 3px;
}

/* 選択ハイライトもブランドトーンに */
::selection {
  background: rgba(243, 93, 64, 0.18);
}

/* キーボード操作の可視化（操作性） */
button:focus-visible,
input[type='button']:focus-visible,
input[type='submit']:focus-visible,
a:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(243, 93, 64, 0.35) !important;
}

/* ボタンの押下フィードバック */
button:active,
input[type='button']:active {
  transform: translateY(1px);
}

/* -- Bootstrap .btn の既定サイズを本文（0.875rem）に合わせる -----------------
   Bootstrap 既定の 1rem のままだと「登録情報の修正」「抄録集」「印刷」等の
   ボタンだけ文字が大きく見えるため、基準サイズを揃える。
   .btn-lg / .btn-sm は Bootstrap 側の指定が優先されるので影響しない。 */
.btn {
  font-size: 0.875rem;
}

/* -- 大会名：意図した位置で折り返す（SPで単語の途中で切れないように） ------- */
.ev-n1,
.ev-n2,
.ev-n3 {
  display: inline-block;
}

/* -- 期限などの小さな表：セルに左右の余白を持たせる ------------------------- */
table.term th,
table.term td {
  padding: 6px 12px !important;
  vertical-align: middle !important;
}

/* -- 大会名：SPでは3行に分ける（PCは1行） --------------------------------- */
@media screen and (max-width: 767.98px) {
  .ev-n1,
  .ev-n2,
  .ev-n3 {
    display: block;
  }
}

/* -- 2段組みのラベル（例：○○研究会／会員番号） ---------------------------
   dt が flex のため子 span を block にしても横並びになる。
   1つの span にまとめ、その中の <br> で改行させる。 */
form#mail_form dl dt span.lbl-2line,
div#confirm_field dl dt span.lbl-2line,
.lbl-2line {
  display: inline-block;
  font-size: inherit;
  color: inherit;
  line-height: 1.5;
}

/* ============================================================
   標準仕様：最終セクション／最後のボタンの下は常に 25vh 空ける
   （画面下端にボタンが張り付くと押しにくいため）
   ============================================================ */
.wrap > form#mail_form,
div#confirm_field,
div#thanks,
div#payment,
div#login,
main > .tab-content,
.container-fluid > .row {
  margin-bottom: 25vh !important;
}
footer {
  margin-top: 0;
}

/* -- 連絡先ブロック：「大会名　運営事務局」が語中で折り返さないように --------
   word-break: keep-all で日本語の語を1つの塊として扱い、「運営事務局」の途中で
   改行されるのを防ぐ。入りきらない場合だけ overflow-wrap で分割する。 */
.note,
.note_top,
.tk-closed-contact,
div#error p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* -- ヘッダーに帯（.registration-period）が無いときの下余白 ------------------
   header の padding は上 20px・下 0 で、下側は h1 の margin-bottom(8px) だけ。
   帯があるうちは帯が余白を作っていたが、帯を外すと上下が非対称になるため、
   h1 が header の最後の子になるケースだけ下余白を上と揃える。 */
header h1:last-child {
  margin-bottom: 19px;
}
