/* ==========================================================================
   site.css — dioden.org / en.dioden.org 共通スタイルシート
   MDBootstrap / jQuery 撤去後の自前実装（v1.0）
   構成: 1.tokens 2.base 3.layout 4.components 5.site custom 6.utilities 7.a11y
   ブレークポイント: 576 / 768(md) / 992(lg) / 1200(xl) / 1400px
   スペーシングスケール: 1=.25rem 2=.5rem 3=1rem 4=1.5rem 5=3rem
   ========================================================================== */

/* ===== 1. tokens ===== */
:root {
  --accent: #27acd9;
  --accent-underline: #1aa6c6;
  --link: #1266f1;
  --link-hover: #0f57cd;
  --primary: #1266f1;
  --primary-hover: #0f57cd;
  --secondary-btn: #b23cfd;
  --success: #00b74a;
  --bg: #e4e5e9;
  --card-bg: rgb(232, 227, 222);
  --dark: #262626;
  --light: #fbfbfb;
  --text: #4f4f4f;
  --gradient: linear-gradient(to right, #667eea, #764ba2);
  --shadow-btn: 0 2px 5px 0 rgba(0, 0, 0, 0.2), 0 2px 10px 0 rgba(0, 0, 0, 0.1);
  --shadow-btn-hover: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.1);
  --shadow-navbar: 0 4px 12px 0 rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-dropdown: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===== 2. base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Webフォント読込時のレイアウトシフト(CLS)抑制:
   代替フォントの行ボックス寸法を BIZ UDP 実測値(ascent 88% / descent 12% / line-gap 0)に一致させる */
@font-face {
  font-family: "BIZ UDPMincho Fallback";
  src: local("Hiragino Mincho ProN"), local("HiraMinProN-W3"), local("Yu Mincho"), local("YuMincho"), local("Noto Serif CJK JP");
  ascent-override: 88%;
  descent-override: 12%;
  line-gap-override: 0%;
  size-adjust: 91.7%; /* 字送り幅をBIZ UDPMinchoに一致させる(実測比) */
}
@font-face {
  font-family: "BIZ UDPGothic Fallback";
  src: local("Hiragino Kaku Gothic ProN"), local("HiraKakuProN-W3"), local("Yu Gothic"), local("YuGothic"), local("Noto Sans CJK JP");
  ascent-override: 88%;
  descent-override: 12%;
  line-gap-override: 0%;
  size-adjust: 94%; /* 字送り幅をBIZ UDPGothicに一致させる(実測比) */
}

body {
  margin: 0;
  font-family: "BIZ UDPMincho", "BIZ UDPMincho Fallback", serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  word-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

main {
  background-color: var(--bg);
  padding-bottom: 5px;
}

section {
  margin: 50px 10px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h4, .h5, .h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: "BIZ UDPGothic", "BIZ UDPGothic Fallback", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* 見出しサイズ（1200px未満はレスポンシブ縮小） */
h1, .h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + 0.9vw); }
h3 { font-size: calc(1.3rem + 0.6vw); }
h4, .h4 { font-size: calc(1.275rem + 0.3vw); }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1rem; }
@media (min-width: 1200px) {
  h1, .h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  h4, .h4 { font-size: 1.5rem; }
}

/* サイト特有の見出し装飾（シアンの下線） */
h1:not(.no-h1), .r-h1,
h2,
h3,
h4 {
  border: 0 solid;
  border-bottom: 3px solid var(--accent-underline);
  padding: 5px 5px;
  display: inline-block;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--link);
  text-decoration: underline;
}
a:hover {
  color: var(--link-hover);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 2rem;
}
ul ul, ul ol, ol ul, ol ol {
  margin-bottom: 0;
}

hr {
  height: 1px;
  margin: 1rem 0;
  color: inherit;
  background-color: currentColor;
  border: 0;
  opacity: 0.25;
}

small { font-size: 0.875em; }
.small { font-size: 14px; }

sub {
  position: relative;
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
  bottom: -0.25em;
}

blockquote {
  position: relative;
  padding: 5px 15px 10px 15px;
  box-sizing: border-box;
  background: #f5f5f5;
  color: #777777;
  margin: 20px 0px;
  border-left: 6px solid #a0b0bd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.14);
}

/* ===== 3. layout ===== */
.l-container {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}
.l-container-fluid {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px)  { .l-container { max-width: 540px; } }
@media (min-width: 768px)  { .l-container { max-width: 720px; } }
@media (min-width: 992px)  { .l-container { max-width: 960px; } }
@media (min-width: 1200px) { .l-container { max-width: 1140px; } }
@media (min-width: 1400px) { .l-container { max-width: 1320px; } }

