:root {
  /* Font Family */
  --font-family: "ヒラギノ丸ゴ Pro W4", "ヒラギノ丸ゴ Pro",
    "Hiragino Maru Gothic Pro", "ヒラギノ角ゴ Pro W3",
    "Hiragino Kaku Gothic Pro", "HG丸ｺﾞｼｯｸM-PRO", "HGMaruGothicMPRO";

  /* Font Size */
  --font-size-small: 0.8rem;
  --font-size-body: 1rem;
  --font-size-title: 1.8rem;

  /* Line Height */
  --line-height-body: 1.8;
  --line-height-title: 1;
  --letter-spacing: 0.1rem;
  --font-weight: normal;

  /* Colors */
  --color-primary: #804c21;
  --color-background: #fffde8;
  --color-yellow: #fff68d;

  /* Border */
  --border: 1px solid var(--color-primary);
}

html {
  font-family: var(--font-family);
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight);
  letter-spacing: var(--letter-spacing);
  color: var(--color-primary);
  background-color: var(--color-background);
}

a:link,
a:visited,
a:active {
  color: var(--color-primary);
  text-decoration: none;
}

h1.title {
  margin-bottom: 30px;
  padding: 100px 0 50px 0;
  font-size: var(--font-size-title);
  line-height: var(--line-height-title);
  font-weight: var(--font-weight);
  text-align: center;
  border-bottom: var(--border);
}

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

.header {
  width: 100%;
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 30px 50px 0 50px;
  z-index: 99;
}

.logo {
  width: 150px;
}

.logo__index-only {
  width: 400px;
}

.nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
}

.footer {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  margin: auto 50px 0 50px;
  padding: 30px 0;
  font-size: var(--font-size-small);
  border-top: var(--border);
}

.hero {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-flow: column;
  justify-content: flex-end;
  padding: 0 50px 30px 50px;
  background-color: var(--color-yellow);
}

.hero-image {
  position: absolute;
  width: 520px;
  bottom: 160px;
  right: 150px;
}

.main__index-only {
  display: flex;
  justify-content: center;
  padding: 0 0 100px 0;
}

.main {
  display: flex;
  justify-content: center;
  padding: 100px 0;
}

.container {
  width: 800px;
  margin: 0 50px;
}

li.news-article {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  margin: 0 auto;
  padding: 30px 0;
  list-style-type: none;
  border-bottom: var(--border);
}

.news li:first-child {
  padding-top: 0;
}

.news-slug {
  display: block;
  font-size: var(--font-size-small);
}

.view-all {
  padding-top: 30px;
  font-size: var(--font-size-small);
  text-align: right;
}

.link-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 30px;
}

.link-container > * {
  flex: 1 1 180px;
}

.link {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  border: var(--border);
  border-radius: 50px;
  padding: 15px 30px;
}

.icon {
  display: flex;
  align-items: center;
}

.flex-basis-100 {
  flex-basis: 100%;
}

.news-content {
  padding-top: 20px;
}

@media only screen and (max-width: 1024px) {
  .logo__index-only {
    width: 150px;
  }

  .hero-image {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
  }
}

@media only screen and (max-width: 599px) {
  :root {
    --font-size-body: 0.8rem;
    --font-size-title: 1.5rem;
  }

  .header {
    padding: 30px 30px 0 30px;
  }

  .container {
    margin: 0 30px;
  }

  .nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .footer {
    margin: auto 30px 0 30px;
  }
}
