:root {
  color-scheme: light;
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #172b40;
  background: #f4f7fb;
  line-height: 1.65;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #245888; }
a:focus-visible { outline: 3px solid #267dd5; outline-offset: 4px; }
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }

header {
  border-bottom: 1px solid #ccd9e6;
  background: white;
}

header .wrap {
  display: flex;
  align-items: center;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-block: 1rem;
}

main { padding-block: clamp(1.5rem, 5vw, 4rem); }
h1 { font-size: clamp(1.7rem, 5vw, 3.15rem); line-height: 1.35; margin: 0 0 1rem; }
h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); margin: 0 0 1rem; }
.intro { max-width: 44rem; margin: 0 0 1.5rem; }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
section { margin-top: 2.8rem; scroll-margin-top: 1rem; }

ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

li a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #cedaea;
  border-radius: .7rem;
  background: white;
  color: inherit;
  text-decoration: none;
}

li a:hover { border-color: #4180c2; box-shadow: 0 3px 12px #1b4c8619; }
li a:hover .open { text-decoration: underline; }
li img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid #e0e8f0; }
.card-text { display: flex; flex-direction: column; gap: .35rem; flex: 1; padding: 1rem; }
.card-text p { margin: 0; font-size: .9rem; }
.open { margin-top: auto; padding-top: .35rem; font-size: .85rem; font-weight: 600; color: #245888; }
footer { padding-block: 0 2.5rem; font-size: .85rem; }
