:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --ink: #13201c;
  --muted: #5b6f68;
  --line: #dbe7e2;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --accent-soft: #e4f3ef;
  /* 領域ごとの色。色だけに頼らず、ラベル・アイコン・見出しでも区別する */
  --de: #0f766e;
  --de-dark: #0b4f4a;
  --de-soft: #e4f3ef;
  --bio: #4f46e5;
  --bio-dark: #3730a3;
  --bio-soft: #eeedfd;
  --shadow: 0 18px 45px rgba(15, 52, 46, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* ---------- header ---------- */
.site-header {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 231, 226, 0.8);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-tagline {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 700;
  margin: 0 auto;
  max-width: 1120px;
  padding: 6px 6vw 0;
}

.header-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  min-height: 52px;
  padding: 0 6vw;
}

.brand {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 760;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.72rem;
}

.nav {
  display: flex;
  font-size: 0.9rem;
  gap: 6px;
  margin: 0 auto;
  max-width: 1120px;
  overflow-x: auto;
  padding: 0 6vw 8px;
  white-space: nowrap;
}

.nav a {
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  padding: 5px 14px;
}

.nav a:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.hero,
.entrances,
.section,
.site-footer {
  margin: 0 auto;
  max-width: 1120px;
  padding-left: 6vw;
  padding-right: 6vw;
}

/* ---------- hero ---------- */
.hero {
  padding-bottom: 28px;
  padding-top: 48px;
}


.eyebrow {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 16px;
  max-width: 24em;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 0;
  max-width: 690px;
}

/* ---------- domain label (shared) ---------- */
.domain-label {
  align-items: center;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 780;
  gap: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.domain-label svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.domain-de {
  --dom: var(--de);
  --dom-dark: var(--de-dark);
  --dom-soft: var(--de-soft);
}

.domain-bio {
  --dom: var(--bio);
  --dom-dark: var(--bio-dark);
  --dom-soft: var(--bio-soft);
}

.domain-label {
  color: var(--dom-dark);
}

/* ---------- buttons ---------- */
.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 20px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  border-color: var(--dom, var(--accent));
  text-decoration: none;
  transform: translateY(-1px);
}

.button.primary {
  background: var(--dom, var(--accent));
  border-color: var(--dom, var(--accent));
  color: #ffffff;
}

.button.primary:hover {
  background: var(--dom-dark, var(--accent-dark));
  border-color: var(--dom-dark, var(--accent-dark));
}

/* ---------- entrances (hero 直下の2入口) ---------- */
.entrances {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 72px;
}

.entrance {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  border-top: 5px solid var(--dom);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 24px 26px 26px;
}

.entrance h2 {
  font-size: 1.45rem;
  line-height: 1.4;
  margin: 10px 0 8px;
}

.entrance p {
  color: var(--muted);
  margin-bottom: 10px;
}

.entrance .examples {
  background: var(--dom-soft);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.92rem;
  margin: 6px 0 20px;
  padding: 10px 12px;
}

.entrance .examples span {
  color: var(--dom-dark);
  font-weight: 760;
  margin-right: 10px;
}

.entrance .examples-label {
  display: block;
  font-size: 0.8rem;
  margin: 0 0 8px;
}

.entrance .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.entrance .chips li {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0;
  padding: 2px 11px;
}

