* {
  box-sizing: border-box;
}

:root {
  --fiction-header-height: 34px;
  --text-main: #1f2937;
  --text-sub: #4b5563;
  --text-muted: #64748b;
  --line: #e5e7eb;
  --line-strong: #dbe3ea;
  --bg-main: #f7fafc;
  --bg-card: #ffffff;
  --brand: #0f766e;
  --brand-soft: #ecfeff;
  --brand-soft-2: #f0fdfa;
  --footer: #0f172a;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--fiction-header-height);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
}

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

img {
  max-width: 100%;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================================================
   Fixed fiction header
   全ページ共通想定：色・サイズ・位置を変えない
========================================================= */

.fiction-fixed-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  height: var(--fiction-header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: #eef2f5;
  color: #64748b;
  border-bottom: 1px solid #d8dee6;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: center;
}

/* =========================================================
   Header
========================================================= */

/* =========================================================
   Header
========================================================= */

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

/* header内のフォント統一 */
.site-header,
.site-header * {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Noto Sans JP", sans-serif;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 12px;
}

.header-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px 0 16px;
  border-top: 1px solid #edf1f5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 14px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-sub {
  margin: 0 0 4px;
  color: #6b7280;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.brand-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.header-link {
  color: #4b5563;
  font-size: 14px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.main-nav a {
  color: #374151;
  font-size: 14px;
}

.main-nav a:hover,
.header-link:hover,
.section-link:hover {
  color: var(--brand);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.search-box input {
  width: 240px;
  max-width: 56vw;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  font-size: 14px;
}

.search-box button {
  height: 42px;
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--brand);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

.search-box button:hover {
  opacity: 0.9;
}

/* =========================================================
   Hero
========================================================= */

.hero {
  padding: 56px 0 32px;
  background:
    radial-gradient(
      circle at top left,
      rgba(20, 184, 166, 0.12),
      transparent 32%
    ),
    linear-gradient(180deg, #ffffff 0%, var(--bg-main) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.hero-copy {
  padding: 40px;
}

.hero-kicker {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero-text {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
}

.button.primary {
  background: var(--brand);
  color: #ffffff;
}

.button.secondary {
  border: 1px solid #a5f3fc;
  background: var(--brand-soft);
  color: var(--brand);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-card {
  overflow: hidden;
}

.image-figure {
  margin: 0;
}

.hero-image {
  width: 100%;
  height: 240px;
  display: block;
  object-fit: cover;
}

.hero-card-inner {
  width: 100%;
  padding: 26px;
  background: linear-gradient(180deg, var(--brand-soft-2) 0%, var(--brand-soft) 100%);
  border-top: 1px solid #ccfbf1;
}

.hero-card-label {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(15, 118, 110, 0.12);
}

.hero-card-row:first-of-type {
  border-top: none;
}

.hero-card-row span {
  color: var(--text-sub);
}

.hero-card-row strong {
  font-size: 16px;
}

.hero-note {
  margin: 16px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

/* =========================================================
   Sections
========================================================= */

.section {
  padding: 72px 0;
}

.section.alt {
  background: #ffffff;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.section-title {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0.02em;
}

.section-title.small {
  font-size: 24px;
}

.section-link {
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

/* =========================================================
   Director
========================================================= */

.director-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}

.director-image-wrap {
  width: 100%;
}

.director-image {
  width: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.director-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.director-name {
  margin: 0;
  color: #1f3b57;
  font-size: 1.1rem;
  font-weight: 700;
}

.director-text {
  color: #44556a;
  line-height: 1.9;
}

.director-text p {
  margin: 0 0 14px;
}

.director-text p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   News
========================================================= */

.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 13px;
}

.news-category,
.news-new {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.news-category {
  background: var(--brand-soft-2);
  color: var(--brand);
}

.news-category.important {
  background: #eff6ff;
  color: #1d4ed8;
}

.news-new {
  background: #fee2e2;
  color: #b91c1c;
}

.news-title {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}

/* =========================================================
   Departments
========================================================= */

.departments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dept-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f8fafc;
}

.dept-card h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.dept-card p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

/* =========================================================
   Info
========================================================= */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
}

.info-list {
  margin: 18px 0 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.info-list div:first-child {
  border-top: none;
}

.info-list dt {
  color: #374151;
  font-weight: 700;
}

.info-list dd {
  margin: 0;
  color: var(--text-sub);
}

.info-text {
  margin: 18px 0 0;
  color: var(--text-sub);
  line-height: 1.9;
}

.quiet-note {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #64748b;
  font-size: 12px;
  line-height: 1.8;
}

/* =========================================================
   Notice
========================================================= */

.notice-section {
  padding-top: 0;
}

.reality-notice {
  padding: 18px 20px;
  border: 1px solid #d8dee6;
  border-radius: 18px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  line-height: 1.8;
}

.notice-title {
  margin: 0 0 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.reality-notice p {
  margin: 0;
}

/* =========================================================
   Footer
========================================================= */

.site-footer {
  padding: 28px 0;
  background: var(--footer);
  color: #e5e7eb;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.footer-text,
.footer-contact p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.8;
}

.footer-fiction {
  max-width: 760px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.8;
}

.footer-contact {
  min-width: 180px;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 900px) {
  .hero-grid,
  .departments-grid,
  .info-grid,
  .director-section {
    grid-template-columns: 1fr;
  }

  .header-top,
  .header-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
    margin-left: 0;
  }

  .search-box input {
    flex: 1;
    width: 100%;
    max-width: none;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-copy {
    padding: 28px;
  }

  .director-image-wrap {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  :root {
    --fiction-header-height: 44px;
  }

  .fiction-fixed-header {
    padding: 0 10px;
    font-size: 10.5px;
  }

  .container {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    position: static;
  }

  .hero {
    padding: 28px 0 32px;
  }

  .section {
    padding: 56px 0;
  }

  .hero-copy,
  .news-item,
  .info-card,
  .dept-card {
    padding: 20px;
  }

  .hero-title {
    font-size: 30px;
  }

  .brand-title {
    font-size: 21px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .news-title {
    font-size: 15px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    gap: 12px;
  }

  .main-nav {
    gap: 12px 16px;
  }

  .main-nav a,
  .header-link {
    font-size: 13px;
  }
}
