@charset "UTF-8";
/* ============================================================
   T2S インフォガイド 2027年1月版：共通部分（ヘッダー・背景・左右カラム・フッター）
   - 配色は BD-3（2026-11-17 決定）
       ヘッダー・ボタン：赤グラデーション #B81810 → #880818
       左右の背景・斜線・T2S ロゴ：シルバーグレー
       フッター：#880818
   - 読み込み元：Element/corporate/t2s_mypage_header.ctp（全ページ共通のヘッダー）
     ページごとの style.css（202507 / 202607）より後に読まれるので、同じ詳細度なら
     こちらが勝つ。既存側が !important を使っている所だけ !important で上書きする。
   - 左右カラムは PC の広い画面（1280px〜）だけ表示（2026-11-18〜19 決定）
   ============================================================ */

:root {
  --t2s27-red1: #B81810;
  --t2s27-red2: #880818;
  --t2s27-grad: linear-gradient(180deg, #B81810 0%, #880818 100%);
  --t2s27-line: linear-gradient(90deg, #880818 0%, #B81810 50%, #880818 100%);
  --t2s27-bg: #F2F3F5;
  --t2s27-bg2: #E7E9EC;
  --t2s27-border: #E3E5E9;
  --t2s27-ink: #2A2D32;
  --t2s27-muted: #6B7078;
  --t2s27-silver: #C9CDD2;
}

/* ============================================================
   ヘッダー
   ============================================================ */
body #js-header,
body .p-header {
  background: var(--t2s27-grad) !important;
  border-bottom: 0 !important;
  box-shadow: 0 2px 10px rgba(80, 0, 10, .25) !important;
}
body #js-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--t2s27-line);
  pointer-events: none;
}
body #js-header .l-header__inner { background: transparent !important; }

/* ロゴ（11/24 B案）：[10th Edition ロゴ ＋ T2S ロゴ（支給の文字ロゴ・白）] ｜ インフォガイド
   キービジュアルの「10TH Edition T2S」と同じ並び */
.p-header__logo h1 { margin: 0; }
/* 7月版はロゴの文字を ::before / ::after で出していた（ページ側の style にも残っている）ので消す */
body .p-header__logo a::before,
body .p-header__logo a::after {
  content: none !important;
  display: none !important;
}
.p-header__logo a.t2s27-logo {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0 14px;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}
.t2s27-logo__mark {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
/* 1024px 以下は既存 CSS の img{height:auto !important; max-width:100% !important} が効くので !important で固定 */
body .p-header__logo img.t2s27-logo__10th,
body .p-header__logo img.t2s27-logo__t2s {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  height: 30px !important;
  object-fit: contain;
}
.t2s27-logo__txt {
  display: grid;
  gap: 4px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .4);
}
/* 日本語のフォントは文字が枠の下寄りに描かれるので、少し上げてロゴの上下の中心にそろえる（2026-11-24：PC 約7px・スマホ約5px 下がっていた） */
.t2s27-logo__ttl {
  display: block;
  line-height: 1;
  transform: translateY(-.3em);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  color: #fff;
}
/* 「Takahashi 2days Seminar」はヘッダーの高さでは読めないので置かない（11/24 決定・ほかの場所で使う） */

/* AWARENESS マイページ：本来の色のロゴを白い丸に入れる（赤い背景でも色を変えないため） */
body .p-header__link > .t2s27-aw {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
body .p-header__link > .t2s27-aw svg {
  width: 20px;
  height: 26px;
  display: block;
}

/* 右側のメニュー（マイページ / 1月申込 / 紹介 / FAQ） */
body .p-header__link,
body .p-header__link > *,
body .p-header__link > span {
  color: #fff !important;
}
body .p-header__link > svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body .p-header__item:not(:has(._disabled)):hover > .p-header__link,
body .p-header__item.is-active > .p-header__link {
  background: rgba(255, 255, 255, .14) !important;
  box-shadow: none !important;
}
body .p-header__bar div { background: rgba(255, 255, 255, .28) !important; }

/* 「T2S をシェアする」の文字画像（黒文字）を白に */
body .l-header__imgbtns::before { filter: brightness(0) invert(1); }
body .l-header__imgbtn.js-urlcopy { background-color: rgba(255, 255, 255, .22) !important; }

/* シェア・LINE ボタン（今までヘッダー内の style にあったもの） */
.l-header__imgbtns {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.l-header__imgbtn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}
.l-header__imgbtn:not(.js-urlcopy) img {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
.l-header__imgbtn.js-urlcopy {
  border-radius: 50% !important;
  overflow: hidden !important;
}
.l-header__imgbtn.js-urlcopy img { display: none !important; }
.l-header__imgbtn.js-urlcopy::after {
  content: '' !important;
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L7.5 6.5H11V14h2V6.5h3.5L12 2z'/%3E%3Cpath d='M17 10v9H7v-9H5v11h14V10h-2z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

/* スマホ（今までヘッダー内の style にあったもの） */
@media (max-width: 768px) {
  .p-header__logo {
    text-align: left !important;
    padding-left: 16px !important;
    margin-left: 0 !important;
    flex-shrink: 1 !important;
    border-bottom-color: rgba(255, 255, 255, .22) !important;
  }
  .p-header__logo h1 {
    text-align: left !important;
    margin: 0 !important;
  }
  .p-header__logo a.t2s27-logo {
    gap: 0 10px;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  .t2s27-logo__mark { gap: 6px; }
  body .p-header__logo img.t2s27-logo__10th,
  body .p-header__logo img.t2s27-logo__t2s { height: 22px !important; }
  .t2s27-logo__txt { gap: 3px; padding-left: 10px; }
  .t2s27-logo__ttl { font-size: 17px; }

  .p-header__nav {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
  }
  .p-header__list {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    justify-content: space-around !important;
    align-items: center !important;
  }
  .p-header__item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
  .p-header__link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 4px 2px !important;
  }
  .p-header__bar { display: none !important; }
  body .p-header__link > svg {
    width: 28px;
    height: 28px;
  }
  .p-header__item span { font-size: 10px !important; }
}

/* ============================================================
   背景：シルバーグレーの地と斜線（7月版の青い光を置き換え）
   地と斜線は body に描く。7月版の背景レイヤー（.t2slp_bg の中）は
   流れるロゴより上に重なって隠してしまうので、透明にする
   ============================================================ */
body#mypage {
  background:
    repeating-linear-gradient(115deg, transparent 0 78px, rgba(110, 116, 126, .12) 78px 79px),
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(150, 156, 166, .07) 38px 39px),
    radial-gradient(ellipse at 15% 0%, rgba(214, 218, 224, .6), transparent 60%),
    linear-gradient(180deg, var(--t2s27-bg), var(--t2s27-bg2)) !important;
  background-attachment: fixed !important;
}
body .t2slp_bg .bg-layer,
body .t2slp_bg .bg-layer::before,
body .t2slp_bg .bg-layer::after,
body .t2slp_bg::before,
body .t2slp_bg::after {
  background: none !important;
  animation: none !important;
}
/* 7月版のふわふわ浮かぶ T2S ロゴは、下の「流れるロゴ」に置き換えるので出さない */
body .t2slp_bg .bg-particles { display: none !important; }

/* 背景を横に流れる「T2S」「10TH Edition」ロゴ（2026-11-19 決定）
   ヘッダーの直後に置く。画面に固定し、本文より下・クリックは素通り */
.t2s27-bgflow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.t2s27-bgflow img {
  position: absolute;
  left: 0;
  top: var(--y);
  width: var(--w) !important;
  max-width: none !important;
  height: auto !important;
  opacity: var(--o);
  animation: t2s27-bgflow var(--d) linear infinite;
  animation-delay: var(--dl);
  will-change: transform;
}
@keyframes t2s27-bgflow {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .t2s27-bgflow img { animation: none; left: var(--x); }
}
/* 本文・左右カラムを流れるロゴより上に */
body #main-wrapper { position: relative; z-index: 1; }

/* ============================================================
   3カラム：PC の広い画面（1280px〜）は 左220px / 本文800px / 右220px
   それより狭い画面は本文だけ（左右カラムは出さない）
   ============================================================ */
@media (min-width: 1280px) {
  body .three-column-layout {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 800px) 220px !important;
    gap: 28px !important;
    justify-content: center !important;
    max-width: 1340px !important;
  }
  body .three-column-layout > .side-menu {
    display: block !important;
    width: 100% !important;
    justify-self: stretch !important;
  }
}
@media (max-width: 1279px) {
  body .three-column-layout {
    display: block !important;
    max-width: 800px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  body .three-column-layout > .side-menu { display: none !important; }
  body .three-column-layout > .main-content {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ============================================================
   左右カラムのメニュー（ボタン）
   白地・コーポレートカラーの文字。「紹介されたセミナー」など強調は赤グラデーション
   ============================================================ */
body .side-menu nav ul li a {
  color: var(--t2s27-red2) !important;
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid var(--t2s27-border) !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
}
body .side-menu nav ul li a:hover,
body .side-menu nav ul li a.active,
body .side-menu nav ul li a.is-active,
body .side-menu nav ul li a[aria-current="page"] {
  color: #fff !important;
  background: var(--t2s27-grad) !important;
  border-color: transparent !important;
}
body .side-menu nav ul li a.menu-featured {
  color: #fff !important;
  background: var(--t2s27-grad) !important;
  border: 1px solid transparent !important;
  box-shadow: 0 3px 10px rgba(136, 8, 24, .28) !important;
}
body .side-menu nav ul li a.menu-featured:hover { opacity: .9; }
body .side-menu nav ul li a:focus-visible {
  outline: 3px solid #f2b705 !important;
  outline-offset: 2px !important;
}
/* バナー画像のリンク（inline style="background: none" 付き）は枠なしのまま */
body .side-menu nav ul li a[style*="background: none"],
body .side-menu nav ul li a[style*="background: none"]:hover {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .14) !important;
}
/* 10回の歩みの小さい 10th ロゴ */
body .side-menu nav ul li a img.t2s27-10th-mini {
  height: 13px !important;
  width: auto !important;
  max-height: none !important;
  margin: 0 6px 0 0 !important;
}

/* ============================================================
   フッター
   ============================================================ */
body .p-footer {
  background: var(--t2s27-red2) !important;
  box-shadow: none !important;
  color: #f3d4d2 !important;
}
body .p-footer::before { background: var(--t2s27-line) !important; box-shadow: none !important; }
body .p-footer a,
body .p-footer__list a,
body .p-footer__list li { color: #f3d4d2 !important; }
body .p-footer a:hover { color: #fff !important; }
body .p-footer .c-back-button,
body .p-footer .c-back-button span {
  color: var(--t2s27-red2) !important;
  background: #fff !important;
  border-color: #fff !important;
}
body .p-footer .p-footer__copyright {
  color: rgba(255, 255, 255, .7) !important;
  border-top-color: rgba(255, 255, 255, .18) !important;
}
/* フッターのロゴ：白抜きの画像を使うので、style.css の白くするフィルターは外す。縦横比を保つ（2026-11-27） */
body .p-footer img.t2s27-footlogo {
  filter: none !important;
  opacity: 1;
  width: 198px !important;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 372 / 95;
}

/* ============================================================
   ページTOPへ戻る（2026-12-01）：紹介ツールと同じ丸い TOP ボタンを全ページ共通に
   右カラムの「TOPへ戻る」「ページTOPへ戻る」はこのボタンに置き換えるので隠す
   ============================================================ */
body .side-menu nav ul li:has(> a[href="#top"]),
body .side-menu nav ul li:has(> a[href="#db-top-nav"]) { display: none !important; }
body .t2s27-pagetop {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(24px + var(--t2s27-lift, 0px) + env(safe-area-inset-bottom, 0px));
  z-index: 9000;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--t2s27-grad, linear-gradient(180deg, #B81810 0%, #880818 100%));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(136, 8, 24, .32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, bottom .2s ease, box-shadow .2s ease;
}
body .t2s27-pagetop.is-show { opacity: 1; visibility: visible; transform: none; }
body .t2s27-pagetop.is-show:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(136, 8, 24, .42); }
body .t2s27-pagetop:focus-visible { outline: 3px solid #f2b705; outline-offset: 3px; }
body .t2s27-pagetop__arrow { font-size: 14px; line-height: 1; }
body .t2s27-pagetop__txt { font-size: 10px; letter-spacing: .06em; line-height: 1; font-family: "Josefin Sans", "Noto Sans JP", sans-serif; }
@media (max-width: 760px) {
  body .t2s27-pagetop { right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(16px + var(--t2s27-lift, 0px) + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  body .t2s27-pagetop { transition: none; }
}

/* 右カラムのバナー：角丸をやめて四角に（2026-12-01 ユーザー指示） */
body .side-menu nav ul li a[style*="background: none"],
body .side-menu nav ul li a[style*="background: none"]:hover,
body .side-menu nav ul li a:has(img),
body .side-menu nav ul li a:has(img):hover,
body .side-menu nav ul li a[style*="background: none"] img,
body .side-menu nav ul li a:has(img) img { border-radius: 0 !important; }

/* ============================================================
   ヘッダーの「1月T2S申込」を目立たせる（2026-12-01）
   - 目線の最後に来る一番右へ移し、赤いヘッダーの中で白いボタンにする（ほかのメニューは白い線のアイコンのまま）
   - 超早割の期間中（12/7まで）は金色の札「超早割 12/7まで」をボタンの中（アイコンの上）に置く
     （12/1 改：右上にはみ出させるとアイコンに重なったため、札・アイコン・文字の3段にした）
   ============================================================ */
body .p-header__item--apply { margin-left: 10px; margin-right: 10px; }
body .p-header__item--apply > .p-header__link._apply {
  position: relative;
  padding: 5px 10px !important;
  row-gap: 1px;
  background: #fff !important;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .28), inset 0 0 0 2px rgba(232, 190, 74, .85) !important;
  transition: transform .2s, background .2s;
}
body .p-header__item--apply > .p-header__link._apply > span {
  color: #B81810 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: .04em;
}
body .p-header__item--apply > .p-header__link._apply > svg { width: 22px; height: 22px; stroke: #B81810; stroke-width: 2; }
body .p-header__item.p-header__item--apply:not(:has(._disabled)):hover > .p-header__link._apply {
  background: #FFF4EE !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .32), inset 0 0 0 2px #E8BE4A !important;
  transform: translateY(-1px);
}
body .p-header__link._apply > .t2s27-apply__badge {
  position: static;
  justify-self: center;
  margin: 0 0 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #F4D57A, #D4A12C);
  color: #4A2C00 !important;
  font: 700 10px/1 "Noto Sans JP", sans-serif;
  font-style: normal;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  pointer-events: none;
}
@media (max-width: 768px) {
  body .p-header__item--apply { margin-left: 4px; margin-right: 4px; }
  body .p-header__item--apply > .p-header__link._apply { border-radius: 8px; }
  body .p-header__item--apply > .p-header__link._apply > span { font-size: 11px !important; letter-spacing: 0; }
  body .p-header__item--apply > .p-header__link._apply { padding: 4px 2px !important; }
  body .p-header__link._apply > .t2s27-apply__badge { padding: 2px 6px; font-size: 9px; }
}
