:root {
  --color-primary: #123f7a;
  --color-primary-dark: #0a2a54;
  --color-primary-soft: #eaf2fb;
  --color-accent: #1d8fbf;
  --color-alert: #b3261e;
  --color-warning-bg: #fff7e6;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-border: #d8dee8;
  --color-surface: #ffffff;
  --color-page: #f4f7fb;
  --shadow-card: 0 18px 45px rgba(15, 35, 70, 0.14);
  --shadow-soft: 0 8px 24px rgba(15, 35, 70, 0.09);
  --radius-large: 24px;
  --radius-medium: 16px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--color-text);
  background: var(--color-page);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-brand {
  line-height: 1.35;
}

.site-kicker {
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-title {
  color: var(--color-primary-dark);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-link,
.menu-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.header-link.primary,
.button.primary {
  color: #fff;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.menu-button,
.button.secondary {
  color: var(--color-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.global-nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  padding: 12px 20px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  font-weight: 700;
  color: var(--color-primary-dark);
}

.global-nav a {
  position: relative;
  padding: 4px 0;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after {
  transform: scaleX(1);
}

.notice-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(20px, 4vw, 56px);
  background: var(--color-warning-bg);
  border-bottom: 1px solid #f1d49b;
}

.notice-label {
  color: var(--color-alert);
  font-weight: 800;
  white-space: nowrap;
}

.notice-content,
.notice-list-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.notice-content {
  overflow: hidden;
  color: var(--color-text);
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: opacity 0.28s ease, transform 0.28s ease;
  will-change: opacity, transform;
}

.notice-content.is-switching {
  opacity: 0;
  transform: translateY(-4px);
}


.notice-content.is-entering {
  animation: noticeContentEnter 0.32s ease both;
}

.notice-content[data-level="important"] {
  color: var(--color-alert);
  font-weight: 800;
}

.notice-content[data-level="warning"] {
  color: #9a5b00;
  font-weight: 800;
}

.notice-content[data-level="info"] {
  color: var(--color-primary-dark);
  font-weight: 800;
}

@keyframes noticeContentEnter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

.notice-list-button {
  color: var(--color-primary);
  font-weight: 700;
  white-space: nowrap;
}

.notice-bar.expanded {
  align-items: stretch;
}

.notice-bar.expanded .notice-content {
  display: none;
}

.notice-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 0;
  width: 100%;
  margin-top: 8px;
  border-top: 1px solid #f1d49b;
}

.notice-list[hidden] {
  display: none;
}

.notice-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid #f1d49b;
  color: var(--color-alert);
  font-weight: 800;
  text-align: left;
  background: transparent;
}

.notice-list-item[data-level="important"] {
  color: var(--color-alert);
}

.notice-list-item[data-level="warning"] {
  color: #9a5b00;
}

.notice-list-item[data-level="info"] {
  color: var(--color-primary-dark);
}

.notice-list-item[data-level="important"] .notice-list-icon {
  border-color: var(--color-alert);
  color: var(--color-alert);
  background: #fff2f0;
}

.notice-list-item[data-level="warning"] .notice-list-icon {
  border-color: #d88900;
  color: #9a5b00;
  background: #fff6dd;
}

.notice-list-item[data-level="info"] .notice-list-icon {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
}

.notice-list-item[data-level="important"] .notice-list-arrow {
  color: var(--color-alert);
}

.notice-list-item[data-level="warning"] .notice-list-arrow {
  color: #9a5b00;
}

.notice-list-item[data-level="info"] .notice-list-arrow {
  color: var(--color-primary-dark);
}

.notice-list-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--color-alert);
  border-radius: 999px;
  color: var(--color-alert);
  font-weight: 900;
  line-height: 1;
}

.notice-list-text {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.notice-list-text small {
  display: block;
  margin-top: 4px;
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.6;
}

.notice-list-arrow {
  color: var(--color-alert);
  font-size: 1.4rem;
  line-height: 1;
}

main {
  padding-bottom: 56px;
}

.hero {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 31, 67, 0.78), rgba(7, 31, 67, 0.28), rgba(7, 31, 67, 0.08)),
    linear-gradient(135deg, #0c376c, #2c83a9);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 25%, rgba(255, 255, 255, 0.28), transparent 24%),
    radial-gradient(circle at 66% 78%, rgba(255, 255, 255, 0.16), transparent 20%);
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  color: #fff;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4.1rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.hero p:not(.hero-kicker) {
  max-width: 580px;
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.reservation-card,
.project-intro,
.flow-section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
}

