/* ====== Basic Reset ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #0e1a2b;
  background: #ffffff;
}

/* ====== Variables ====== */
:root {
  --clr-primary: #0e1a2b;       /* 深インディゴ */
  --clr-accent:  #04b4c7;       /* ターコイズ */
  --clr-bg-alt:  #f6f9fc;
  --header-h:    68px;
}

/* ====== Utility ====== */
.container {
  width: min(90%, 1100px);
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--clr-bg-alt);
}

h1, h2, h3 h4,{
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--clr-primary);
}
h3 {  color: var(--clr-primary);}
h4 {  color: var(--clr-primary);}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.3rem; }
/* ====== Header ====== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
  z-index: 1000;
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 42px;
  width: auto;
}

.nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav a {
  text-decoration: none;
  color: var(--clr-primary);
  font-weight: 700;
  transition: color .2s;
}

.nav a:hover,
.nav a:focus {
  color: var(--clr-accent);
}

/* ====== Mobile Menu ====== */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-btn span {
  width: 24px;
  height: 3px;
  background: var(--clr-primary);
  transition: transform .3s;
}

/* ====== Hero ====== */
.hero {
  margin-top: var(--header-h);
  height: 60vh;
  min-height: 400px;
  background: url("hero_bg.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
}

.hero__content {
  position: relative;
  color: #fff;
}

.hero__content h1 {
  font-size: 3rem;
  letter-spacing: .03em;
}

.hero__content p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* ====== Cards ====== */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: transform .2s;
}

.card:hover {
  transform: translateY(-4px);
}

/* ====== News ====== */
.news-list {
  list-style: none;
}

.news-list li {
  margin-bottom: .8rem;
}

.news-list time {
  color: var(--clr-accent);
  font-weight: 700;
  margin-right: .4rem;
}

/* ====== Links ====== */
.links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.links a {
  text-decoration: none;
  color: var(--clr-accent);
}

/* ====== Footer ====== */
.footer {
  background: var(--clr-primary);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    transform: translateY(-120%);
    transition: transform .3s;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav ul {
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 1rem;
  }

  .menu-btn {
    display: flex;
  }
}
