:root {
  color-scheme: light;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  --bg: #f6fbff;
  --card-bg: rgba(255, 255, 255, 0.8);
  --glass: rgba(255, 255, 255, 0.2);
  --primary: #1b5fbf;
  --primary-dark: #0f356b;
  --accent: #47d5ff;
  --text: #0d1b2a;
  --subtle: #4f6f8d;
  --border: rgba(255, 255, 255, 0.4);
  --header-height: 72px;
  --header-offset: 72px;
  --header-bg: rgba(246, 251, 255, 0.88);
  /* スマホ時の左右余白（端まで詰まらないように多めに） */
  --mobile-gutter: max(1.5rem, env(safe-area-inset-left));
  --mobile-gutter-right: max(1.5rem, env(safe-area-inset-right));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f6fbff 0%, #eef4fb 40%, #ffffff 100%);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  /* モバイル：下余白は .newsletter と .site-footer 側で確保し、白い隙間を出さない */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* スマホファースト：デフォルトはモバイル */
a {
  text-decoration: none;
}

.container {
  width: 100%;
  padding-left: var(--mobile-gutter);
  padding-right: var(--mobile-gutter-right);
  margin: 0 auto;
}

section {
  padding: 3rem 0;
  position: relative;
  z-index: 1;
}

.topics {
  padding-bottom: 8rem;
}

[data-parallax-section] {
  will-change: transform;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  position: relative;
  z-index: 2;
}

/* モバイル：パララックス無効（パフォーマンス・min-width:601px で有効化） */
@media (max-width: 600px) {
  [data-parallax-card],
  [data-parallax-section] {
    will-change: auto;
    transform: none !important;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

/* スマホ：ハンバーガーメニュー展開時の背面オーバーレイ（ヘッダー・メニューより下に表示） */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.4);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body:has(.main-nav.is-open) .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

.site-header.is-hidden {
  transform: translateY(calc(-1 * var(--header-height, 70px)));
  box-shadow: none;
}

/* モバイル：タブ・下ナビは小画面のみ表示（後で min-width で非表示に） */
.mobile-tabs-wrapper {
  display: block;
}

.mobile-quick-tabs {
  display: flex;
}

.mobile-tabs-label {
  display: block;
}

.mobile-bottom-nav {
  display: flex;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem var(--mobile-gutter-right) 0.75rem var(--mobile-gutter);
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
}

.branding {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  padding-right: 3.5rem; /* ハンバーガーボタン用 */
}

.branding-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.logo-orb {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 30px rgba(27, 95, 191, 0.3);
  margin-left: clamp(0.5rem, 2vw, 1rem);
  position: relative;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: amoeba 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: border-radius, transform;
}

@keyframes amoeba {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(0deg) scale(1);
  }
  12.5% {
    border-radius: 70% 30% 50% 50% / 70% 50% 50% 30%;
    transform: rotate(45deg) scale(1.05);
  }
  25% {
    border-radius: 30% 70% 60% 40% / 30% 60% 40% 70%;
    transform: rotate(90deg) scale(0.95);
  }
  37.5% {
    border-radius: 50% 50% 40% 60% / 50% 40% 60% 50%;
    transform: rotate(135deg) scale(1.08);
  }
  50% {
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    transform: rotate(180deg) scale(1);
  }
  62.5% {
    border-radius: 65% 35% 45% 55% / 65% 45% 55% 35%;
    transform: rotate(225deg) scale(0.98);
  }
  75% {
    border-radius: 35% 65% 50% 50% / 35% 50% 50% 65%;
    transform: rotate(270deg) scale(1.03);
  }
  87.5% {
    border-radius: 55% 45% 60% 40% / 55% 60% 40% 45%;
    transform: rotate(315deg) scale(0.97);
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(360deg) scale(1);
  }
}

.org-name {
  margin: 0;
}

.org-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--subtle);
}

/* モバイル：ナビはドロワー（後で min-width:901px で横並びに） */
.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.98) 0%, rgba(236, 246, 255, 0.95) 100%);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4rem 2.5rem 2.5rem;
  gap: 0;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  border-left: 1px solid rgba(15, 53, 107, 0.08);
}

.main-nav.is-open {
  right: 0;
}

