/* Reset & Base Variables */
:root {
  --color-primary: #0F9551;
  --color-secondary: #8CC63F;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg-light: #f9f9f9;
  --color-white: #ffffff;
  --color-border: #e5e5e5;

  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;

  --font-mincho: 'Shippori Mincho', serif;         /* しっぽり明朝 */
  --font-dm: 'DM Serif Display', serif;            /* DM Serif Display */
  --font-zenkaku: 'Zen Kaku Gothic New', sans-serif; /* Zen Kaku Gothic New */

  --spacing-container: 1rem;
  --width-container: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, opacity 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--width-container);
  margin: 0 auto;
  padding: 0 var(--spacing-container);
}

.text-primary { color: var(--color-primary); }

@media (min-width: 768px) {
  .u-hidden-md-up { display: none !important; }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  height: 80px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand__logo-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 104, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.brand__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.brand__text {
  margin-left: 0.5rem;
  text-align: center;
  display: none;
}

@media (min-width: 640px) {
  .brand__text { display: block; }
}

.brand__name {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-serif);
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

.brand__sub {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #888;
}

/* Navigation */
.nav {
  display: none;
}

@media (min-width: 768px) {
  .nav { display: block; }
  .nav__list { display: flex; gap: 2rem; }
  .nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    letter-spacing: 0.05em;
  }
  .nav__link:hover { color: var(--color-primary); }
}

/* Mobile Menu Button */
.menu-btn {
  display: block;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 102;
}

.menu-btn:hover { background-color: #00522b; }

.menu-btn__icon { width: 24px; height: 24px; }
.menu-btn__icon--close { display: none; }
.menu-btn.is-open .menu-btn__icon--open { display: none; }
.menu-btn.is-open .menu-btn__icon--close { display: block; }

@media (min-width: 768px) {
  .menu-btn { display: none; }
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  z-index: 101;
  padding-bottom: 2rem;
}

.mobile-menu.is-open { display: block; }

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
}