.reservation-card {
  position: relative;
  z-index: 2;
  margin-top: -82px;
  padding: clamp(22px, 3.2vw, 36px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
}

.section-kicker {
  color: var(--color-accent);
}

.card-header h2,
.project-intro h2,
.flow-section h2 {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.3;
}

.card-note {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.project-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 8px;
  margin-bottom: 24px;
  background: var(--color-primary-soft);
  border-radius: 18px;
}

.project-tab {
  min-height: 52px;
  padding: 10px 14px;
  color: var(--color-primary-dark);
  background: transparent;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}

.project-tab.active,
.project-tab[aria-selected="true"] {
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.project-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.project-summary,
.availability-box {
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: #fff;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.reservation-required {
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
}

.project-summary h3,
.availability-box h4 {
  margin: 12px 0 8px;
  color: var(--color-primary-dark);
}

.project-summary p {
  margin: 0;
  color: var(--color-muted);
}

.slot-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.slot-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: var(--color-page);
  border: 1px solid rgba(18, 63, 122, 0.08);
  border-radius: 14px;
}

.slot-list li span:first-child {
  min-width: 0;
  color: var(--color-primary-dark);
  font-weight: 800;
  line-height: 1.45;
}

.slot-list li span:last-child {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: #fff;
  border: 1px solid var(--color-border);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.panel-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-width: 150px;
}

.quick-links {
  width: min(var(--max-width), calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px auto 0;
}

.quick-link-card {
  display: block;
  min-height: 116px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
}

.quick-link-card span {
  display: block;
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: 1.04rem;
}

.quick-link-card small {
  display: block;
  margin-top: 8px;
  color: var(--color-muted);
  line-height: 1.5;
}

.project-intro,
.flow-section {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-soft);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.intro-grid article {
  padding: 20px;
  background: var(--color-page);
  border-radius: var(--radius-medium);
}

.intro-grid h3 {
  margin: 0 0 8px;
  color: var(--color-primary-dark);
}

.intro-grid p {
  margin: 0;
  color: var(--color-muted);
}

.project-intro[id] {
  scroll-margin-top: 96px;
}

.project-card-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 24px;
}

.project-photo {
  min-height: 260px;
  border-radius: 24px;
  overflow: hidden;
}

.placeholder-photo {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(18, 63, 122, 0.12), rgba(234, 242, 255, 0.95));
  border: 1px solid rgba(18, 63, 122, 0.14);
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.project-card-body .project-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-page);
}

.project-card-body .project-summary h3 {
  margin-top: 0;
}

.project-card-body .project-summary p {
  line-height: 1.8;
}

.project-detail-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #fff;
}

.project-detail-table th,
.project-detail-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.project-detail-table tr:last-child th,
.project-detail-table tr:last-child td {
  border-bottom: 0;
}

.project-detail-table th {
  width: 160px;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  font-weight: 800;
  white-space: nowrap;
}

.project-detail-table td {
  color: var(--color-text);
  background: #fff;
}

.project-intro > h3 {
  margin: 30px 0 0;
  color: var(--color-primary-dark);
}

.project-research-note {
  margin-top: 28px;
  padding: 20px 22px;
  border: 2px solid #f2c94c;
  border-radius: 20px;
  background: #fff8df;
}

.project-research-note h3 {
  margin: 0 0 12px;
  color: #7a5200;
  font-size: 1.08rem;
  line-height: 1.5;
}

.project-research-note p {
  margin: 0;
  line-height: 1.8;
  color: var(--color-text);
}

.project-research-note p + p {
  margin-top: 10px;
}

.project-research-note a {
  color: #7a5200;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#reservation-guide > p:not(.section-kicker),
#checkin-guide > p:not(.section-kicker) {
  margin: 18px 0 0;
  line-height: 1.8;
  color: var(--color-text);
}

