:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: #f3f3f3;
}

* { box-sizing: border-box; }
html { min-width: 0; }

body {
  margin: 0;
  background: #f3f3f3;
}

a { color: inherit; }

.site-shell {
  width: min(955px, 100%);
  min-height: 700px;
  margin: 0 auto;
  background: #fff;
  border-inline: 1px solid #d7d7d7;
  box-shadow: 0 0 18px rgb(0 0 0 / 10%);
}

.site-header {
  position: relative;
  min-height: 110px;
  padding: 10px 18px 8px 220px;
  border-bottom: 1px solid #e7e7e7;
}

.mini-mark {
  position: absolute;
  left: 18px;
  top: 13px;
}

.mini-mark img {
  display: block;
  width: 132px;
  height: 43px;
  object-fit: contain;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
}

.top-nav a,
.side-nav a {
  text-decoration: none;
  color: #5b5b5b;
  border: 1px solid #d2d2d2;
  background: linear-gradient(#fff, #e8e8e8);
  box-shadow: inset 0 1px 0 #fff;
}

.top-nav a {
  min-width: 94px;
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
  border-radius: 3px;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.side-nav a:hover,
.side-nav a:focus-visible,
.top-nav .is-current {
  color: #111;
  background: linear-gradient(#ececec, #cfcfcf);
  outline: none;
}

.page-grid {
  display: grid;
  grid-template-columns: 194px 1fr;
  gap: 32px;
  padding: 14px 42px 28px 17px;
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 2px;
  padding-top: 8px;
}

.side-nav a {
  width: 176px;
  min-height: 26px;
  padding: 5px 12px;
  font-size: 13px;
  text-align: center;
  border-radius: 2px;
}

.home-content {
  width: min(560px, 100%);
  margin-inline: auto;
  text-align: center;
}

.wordmark {
  display: block;
  width: 214px;
  height: 71px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.mail-button {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 7px;
}

.mail-button img {
  width: 40px;
  height: 41px;
}

h1 {
  margin: 4px 0 22px;
  font-size: 18px;
  font-weight: 400;
}

.portrait-link { display: inline-block; }

.portrait {
  display: block;
  width: 272px;
  height: 183px;
  max-width: 100%;
  object-fit: cover;
}

.counter {
  margin: 12px 0 20px;
  font: 700 28px/1 "Courier New", monospace;
  letter-spacing: 2px;
  color: #343434;
}

.intro {
  max-width: 540px;
  margin-inline: auto;
  font-size: 14px;
  line-height: 1.45;
}

.intro h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.intro p { margin: 5px 0; }

footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 12px 16px 20px;
  color: #666;
  font-size: 12px;
}

footer a { text-decoration: none; }

@media (max-width: 700px) {
  body { background: #fff; }

  .site-shell {
    min-height: 100vh;
    border: 0;
    box-shadow: none;
  }

  .site-header {
    min-height: 0;
    padding: 12px;
  }

  .mini-mark {
    position: static;
    display: block;
    width: fit-content;
    margin: 0 auto 10px;
  }

  .top-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-nav a {
    min-width: 0;
    padding-block: 8px;
    font-size: 13px;
  }

  .page-grid {
    display: block;
    padding: 24px 18px 32px;
  }

  .side-nav { display: none; }
  .wordmark { margin-bottom: 12px; }
  h1 { margin-bottom: 20px; }

  .portrait {
    width: min(100%, 340px);
    height: auto;
    aspect-ratio: 272 / 183;
  }

  .intro { font-size: 15px; }
  footer { flex-direction: column; align-items: center; gap: 5px; }
}