/* 汎用の行/列（旧 row / col-md-* / col-lg-* 相当。768px/992px 以上で分割） */
.l-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}
.l-row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}
.l-row--nogap {
  margin-right: 0;
  margin-left: 0;
}
.l-row--nogap > * {
  padding-right: 0;
  padding-left: 0;
}
@media (min-width: 768px) {
  .l-col-md    { flex: 1 0 0%; width: auto; }
  .l-col-md-4  { flex: 0 0 auto; width: 33.33333333%; }
  .l-col-md-6  { flex: 0 0 auto; width: 50%; }
  .l-col-md-8  { flex: 0 0 auto; width: 66.66666667%; }
  .l-col-md-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 992px) {
  .l-col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .l-col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
  .l-col-lg-6 { flex: 0 0 auto; width: 50%; }
  .l-col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
}

/* ===== 4. components ===== */

/* --- ナビバー --- */
.site-navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 0.5625rem;
  padding-bottom: 0.5625rem;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: var(--shadow-navbar);
}
.site-navbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}
.site-navbar--fixed {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  transition: background-color 0.5s, transform 0.5s;
}
.site-navbar.is-menu-open {
  background-color: rgba(0, 0, 0, 1);
}
.navhide {
  transform: translateY(-100px);
}

.site-brand {
  display: flex;
  align-items: center;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}

/* --- ハンバーガートグル --- */
.site-nav-toggle {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

/* --- メニュー（モバイルは開閉、ブレークポイント以上で常時表示） --- */
.site-nav-menu {
  display: none;
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}
.site-nav-menu.is-open {
  display: block;
}
.site-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.site-nav__item--dropdown {
  position: relative;
}
.site-nav__link {
  display: block;
  padding: 0.5rem 0;
  color: hsla(0, 0%, 100%, 0.55);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}
.site-nav__link:hover,
.site-nav__link:focus {
  color: hsla(0, 0%, 100%, 0.75);
}
.site-nav__link.active {
  color: #fff;
}

/* ドロップダウンのトグル（button要素のリセット + キャレット） */
.site-dropdown-toggle {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.site-dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

/* --- ドロップダウンメニュー --- */
.site-dropdown {
  position: static;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  margin: 0;
  padding: 0;
  text-align: left;
  list-style: none;
  color: #212529;
  font-size: 0.875rem;
  background-color: #fff;
  background-clip: padding-box;
  border: 0;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-dropdown);
}
.site-dropdown.is-open {
  display: block;
}
.site-dropdown__link {
  display: block;
  width: 100%;
  clear: both;
  padding: 0.5rem 1rem;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}
.site-dropdown__link:first-child {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}
.site-dropdown__link:hover,
.site-dropdown__link:focus {
  color: #16181b;
  background-color: #eee;
}
.site-dropdown__divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  opacity: 1;
  background: none;
}

/* メインナビのブレークポイント（標準: 992px / --wide(ホーム): 1200px） */
@media (min-width: 992px) {
  /* 展開時は折り返さず、アイテムを圧縮して1行に収める（旧Bootstrapのnavbar-expandと同挙動） */
  .site-navbar:not(.site-navbar--wide),
  .site-navbar:not(.site-navbar--wide) .site-navbar__inner { flex-wrap: nowrap; }
  .site-navbar:not(.site-navbar--wide) .site-nav-toggle { display: none; }
  .site-navbar:not(.site-navbar--wide) .site-nav-menu {
    display: flex;
    flex-basis: auto;
  }
  .site-navbar:not(.site-navbar--wide) .site-nav { flex-direction: row; }
  .site-navbar:not(.site-navbar--wide) .site-nav__link { padding: 0.5rem; }
  .site-navbar:not(.site-navbar--wide) .site-dropdown-toggle { width: auto; }
  .site-navbar:not(.site-navbar--wide) .site-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
  }
}
@media (min-width: 1200px) {
  .site-navbar--wide,
  .site-navbar--wide .site-navbar__inner { flex-wrap: nowrap; }
  .site-navbar--wide .site-nav-toggle { display: none; }
  .site-navbar--wide .site-nav-menu {
    display: flex;
    flex-basis: auto;
  }
  .site-navbar--wide .site-nav { flex-direction: row; }
  .site-navbar--wide .site-nav__link { padding: 0.5rem; }
  .site-navbar--wide .site-dropdown-toggle { width: auto; }
  .site-navbar--wide .site-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
  }
}