.nav-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.25rem;
}

/* 会員専用ナビ：ログイン時のみ表示 */
.nav-link-member {
  display: none;
}

body.article-logged-in .nav-link-member {
  display: flex;
}

/* スマホ：利用規約・個人情報保護方針・お問い合わせをハンバーガーメニュー内の下の方に小さく表示 */
.nav-links-footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  margin-top: auto;
  padding-top: 1rem;
}

.nav-links-footer a {
  font-size: 0.85rem;
  padding: 0.6rem 0;
  min-height: 40px;
  color: var(--subtle);
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  width: 100%;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(15, 53, 107, 0.08);
  font-size: 1.05rem;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.login-btn,
.primary,
.secondary {
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
  touch-action: manipulation;
}

.desktop-login {
  display: none;
}

.nav-mobile-head {
  display: block;
  width: 100%;
  margin-bottom: 1.5rem;
}

.nav-mobile-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-mobile-sub {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: var(--subtle);
}

.nav-mobile-login {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--text);
  color: white;
}

.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 15px 35px rgba(27, 95, 191, 0.35);
}

.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(27, 95, 191, 0.4);
}

.primary:hover,
.secondary:hover,
.login-btn:hover {
  transform: translateY(-2px);
}

/* 会員メニュー（ログイン時表示・ホバーでドロップダウン） */
.member-menu {
  position: relative;
}

.member-menu-desktop {
  display: none;
}

.member-menu-mobile {
  display: none;
}

.member-menu-nav {
  display: none;
  width: 100%;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 0;
}

.member-menu-nav-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--subtle);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.member-menu-nav a,
.member-menu-nav button {
  display: block;
  width: 100%;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  text-align: left;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.member-menu-nav .member-logout {
  color: var(--subtle);
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.member-menu-nav .member-logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.member-menu-nav .member-logout-icon svg {
  width: 1.15em;
  height: 1.15em;
  display: block;
}

body.article-logged-in .login-btn {
  display: none !important;
}

body.article-logged-in .member-menu-mobile {
  display: block;
  width: 100%;
}

/* モバイルのみ：ログイン時はハンバーガー内に会員メニューを表示（601px以上では上書きで非表示） */
body.article-logged-in .member-menu-nav {
  display: block;
}

.member-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  background: var(--text);
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}

.header-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-btn-icon svg {
  width: 1.15em;
  height: 1.15em;
}

.member-menu-trigger:hover {
  transform: translateY(-2px);
}

.member-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.35rem;
  min-width: 240px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 43, 91, 0.15);
  border: 1px solid rgba(0, 43, 91, 0.08);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.member-menu:hover .member-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.member-menu-dropdown a,