.guide-subsection {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-page);
}

.guide-subsection h3 {
  margin: 0 0 12px;
  color: var(--color-primary-dark);
  font-size: 1.08rem;
  line-height: 1.55;
}

.guide-subsection .flow-list {
  margin-top: 0;
}

.guide-note {
  border-color: #f2c94c;
  background: #fff8df;
}

.guide-note h3 {
  color: #7a5200;
}

#faq-guide article {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-page);
}

#faq-guide article h3 {
  margin: 0 0 8px;
  color: var(--color-primary-dark);
  font-size: 1rem;
  line-height: 1.55;
}

#faq-guide article p {
  margin: 0;
  line-height: 1.8;
  color: var(--color-text);
}

#faq-guide .section-actions {
  margin-top: 24px;
}

.flow-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 1.5em;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.section-actions .button {
  width: fit-content;
}

.site-footer {
  padding: 28px 20px;
  color: #fff;
  background: var(--color-primary-dark);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
  }

  .header-link,
  .menu-button {
    flex: 1;
  }

  .global-nav {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 24px;
    white-space: nowrap;
  }

  .notice-bar {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  .notice-label {
    grid-column: 1 / -1;
  }

  .notice-list-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .notice-list-arrow {
    display: none;
  }

  .hero {
    min-height: 290px;
  }

  .reservation-card {
    width: calc(100% - 28px);
    margin-top: -34px;
    padding: 20px;
    border-radius: 20px;
  }

  .card-header,
  .project-panel {
    display: block;
  }

  .card-note {
    margin-top: 10px;
  }

  .project-tabs {
    grid-template-columns: 1fr;
  }

  .availability-box {
    margin-top: 14px;
  }

  .panel-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .section-actions {
    flex-direction: column;
  }

  .section-actions .button,
  .button {
    width: 100%;
  }

  .project-card-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-photo {
    min-height: 200px;
  }

  .project-detail-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .quick-links {
    width: calc(100% - 28px);
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .project-intro,
  .flow-section {
    width: calc(100% - 28px);
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-title {
    font-size: 1.45rem;
  }

  .header-actions {
    flex-direction: column;
  }

  .header-link,
  .menu-button {
    width: 100%;
  }

  .notice-bar {
    grid-template-columns: 1fr;
  }

  .notice-content,
  .notice-list-button {
    width: 100%;
    text-align: left;
    padding: 0;
  }

  .hero {
    min-height: 250px;
  }

  .hero-overlay {
    width: calc(100% - 28px);
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .project-detail-table th,
  .project-detail-table td {
    padding: 12px;
  }

  .project-detail-table th {
    width: 120px;
  }

  .slot-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .slot-list li span:last-child {
    align-self: flex-start;
  }

  #faq-guide article {
    padding: 16px;
  }

  .guide-subsection {
    padding: 16px;
  }
}

/* Smartphone-only layout refinements for index, guide, projects, and surg_research pages */
@media (max-width: 600px) and (hover: none),
       (max-width: 600px) and (pointer: coarse) {
  body {
    font-size: 15px;
    line-height: 1.75;
  }

  .site-header {
    gap: 12px;
    padding: 14px 16px;
  }

  .site-kicker {
    font-size: 0.76rem;
  }

  .site-title {
    font-size: 1.28rem;
    line-height: 1.35;
  }

  .header-actions {
    gap: 8px;
  }

  .header-link,
  .menu-button,
  .button {
    min-height: 46px;
    padding: 11px 16px;
    font-size: 0.96rem;
  }

  .global-nav {
    padding: 10px 16px;
    gap: 20px;
    font-size: 0.92rem;
    -webkit-overflow-scrolling: touch;
  }

  .notice-bar {
    padding: 12px 16px;
  }

  .notice-label {
    font-size: 0.88rem;
  }

  .notice-content {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.55;
  }

  .notice-list-item {
    gap: 10px;
    padding: 12px 0;
  }

  .notice-list-icon {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }

  main {
    padding-bottom: 40px;
  }

  .hero {
    min-height: 230px;
    align-items: flex-start;
    padding: 34px 0 62px;
    background:
      linear-gradient(180deg, rgba(7, 31, 67, 0.84), rgba(7, 31, 67, 0.42)),
      linear-gradient(135deg, #0c376c, #2c83a9);
  }

  .hero-overlay {
    width: calc(100% - 32px);
  }

  .hero-kicker,
  .section-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 9vw, 2.25rem);
    line-height: 1.24;
  }

  .hero p:not(.hero-kicker) {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .reservation-card,
  .project-intro,
  .flow-section,
  .quick-links {
    width: calc(100% - 24px);
  }

  .reservation-card {
    margin-top: -42px;
    padding: 18px 16px;
    border-radius: 18px;
  }

  .project-intro,
  .flow-section {
    margin-top: 18px;
    padding: 20px 16px;
    border-radius: 18px;
  }

  .card-header {
    margin-bottom: 16px;
  }

  .card-header h2,
  .project-intro h2,
  .flow-section h2 {
    font-size: 1.34rem;
    line-height: 1.42;
  }

  .card-note {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .project-tabs {
    gap: 8px;
    padding: 6px;
    margin-bottom: 18px;
    border-radius: 16px;
  }

  .project-tab {
    min-height: 48px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.94rem;
  }

  .project-summary,
  .availability-box {
    padding: 16px;
    border-radius: 14px;
  }

  .project-summary h3,
  .availability-box h4 {
    margin-top: 10px;
    line-height: 1.45;
  }

  .project-summary p,
  .intro-grid p,
  #reservation-guide > p:not(.section-kicker),
  #checkin-guide > p:not(.section-kicker),
  #faq-guide article p,
  .guide-subsection p,
  .project-research-note p {
    line-height: 1.8;
  }

  .status-badge {
    min-height: 26px;
    font-size: 0.78rem;
  }

  .slot-list {
    gap: 8px;
  }

  .slot-list li {
    padding: 11px 12px;
    border-radius: 12px;
  }

  .panel-actions,
  .section-actions {
    gap: 10px;
  }

  .quick-links {
    gap: 10px;
    margin-top: 16px;
  }

  .quick-link-card {
    min-height: auto;
    padding: 16px;
    border-radius: 14px;
  }

  .quick-link-card span {
    font-size: 1rem;
  }

  .quick-link-card small {
    margin-top: 6px;
    font-size: 0.86rem;
  }

  .intro-grid {
    gap: 10px;
    margin-top: 16px;
  }

  .intro-grid article {
    padding: 16px;
    border-radius: 14px;
  }

  .intro-grid h3 {
    font-size: 1rem;
    line-height: 1.45;
  }

  .project-card-body {
    gap: 14px;
    margin-top: 18px;
  }

  .project-photo {
    min-height: 170px;
    border-radius: 18px;
  }

  .project-detail-table {
    margin-top: 18px;
    border-radius: 16px;
    white-space: normal;
  }

  .project-detail-table tbody,
  .project-detail-table tr,
  .project-detail-table th,
  .project-detail-table td {
    display: block;
    width: 100%;
  }

  .project-detail-table tr {
    border-bottom: 1px solid var(--color-border);
  }

  .project-detail-table tr:last-child {
    border-bottom: 0;
  }

  .project-detail-table th,
  .project-detail-table td {
    border-bottom: 0;
    white-space: normal;
  }

  .project-detail-table th {
    padding: 12px 14px 6px;
  }

  .project-detail-table td {
    padding: 6px 14px 12px;
  }

  .project-intro > h3 {
    margin-top: 22px;
    font-size: 1.06rem;
    line-height: 1.55;
  }

  .project-research-note {
    margin-top: 20px;
    padding: 16px;
    border-radius: 16px;
  }

  .project-research-note h3,
  .guide-subsection h3 {
    font-size: 1rem;
  }

  .guide-subsection,
  #faq-guide article {
    margin-top: 14px;
    padding: 16px;
    border-radius: 14px;
  }

  .flow-list {
    gap: 8px;
    margin-top: 14px;
    padding-left: 1.25em;
  }

  .site-footer {
    padding: 24px 16px;
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notice-content {
    transition: none;
    will-change: auto;
  }

  .notice-content.is-entering {
    animation: none;
  }
}