/* --- サブナビ（言語・UI切替バー。旧 nallow） --- */
.site-subnav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 37px;
  width: 100%;
  padding: 0 0.75rem;
  background-color: #ffffff95;
}
.site-subnav__group {
  display: flex;
  align-items: center;
}
.site-subnav__list {
  display: flex;
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.site-subnav__list .site-nav__item--dropdown {
  position: relative;
}
.site-subnav__link {
  display: block;
  padding: 0.5rem;
  color: rgba(0, 0, 0, 0.55);
  text-decoration: none;
}
.site-subnav__link:hover,
.site-subnav__link:focus {
  color: rgba(0, 0, 0, 0.7);
}
.site-subnav .site-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
}
.site-subnav__label {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* --- カード --- */
.site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--card-bg);
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.5rem;
}
.site-card__body {
  flex: 1 1 auto;
  padding: 1.5rem;
}
.site-card__body--line {
  margin: 10px;
  padding: 10px;
  border-top: 2px solid;
  border-bottom: 2px solid;
}
.site-card__title {
  margin-bottom: 0.5rem;
}
.site-card__text:last-child {
  margin-bottom: 0;
}

/* カードを並べるグリッド（旧 .row > .col-md > .card.m-2 の2列パターン） */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  margin: 0 0.5rem;
}
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2.5rem;
  }
}

/* 統計カード（ホームの「数字で見る」。旧 .column.card + row.g-0 + col-md-4/8） */
.stat-card {
  max-width: 540px;
  margin: 1rem;
  padding: 0.5rem 1.5rem 0;
}
.stat-card__layout {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .stat-card__layout {
    grid-template-columns: 1fr 2fr;
  }
}
.stat-card__figure {
  display: flex;
  align-items: center;
}

/* --- ボタン --- */
.site-btn {
  display: inline-block;
  padding: 0.625rem 1.5rem 0.5rem;
  border: 0;
  border-radius: 0.25rem;
  background-color: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  vertical-align: bottom;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--shadow-btn);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out, filter 0.15s ease-in-out;
}
.site-btn:hover,
.site-btn:focus {
  color: var(--text);
  box-shadow: var(--shadow-btn-hover);
}
/* リップル廃止の代替: 押下時のフィードバック */
.site-btn:active {
  box-shadow: var(--shadow-btn);
  filter: brightness(0.93);
}
.site-btn:disabled,
.site-btn.disabled {
  pointer-events: none;
  opacity: 0.65;
}
.site-btn--primary {
  background-color: var(--primary);
  color: #fff;
}
.site-btn--primary:hover,
.site-btn--primary:focus {
  background-color: var(--primary-hover);
  color: #fff;
}
.site-btn--secondary {
  background-color: var(--secondary-btn);
  color: #fff;
}
.site-btn--secondary:hover,
.site-btn--secondary:focus {
  color: #fff;
}
.site-btn--outline {
  padding: 0.5rem 1.375rem 0.375rem;
  border: 0.125rem solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}
.site-btn--outline:hover,
.site-btn--outline:focus {
  color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: none;
}
.site-btn--floating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3125rem;
  height: 2.3125rem;
  padding: 0;
  border-radius: 50%;
}

/* --- フッター --- */
.site-footer {
  background-color: var(--dark);
  color: #fff;
  text-align: center;
}
.site-footer__inner {
  width: 100%;
  padding: 1.5rem 0.75rem;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px)  { .site-footer__inner { max-width: 540px; } }
@media (min-width: 768px)  { .site-footer__inner { max-width: 720px; } }
@media (min-width: 992px)  { .site-footer__inner { max-width: 960px; } }
@media (min-width: 1200px) { .site-footer__inner { max-width: 1140px; } }
@media (min-width: 1400px) { .site-footer__inner { max-width: 1320px; } }
.site-footer__section {
  margin-bottom: 1.5rem;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer__cols {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
  .site-footer__col {
    margin-bottom: 0;
  }
}
.site-footer__col {
  margin-bottom: 1.5rem;
}
.site-footer__copyright {
  text-align: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
}

/* ===== 5. site custom（旧 style.css から移植した自前クラス） ===== */

.flag-css {
  position: relative;
  top: -1px;
  width: 20px;
  border: 0.5px solid rgb(105, 105, 105);
}

.profile_img { width: 100%; }

.datum { white-space: nowrap; }

.toshow {
  transform: translateY(20px);
  transition: all 1s;
  opacity: 0;
}
.show {
  transform: translateY(0);
  opacity: 1;
}
.bigm { margin: 100px 0; }
.nobold { font-weight: normal; }
.normalMincho { font-family: serif; }
.serif { font-family: "BIZ UDPMincho", "BIZ UDPMincho Fallback", serif; }

.nallow { }

.grath { max-width: min(500px, 100%); }

#index_main { background-color: var(--bg); }

@media screen and (min-width: 992px) {
  #twitter,
  #youtube {
    position: relative;
    left: 5px;
    top: 7px;
  }
}