.member-menu-dropdown button {
  display: block;
  width: 100%;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  text-align: left;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.member-menu-dropdown a:hover,
.member-menu-dropdown button:hover {
  background: rgba(0, 43, 91, 0.06);
}

.member-menu-dropdown .member-logout {
  color: var(--subtle);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.member-menu-dropdown .member-logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.member-menu-dropdown .member-logout-icon svg {
  width: 1.15em;
  height: 1.15em;
  display: block;
}

/* モバイル：ヒーローは1カラム・コンパクト（後で min-width で拡張） */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 2rem;
  background: radial-gradient(circle at 30% 20%, rgba(71, 213, 255, 0.4), transparent 50%),
    radial-gradient(circle at 70% 0%, rgba(27, 95, 191, 0.35), transparent 55%),
    linear-gradient(180deg, #eaf5ff 0%, #f8fbff 100%);
  min-height: auto;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
  will-change: transform;
  transform-origin: center center;
}

.hero-bg--two {
  background: radial-gradient(circle at 70% 30%, rgba(71, 213, 255, 0.5), transparent 60%);
}

.hero .container {
  width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  z-index: 1;
}

.hero-lede {
  max-width: 520px;
}

@media (min-width: 900px) and (max-width: 1250px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 1.5rem;
  }

  .hero-lede {
    max-width: 100%;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0;
  }

  .hero-lede .hero-eyebrow {
    margin-bottom: 0;
    flex-shrink: 0;
    font-size: 0.85rem;
  }

  .hero-lede h1 {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
  }

  .hero-lede .hero-description {
    margin-bottom: 0;
    flex: 1 1 100%;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.5rem;
  }

  .hero-card {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-feed {
    grid-column: 2;
    grid-row: 2;
  }
}

.hero-eyebrow {
  letter-spacing: 0.2em;
  color: var(--primary-dark);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.hero h1 .char {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-description {
  font-size: 1rem;
  color: var(--subtle);
  margin-bottom: 2rem;
}

.hero-card {
  backdrop-filter: blur(16px);
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 25px 60px rgba(15, 53, 107, 0.15);
  position: relative;
  z-index: 2;
  will-change: transform;
  transform-origin: center center;
  overflow: hidden;
}

.hero-card-thumb {
  aspect-ratio: 16 / 10;
  max-height: 200px;
  width: calc(100% + 2.5rem);
  margin: -1.25rem 0 1rem -1.25rem;
  overflow: hidden;
  background: rgba(0, 43, 91, 0.06);
}

.hero-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card-label {
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.hero-card h2 {
  margin-top: 0.4rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.hero-card-media {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--subtle);
}

.hero-card-badge {
  background: rgba(27, 95, 191, 0.1);
  color: var(--primary);
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.hero-card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--subtle);
  margin: 1rem 0;
}

.hero-feed {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 15px 40px rgba(11, 38, 78, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  z-index: 2;
  will-change: transform;
  transform-origin: center center;
}

.hero-feed-label {
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--primary-dark);
  text-transform: uppercase;
  margin: 0;
}

.hero-feed article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 53, 107, 0.08);
}

.hero-feed article:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-feed-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.hero-feed h3 {
  margin: 0;
  font-size: 0.95rem;
}

.hero-feed p {
  margin: 0.2rem 0 0;
  color: var(--subtle);
  font-size: 0.85rem;
}

.hero-feed span {
  font-size: 0.85rem;
  color: var(--subtle);
  align-self: flex-start;
}

.hero-feed-btn {
  margin-top: 0.5rem;
  align-self: center;
  justify-self: center;
}

/* 詳細リンク（記事を読む・続き読む・ロードマップを見る 等） */
.text-link,
a.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 95, 191, 0.35);
  background: rgba(27, 95, 191, 0.06);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(27, 95, 191, 0.06);
}

.text-link:hover,
a.text-link:hover {
  background: rgba(27, 95, 191, 0.12);
  border-color: rgba(27, 95, 191, 0.5);
  box-shadow: 0 4px 12px rgba(27, 95, 191, 0.18);
  transform: translateY(-1px);
}

.text-link:focus-visible,
a.text-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 矢印のホバー時の動き */
.text-link span[aria-hidden="true"],
a.text-link span[aria-hidden="true"] {
  transition: transform 0.25s ease;
}

.text-link:hover span[aria-hidden="true"],
a.text-link:hover span[aria-hidden="true"] {
  transform: translateX(3px);
}

.breaking {
  padding: 1rem var(--mobile-gutter-right) 1rem var(--mobile-gutter);
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: -1rem;
}

.breaking-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 1600px;
  margin: 0 auto;
}

.breaking-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  color: white;
  background: var(--primary);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.breaking-label-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.breaking-label-icon svg {
  width: 1.1em;
  height: 1.1em;
}

.breaking-ticker {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.breaking-ticker p {
  animation: ticker 20s linear infinite;
  margin: 0;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section-heading {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
}

/* 記事・固定ページのメイン表示領域（幅広）※個別ページ・記事ページ共通 */
.content-wide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--mobile-gutter);
  padding-right: var(--mobile-gutter-right);
}

/* 固定ページ・記事の縦余白のみ（インラインで padding:4rem 0 にすると左右が0になるためCSSで指定） */
.page-content,
main .container.content-wide,
main article.container.content-wide {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

/* 個別記事：記事先頭のアイキャッチ画像（大きく表示） */
.entry-eyecatch {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 43, 91, 0.06);
}

.entry-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 個別記事：ログイン前は冒頭のみ表示＋グラデーションでホワイトアウト＋ログイン促し */
.article-body-wrap {
  position: relative;
}

.article-body-card .article-body {
  padding-left: 2rem;
  padding-right: 2rem;
}