.entrance .button {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- sections ---------- */
.section {
  padding-bottom: 80px;
  padding-top: 8px;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.domain-head {
  border-top: 6px solid var(--dom);
  margin-bottom: 28px;
  padding-top: 28px;
}

.domain-head h2 {
  margin: 10px 0 8px;
}

.target {
  color: var(--muted);
  margin-bottom: 0;
}

.columns {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 36px;
}

.columns > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
}

.columns h3,
.results h3 {
  border-bottom: 2px solid var(--dom);
  color: var(--dom-dark);
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 4px;
}

.domain ul {
  margin: 0;
  padding-left: 1.2em;
}

.domain li {
  margin-bottom: 6px;
}

.domain li::marker {
  color: var(--dom);
}

.results {
  margin-bottom: 32px;
}

.results ul {
  list-style: none;
  padding: 0;
}

.results li {
  border-left: 3px solid var(--dom);
  color: var(--muted);
  margin-bottom: 14px;
  padding: 2px 0 2px 16px;
}

.results strong {
  color: var(--ink);
  display: block;
}

.inline-links {
  display: block;
  margin-top: 4px;
}

.inline-links a {
  font-weight: 720;
  margin-right: 14px;
}

.results-note {
  color: var(--muted);
  margin: 0;
}

.books {
  margin-bottom: 32px;
}

.books-lead {
  color: var(--muted);
  max-width: 760px;
}

.book-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 18px;
  padding: 16px;
}

.book:hover {
  border-color: var(--dom);
  text-decoration: none;
}

.book img {
  border: 1px solid var(--line);
  border-radius: 4px;
  flex: none;
  height: auto;
  width: 112px;
}