.z-100 {
  z-index: 100 !important;
  position: relative;
}
.z-99 {
  z-index: 99 !important;
  position: relative;
}

.white { color: rgb(179, 251, 255); }
.white:hover {
  color: #ccfefe;
  text-decoration: underline;
}

.companylogo {
  max-width: 100px;
  height: auto;
  margin: 10px 0px 30px 10px;
}

/* 丸ピルCTAボタン（自前デザイン） */
.secondary {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  text-decoration: none;
  width: fit-content;
  padding: 1rem 3rem 1rem 3rem;
  font-weight: bold;
  background: var(--accent);
  color: #fff;
  border-radius: 100vh;
  position: relative;
  transition: 0.5s;
}
.secondary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  position: relative;
  right: 10px;
}
.secondary:hover {
  background: #44c6f2;
  color: #fff;
}

/* ホワイトペーパー用グラデーションボタン（旧style.cssから移植） */
.btng,
.btng:before,
.btng:after {
  box-sizing: inherit;
}
.btng,
a.btng,
button.btng {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 1rem;
  margin: 1rem 0rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}
a.btn-gradient {
  font-weight: normal;
  color: #fff;
  border-radius: 0;
}
a.btn-gradient:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  transition: all 0.5s;
  background-image: linear-gradient(90deg, #ff3cac, #562b7c, #2b86c5);
}
a.btn-gradient span {
  position: relative;
  z-index: 1;
}
a.btn-gradient:hover {
  color: #ffffff;
}
a.btn-gradient:hover:after {
  opacity: 0;
}

#sect1 { margin: 13px 50px 10px; }

#vision {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: min(700px, 95%);
  max-width: 100%;
}
#relational {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: min(700px, 95%);
  width: 100%;
  height: auto;
}
#Notes { font-size: 8px; }
ul.nopoint { margin: 2px; }

/* ホームのニュース一覧（home.js が生成） */
ul.achievements {
  list-style-type: none;
  padding: 0;
}
ul.achievements li {
  border: 1px solid #1e1c1c;
  margin: 10px 0;
  padding: 10px;
}
ul.achievements h5 { margin-bottom: 5px; }
.news_title { font-size: 0.8em; }
.date { font-size: 0.7em; }
.description { font-size: 0.8em; }

.box {
  width: 300px;
  height: 3px;
  margin: auto;
  background: linear-gradient(116deg, red, orange, yellow, green, aqua, blue, purple);
}
.txt-black { color: black; }

.center {
  margin-top: 5px;
  text-align: center;
  position: relative;
  left: 50%;
  transform: translate(-50%, 0);
}
.click { color: rgb(65, 166, 255); }
.click:hover { color: rgb(52, 136, 210); }

img.logo {
  width: 50px;
  height: auto;
  min-width: 40px;
  margin-right: 10px;
  margin-left: 15px;
}

/* 起業家ページの固定背景 */
#entre_image {
  background-color: black;
  background-image: radial-gradient(circle, rgba(2, 0, 36, 0.7) 0%, rgba(43, 43, 43, 0.7) 100%),
    url(../images/top_neuroentre.webp);
  background-position: center;
  background-size: cover;
  position: fixed;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
}
#entre_screen {
  height: 279px;
  color: white;
  text-align: center;
}

header.image {
  padding-top: 100px;
  color: rgb(255, 255, 255);
}
/* ホームの固定背景 */
#headerimage {
  background: radial-gradient(circle, rgba(2, 0, 36, 0.7) 0%, rgba(43, 43, 43, 0.7) 100%),
    url(../images/top_sc.webp);
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: black;
  position: fixed;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
}
header:not(.image) {
  background: var(--gradient);
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  left: -15px;
  color: whitesmoke;
  font-size: 22px;
  width: auto;
  max-width: 400px;
}
.brand:hover { color: rgb(210, 210, 210) !important; }

