/* ============================================================
   UIJAN TOP 2026 — final visual adjustments
   2026-09-15
============================================================ */

:root {
  --uijan-text: #202722;
  --uijan-section-soft: #f2f7f4;
  --uijan-guide: rgba(0, 107, 79, 0.075);
  --uijan-guide-step: 144px;
  --uijan-ink: var(--uijan-text);
}

/* ------------------------------------------------------------
   基本文字色：純黒ではなく、わずかに緑を含む黒へ統一
------------------------------------------------------------ */
body.home {
  color: var(--uijan-text);
}

body.home .site-logo,
body.home .footer-logo,
body.home .global-nav a,
body.home .footer-nav a,
body.home .mobile-nav a,
body.home .uijan-hero h1,
body.home .uijan-section-head h2,
body.home .uijan-section-head > p,
body.home .uijan-tournament-description,
body.home .uijan-event-meta,
body.home .uijan-event-card h3,
body.home .uijan-event-card h3 a,
body.home .uijan-location,
body.home .uijan-card-arrow,
body.home .uijan-learn-featured h3,
body.home .uijan-learn-featured h3 a,
body.home .uijan-learn-list h3,
body.home .uijan-learn-list h3 a,
body.home .uijan-journal-list time,
body.home .uijan-journal-title h3,
body.home .uijan-journal-title h3 a,
body.home .uijan-about-copy > p,
body.home .footer-brand p,
body.home .footer-meta,
body.home .footer-meta a {
  color: var(--uijan-text);
}

/* 緑の面に載る文字は白のまま */
body.home .uijan-badge--pickup,
body.home .uijan-badge--new,
body.home .uijan-app-preview--pc aside .is-active,
body.home .uijan-preview-title > em,
body.home .uijan-preview-row.is-current > em,
body.home .uijan-preview-action,
body.home .uijan-app-preview--phone > em,
body.home .uijan-phone-action {
  color: #fff;
}

/* ------------------------------------------------------------
   フォント：TOP全体を Noto Sans JP に統一
   enjoy! の筆記体だけはデザイン上の意図として残す
------------------------------------------------------------ */
body.home .site-header *,
body.home .uijan-home *,
body.home .site-footer *,
body.home .mobile-menu * {
  font-family: "Noto Sans JP", sans-serif;
}

body.home .uijan-hero-script {
  font-family: "Allura", cursive;
  transform: translateY(58px) rotate(-4deg);
}

/* ------------------------------------------------------------
   ヘッダー
------------------------------------------------------------ */
body.home .global-nav {
  margin-left: auto;
}

body.home .header-inner {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 981px) {
  body.home .header-inner {
    width: min(var(--uijan-shell), calc(100% - 96px));
  }
}

body.home .uijan-hero-brand:empty {
  display: none;
}

/* ------------------------------------------------------------
   セクション：白 / ごく薄い緑を交互に
   横罫線では区切らない
------------------------------------------------------------ */
body.home .uijan-hero,
body.home .uijan-section {
  border-bottom: 0;
}

body.home .uijan-home {
  background-color: #fff;
  background-image: linear-gradient(
    to right,
    var(--uijan-guide) 0,
    var(--uijan-guide) 1px,
    transparent 1px,
    transparent 100%
  );
  background-size: var(--uijan-guide-step) 100%;
  background-position: center top;
  background-repeat: repeat-x;
}

body.home .uijan-hero,
body.home .uijan-main > .uijan-section {
  background-color: transparent;
}

body.home .uijan-main > .uijan-section:nth-of-type(odd) {
  background-color: var(--uijan-section-soft);
}

body.home .uijan-home.has-guide-line .uijan-main::before,
body.home .uijan-home.has-guide-line .uijan-hero::after,
body.home .uijan-home.has-guide-line .uijan-main > .uijan-section::before {
  display: none;
}

body.home .uijan-home:not(.has-guide-line) {
  background-image: none;
}

/* ------------------------------------------------------------
   CTA / 詳細リンク
------------------------------------------------------------ */
body.home .uijan-primary-button,
body.home .uijan-text-link,
body.home .uijan-section-more a {
  position: relative;
  width: fit-content;
  min-width: 0;
  min-height: 0;
  margin-top: 42px;
  padding: 13px 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--uijan-green-dark);
  background: transparent;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transform: translateY(0);
  transition: color .28s ease, transform .28s ease;
}

