:root {
  --black: #1A120A;
  --dark-gray: #5C5957;
  --light-gray: #BFBFBF;
  --background-gray: #F6F6F6;
  --white: #FFFFFF;

  --background-color: var(--background-gray);
  --text-color: var(--black);

  --main-width: 688px;
  --header-height: 84px;
}

html {
  height: 100%;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

body {
  margin: 0;
  height: 100%;
  position: relative;
  background-color: var(--background-gray);
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.4;
}

h1 {
  font-size: 21px;
}
h2 {
  font-size: 16px;
}
h3 {
  font-size: 14px;
}
h4 {
  font-size: 13px;
}
h5 {
  font-size: 12px;
}
a:hover {
  opacity: 0.8;
  transition: 0.2s ease-in-out;
}

hr {
  background: var(--light-gray);
  height: 0.5px;
  border-width: 0;
}

.font-page-title {
  font-size: 21px;
  font-weight: bold;
  line-height: auto;
}

.font-element-title {
  font-size: 16px;
  font-weight: bold;
  line-height: auto;
}

.font-caption {
  font-size: 14px;
  line-height: auto;
}

.font-caption-title {
  font-size: 14px;
  line-height: auto;
  font-weight: bold;
}

.grid-container {
  /* コンテンツに合わせてfooterのサイズ調整をするためのgrid指定 */
  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-columns: 100%;
  min-height: 100vh;
}

header {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  z-index: 1000;
  height: calc(var(--header-height) - 24px);
  background-color: var(--white);
  padding: 12px 32px;
  box-shadow: 0 0 1px 0 rgb(0 0 1 / 10%);
}
@media screen and (max-width: 560px) {
  header {
    padding: 12px 16px;
  }
}

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

.header-logo a {
  display: block;
  line-height: 0;
}

.header-buttons {
  display: flex;
  justify-content: flex-start;
}
.header-buttons  a {
  margin-left: 8px;
}
@media screen and (max-width: 560px) {
  .header-buttons .filled-button {
    display: none;
  }
}
@media screen and (max-width: 480px) {
  .header-buttons .outline-button {
    display: none;
  }
}

main {
  display: flex;
  justify-content: center;
  margin-top: var(--header-height);
}

.main {
  background-color: var(--white);
  width: var(--main-width);
  padding: 40px 24px 80px;
}
@media screen and (max-width: 688px) {
  .main {
    width: 100%;
  }
}

.stores-page .contents {
  margin-top: 32px;
}

footer {
  margin-top: 80px;
  padding: 56px 80px;
  background-color: var(--white);
}
@media screen and (max-width: 800px) {
  footer {
    padding: 56px 40px;
  }
}

.footer {
  width: 100%;
  height: auto;
}
.footer ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer li {
  margin-right: 24px;
}
.footer .company-name {
  margin-bottom: 8px;
}
.footer a {
  color: var(--dark-gray);
  margin-right: 24px;
}
.footer .copyright {
  text-align: center;
  color: var(--dark-gray);
  margin: 32px;
}
.footer hr {
  margin: 32px 0;
}

.page-title {
  margin-bottom: 24px;
}
.page-title h1 {
  margin: 0;
}
.page-title p {
  margin-top: 4px;
  font-size: 14px;
}
.page-title .caption {
  color: var(--dark-gray);
  font-size: 12px;
}

.navigation-button-grid {
  /* ページ絞り込み・ドリルダウンエリアにあるgrid */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 24px;
  grid-row-gap: 16px;
}
@media screen and (max-width: 480px) {
  .navigation-button-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 16px;
  }
}

.navigation-link-grid {
  /* ページ絞り込み・ドリルダウンエリアにあるgrid */
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.navigation-link-grid .link {
  padding: 4px 0;
  color: var(--text-color);
  overflow-wrap: break-word;
}
@media screen and (max-width: 560px) {
  .navigation-link-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 480px) {
  .navigation-link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contents-grid {
  /* sub-header以下にあるgridコンテンツ */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 12px;
  margin-bottom: 24px;
}
@media screen and (max-width: 560px) {
  .contents-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contents-grid .text {
  margin: 0;
  padding: 4px 0;
  color: var(--text-color);
  overflow-wrap: break-word;
}

.contents-grid .link {
  padding: 4px 0;
  color: var(--text-color);
  overflow-wrap: break-word;
}

.filled-button {
  display: flex;
  color: var(--white);
  background-color: var(--primary-color);
  padding: 0 12px;
  border-radius: 24px;
  box-shadow: 0px 2px 2px 0px rgb(0 0 0 / 14%);
  height: 32px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}
.filled-button:active {
  transform: translateY(0.0625rem);
}
.filled-button.large {
  height: 48px;
  font-size: 17px;
}

.outline-button {
  display: flex;
  color: var(--primary-color);
  background-color: var(--white);
  padding: 0 12px;
  border: 1px solid var(--primary-color);
  border-radius: 24px;
  box-shadow: 0px 2px 2px 0px rgb(0 0 0 / 14%);
  height: 32px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.outline-button:active {
  transform: translateY(0.0625rem);
}

.outline-button.large {
  height: 48px;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  font-size: 14px;
  font-weight: normal;
  color: var(--dark-gray);
}

.breadcrumb li:not(:last-child)::after {
  display: inline-block;
  margin: 0 16px;
  content: ">";
  color: var(--light-gray);
}

.breadcrumb a {
  color: var(--dark-gray);
}

.check-now {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}
.check-now h3 {
  margin: 0 0 8px 0;
  font-size: 15px;
}

.sub-header {
  margin-top: calc(var(--header-height) * -1);
  padding-top: var(--header-height);
  margin-bottom: 16px;
  width: 100%;
  pointer-events: none;
}

.sub-header-content {
  background-color: var(--background-color);
  padding: 8px 12px;
  font-size: 18px;
  font-weight: bold;
}

.store-info {
  margin: 40px 0;
}
.store-info th {
  text-align: left;
  width: 80px;
}
.store-info td {
  padding: 4px;
}
