:root {
  --bg: #f5f5f5;
  --bg-soft: #ececec;
  --card: #f8f8f8;
  --text: #444;
  --title: #1f2a44;
  --accent: #d8a15b;
  --line: #d9d9d9;
  --link: #c98734;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

.year-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px 0;
  padding: 10px 0;
  background: var(--card);
}

.year-nav a {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.year-nav a.current,
.year-nav a:hover {
  border-color: var(--accent);
  background: #fffaf3;
}

.back-to-top {
  margin-top: 16px;
  text-align: right;
}

.back-to-top a {
  display: inline-block;
  font-size: 14px;
  color: var(--link);
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-inner img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.quick-links-image {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.quick-link-image {
  text-align: center;
}

.quick-link-image img {
  width: 85%;
  max-width: 360px;
  height: auto;
  display: inline-block;
  border: 1px solid #ddd;
}

@media screen and (max-width: 640px) {
  .quick-links-image {
    grid-template-columns: 1fr;
  }

  .quick-link-image img {
    width: 100%;
    max-width: 420px;
  }
}


a {
  color: inherit;
  text-decoration: none;
}

.inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: #f3f3f3;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 16px 28px;
}

.logo-block img {
  width: min(560px, 100%);
}

.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: flex-end;
}

.global-nav a {
  display: inline-block;
  font-weight: 700;
  padding: 4px 0 6px;
  border-bottom: 2px solid transparent;
}

.global-nav a.current {
  border-bottom-color: var(--accent);
}

.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding: 34px 16px;
}

.hero-title {
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 0.08em;
  color: #333;
  margin: 0;
  font-weight: 500;
}

.hero-sub {
  display: block;
  font-size: clamp(16px, 2vw, 22px);
  color: #666;
  margin-top: 8px;
}

.breadcrumb-wrap {
  background: #f8f8f8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  padding: 12px 16px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: var(--link);
}

.content {
  padding: 32px 16px 64px;
}

.section-box {
  background: var(--card);
  border: 1px solid #e3e3e3;
  padding: 28px 24px;
  margin: 0 0 28px 0;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: #333;
  margin: 0 0 18px 0;
  font-weight: 600;
}

h3 {
  font-size: clamp(22px, 2.8vw, 30px);
  color: var(--title);
  margin: 0 0 18px 0;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  line-height: 1.5;
}

h4 {
  font-size: 20px;
  color: #333;
  margin: 0 0 16px 0;
  font-weight: 700;
}

p {
  color: var(--text);
  line-height: 2;
  font-size: 16px;
  margin: 0 0 16px 0;
}

.lead {
  color: #000;
  font-size: 17px;
  font-weight: 500;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.media-block {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  margin-top: 14px;
}

.media-block.right-image {
  grid-template-columns: 1fr 360px;
}

.media-block .media-image img {
  width: 100%;
  border: 1px solid #ddd;
  background: #fff;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.quick-link {
  background: #fff;
  border: 1px solid #ddd;
  padding: 18px 16px;
}

.quick-link-title {
  font-weight: 700;
  color: var(--title);
  margin-bottom: 6px;
  font-size: 16px;
}

.quick-link-text {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.news-list,
.recruit-list,
.simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li,
.recruit-list li,
.simple-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
}

.news-date {
  display: inline-block;
  min-width: 110px;
  color: #777;
  font-size: 14px;
  margin-right: 8px;
}

.news-text {
  color: #444;
}

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px 0;
}

.year-nav a {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.year-nav a.current,
.year-nav a:hover {
  border-color: var(--accent);
  background: #fffaf3;
}

.year-block {
  margin-bottom: 32px;
  scroll-margin-top: 24px;
}

.pub-group {
  margin-bottom: 22px;
}

.pub-list {
  margin: 0;
  padding-left: 1.4em;
}

.pub-list li {
  margin-bottom: 12px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.member-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
}

.member-photo {
  width: 160px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  background: #f3f3f3;
}

.member-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--title);
  margin: 0 0 6px 0;
}

.member-role {
  font-size: 15px;
  color: #666;
  margin-bottom: 12px;
}

.member-info {
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.info-table th,
.info-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 15px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.info-table th {
  width: 110px;
  color: #333;
  font-weight: 700;
  padding-right: 16px;
}

.info-table td {
  min-width: 0;
}

.map-box {
  background: #fff;
  border: 1px solid #ddd;
  padding: 16px;
  min-height: 220px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  min-height: 220px;
  background: #efefef;
  border: 1px dashed #ccc;
  display: block;
  text-align: center;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
}


.contact-grid > .section-box {
  min-width: 0;
}

.map-box,
.map-placeholder {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.map-placeholder img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}



.button {
  display: inline-block;
  color: white !important;
  font-size: 12px;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  margin-left: 6px;
  padding: 1px 6px;
  line-height: 1.2;
  vertical-align: baseline;
  position: relative;
  top: -1px;
  border: 1px solid #008CBA;
}

.button-blue {
  background: linear-gradient(to right, #00bfff, #008CBA);
}

.button-green {
  background: linear-gradient(to right, #33cc33, #009900);
}

.button-red {
  background: linear-gradient(to right, #ff3333, #990000);
}

.link-button {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-weight: 700;
  font-size: 14px;
}

.note,
.ref-line {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 20px 16px 30px;
  text-align: center;
  color: #777;
  font-size: 13px;
  background: #f3f3f3;
}

@media screen and (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .global-nav ul {
    justify-content: flex-start;
    padding-top: 0;
  }

  .two-col,
  .member-grid,
  .contact-grid,
  .media-block,
  .media-block.right-image {
    grid-template-columns: 1fr;
  }

  .media-block .media-image {
    max-width: 520px;
  }
}

@media screen and (max-width: 640px) {
  .hero-inner {
    padding: 24px 16px;
  }

  .section-box {
    padding: 22px 16px;
  }

  p,
  .pub-list li,
  .member-info,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .lead {
    font-size: 16px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .news-date {
    display: block;
    margin-bottom: 4px;
  }

  .member-photo {
    width: 130px;
  }

  .member-name {
    font-size: 20px;
  }

  .year-nav a {
    padding: 7px 12px;
    font-size: 13px;
  }

  .info-table th {
    padding-bottom: 4px;
    border-bottom: none;
  }

  .info-table td {
    padding-top: 0;
  }

  .info-table tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
  }
}