body.home .uijan-primary-button::after,
body.home .uijan-text-link::after,
body.home .uijan-section-more a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--uijan-green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .38s cubic-bezier(.22, .61, .36, 1);
}

body.home .uijan-primary-button:hover,
body.home .uijan-text-link:hover,
body.home .uijan-section-more a:hover {
  color: var(--uijan-green);
  background: transparent;
  transform: translateY(-3px);
}

body.home .uijan-primary-button:hover::after,
body.home .uijan-text-link:hover::after,
body.home .uijan-section-more a:hover::after {
  transform: scaleX(1);
}

body.home .uijan-primary-button > span,
body.home .uijan-text-link > span,
body.home .uijan-section-more a > span {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
  transition: transform .28s ease;
}

body.home .uijan-primary-button:hover > span,
body.home .uijan-text-link:hover > span,
body.home .uijan-section-more a:hover > span {
  transform: translateX(4px);
}

body.home .uijan-section-more {
  margin-top: 56px;
  display: flex;
  justify-content: flex-end;
}

body.home .uijan-section-more a {
  margin-top: 0;
}

body.home .uijan-about-copy .uijan-text-link {
  margin-top: 48px;
}

body.home .uijan-card-arrow {
  font-size: 22px;
  line-height: 1;
  transition: color .22s ease, transform .22s ease;
}

body.home .uijan-card-arrow:hover {
  color: var(--uijan-green);
  transform: translateX(4px);
}

/* ------------------------------------------------------------
   WEB APP
------------------------------------------------------------ */
body.home .uijan-tournament-description {
  margin: 30px 0 0;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 400;
  letter-spacing: 0.02em;
}

body.home .uijan-tournament .uijan-primary-button {
  margin-top: 34px;
}

body.home .uijan-tournament .uijan-device-stage {
  min-height: 420px;
  justify-content: flex-end;
  align-items: flex-end;
  padding-left: 0;
  padding-right: 0;
}

body.home .uijan-tournament .uijan-laptop {
  width: min(720px, 88%);
  position: relative;
}

body.home .uijan-laptop-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
  border: 12px solid #0f1418;
  border-bottom-width: 16px;
  border-radius: 20px 20px 12px 12px;
  box-shadow: 0 34px 70px rgba(21, 33, 28, 0.18);
}

body.home .uijan-laptop-screen::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.18) inset;
  z-index: 3;
}

body.home .uijan-laptop-screen::after,
body.home .uijan-phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 42%, rgba(255,255,255,0.08) 100%);
  z-index: 2;
}

body.home .uijan-laptop-base {
  position: relative;
  width: 108%;
  height: 18px;
  margin-left: -4%;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(180deg, #e2e8e5 0%, #b0bab6 55%, #8b9692 100%);
  box-shadow: 0 10px 14px rgba(18, 28, 25, 0.1);
}

body.home .uijan-laptop-base::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 18%;
  height: 3px;
  margin-left: -9%;
  border-radius: 999px;
  background: rgba(110, 122, 117, 0.35);
}

body.home .uijan-phone {
  width: 168px;
  position: relative;
  z-index: 4;
  margin-left: -56px;
  margin-bottom: -16px;
}

body.home .uijan-phone-screen {
  position: relative;
  aspect-ratio: 9 / 19.2;
  overflow: hidden;
  background: #fff;
  border: 10px solid #101417;
  border-radius: 34px;
  box-shadow: 0 24px 46px rgba(18, 28, 25, 0.18);
}

body.home .uijan-phone-screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 38%;
  height: 16px;
  margin-left: -19%;
  border-radius: 999px;
  background: #0d1114;
  z-index: 3;
}