.book-text {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
  gap: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.book-text strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

.book-meta {
  color: var(--dom-dark);
  font-size: 0.78rem;
  font-weight: 760;
}

.domain-cta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.cta-note {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- profile ---------- */
.section-heading {
  margin-bottom: 24px;
  max-width: 760px;
}

.section-heading p {
  color: var(--muted);
}

.both-note {
  border-left: 3px solid var(--line);
  padding-left: 14px;
}

.media {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 22px;
}

.media:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.media img {
  border-radius: 8px;
  flex: none;
  height: 64px;
  width: 64px;
}

.media-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.media-text > span:last-child {
  color: var(--muted);
  font-size: 0.94rem;
}

.media-label {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.media-go {
  color: var(--accent-dark);
  flex: none;
  font-weight: 720;
}

.posts {
  margin-bottom: 28px;
}

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

.post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.post:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.post img {
  aspect-ratio: 1200 / 630;
  background: var(--accent-soft);
  display: block;
  height: auto;
  width: 100%;
}

.post-date {
  color: var(--muted);
  font-size: 0.8rem;
  padding: 12px 16px 0;
}

.post-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
  padding: 4px 16px 16px;
}

.profile-groups {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-groups > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 24px;
}

.profile-groups a {
  display: block;
  font-weight: 720;
  margin-top: 10px;
}

/* ---------- contact ---------- */
.contact-box {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.6fr);
  padding: 36px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-box p {
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 0;
}

.contact-box .button {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.contact-box .button.primary {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
}

/* ---------- footer ---------- */
.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding-bottom: 32px;
  padding-top: 32px;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-box {
    grid-template-columns: 1fr;
  }

  .profile-groups,
  .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-list,
  .contact-cards,
  .tech-groups {
    grid-template-columns: 1fr;
  }

  .book {
    gap: 14px;
    padding: 14px;
  }

  .book img {
    width: 84px;
  }

}

@media (max-width: 680px) {
  .hero {
    padding-top: 32px;
  }

  .hero-airy {
    min-height: auto;
    padding-bottom: 48px;
    padding-top: 44px;
  }

  .hero-actions .button {
    justify-content: space-between;
    width: 100%;
  }

  .entrances {
    grid-template-columns: 1fr;
    padding-bottom: 56px;
  }

  .entrance h2 {
    font-size: 1.2rem;
  }

  .entrance {
    padding: 20px 20px 22px;
  }

  .columns,
  .post-list,
  .book-list,
  .profile-groups {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .media {
    flex-wrap: wrap;
  }

  .media-text {
    flex-basis: calc(100% - 90px);
  }

  .contact-box {
    padding: 26px 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}

/* 日本語の改行: 文節の途中で折り返さない */
.ph {
  display: inline-block;
}

body {
  word-break: auto-phrase;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

/* ---------- トップ: すっきりしたヒーロー ---------- */
.hero-band {
  background:
    radial-gradient(760px 420px at 88% 18%, rgba(15, 118, 110, 0.14), transparent 70%),
    radial-gradient(640px 380px at 6% 92%, rgba(79, 70, 229, 0.1), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  margin-bottom: 8px;
}

.hero-airy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(64vh, 560px);
  padding-bottom: 72px;
  padding-top: 72px;
}

.hero-airy .eyebrow {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.hero-airy h1 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1.38;
  margin-bottom: 26px;
  max-width: none;
}

.hero-airy .h1-a,
.hero-airy .h1-b {
  display: block;
}

.hero-airy .h1-a {
  color: #12302b;
}

.hero-airy .h1-b {
  background: linear-gradient(90deg, var(--de) 0%, var(--bio) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.hero-airy .lead {
  font-size: 1.12rem;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.entrances {
  padding-top: 40px;
}

/* ---------- 追加パーツ ---------- */
.section-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.page-head {
  padding-bottom: 32px;
  padding-top: 48px;
}

.page-head h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-bottom: 14px;
}

.page-head .lead {
  font-size: 1.05rem;
}

.more {
  margin: 20px 0 0;
}

.more a {
  font-weight: 720;
}

.news .section-heading {
  margin-bottom: 20px;
}

.about-short {
  padding-bottom: 56px;
}

.contact-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-cards .entrance h2 {
  font-size: 1.1rem;
}

.contact-page .cta-note {
  margin-top: 16px;
}

.tech {
  margin-bottom: 36px;
}

.tech-groups {
  display: grid;
  gap: 18px 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tech h4 {
  color: var(--ink);
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.domain ul.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.domain ul.chips li {
  background: var(--dom-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
  padding: 3px 12px;
}

.other-area {
  color: var(--muted);
  margin: 28px 0 0;
}

.books-section h2 {
  margin-bottom: 18px;
}

/* アンカー移動・フォーカス・動きを減らす設定 */
section[id] {
  scroll-margin-top: 110px;
}

a:focus-visible {
  outline: 3px solid var(--dom, var(--accent));
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

/* 小さい画面での横はみ出し対策 */
.tech-groups > div,
.contact-cards > *,
.columns > div,
.entrances > * {
  min-width: 0;
}

.domain ul.chips li,
.entrance,
.button {
  overflow-wrap: anywhere;
}

.button {
  text-align: center;
}

.header-cta {
  flex: none;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .brand-sub {
    display: none;
  }
}

/* 登壇資料リスト */
.results .talk-list {
  list-style: none;
  margin: 8px 0 6px;
  padding: 0;
}

.results .talk-list li {
  border-left: 0;
  margin: 0 0 6px;
  padding: 0;
}

.results .talk-list a {
  font-weight: 650;
}

/* 出版・執筆: 運営メディア */
.books-section {
  padding-bottom: 32px;
}

.media-section h2 {
  margin-bottom: 18px;
}

.media-feature {
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 36px;
  overflow: hidden;
}

.media-feature:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.media-feature img {
  background: #f8f9f9;
  display: block;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  width: 100%;
}

.media-feature-body {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  padding: 24px 28px;
}

.media-feature-body strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.media-feature .media-go {
  margin-top: 6px;
}

.posts-heading {
  margin-bottom: 14px;
}

@media (max-width: 680px) {
  .media-feature {
    grid-template-columns: 1fr;
  }

  .media-feature-body {
    padding: 18px 20px 22px;
  }
}


/* トップのカード: 支援例（案件名のリスト） */
.entrance .examples-label {
  display: block;
  font-size: 0.8rem;
  margin: 0 0 6px;
}

.entrance .example-list {
  list-style: disc;
  margin: 0;
  padding-left: 1.2em;
}

.entrance .example-list li {
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 3px 0;
}

.entrance .example-list li::marker {
  color: var(--dom);
}

/* 各ページ: ご依頼の例 */
.cases {
  margin-bottom: 36px;
}

.cases h3 {
  border-bottom: 2px solid var(--dom);
  color: var(--dom-dark);
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 4px;
}

.case-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--dom);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px 20px;
}

.case strong {
  font-size: 1rem;
  line-height: 1.5;
}

.case span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 680px) {
  .case-list {
    grid-template-columns: 1fr;
  }
}

/* プロフィール: 主な業績・リンク */
.works-section h2,
.links-section h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.works {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-group {
  min-width: 0;
}

.work-group h3 {
  border-bottom: 2px solid var(--accent);
  color: var(--accent-dark);
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 4px;
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-list li {
  border-left: 3px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  padding: 2px 0 2px 14px;
}

.work-list a {
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.work-list a::after {
  content: " ↗";
  font-weight: 600;
}

.work-list span {
  color: var(--muted);
  font-size: 0.86rem;
}

.simple-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.simple-links a {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 6px;
  min-height: 38px;
  padding: 6px 16px;
}

.simple-links a::after {
  color: var(--muted);
  content: "↗";
  font-size: 0.82em;
  font-weight: 600;
}

.simple-links a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}

@media (max-width: 680px) {
  .works {
    grid-template-columns: 1fr;
  }
}

/* プロフィール: 業績（researchmap風の種別ごとの一覧） */
.links-section {
  padding-bottom: 40px;
}

.rm {
  display: grid;
  gap: 40px;
}

.rm-group h3 {
  border-bottom: 2px solid var(--accent);
  color: var(--accent-dark);
  display: inline-block;
  font-size: 1.1rem;
  margin-bottom: 8px;
  padding-bottom: 4px;
}

.rm-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rm-list li {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 0;
}

.rm-list a,
.rm-list .plain {
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.rm-list .plain {
  color: var(--ink);
}

.rm-list a::after {
  content: " ↗";
  font-weight: 600;
}

.rm-authors,
.rm-meta {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.rm-authors strong {
  color: var(--ink);
}

.rm-tag {
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 700;
  margin-left: 8px;
  padding: 0 6px;
}

/* プロフィール: 写真（images/profile.jpg があれば表示。なければ枠ごと消える） */
.profile-head {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.profile-head-text {
  min-width: 0;
}

.profile-photo {
  margin: 0;
}

.profile-photo img {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: block;
  height: 220px;
  object-fit: cover;
  width: 220px;
}

@media (max-width: 680px) {
  .profile-head {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .profile-photo {
    order: -1;
  }

  .profile-photo img {
    height: 120px;
    width: 120px;
  }
}

/* 長いブランド名（メディア正式名称）向け */
.brand-name {
  font-size: 0.98rem;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .brand-name {
    font-size: 0.8rem;
    max-width: 15em;
  }
}

/* ヘッダー: ロゴ画像 */
.brand {
  align-items: center;
  flex-direction: row;
}

.brand-logo {
  display: block;
  height: 50px;
  width: auto;
}

.header-top {
  min-height: 64px;
  padding-bottom: 4px;
  padding-top: 4px;
}

@media (max-width: 680px) {
  .brand-logo {
    height: 38px;
  }

  .header-top {
    min-height: 52px;
  }
}

/* 共通パーツ(partials)の差し込み先 */
[data-include] {
  display: contents;
}

[data-include]:empty {
  display: block;
  min-height: 112px;
}

[data-include*="header"]:empty {
  min-height: 109px;
}

[data-include="partials/footer.html"]:empty {
  min-height: 96px;
}

/* 関連実績: 題名・掲載先・年だけの短い一覧 */
.results .rm-list li {
  border-bottom: 1px solid var(--line);
  border-left: 0;
  color: inherit;
  margin: 0;
  padding: 12px 0;
}

.results .rm-list li:last-child {
  border-bottom: 0;
}

[data-include="partials/contact.html"]:empty {
  min-height: 260px;
}

.news-title {
  font-size: 1.5rem;
  margin-bottom: 18px;
}

/* プロフィール写真: 大きめの縦長（4:5） */
.profile-head {
  gap: 56px;
}

.profile-photo img {
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: 20px;
  box-shadow: var(--shadow);
  height: auto;
  object-position: center top;
  width: min(360px, 34vw);
}

@media (max-width: 680px) {
  .profile-photo img {
    width: min(240px, 70vw);
  }
}

/* 問い合わせブロック: 中央揃え・大きめのボタン */
.contact-box {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 56px 36px;
  text-align: center;
}

.contact-box h2 {
  margin: 0;
  max-width: 22em;
}

.contact-actions {
  justify-content: center;
}

@media (max-width: 680px) {
  .contact-box {
    padding: 36px 20px;
  }

  .contact-actions {
    flex-direction: column;
    width: 100%;
  }

  .contact-box .button {
    width: 100%;
  }
}

.case-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 14px 0 0;
}

/* ヒーロー見出し: 1行目=データエンジニアリング(ティール)、2行目=バイオインフォマティクス(インディゴ) */
.hero-airy .h1-a {
  color: var(--de);
}

.hero-airy .h1-b {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--bio);
}

/* トップの領域カード: 説明は1行・左揃え */
.entrance .entrance-lead {
  margin: 0 0 14px;
  text-align: left;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .entrance .entrance-lead {
    white-space: normal;
  }
}

/* ヒーロー最上部: Data Superheroes バッジ */
.hero-badge {
  align-items: center;
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #b9ddd7;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.12);
  color: var(--de-dark);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 750;
  gap: 8px;
  line-height: 1.4;
  margin-bottom: 22px;
  padding: 7px 16px 7px 12px;
}

.hero-badge:hover {
  border-color: var(--de);
  text-decoration: none;
}

.hero-badge svg {
  fill: #f5b301;
  flex: none;
  height: 18px;
  width: 18px;
}

.hero-badge span::after {
  content: " ↗";
  font-weight: 600;
}

@media (max-width: 680px) {
  .hero-badge {
    font-size: 0.84rem;
  }
}

/* スマホでヒーロー見出しが文字の途中で折り返さないよう、サイズを幅に合わせる */
@media (max-width: 680px) {
  .hero-airy h1 {
    font-size: clamp(1.45rem, 6.3vw, 2rem);
  }
}

/* データエンジニアリングのページ冒頭: ホームと同じヒーロー（ティールで統一） */
.hero-de {
  background:
    radial-gradient(760px 420px at 88% 20%, rgba(15, 118, 110, 0.16), transparent 70%),
    radial-gradient(560px 360px at 4% 100%, rgba(20, 184, 166, 0.1), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  margin-bottom: 32px;
}

.hero-de .hero-airy {
  min-height: auto;
  padding-bottom: 64px;
  padding-top: 64px;
}

.hero-de .h1-a {
  color: var(--de);
}

.hero-de .h1-b {
  color: var(--de-dark);
}

.hero-de .domain-label {
  margin-bottom: 18px;
}

@media (max-width: 680px) {
  .hero-de .hero-airy {
    padding-bottom: 40px;
    padding-top: 36px;
  }

  .hero-actions .button {
    font-size: 0.94rem;
  }
}

@media (max-width: 680px) {
  .hero-de .hero-airy h1 {
    font-size: clamp(1.2rem, 5.3vw, 1.9rem);
  }
}

/* バイオインフォマティクスのページ冒頭: ホームと同じヒーロー（インディゴで統一） */
.hero-bio {
  background:
    radial-gradient(760px 420px at 88% 20%, rgba(79, 70, 229, 0.14), transparent 70%),
    radial-gradient(560px 360px at 4% 100%, rgba(129, 140, 248, 0.12), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  margin-bottom: 32px;
}

.hero-bio .hero-airy {
  min-height: auto;
  padding-bottom: 64px;
  padding-top: 64px;
}

.hero-bio .h1-a {
  color: var(--bio);
}

.hero-bio .h1-b {
  color: var(--bio-dark);
}

.hero-bio .domain-label {
  margin-bottom: 18px;
}

@media (max-width: 680px) {
  .hero-bio .hero-airy {
    padding-bottom: 40px;
    padding-top: 36px;
  }
}

/* ---------- 領域ページ冒頭: よりスタイリッシュに ---------- */
.hero-de,
.hero-bio {
  overflow: hidden;
  position: relative;
}

.hero-de .hero-airy,
.hero-bio .hero-airy {
  position: relative;
  z-index: 1;
}

/* ラベル: 領域色のピル */
.hero-de .domain-label,
.hero-bio .domain-label {
  border: 1px solid;
  border-radius: 999px;
  letter-spacing: 0.06em;
  padding: 6px 16px 6px 12px;
  text-transform: none;
}

.hero-de .domain-label {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.28);
}

.hero-bio .domain-label {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.28);
}

/* 見出し: 領域色のグラデーション */
.hero-de .h1-a,
.hero-de .h1-b,
.hero-bio .h1-a,
.hero-bio .h1-b {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.hero-de .h1-a,
.hero-de .h1-b {
  background-image: linear-gradient(95deg, #0b4f4a 0%, #0f766e 50%, #14a99a 100%);
}

.hero-bio .h1-a,
.hero-bio .h1-b {
  background-image: linear-gradient(95deg, #3730a3 0%, #4f46e5 50%, #7c78f0 100%);
}

.hero-de h1,
.hero-bio h1 {
  letter-spacing: -0.03em;
}

.hero-de .lead,
.hero-bio .lead {
  margin-bottom: 30px;
}

/* ロゴのモチーフ（六角形のネットワーク）を背景にごく薄く */
.hero-de::after,
.hero-bio::after {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  height: 420px;
  opacity: 0.17;
  pointer-events: none;
  position: absolute;
  right: max(2vw, calc((100vw - 1120px) / 2 + 20px));
  top: 50%;
  transform: translateY(-50%) rotate(8deg);
  width: 420px;
}

.hero-de::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M200 30l148 85v170l-148 85-148-85V115z'/%3E%3Cpath d='M200 100l88 50v100l-88 50-88-50V150z' stroke-width='2'/%3E%3Cpath d='M200 30v70M348 115l-60 35M348 285l-60-35M200 370v-70M52 285l60-35M52 115l60 35' stroke-width='2'/%3E%3Cg fill='%230f766e' stroke='none'%3E%3Ccircle cx='200' cy='30' r='9'/%3E%3Ccircle cx='348' cy='115' r='9'/%3E%3Ccircle cx='348' cy='285' r='9'/%3E%3Ccircle cx='200' cy='370' r='9'/%3E%3Ccircle cx='52' cy='285' r='9'/%3E%3Ccircle cx='52' cy='115' r='9'/%3E%3Ccircle cx='200' cy='200' r='14'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-bio::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M200 30l148 85v170l-148 85-148-85V115z'/%3E%3Cpath d='M200 100l88 50v100l-88 50-88-50V150z' stroke-width='2'/%3E%3Cpath d='M200 30v70M348 115l-60 35M348 285l-60-35M200 370v-70M52 285l60-35M52 115l60 35' stroke-width='2'/%3E%3Cg fill='%234f46e5' stroke='none'%3E%3Ccircle cx='200' cy='30' r='9'/%3E%3Ccircle cx='348' cy='115' r='9'/%3E%3Ccircle cx='348' cy='285' r='9'/%3E%3Ccircle cx='200' cy='370' r='9'/%3E%3Ccircle cx='52' cy='285' r='9'/%3E%3Ccircle cx='52' cy='115' r='9'/%3E%3Ccircle cx='200' cy='200' r='14'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-de,
.hero-bio {
  border-bottom: 1px solid rgba(19, 32, 28, 0.06);
}

.cases {
  scroll-margin-top: 130px;
}

@media (max-width: 900px) {
  .hero-de::after,
  .hero-bio::after {
    opacity: 0.1;
    right: -80px;
    width: 300px;
    height: 300px;
  }
}

/* 微調整: ピルは内容幅、六角形は文字にかからない位置・濃さに */
.hero-de .domain-label,
.hero-bio .domain-label {
  align-self: flex-start;
}

.hero-de::after,
.hero-bio::after {
  height: 360px;
  opacity: 0.14;
  right: calc((100vw - 1120px) / 2 - 40px);
  width: 360px;
}

@media (max-width: 1240px) {
  .hero-de::after,
  .hero-bio::after {
    right: -60px;
  }
}

@media (max-width: 900px) {
  .hero-de::after,
  .hero-bio::after {
    height: 260px;
    opacity: 0.1;
    right: -70px;
    width: 260px;
  }
}

/* 領域カードのボタン: カード幅いっぱいの横長・中央揃え */
/* スマホ: 問い合わせページの3カード・各グリッドを必ず1列に（基本指定より後ろに置く） */
@media (max-width: 900px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .contact-cards,
  .case-list,
  .book-list,
  .works,
  .post-list {
    grid-template-columns: 1fr;
  }

  .contact-cards .entrance {
    padding: 20px;
  }

  .contact-cards .button {
    white-space: normal;
  }
}

/* プロフィール冒頭: 補足文とリンクを文章欄にまとめ、余白を詰める */
.profile-head-text .both-note {
  margin: 20px 0 0;
}

.profile-head-text .simple-links {
  margin-top: 20px;
}

.profile-head + .section.works-section {
  padding-top: 0;
}

/* ---------- ホーム冒頭: 領域ページと同じスタイリッシュさ（ティール×インディゴ） ---------- */
.hero-home {
  border-bottom: 1px solid rgba(19, 32, 28, 0.06);
  margin-bottom: 32px;
  overflow: hidden;
  position: relative;
}

.hero-home .hero-airy {
  min-height: auto;
  padding-bottom: 72px;
  padding-top: 72px;
  position: relative;
  z-index: 1;
}

/* 見出し: 1行目ティール、2行目インディゴのグラデーション */
.hero-home h1 {
  letter-spacing: -0.03em;
}

.hero-home .h1-a,
.hero-home .h1-b {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.hero-home .h1-a {
  background-image: linear-gradient(95deg, #0b4f4a 0%, #0f766e 50%, #14a99a 100%);
}

.hero-home .h1-b {
  background-image: linear-gradient(95deg, #3730a3 0%, #4f46e5 50%, #7c78f0 100%);
}

.hero-home .lead {
  margin-bottom: 32px;
}

/* ロゴのモチーフ（六角形のネットワーク）: 右にティール、重ねてインディゴ */
.hero-home::before,
.hero-home::after {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  pointer-events: none;
  position: absolute;
}

.hero-home::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M200 30l148 85v170l-148 85-148-85V115z'/%3E%3Cpath d='M200 100l88 50v100l-88 50-88-50V150z' stroke-width='2'/%3E%3Cpath d='M200 30v70M348 115l-60 35M348 285l-60-35M200 370v-70M52 285l60-35M52 115l60 35' stroke-width='2'/%3E%3Cg fill='%230f766e' stroke='none'%3E%3Ccircle cx='200' cy='30' r='9'/%3E%3Ccircle cx='348' cy='115' r='9'/%3E%3Ccircle cx='348' cy='285' r='9'/%3E%3Ccircle cx='200' cy='370' r='9'/%3E%3Ccircle cx='52' cy='285' r='9'/%3E%3Ccircle cx='52' cy='115' r='9'/%3E%3Ccircle cx='200' cy='200' r='14'/%3E%3C/g%3E%3C/svg%3E");
  height: 380px;
  opacity: 0.14;
  right: calc((100vw - 1120px) / 2 - 10px);
  top: 38%;
  transform: translateY(-50%) rotate(-6deg);
  width: 380px;
}

.hero-home::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M200 30l148 85v170l-148 85-148-85V115z'/%3E%3Cpath d='M200 100l88 50v100l-88 50-88-50V150z' stroke-width='2'/%3E%3Cpath d='M200 30v70M348 115l-60 35M348 285l-60-35M200 370v-70M52 285l60-35M52 115l60 35' stroke-width='2'/%3E%3Cg fill='%234f46e5' stroke='none'%3E%3Ccircle cx='200' cy='30' r='9'/%3E%3Ccircle cx='348' cy='115' r='9'/%3E%3Ccircle cx='348' cy='285' r='9'/%3E%3Ccircle cx='200' cy='370' r='9'/%3E%3Ccircle cx='52' cy='285' r='9'/%3E%3Ccircle cx='52' cy='115' r='9'/%3E%3Ccircle cx='200' cy='200' r='14'/%3E%3C/g%3E%3C/svg%3E");
  height: 300px;
  opacity: 0.14;
  right: calc((100vw - 1120px) / 2 - 150px);
  top: 68%;
  transform: translateY(-50%) rotate(10deg);
  width: 300px;
}

@media (max-width: 1240px) {
  .hero-home::before {
    right: -60px;
  }

  .hero-home::after {
    right: -120px;
  }
}

@media (max-width: 900px) {
  .hero-home::before {
    height: 240px;
    opacity: 0.09;
    right: 40px;
    width: 240px;
  }

  .hero-home::after {
    height: 200px;
    opacity: 0.09;
    right: -60px;
    width: 200px;
  }
}

@media (max-width: 680px) {
  .hero-home .hero-airy {
    padding-bottom: 40px;
    padding-top: 36px;
  }

  .hero-home h1 {
    font-size: clamp(1.2rem, 5.3vw, 1.9rem);
  }
}

/* ヘッダー: 「相談する」はPC幅ではナビ行の右端、スマホでは従来どおり上段右 */
.nav-cta {
  display: none;
}

@media (min-width: 681px) {
  .header-top .header-cta {
    display: none;
  }

  .nav {
    align-items: center;
    overflow-x: visible;
  }

  .nav a.nav-cta {
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    margin-left: 10px;
  }

  .nav a.nav-cta:hover {
    background: var(--accent-dark);
  }

  .nav a.nav-cta[aria-current="page"] {
    background: var(--accent-dark);
    color: #fff;
  }
}

/* ---------- ボタン共通コンポーネント ----------
   サイズは .sm（ヘッダー）と .lg（本文中のCTA）の2つだけ。色は .primary と領域色(--dom)で決まる */
.button.sm {
  font-size: 0.9rem;
  gap: 6px;
  justify-content: center;
  min-height: 36px;
  padding: 4px 18px;
}

.button.lg {
  font-size: 1rem;
  gap: 10px;
  justify-content: center;
  min-height: 56px;
  padding: 12px 28px;
  text-align: center;
}

/* カード内のボタンはカード幅いっぱい */
.entrance .button.lg,
.contact-cards .button.lg {
  align-self: stretch;
  width: 100%;
}

.contact-cards .button.lg {
  white-space: normal;
}

/* 領域ページ冒頭: 小さな英字の見出し（他ページと同じ書式。色だけ領域に合わせる） */
.hero-de .section-kicker {
  color: var(--de);
}

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

.hero-de .section-kicker,
.hero-bio .section-kicker {
  margin-bottom: 14px;
}