/* ハンバーガーの3本バー（×への変形アニメーション付き） */
.animatedbar,
.animatedbar span {
  display: inline-block;
  transition: all 0.4s;
  box-sizing: border-box;
}
.animatedbar {
  position: relative;
  width: 20px;
  height: 19px;
  background: none;
  border: none;
  appearance: none;
  cursor: pointer;
}
.animatedbar span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
}
.animatedbar span:nth-of-type(1) { top: 0px; }
.animatedbar span:nth-of-type(2) { top: 8px; }
.animatedbar span:nth-of-type(3) { bottom: 0px; }
.animatedbar.active span:nth-of-type(1) { transform: translateY(8px) rotate(-45deg); }
.animatedbar.active span:nth-of-type(2) { opacity: 0; }
.animatedbar.active span:nth-of-type(3) { transform: translateY(-8px) rotate(45deg); }

.datacontainer,
.aicontainer {
  display: flex;
  align-items: center;
}
.number {
  font-size: 1.6em;
  font-family: serif;
  font-weight: bold;
}

.faceImage {
  max-width: 250px;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.namecontainer {
  display: flex;
  flex-direction: column;
}
.name {
  font-size: 0.9em;
  margin-bottom: 0;
  line-height: 1.3;
}

#have,
#donthave {
  width: 120px;
}
.whitelink {
  cursor: pointer;
  color: #fff;
}
.whitelink:hover { color: rgba(255, 255, 255, 0.766); }
.inline-block { display: inline-block; }

#afterdata {
  position: relative;
  top: 7px;
  left: 9px;
  bottom: 7px;
  font-size: 15px;
  color: rgb(143, 143, 143);
}

.rainbow-border {
  border-image: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet) 1 / 1 / 0;
}
.iblock { display: inline-block; }

@font-face {
  font-family: "OpenDyslexic-Regular";
  src: url("/fonts/OpenDyslexic-Regular.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OpenDyslexic-Bold";
  src: url("/fonts/OpenDyslexic-Bold.otf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
.opendy {
  font-family: "OpenDyslexic-Regular", "BIZ UDGothic", Arial, sans-serif !important;
}
.opendy strong,
.opendy b {
  font-family: "OpenDyslexic-Bold", Arial, sans-serif;
}
#dysactive { display: none; }

.nounderline { border-bottom: 0px !important; }

/* ===== 6. utilities（使用箇所のある最小限のみ） ===== */
.u-m-1 { margin: 0.25rem; }
.u-m-2 { margin: 0.5rem; }
.u-m-3 { margin: 1rem; }
.u-m-4 { margin: 1.5rem; }
.u-mx-3 { margin-right: 1rem; margin-left: 1rem; }
.u-mx-4 { margin-right: 1.5rem; margin-left: 1.5rem; }
.u-my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.u-my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.u-my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.u-my-5 { margin-top: 3rem; margin-bottom: 3rem; }
.u-mt-0 { margin-top: 0; }
.u-mt-2 { margin-top: 0.5rem; }
.u-mt-3 { margin-top: 1rem; }
.u-mt-4 { margin-top: 1.5rem; }
.u-mt-5 { margin-top: 3rem; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-2 { margin-bottom: 0.5rem; }
.u-mb-3 { margin-bottom: 1rem; }
.u-mb-4 { margin-bottom: 1.5rem; }
.u-mb-5 { margin-bottom: 3rem; }
.u-ms-1 { margin-left: 0.25rem; }
.u-ms-2 { margin-left: 0.5rem; }
.u-ms-3 { margin-left: 1rem; }
.u-p-2 { padding: 0.5rem; }
.u-p-3 { padding: 1rem; }
.u-p-4 { padding: 1.5rem; }
.u-px-1 { padding-right: 0.25rem; padding-left: 0.25rem; }
.u-px-3 { padding-right: 1rem; padding-left: 1rem; }
.u-px-4 { padding-right: 1.5rem; padding-left: 1.5rem; }
.u-py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.u-py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.u-py-5 { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 768px) {
  .u-px-md-4 { padding-right: 1.5rem; padding-left: 1.5rem; }
}
.u-pt-2 { padding-top: 0.5rem; }
.u-pt-3 { padding-top: 1rem; }
.u-pt-4 { padding-top: 1.5rem; }

.u-text-center { text-align: center; }
.u-text-uppercase { text-transform: uppercase; }
.u-text-white { color: #fff; }
.u-text-success { color: var(--success); }
.u-bg-dark { background-color: var(--dark); }
.u-bg-light { background-color: var(--light); }
.u-flex { display: flex; }
.u-flex-wrap { flex-wrap: wrap; }
.u-justify-center { justify-content: center; }
.u-list-unstyled {
  padding-left: 0;
  list-style: none;
}
.u-clearfix::after {
  display: block;
  clear: both;
  content: "";
}

/* ===== 7. a11y ===== */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
label:focus-visible {
  outline: 3px solid #9dc0ff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