body.home .uijan-app-preview {
  width: 100%;
  height: 100%;
  color: #24312d;
  background: linear-gradient(180deg, #fbfcfb 0%, #f5f8f6 100%);
  font-family: "Noto Sans JP", sans-serif;
}

body.home .uijan-app-preview--pc {
  display: grid;
  grid-template-columns: 24% 1fr;
}

body.home .uijan-app-preview--pc aside {
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #f3f7f5 0%, #edf3ef 100%);
  border-right: 1px solid #e0e8e3;
  font-size: 10px;
}

body.home .uijan-app-preview--pc aside strong {
  margin-bottom: 8px;
  letter-spacing: 0.18em;
  font-size: 11px;
}

body.home .uijan-app-preview--pc aside span {
  padding: 8px 10px;
  border-radius: 8px;
  color: #5f6e68;
}

body.home .uijan-app-preview--pc aside .is-active {
  background: var(--uijan-green);
}

body.home .uijan-preview-main {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.home .uijan-preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #65756f;
  font-size: 10px;
}

body.home .uijan-preview-topbar > span {
  font-weight: 700;
  color: #30403a;
}

body.home .uijan-preview-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body.home .uijan-preview-title small {
  display: block;
  margin-bottom: 4px;
  color: #7a8984;
  font-size: 10px;
}

body.home .uijan-preview-title b {
  display: block;
  font-size: 26px;
  line-height: 1.2;
}

body.home .uijan-preview-title > em {
  flex: 0 0 auto;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--uijan-green);
  font-size: 10px;
  font-style: normal;
}

body.home .uijan-preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

body.home .uijan-preview-stats span {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #e4ebe7;
  border-radius: 14px;
  background: #fff;
}

body.home .uijan-preview-stats small,
body.home .uijan-preview-stats em {
  color: #73817b;
  font-size: 10px;
  font-style: normal;
}

body.home .uijan-preview-stats strong {
  font-size: 24px;
  line-height: 1;
}

body.home .uijan-preview-panels {
  display: grid;
  grid-template-columns: 1.3fr .95fr;
  gap: 14px;
}

body.home .uijan-preview-panels section {
  padding: 16px;
  border: 1px solid #e4ebe7;
  border-radius: 16px;
  background: #fff;
}

body.home .uijan-preview-panels section > b {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
}

body.home .uijan-preview-row {
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eef3f0;
  font-size: 11px;
}

body.home .uijan-preview-row:first-of-type {
  border-top: 0;
}

body.home .uijan-preview-row > em {
  color: #73817b;
  font-size: 10px;
  font-style: normal;
}

body.home .uijan-preview-row.is-current > em {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--uijan-green);
}

body.home .uijan-preview-action {
  display: block;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--uijan-green);
  font-size: 11px;
  text-align: center;
}

body.home .uijan-preview-action.is-ghost {
  color: #355147;
  background: #eaf4ef;
}

body.home .uijan-preview-panels section small {
  display: block;
  margin-top: 12px;
  color: #788682;
  font-size: 10px;
}

body.home .uijan-app-preview--phone {
  padding: 30px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 10px;
}

body.home .uijan-phone-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

body.home .uijan-phone-appbar strong {
  letter-spacing: 0.14em;
  font-size: 11px;
}

body.home .uijan-phone-appbar i {
  display: inline-flex;
  gap: 4px;
  font-style: normal;
}

body.home .uijan-phone-appbar i span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #95a19d;
}

body.home .uijan-app-preview--phone > small {
  color: #7d8a85;
  font-size: 10px;
}

body.home .uijan-app-preview--phone > b {
  font-size: 18px;
  line-height: 1.25;
}

body.home .uijan-app-preview--phone > em {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--uijan-green);
  font-style: normal;
  font-size: 10px;
}

body.home .uijan-phone-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

body.home .uijan-phone-stats span {
  padding: 10px 10px 11px;
  border-radius: 14px;
  border: 1px solid #e5ece8;
  background: #fff;
}

body.home .uijan-phone-stats small {
  display: block;
  margin-bottom: 5px;
  color: #7e8a86;
  font-size: 9px;
}

body.home .uijan-phone-stats strong {
  font-size: 12px;
}

body.home .uijan-phone-action {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  background: var(--uijan-green);
  text-align: center;
  font-size: 11px;
}

body.home .uijan-phone-list {
  display: grid;
  gap: 8px;
}

body.home .uijan-phone-list span {
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e6ece9;
}

body.home .uijan-phone-list b {
  color: #5c7068;
  font-weight: 500;
}