.mobile-menu__link {
  font-family: var(--font-mincho);
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem;
  color: white;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu__link:hover {
  background-color: rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  background-color: #f3f4f6;
  overflow: hidden;
  margin-top: 80px;
}

@media (min-width: 768px) {
  .hero { height: 80vh; }
}

.hero__bg {
  width: 100%;
  height: 100%;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .hero__overlay { padding-bottom: 8rem; }
}

.hero__content {
  max-width: 896px; /* approx 4xl */
  color: white;
  margin-left: 10%;
}

@media (min-width: 768px) {
  .hero__content { margin-left: 10rem; }
}

.hero__title {
  font-family: var(--font-mincho);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
  .hero__title { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .hero__title { font-size: 3.75rem; }
}

.hero__subtitle {
  font-family: var(--font-mincho);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
  .hero__subtitle { font-size: 1.125rem; }
}

/* Common Section Styles */
.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section { padding: 8rem 0; }
}

.section--light {
  background-color: var(--color-bg-light);
}

.section__header {
  margin-bottom: 4rem;
}

.section__header--center {
  text-align: center;
}

.section__label {
  display: block;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: normal;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-family: var(--font-dm);
}

.section__title {
  font-size: 1.875rem;
  font-family: var(--font-mincho);
  color: #1f2937;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .section__title { font-size: 2.25rem; }
}

.section__title--large {
  margin-bottom: 3rem;
}
@media (min-width: 1024px) {
  .section__title--large { font-size: 3rem; }
}

/* About Section */
.about__header {
  max-width: 1152px; /* 6xl */
  margin: 0 auto 4rem;
}

.about__description {
  margin-top: 3rem;
  color: #374151;
  text-align: justify;
}

@media (min-width: 768px) {
  .about__description {
    width: 66%;
    margin-left: auto;
  }
}
@media (min-width: 1024px) {
  .about__description { width: 50%; }
}

.about__description p + p {
  margin-top: 1.5rem;
}

.about__cards {
  display: grid;
  gap: 2rem;
  max-width: 1152px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about__cards {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.card {
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .card { padding: 3.5rem; }
}

.card__decoration {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .card__decoration {
    left: auto;
    right: auto;
  }
}

.card__decoration--yellow { background-color: #FACC15; }
.card__decoration--green { background-color: var(--color-primary); }

.card__title {
  font-size: 1.5rem;
  font-family: var(--font-mincho);
  color: var(--color-primary);
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

.card__text {
  font-family: var(--font-mincho);
  font-size: 1.125rem;
  line-height: 2;
}

/* Facilities Section */
.facilities__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .facilities__grid { grid-template-columns: repeat(3, 1fr); }
}

.facility-card {
  background: white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.facility-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.facility-card__header {
  padding: 1.5rem;
  text-align: center;
}

.facility-card__en {
  font-family: var(--font-dm);
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.facility-card__jp {
  font-size: 1.25rem;
  font-family: var(--font-mincho);
  color: #1f2937;
}

.facility-card__image-wrapper {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.facility-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.facility-card:hover .facility-card__image {
  transform: scale(1.05);
}

.facility-card__body {
  padding: 2rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.info-list {
  display: grid;
  gap: 0.75rem;
}

.info-list__item {
  display: grid;
  grid-template-columns: 4em 1fr;
  gap: 0.5rem;
}

.info-list__term {
  color: var(--color-primary);
  font-weight: 700;
}

.link--break {
  word-break: break-all;
  text-decoration: underline;
  color: #9ca3af;
}

.link--break:hover { color: var(--color-primary); }

/* Overview Section */
.overview__layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1024px; /* 5xl */
}

@media (min-width: 768px) {
  .overview__layout { flex-direction: row; }
  .overview__sidebar { width: 25%; }
  .overview__content { width: 75%; }
}

.table-list {
  border-top: 1px solid #f3f4f6;
}

.table-list__row {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

@media (min-width: 768px) {
  .table-list__row {
    grid-template-columns: 10rem 1fr;
  }
}

.table-list__term {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .table-list__term { font-size: 1rem; padding-top: 0.25rem; }
}

.table-list__desc {
  font-size: 0.875rem;
  color: #374151;
}

@media (min-width: 768px) {
  .table-list__desc { font-size: 1rem; }
}

.docs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.docs-list__title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.docs-list__files {
  display: flex;
  gap: 1rem;
}

.link--icon {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  text-decoration: underline;
}

.link--icon:hover { opacity: 0.8; }

.icon { margin-left: 0.25rem; }

/* Divider */
.divider {
  background-color: white;
  width: 100%;
}

@media (min-width: 768px) {
  .divider { background-color: rgba(249,250,251, 0.5); }
}

.divider__image {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  object-position: center;
  /* filter: grayscale(100%);
  opacity: 0.3; */
}

@media (min-width: 768px) {
  .divider__image { height: 16rem; }
}

/* History Section */
.history__layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1024px;
}

@media (min-width: 768px) {
  .history__layout { flex-direction: row; }
  .history__sidebar { width: 25%; position: sticky; top: 6rem; align-self: start; }
  .history__content { width: 75%; }
}

.timeline {
  position: relative;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0.5rem;
  bottom: 0;
  width: 1px;
  background-color: #d1d5db;
}

@media (min-width: 768px) {
  .timeline::before { left: 9px; }
}

.timeline__item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .timeline__item { padding-left: 2.5rem; }
}

.timeline__item:last-child { margin-bottom: 0; }

.timeline__marker {
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: white;
  border: 4px solid var(--color-primary);
  z-index: 1;
}

@media (min-width: 768px) {
  .timeline__marker { width: 19px; height: 19px; }
}

.timeline__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .timeline__body {
    flex-direction: row;
    align-items: baseline;
    gap: 2rem;
  }
}

.timeline__date {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .timeline__date { width: 8rem; }
}

.timeline__year {
  display: block;
  font-size: 1.5rem;
  color: var(--color-primary);
  font-family: var(--font-mincho);
  line-height: 1;
}

@media (min-width: 768px) {
  .timeline__year { font-size: 1.875rem; }
}

.timeline__era {
  font-family: var(--font-zenkaku);
  display: block;
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-top: 0.25rem;
}

.timeline__detail {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.timeline__month {
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.timeline__text {
  font-size: 0.875rem;
  color: #374151;
}

@media (min-width: 768px) {
  .timeline__text { font-size: 1rem; }
}

.timeline__text--border {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #d1d5db;
}

/* Recruit Section */
.recruit__layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  max-width: 1152px;
  margin: 0 auto;
}

.recruit__image-wrapper {
  width: 100%;
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: #e5e7eb;
}

@media (min-width: 768px) {
  .recruit__layout { flex-direction: row; }
  .recruit__image-wrapper { width: 50%; }
  .recruit__content { width: 50%; padding-left: 2rem; }
}


@media (min-width: 768px) {
  .recruit__image-wrapper { aspect-ratio: 4/5; }
}

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

.recruit__heading {
  font-size: 1.5rem;
  font-family: var(--font-mincho);
  color: var(--color-primary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .recruit__heading { font-size: 1.875rem; }
}

.recruit__text {
  color: #4b5563;
  margin-bottom: 2rem;
  text-align: justify;
  line-height: 2;
}

.recruit__link {
  font-family: var(--font-zenkaku);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 700;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.25rem;
}

.recruit__link:hover { opacity: 0.7; }

.recruit__icon-wrapper {
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  padding: 0.25rem;
  display: flex;
}

/* Footer */
.footer {
  background-color: var(--color-bg-light);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  max-width: 896px; /* 4xl */
  text-align: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.footer__logo-wrapper {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.footer__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.footer__name {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  color: #1f2937;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.footer__sub {
  font-size: 0.75rem;
  color: #6b7280;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer__address {
  margin-bottom: 3rem;
  font-family: var(--font-mincho);
  color: #4b5563;
  font-size: 0.875rem;
}

.footer__address p + p {
  margin-top: 0.5rem;
}

.footer__links {
  margin-bottom: 3rem;
}

.footer__link {
  font-family: var(--font-mincho);
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  color: #6b7280;
}

.footer__link:hover { color: var(--color-primary); }

.footer__icon { margin-left: 0.25rem; }

.footer__copy {
  font-size: 10px;
  color: #9ca3af;
}