.article-body-card .article-body p {
  font-size: 1rem;
}

/* ログイン前：記事本文の高さを制限 */
body:not(.article-logged-in) .article-body-wrap .article-body {
  max-height: 320px;
  overflow: hidden;
}

/* グラデーションは使用しない（メッセージが隠れないように） */
.article-gate-overlay {
  display: none;
}

.article-gate-actions {
  text-align: center;
  padding: 1rem 2rem 2.5rem;
  min-width: 0;
  box-sizing: border-box;
}

.article-gate-message {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--subtle);
}

.article-gate-actions .primary {
  margin-top: 0;
}


/* ログイン後：全文表示、ゲート非表示 */
body.article-logged-in .article-body-wrap .article-body {
  max-height: none;
  overflow: visible;
}

body.article-logged-in .article-gate-actions {
  display: none;
}

/* ログアウトは会員メニューのドロップダウンで行うため、記事内の「ログアウト（デモ用）」は常に非表示 */
.article-logout-wrap {
  display: none !important;
}

/* 記事ページ：トップへ戻る（UI、記事とは切り離し） */
.article-back-nav {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.article-back-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--subtle);
}

.article-back-nav a::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 0.35em solid transparent;
  border-bottom: 0.35em solid transparent;
  border-right: 0.5em solid currentColor;
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.topics-grid,
.categories-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.topic-card,
.category-card,
.feature-card,
.timeline-item {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 15px 30px rgba(0, 43, 91, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

/* サムネイル画像（カード上部）※カードのパディング分だけ幅を足して端まで表示 */
.topic-card-thumb,
.category-card-thumb,
.feature-card-thumb,
.timeline-item-thumb {
  aspect-ratio: 16 / 10;
  max-height: 200px;
  width: calc(100% + 3rem);
  margin: -1.5rem 0 1rem -1.5rem;
  overflow: hidden;
  background: rgba(0, 43, 91, 0.06);
}

.topic-card-thumb img,
.category-card-thumb img,
.feature-card-thumb img,
.timeline-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline-item-thumb {
  background: rgba(255, 255, 255, 0.06);
}

.topic-meta {
  display: flex;
  justify-content: space-between;
  color: var(--subtle);
  font-size: 0.9rem;
}

.tag {
  background: rgba(27, 95, 191, 0.1);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.tag--secondary {
  color: #1b7fbf;
  background: rgba(71, 213, 255, 0.15);
}

.tag--accent {
  color: #1b5fbf;
  background: rgba(27, 95, 191, 0.08);
}

a.category-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card .stat {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.internal-medicine-day {
  background: linear-gradient(180deg, #f8fbff 0%, #eaf5ff 100%);
  padding: 2.5rem var(--mobile-gutter-right) 2.5rem var(--mobile-gutter);
  text-align: center;
}

.internal-medicine-day-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.internal-medicine-day-logo {
  max-width: min(300px, 75vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(27, 95, 191, 0.15));
}

.internal-medicine-day-text {
  font-size: clamp(1.25rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
  letter-spacing: 0.05em;
}

.categories {
  background: linear-gradient(180deg, #e2f1ff 0%, #f8fbff 80%);
  position: relative;
  z-index: 1;
  padding-bottom: clamp(8rem, 20vw, 14rem);
}

.features {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 8rem;
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.feature-carousel {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.timeline {
  background: var(--text);
  color: white;
  padding: clamp(3rem, 6vw, 5rem) var(--mobile-gutter-right) clamp(3rem, 6vw, 5rem) var(--mobile-gutter);
  padding-bottom: 8rem;
}

.timeline .section-heading {
  color: white;
}

.timeline-heading-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 0.45em;
}

.timeline-heading-icon svg {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}

.timeline-list {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

.timeline-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
}

.timeline-date {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.exclusive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.exclusive-heading-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 0.45em;
}

.exclusive-heading-icon svg {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}

.exclusive-content ul {
  padding-left: 1.2rem;
}

.exclusive-content .primary {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.exclusive-visual {
  min-height: 320px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(27, 95, 191, 0.9), rgba(71, 213, 255, 0.8));
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.glass-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  color: var(--primary-dark);
}

.newsletter {
  background: var(--text);
  color: white;
  padding-left: var(--mobile-gutter);
  padding-right: var(--mobile-gutter-right);
  /* スマホ：下ナビ分をニュースレターの下余白に含め、フッターとの隙間を出さない */
  padding-bottom: calc(2rem + 80px + env(safe-area-inset-bottom, 0px));
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.newsletter-form {
  display: grid;
  gap: 1rem;
}

.newsletter-form button {
  justify-self: center;
}

.newsletter-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  gap: 0.5rem;
}

.newsletter-form input,
.newsletter-form select {
  border-radius: 12px;
  border: none;
  padding: 0.9rem;
  font-size: 1rem;
}

.site-footer {
  background: var(--text);
  color: white;
  /* メールアップデートとフッター本体の間の余白を確保 */
  padding: clamp(4rem, 8vw, 6rem) var(--mobile-gutter-right) calc(clamp(3rem, 6vw, 5rem) + 80px + env(safe-area-inset-bottom, 0px)) var(--mobile-gutter);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
}

/* スマホ：ロゴ上・住所等は下に縦並び */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  text-align: center;
}

.footer-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-org-info {
  line-height: 1.7;
}

.footer-org-info p {
  margin: 0 0 0.25rem;
}

.footer-org-info p:last-child {
  margin-bottom: 0;
}

/* 公式LINE・Facebook：目立たせる（アイコン大・余白多め） */
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 0.5rem;
}

.footer-social a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.15s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.03);
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-social-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

/* 下段：利用規約・個人情報保護方針・お問い合わせ＋コピーライト（中央寄せ・控えめ） */
.footer-bottom {
  width: 100%;
  flex-basis: 100%;
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 1rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.75rem;
}

.footer-links a:hover {
  color: white;
}

/* 公式LINE・Facebook それぞれのアイコン色 */
.footer-social-link--line .footer-social-icon {
  color: #00B900;
}
.footer-social-link--line .footer-social-icon svg {
  fill: #00B900;
}
.footer-social-link--facebook .footer-social-icon {
  color: #1877F2;
}
.footer-social-link--facebook .footer-social-icon svg {
  fill: #1877F2;
}

.footer-bottom .copyright {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mouse-orb {
  position: fixed;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 213, 255, 0.4), transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 100;
  transform: translate(-50%, -50%);
}

@media (hover: none) {
  .mouse-orb {
    display: none;
  }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  touch-action: manipulation;
  margin-left: auto;
  position: absolute;
  right: var(--mobile-gutter-right);
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* モバイル：下ナビ・クイックタブ（min-width:601px で非表示） */
/* ヘッダー内に配置し、ヘッダーと一体で表示・非表示（sticky はヘッダーに委譲） */
/* 背景は親の .site-header に任せ、透明度の二重がけで色がずれないようにする */
.mobile-tabs-wrapper {
  z-index: 1;
  padding: 0 var(--mobile-gutter-right) 1rem var(--mobile-gutter);
  background: transparent;
  box-shadow: 0 1px 0 var(--border);
}

.mobile-tabs-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--subtle);
  margin: 0 0 0.5rem;
}

.mobile-quick-tabs {
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.mobile-quick-tabs a {
  flex: 0 0 auto;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: rgba(27, 95, 191, 0.08);
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  scroll-snap-align: start;
  border: 1px solid rgba(27, 95, 191, 0.12);
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(15, 53, 107, 0.08);
  padding: 0.25rem var(--mobile-gutter-right) calc(0.5rem + env(safe-area-inset-bottom, 0)) var(--mobile-gutter);
  z-index: 50;
  justify-content: space-around;
}

.mobile-bottom-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0;
  border-radius: 12px;
}

.mobile-bottom-nav a:focus,
.mobile-bottom-nav a:hover {
  color: var(--primary);
  background: rgba(27, 95, 191, 0.08);
}

.mobile-bottom-nav .nav-label {
  display: block;
}

/* モバイル：テキストリンク・カードタイポ（min-width で上書き） */
.topic-card h3,
.category-card h3,
.feature-card h3 {
  font-size: 1.1rem;
  line-height: 1.4;
}

.topic-card p,
.category-card p,
.feature-card p {
  font-size: 0.9rem;
}

/* カード内の詳細リンク（記事を読む・続き読む・ロードマップを見る 等）を中央寄せ */
.topic-card .text-link,
.topic-card a.text-link,
.feature-card .text-link,
.feature-card a.text-link,
.hero-card .text-link,
.hero-card a.text-link,
.glass-card .text-link,
.glass-card a.text-link,
.hero-feed .text-link,
.hero-feed a.text-link {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin-top: 1.25rem;
  margin-left: auto;
  margin-right: auto;
}

/* 会員専用トップ：コンテンツカード */
.member-content-card .member-card-title {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 1rem 0 0.5rem;
}

.member-content-card .member-card-desc {
  font-size: 0.9rem;
  color: var(--subtle);
  margin: 0;
  line-height: 1.5;
}

.member-content-card .text-link {
  margin-top: 1rem;
}

.eyebrow {
  font-size: 0.75rem;
}

.section-heading p {
  font-size: 0.9rem;
}

.hero-card p {
  font-size: 0.9rem;
}

.hero-card-media {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.hero-card-foot {
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.newsletter-form input,
.newsletter-form select {
  min-height: 48px;
  font-size: 16px;
}

.logo-orb {
  width: 36px;
  height: 36px;
}

.org-name {
  font-size: 0.95rem;
}

.org-tagline {
  font-size: 0.8rem;
}

@media (min-width: 601px) {
  body {
    background: var(--bg);
  }

  .newsletter {
    padding-bottom: clamp(2rem, 4vw, 3rem);
  }

  .container {
    padding-left: clamp(1.5rem, 4vw, 4rem);
    padding-right: clamp(1.5rem, 4vw, 4rem);
  }

  section {
    padding: clamp(4rem, 8vw, 6rem) 0;
  }

  .topics {
    padding-bottom: clamp(10rem, 20vw, 14rem);
  }

  .features {
    padding-bottom: clamp(10rem, 20vw, 14rem);
  }

  .content-wide {
    padding-left: clamp(1.5rem, 4vw, 4rem);
    padding-right: clamp(1.5rem, 4vw, 4rem);
  }

  .entry-eyecatch {
    max-height: 520px;
    margin-top: 2rem;
    border-radius: 16px;
  }

  .mobile-tabs-wrapper,
  .mobile-tabs-label,
  .mobile-quick-tabs,
  .mobile-bottom-nav {
    display: none !important;
  }

  /* PC：ハンバーガーメニュー内の利用規約等は非表示（フッターに表示） */
  .nav {
    padding: 1rem clamp(1.5rem, 4vw, 3.5rem);
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .branding {
    padding-right: 0;
    gap: 0.85rem;
  }

  .logo-orb {
    width: 42px;
    height: 42px;
  }

  .org-name {
    font-size: inherit;
  }

  .org-tagline {
    font-size: 0.9rem;
  }

  .breaking {
    padding: 1.5rem clamp(1.5rem, 4vw, 4rem);
  }

  .breaking-inner {
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .breaking-label {
    padding: 0.4rem 1.2rem;
    font-size: inherit;
  }

  .site-footer {
    padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  }

  .footer-brand {
    flex-direction: row;
    align-items: center;
    width: auto;
    text-align: left;
  }

  .internal-medicine-day {
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  }

  .internal-medicine-day-content {
    gap: 1.5rem;
  }

  .internal-medicine-day-logo {
    max-width: min(400px, 80vw);
  }

  .internal-medicine-day-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .timeline {
    padding-left: clamp(1.5rem, 4vw, 4rem);
    padding-right: clamp(1.5rem, 4vw, 4rem);
    padding-bottom: clamp(10rem, 20vw, 14rem);
  }

  .newsletter {
    padding-left: clamp(1.5rem, 4vw, 4rem);
    padding-right: clamp(1.5rem, 4vw, 4rem);
    padding-bottom: 0;
  }

  .topics-grid,
  .categories-grid,
  .feature-carousel {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .exclusive {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(2rem, 5vw, 3rem);
  }

  .newsletter-inner {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
  }

  .topic-card,
  .category-card,
  .feature-card,
  .timeline-item {
    padding: 1.8rem;
    border-radius: 20px;
  }

  /* PC・タブレット：サムネイルをカード幅いっぱいに、余白をカードに合わせる */
  .topic-card-thumb,
  .category-card-thumb,
  .feature-card-thumb,
  .timeline-item-thumb {
    width: calc(100% + 3.6rem);
    margin: -1.8rem 0 1rem -1.8rem;
    max-height: 220px;
  }

  .timeline-item {
    border-radius: 18px;
  }

  /* 委員会トピックス：タブレット以上でカードを横並びに */
  .timeline-list {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .topic-card h3,
  .category-card h3,
  .feature-card h3 {
    font-size: inherit;
  }

  .topic-card p,
  .category-card p,
  .feature-card p {
    font-size: inherit;
  }

  .article-body-card .article-body p {
    font-size: 1.05rem;
  }

  .eyebrow {
    font-size: inherit;
  }

  .section-heading {
    margin-bottom: 2.5rem;
  }

  .section-heading h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
  }

  .section-heading p {
    font-size: inherit;
  }

  .hero {
    padding: clamp(4rem, 8vh, 6rem) 0 clamp(2rem, 5vh, 3rem);
    min-height: calc(100vh - 140px);
  }

  .hero-content {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  .hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .hero-card {
    padding: 2rem;
    border-radius: 24px;
  }

  .hero-card-thumb {
    width: calc(100% + 4rem);
    margin: -2rem 0 1rem -2rem;
    max-height: 240px;
  }

  .hero-card h2 {
    font-size: 1.7rem;
  }

  .hero-card p {
    font-size: inherit;
  }

  .hero-card-media {
    flex-direction: row;
    align-items: center;
  }

  .hero-card-foot {
    flex-direction: row;
    font-size: 0.9rem;
  }

  .hero-feed {
    padding: 2rem;
    border-radius: 24px;
  }

  .hero-feed article {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
  }

  .hero-feed h3 {
    font-size: 1rem;
  }

  .hero-feed p {
    font-size: 0.95rem;
  }

  .hero-feed span {
    align-self: auto;
  }

  [data-parallax-card] {
    will-change: transform;
  }

  [data-parallax-section] {
    will-change: transform;
  }
}

@media (min-width: 901px) {
  .nav-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  /* ヘッダーのドロップダウンが開いているとき、ヘッダー以外を暗くする */
  body.header-dropdown-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: none;
  }

  .branding {
    padding-right: 0;
  }

  .main-nav {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    height: auto;
    min-height: 0;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 1.5rem;
    flex: 1;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border-left: none;
    overflow-y: visible;
  }

  .main-nav.is-open {
    right: auto;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
    flex: 1;
    align-items: center;
    justify-content: flex-end;
  }

  .main-nav a {
    width: auto;
    padding: 0;
    border-bottom: none;
    font-size: clamp(0.875rem, 1.2vw + 0.5rem, 1rem);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .desktop-login {
    display: inline-flex;
  }

  body.article-logged-in .desktop-login {
    display: none !important;
  }

  body.article-logged-in .member-menu.member-menu-desktop {
    display: inline-flex;
  }

  body.article-logged-in .nav-link-member {
    display: inline-flex;
  }

  .member-menu.member-menu-mobile {
    display: none;
  }

  .nav-mobile-head,
  .nav-mobile-login {
    display: none;
  }

  body.article-logged-in .nav-mobile-login {
    display: none;
  }

  /* デスクトップでは会員メニューは右上のドロップダウンのみ。モバイル用 .member-menu-nav は非表示 */
  .member-menu-nav {
    display: none !important;
  }

  .hero-content {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }
}

@media (min-width: 1201px) {
  .nav-links {
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
  }

  .topics-grid,
  .categories-grid,
  .feature-carousel {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 大画面：サムネイル高さを抑える（カードはグリッドセルいっぱいに表示） */
  .topic-card-thumb,
  .category-card-thumb,
  .feature-card-thumb {
    max-height: 200px;
  }

  /* 委員会トピックス：大画面でも横並び・他セクションと同様に幅制限 */
  .timeline-list {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .timeline-item-thumb {
    max-height: 200px;
  }

  .branding .org-tagline {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-parallax],
  [data-parallax-card],
  [data-parallax-section] {
    transform: none !important;
    will-change: auto;
  }
}