/* ------------------------------------------------------------
   フッター：TEAM DANGANはフッターのみ / 一般的な外部リンクアイコン
------------------------------------------------------------ */
body.home .footer-meta .uijan-external-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.home .uijan-external-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------
   SP調整
------------------------------------------------------------ */
@media (max-width: 980px) {
  body.home .uijan-tournament .uijan-device-stage {
    justify-content: flex-start;
  }

  body.home .uijan-tournament .uijan-laptop {
    width: min(700px, 88%);
  }

  body.home .uijan-phone {
    width: 148px;
    margin-left: -46px;
  }

  body.home .uijan-preview-title b {
    font-size: 22px;
  }
}

@media (max-width: 680px) {
  :root {
    --uijan-guide-step: 88px;
  }

  body.home .header-inner {
    position: relative;
    width: 100%;
    max-width: none;
    padding-left: 18px;
    padding-right: 6px;
  }

  body.home .hamburger {
    position: absolute;
    top: 5px;
    right: 5px;
    margin: 0;
  }

  body.home .uijan-hero-script {
    transform: translateY(18px) rotate(-4deg);
  }

  body.home .uijan-primary-button,
  body.home .uijan-text-link,
  body.home .uijan-section-more a {
    white-space: normal;
  }

  body.home .uijan-tournament-description {
    margin-top: 22px;
  }

  body.home .uijan-tournament .uijan-device-stage {
    min-height: 280px;
    justify-content: flex-start;
    padding: 0;
  }

  body.home .uijan-tournament .uijan-laptop {
    width: 90%;
  }

  body.home .uijan-phone {
    width: 110px;
    margin-left: -34px;
    margin-bottom: -10px;
  }

  body.home .uijan-laptop-screen {
    border-width: 9px;
    border-bottom-width: 12px;
    border-radius: 14px 14px 9px 9px;
  }

  body.home .uijan-laptop-base {
    height: 13px;
  }

  body.home .uijan-phone-screen {
    border-width: 8px;
    border-radius: 24px;
  }

  body.home .uijan-phone-screen::before {
    top: 8px;
    height: 12px;
  }

  body.home .uijan-preview-main {
    padding: 14px 15px 16px;
    gap: 12px;
  }

  body.home .uijan-preview-title {
    flex-direction: column;
    gap: 8px;
  }

  body.home .uijan-preview-title b {
    font-size: 17px;
  }

  body.home .uijan-preview-title > em {
    margin-top: 0;
  }

  body.home .uijan-preview-stats {
    gap: 8px;
  }

  body.home .uijan-preview-stats span {
    padding: 10px 8px;
  }

  body.home .uijan-preview-stats strong {
    font-size: 17px;
  }

  body.home .uijan-preview-panels {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.home .uijan-app-preview--phone {
    padding: 24px 10px 12px;
    gap: 9px;
  }

  body.home .uijan-app-preview--phone > b {
    font-size: 13px;
  }

  body.home .uijan-phone-stats {
    gap: 6px;
  }

  body.home .uijan-phone-list span {
    padding: 9px 10px;
  }
}

/* ------------------------------------------------------------
   フッター境界：本文との切り替わりを薄い線で明確にする
------------------------------------------------------------ */
body.home .site-footer {
  border-top: 1px solid rgba(0, 107, 79, 0.14);
}

/* ------------------------------------------------------------
   ヘッダー / フッターリンク：CTAと同じ伸びる下線のインタラクション
------------------------------------------------------------ */
@media (min-width: 681px) {
  body.home .global-nav a,
  body.home .footer-nav a,
  body.home .footer-meta a {
    position: relative;
    display: inline-flex;
    align-items: center;
    transform: translateY(0);
    transition: color .28s ease, transform .28s ease;
  }

  body.home .global-nav a::after,
  body.home .footer-nav a::after,
  body.home .footer-meta a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 1px;
    background: var(--uijan-green);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .38s cubic-bezier(.22, .61, .36, 1);
  }

  body.home .global-nav a:hover,
  body.home .footer-nav a:hover,
  body.home .footer-meta a:hover {
    color: var(--uijan-green);
    transform: translateY(-2px);
  }

  body.home .global-nav a:hover::after,
  body.home .footer-nav a:hover::after,
  body.home .footer-meta a:hover::after {
    transform: scaleX(1);
  }
}
