/* =============================================================
   ポータル共通スタイルシート（/css/common.css）
   ============================================================= */

:root {
      --aqua-primary: #0ea5e9;
      --aqua-light: #38bdf8;
      --aqua-deep: #0284c7;
      --card-hover-shadow: 0 8px 24px rgba(14, 165, 233, 0.16);
    }

    html {
      scroll-behavior: smooth;
      overflow-x: hidden;
      max-width: 100%;
    }

    body {
      overflow-x: hidden;
      max-width: 100%;
    }

    /* ================= 長文折り返し＆スマホ横ズレ防止（全体共通） ================= */
    .container,
    .section,
    .columns,
    .column,
    .box,
    .card,
    .notification,
    .modal-card,
    .modal-card-head,
    .modal-card-body,
    .modal-card-foot {
      max-width: 100%;
      min-width: 0;
    }

    .box,
    .card,
    .notification,
    .title,
    .subtitle,
    p,
    a,
    code,
    li,
    td,
    label,
    .modal-card-title {
      overflow-wrap: anywhere;
      word-wrap: break-word;
    }

    /* Bulma .level の長文突き抜け防止＆スマホ縦積み対応 */
    .level {
      max-width: 100%;
      gap: 0.75rem;
    }

    .level-left,
    .level-right,
    .level-item {
      min-width: 0;
      max-width: 100%;
      flex-shrink: 1;
    }

    /* ボタン内の長文折り返し対応（横に突き抜けるのを防止） */
    .button {
      max-width: 100%;
      height: auto;
      min-height: 2.5em;
      white-space: normal;
      text-align: center;
      line-height: 1.35;
      padding-top: 0.45em;
      padding-bottom: 0.45em;
      overflow-wrap: anywhere;
    }

    .button.is-small {
      min-height: 2em;
      padding-top: 0.35em;
      padding-bottom: 0.35em;
    }

    .button.is-medium {
      min-height: 2.75em;
    }

    .button .icon {
      flex-shrink: 0;
    }

    .buttons {
      max-width: 100%;
    }

    /* タグ（.tag）内の長文折り返し対応 */
    .tag {
      max-width: 100%;
      height: auto;
      min-height: 2em;
      white-space: normal;
      line-height: 1.35;
      padding-top: 0.25em;
      padding-bottom: 0.25em;
      overflow-wrap: anywhere;
    }

    .tags {
      max-width: 100%;
    }

    /* テーブルのスマホ横スクロール＆長文対応 */
    .table-container {
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .table td,
    .table th {
      overflow-wrap: anywhere;
    }

    /* モーダルのスマホ余白調整 */
    .modal-card {
      width: calc(100vw - 1.5rem);
      margin: 0 auto;
    }

    .modal-card-title {
      flex-shrink: 1;
      line-height: 1.35;
    }

    /* ナビゲーションバーのスマホ対応 */
    .navbar-brand {
      width: 100%;
      min-width: 0;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 0.25rem;
    }

    .navbar-item {
      min-width: 0;
      max-width: 100%;
    }

    @media screen and (max-width: 768px) {
      .section {
        padding: 2rem 1rem;
      }

      .hero.is-medium .hero-body {
        padding: 3rem 1.25rem;
      }

      .hero .title.is-1 {
        font-size: 2rem;
      }

      .hero .title.is-2 {
        font-size: 1.65rem;
      }

      .hero .subtitle.is-4,
      .hero .subtitle.is-5 {
        font-size: 1.05rem;
      }

      .title.is-2 {
        font-size: 1.6rem;
      }

      .title.is-3 {
        font-size: 1.35rem;
      }

      .title.is-4 {
        font-size: 1.15rem;
      }

      /* スマホ時は .level を縦積みにしてボタン押しやすさを確保 */
      .level:not(.is-mobile) {
        display: flex;
        flex-direction: column;
        align-items: stretch;
      }

      .level:not(.is-mobile) .level-left+.level-right {
        margin-top: 0.75rem;
      }

      .level:not(.is-mobile) .level-right .buttons {
        justify-content: flex-start;
        width: 100%;
      }

      .level:not(.is-mobile) .level-right .buttons .button {
        flex: 1 1 auto;
      }

      /* カード内アクションボタンのスマホ最適化 */
      .portal-link-box .buttons,
      .sns-link-box .buttons {
        width: 100%;
        justify-content: flex-start !important;
      }

      .portal-link-box .buttons .button,
      .sns-link-box .buttons .button,
      .sns-link-box .sns-open-btn {
        width: 100%;
      }

      /* 管理画面タブのスマホ見やすさ */
      .tabs.is-medium {
        font-size: 0.9rem;
      }
    }

    /* サイト全体ロック画面 */
    #site-lock-screen {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%);
      padding: 1rem;
    }

    @media (prefers-color-scheme: dark) {
      #site-lock-screen {
        background: linear-gradient(135deg, #0369a1 0%, #0f172a 100%);
      }
    }

    .lock-card {
      max-width: 460px;
      width: 100%;
      border-radius: 12px;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    }

    /* ヒーローセクション（標準・カラー選択・写真背景対応） */
    .hero-aqua {
      background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%);
      color: #ffffff;
      background-size: cover;
      background-position: center;
      position: relative;
      transition: background 0.3s ease;
    }

    @media (prefers-color-scheme: dark) {
      .hero-aqua.is-default-theme {
        background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
        color: #f0f9ff;
      }
    }

    .hero-aqua.has-bg-image::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.45);
      pointer-events: none;
    }

    .hero-aqua .hero-body {
      position: relative;
      z-index: 1;
    }

    /* カスタムドロップダウンUI（標準select代替） */
    .custom-dropdown {
      position: relative;
      width: 100%;
      min-width: 0;
    }

    .custom-dropdown-trigger {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      padding: 0.5rem 0.85rem;
      min-height: 2.5rem;
      border-radius: 6px;
      border: 1px solid rgba(148, 163, 184, 0.45);
      background-color: var(--bulma-scheme-main, #ffffff);
      color: inherit;
      font-size: 0.95rem;
      cursor: pointer;
      text-align: left;
      transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .custom-dropdown-trigger:hover {
      border-color: var(--aqua-primary);
    }

    .custom-dropdown.is-open .custom-dropdown-trigger {
      border-color: var(--aqua-primary);
      box-shadow: 0 0 0 0.15em rgba(14, 165, 233, 0.25);
    }

    .custom-dropdown-trigger-text {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      min-width: 0;
      flex: 1 1 auto;
      overflow: hidden;
    }

    .custom-dropdown-trigger-label {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
    }

    .custom-dropdown-menu {
      display: none;
      position: absolute;
      top: calc(100% + 5px);
      left: 0;
      right: 0;
      z-index: 60;
      max-height: 260px;
      overflow-y: auto;
      border-radius: 8px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background-color: var(--bulma-scheme-main, #ffffff);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
      padding: 0.35rem;
      animation: fadeInDown 0.15s ease;
    }

    .custom-dropdown.is-open .custom-dropdown-menu {
      display: block;
    }

    .custom-dropdown-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      padding: 0.5rem 0.7rem;
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.92rem;
      overflow-wrap: anywhere;
      transition: background-color 0.12s ease;
    }

    .custom-dropdown-item:hover {
      background-color: rgba(14, 165, 233, 0.12);
    }

    .custom-dropdown-item.is-selected {
      background-color: rgba(14, 165, 233, 0.18);
      font-weight: 600;
    }

    .attr-color-pill {
      display: inline-block;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      flex-shrink: 0;
      border: 1px solid rgba(255, 255, 255, 0.4);
    }

    /* 活動予定カード */
    .schedule-card {
      border-left: 5px solid var(--aqua-primary);
      height: 100%;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .schedule-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--card-hover-shadow);
    }

    /* お知らせアコーディオン＆ピン留め表示 */
    .news-card {
      cursor: pointer;
      transition: all 0.25s ease;
      border-left: 4px solid transparent;
    }

    .news-card.is-pinned {
      border-left: 5px solid #f59e0b;
      background-color: rgba(245, 158, 11, 0.05);
    }

    .news-card:hover {
      border-left-color: var(--aqua-light);
      box-shadow: var(--card-hover-shadow);
    }

    .news-card.is-expanded {
      border-left-color: var(--aqua-primary);
      box-shadow: 0 10px 28px rgba(14, 165, 233, 0.2);
    }

    .news-detail-body {
      display: none;
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid rgba(56, 189, 248, 0.3);
      line-height: 1.8;
      overflow-wrap: anywhere;
      word-break: break-word;
      cursor: text;
    }

    .news-detail-body a {
      color: #0284c7;
      text-decoration: underline;
      font-weight: 600;
    }

    @media (prefers-color-scheme: dark) {
      .news-detail-body a {
        color: #38bdf8;
      }
    }

    .news-detail-body ul {
      list-style: disc;
      margin-left: 1.5rem;
      margin-top: 0.4rem;
      margin-bottom: 0.4rem;
    }

    .news-detail-body ol {
      list-style: decimal;
      margin-left: 1.5rem;
      margin-top: 0.4rem;
      margin-bottom: 0.4rem;
    }

    .news-detail-body iframe {
      max-width: 100%;
      border-radius: 8px;
      margin-top: 0.5rem;
      margin-bottom: 0.5rem;
    }

    .news-card.is-expanded .news-detail-body {
      display: block;
      animation: fadeInDown 0.22s ease;
    }

    .news-chevron {
      transition: transform 0.25s ease;
    }

    .news-card.is-expanded .news-chevron {
      transform: rotate(180deg);
    }

    /* NEWバッジ＆共有URL遷移時の強調表示 */
    .news-new-badge {
      display: inline-flex;
      align-items: center;
      padding: 0.12rem 0.5rem;
      border-radius: 999px;
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.05em;
      color: #ffffff;
      background: linear-gradient(135deg, #ef4444, #f97316);
      box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
      vertical-align: middle;
    }

    .news-card.is-highlighted {
      border-color: #0ea5e9;
      box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.35), 0 12px 28px rgba(14, 165, 233, 0.25);
    }

    @keyframes fadeInDown {
      from {
        opacity: 0;
        transform: translateY(-6px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ダーク/ライト両対応パネル */
    .filter-settings-box {
      padding: 1.25rem;
      border-radius: 8px;
      border: 1px solid rgba(14, 165, 233, 0.4);
      background-color: rgba(14, 165, 233, 0.08);
    }

    @media (prefers-color-scheme: dark) {
      .filter-settings-box {
        background-color: rgba(14, 165, 233, 0.14);
        border-color: rgba(56, 189, 248, 0.45);
      }
    }

    /* リッチテキストエディタ */
    .rich-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      padding: 0.5rem;
      border: 1px solid rgba(128, 128, 128, 0.3);
      border-bottom: none;
      border-radius: 6px 6px 0 0;
      background-color: rgba(14, 165, 233, 0.08);
      align-items: center;
    }

    .rich-editor {
      min-height: 160px;
      max-height: 400px;
      overflow-y: auto;
      padding: 0.75rem 1rem;
      border: 1px solid rgba(128, 128, 128, 0.3);
      border-radius: 0 0 6px 6px;
      line-height: 1.75;
      outline: none;
      overflow-wrap: anywhere;
    }

    .rich-editor:focus {
      border-color: var(--aqua-primary);
      box-shadow: 0 0 0 0.125em rgba(14, 165, 233, 0.25);
    }

    .rich-editor:empty::before {
      content: attr(data-placeholder);
      color: #94a3b8;
      pointer-events: none;
    }

    .rich-editor ul {
      list-style: disc;
      margin-left: 1.5rem;
    }

    .rich-editor ol {
      list-style: decimal;
      margin-left: 1.5rem;
    }

    .color-dot {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      display: inline-block;
      border: 1px solid rgba(0, 0, 0, 0.2);
    }

    /* 各種リンク・遷移カード＆作品カード */
    .portal-link-box {
      border-left: 5px solid var(--aqua-primary);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .portal-link-box:hover {
      transform: translateY(-2px);
      box-shadow: var(--card-hover-shadow);
    }

    .sns-link-box {
      border-left: 5px solid var(--aqua-primary);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .sns-link-box:hover {
      transform: translateY(-2px);
      box-shadow: var(--card-hover-shadow);
    }

    .site-icon-wrapper {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background-color: rgba(14, 165, 233, 0.08);
      flex-shrink: 0;
    }

    .site-favicon-img {
      width: 28px;
      height: 28px;
      object-fit: contain;
      border-radius: 4px;
    }

    .site-favicon-img.is-small {
      width: 18px;
      height: 18px;
    }

    @media (prefers-color-scheme: dark) {
      .sns-brand-dark {
        color: #f8fafc !important;
      }

      .site-icon-wrapper {
        background-color: rgba(148, 163, 184, 0.14);
      }
    }

    .work-card {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border-top: 4px solid var(--aqua-light);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .work-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--card-hover-shadow);
    }

    /* Built with Gemini フッターバッジ */
    .gemini-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.4rem 1rem;
      border-radius: 999px;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(139, 92, 246, 0.12));
      border: 1px solid rgba(56, 189, 248, 0.35);
    }

    .gemini-sparkle {
      background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    /* 左下トースト通知コンテナ＆アニメーション */
    #toast-container {
      position: fixed;
      bottom: 1rem;
      left: 1rem;
      right: 1rem;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      max-width: 380px;
      pointer-events: none;
    }

    .toast-popup {
      pointer-events: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 0.9rem 1.15rem;
      border-radius: 10px;
      color: #ffffff;
      font-weight: 600;
      font-size: 0.92rem;
      line-height: 1.45;
      overflow-wrap: anywhere;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
      animation: toastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .toast-popup.is-success {
      background-color: #16a34a;
      border-left: 5px solid #86efac;
    }

    .toast-popup.is-error {
      background-color: #dc2626;
      border-left: 5px solid #fca5a5;
    }

    .toast-popup.is-info {
      background-color: #0284c7;
      border-left: 5px solid #7dd3fc;
    }

    .toast-popup.is-hiding {
      animation: toastFadeOut 0.28s ease forwards;
    }

    .toast-close-btn {
      background: transparent;
      border: none;
      color: rgba(255, 255, 255, 0.85);
      cursor: pointer;
      padding: 0.15rem;
      font-size: 1rem;
      line-height: 1;
      flex-shrink: 0;
    }

    .toast-close-btn:hover {
      color: #ffffff;
    }

    @keyframes toastSlideIn {
      from {
        opacity: 0;
        transform: translateX(-24px) translateY(8px);
      }

      to {
        opacity: 1;
        transform: translateX(0) translateY(0);
      }
    }

    @keyframes toastFadeOut {
      from {
        opacity: 1;
        transform: translateY(0);
      }

      to {
        opacity: 0;
        transform: translateY(10px);
      }
    }

    .hidden {
      display: none !important;
    }

    /* ================= 作品詳細ページ（テンプレート別デザイン対応） ================= */
    .work-detail-hero {
      background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 55%, #38bdf8 100%);
      color: #ffffff;
    }

    .work-detail-hero.is-tpl-game {
      background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #7c3aed 100%);
    }

    .work-detail-hero.is-tpl-web {
      background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
    }

    .work-detail-hero.is-tpl-tech {
      background: linear-gradient(135deg, #1e293b 0%, #334155 55%, #0284c7 100%);
    }

    .work-detail-hero.is-tpl-simple {
      background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    }

    .work-detail-body {
      line-height: 1.85;
      font-size: 1.02rem;
      overflow-wrap: anywhere;
    }

    .work-detail-body h2 {
      font-size: 1.45rem;
      font-weight: 700;
      margin-top: 1.75rem;
      margin-bottom: 0.75rem;
      padding-bottom: 0.4rem;
      border-bottom: 2px solid rgba(14, 165, 233, 0.35);
    }

    .work-detail-body h2:first-child {
      margin-top: 0;
    }

    .work-detail-body h3 {
      font-size: 1.2rem;
      font-weight: 700;
      margin-top: 1.35rem;
      margin-bottom: 0.5rem;
    }

    .work-detail-body p {
      margin-bottom: 0.9rem;
    }

    .work-detail-body ul {
      list-style: disc;
      margin-left: 1.5rem;
      margin-bottom: 1rem;
    }

    .work-detail-body ol {
      list-style: decimal;
      margin-left: 1.5rem;
      margin-bottom: 1rem;
    }

    .work-detail-body blockquote {
      border-left: 4px solid var(--aqua-primary);
      background: rgba(14, 165, 233, 0.08);
      padding: 0.85rem 1.1rem;
      border-radius: 0 8px 8px 0;
      margin: 1rem 0;
    }

    .work-detail-body pre {
      background: #0f172a;
      color: #f8fafc;
      padding: 1rem;
      border-radius: 8px;
      overflow-x: auto;
      margin: 1rem 0;
    }

    .work-detail-body img {
      max-width: 100%;
      height: auto;
      border-radius: 10px;
      margin: 0.75rem 0;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .work-detail-body iframe {
      max-width: 100%;
      border-radius: 10px;
      margin: 0.75rem 0;
    }

    .work-detail-body table {
      width: 100%;
      border-collapse: collapse;
      margin: 1rem 0;
    }

    .work-detail-body th,
    .work-detail-body td {
      border: 1px solid rgba(148, 163, 184, 0.35);
      padding: 0.6rem 0.85rem;
      text-align: left;
    }

    .work-detail-body th {
      background: rgba(14, 165, 233, 0.12);
      font-weight: 700;
    }

/* ================= ポータル共通ナビバー＆ハンバーガーメニュー ================= */
.portal-hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: inherit;
  cursor: pointer;
  margin-right: 0.75rem;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.portal-hamburger-btn:hover {
  background-color: rgba(14, 165, 233, 0.12);
  border-color: var(--aqua-primary);
}

.portal-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  z-index: 80;
  backdrop-filter: blur(2px);
}

.portal-drawer-backdrop.is-active {
  display: block;
}

.portal-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 82vw;
  background-color: var(--bulma-scheme-main, #ffffff);
  border-right: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 6px 0 28px rgba(0, 0, 0, 0.22);
  z-index: 90;
  padding: 1.25rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-drawer.is-open {
  transform: translateX(0);
}

.portal-drawer-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 0 0.75rem;
  margin-bottom: 0.45rem;
}

.portal-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portal-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.68rem 0.85rem;
  border-radius: 8px;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.portal-drawer-link:hover {
  background-color: rgba(14, 165, 233, 0.1);
  color: var(--aqua-deep);
}

.portal-drawer-link.is-active {
  background-color: var(--aqua-primary);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.28);
}

.portal-drawer-link.is-active .icon {
  color: #ffffff !important;
}

.portal-drawer-link-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

/* 日付詳細モーダルの横幅最適化（横幅MAX防止） */
#schedule-detail-modal .modal-card {
  width: min(520px, calc(100vw - 2rem)) !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

#schedule-detail-modal .modal-card-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* カレンダーマス目＆詳細内の項目スタイル */
.schedule-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.schedule-cal-cell {
  min-height: 88px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.schedule-cal-cell:hover {
  border-color: var(--aqua-primary);
  background-color: rgba(14, 165, 233, 0.06);
}

.schedule-cal-badge {
  display: block;
  font-size: 0.72rem;
  line-height: 1.3;
  padding: 2px 5px;
  border-radius: 4px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-extra-list {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 埋め込みフォームの背景透過防止（ダークモード時も白背景を維持） */
.form-embed-wrapper {
  background-color: #ffffff !important;
  color-scheme: light;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.form-embed-wrapper iframe,
.news-detail-body iframe,
iframe[src*="docs.google.com/forms"],
iframe[src*="forms.gle"] {
  display: block;
  width: 100%;
  background-color: #ffffff !important;
  color-scheme: light;
  border: 0;
}