/* ベーススタイル  ------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
  width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset,
legend {
  padding: 0;
  margin: 0;
  border: 0;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  background-color: #f5f5f5;

  @media screen and (max-width: 428px) {
    font-size: 15px;
  }

  @media screen and (max-width: 375px) {
    font-size: 14px;
  }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;

  &:hover {
    background: #a8a8a8;
  }
}

[id^='a_'] {
  @media screen and (max-width: 1420px) {
    scroll-margin-top: 54px;
  }
}

main {
  flex: 1;
  padding: 0;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  margin-top: 64px;
  background-color: white;
  position: relative;

  @media screen and (max-width: 428px) {
    margin-top: 48px;
    padding: 0;
    min-height: calc(100vh - 48px - 56px);
    padding-bottom: 56px;
  }

  @media screen and (max-width: 375px) {
    min-height: calc(100vh - 48px - 52px);
    padding-bottom: 52px;
  }
}

/* ベーススタイル ここまで ------------------------- */

/* メインコンテンツ ------------------------- */
.main-image {
  width: 100%;
}

.main-title {
  font-size: 2rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 2rem;
  text-align: left;
  padding-block: 2rem;
  border-bottom: 1px solid #e0e0e0;
  margin-left: 2rem;
  margin-right: 2rem;

  @media screen and (max-width: 428px) {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    padding-block: 1.25rem;
    line-height: 1.4;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  @media screen and (max-width: 375px) {
    font-size: 1.3rem;
  }
}

.section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #e0e0e0;
  margin-left: 2rem;
  margin-right: 2rem;

  &:last-child {
    margin-bottom: 3rem;
    padding-bottom: 0;
    border-bottom: none;

    @media screen and (max-width: 428px) {
      margin-bottom: 1.75rem;
      padding-bottom: 0;
    }
  }

  @media screen and (max-width: 428px) {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

.section__title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;

  @media screen and (max-width: 428px) {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  @media screen and (max-width: 375px) {
    font-size: 1.15rem;
  }
}

.section__text {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;

  @media screen and (max-width: 428px) {
    font-size: 0.9rem;
    line-height: 1.7;
  }
}

.section__text--period {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  white-space: nowrap;
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;

  @media screen and (max-width: 428px) {
    font-size: 0.85rem;
    white-space: normal;
    letter-spacing: 0.02em;
    gap: 0.25rem;
  }

  @media screen and (max-width: 375px) {
    font-size: 0.8rem;
  }
}

.section__text--notes {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #666;

  p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;

    &:last-child {
      margin-bottom: 0;
    }

    @media screen and (max-width: 428px) {
      gap: 0.25rem;
      margin-bottom: 0.4rem;
    }
  }

  @media screen and (max-width: 428px) {
    font-size: 0.85rem;
  }
}

.period-item {
  margin-bottom: 0.5rem;
  width: 100%;

  &:last-child {
    margin-bottom: 0;
  }

  @media screen and (max-width: 428px) {
    margin-bottom: 0.5rem;
  }
}

.period-number {
  color: #378a40;
  font-weight: 700;
  margin-right: 0.5rem;

  @media screen and (max-width: 428px) {
    margin-right: 0.4rem;
    font-size: 0.85rem;
  }

  @media screen and (max-width: 375px) {
    font-size: 0.8rem;
  }
}

.period-type {
  color: #666;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  padding: 0.1rem 0.5rem;
  background-color: #f5f5f5;
  border-radius: 3px;
  font-weight: 500;
  min-width: 80px;
  text-align: center;

  @media screen and (max-width: 428px) {
    font-size: 0.8rem;
    margin-right: 0.4rem;
    padding: 0.1rem 0.4rem;
    min-width: 65px;
  }

  @media screen and (max-width: 375px) {
    font-size: 0.75rem;
    min-width: 60px;
    padding: 0.1rem 0.3rem;
  }
}

.period-type--store {
  color: #378a40;
  background-color: #e8f5e9;
}

.period-type--online {
  color: #1976d2;
  background-color: #e3f2fd;
}

.period-date {
  flex: 1;

  @media screen and (max-width: 428px) {
    font-size: 0.85rem;
  }

  @media screen and (max-width: 375px) {
    font-size: 0.8rem;
  }
}

.note-symbol {
  flex-shrink: 0;

  @media screen and (max-width: 428px) {
    font-size: 0.85rem;
  }
}

.note-text {
  flex: 1;
}

.store-info {
  display: flex;
  align-items: center;
  justify-content: space-between;

  @media screen and (max-width: 428px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

.store-info__text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;

  @media screen and (max-width: 428px) {
    gap: 0.2rem;
  }
}

.store-name {
  font-weight: 700;
  color: #333;
}

.store-hours {
  font-size: 0.9rem;
  color: #666;

  @media screen and (max-width: 428px) {
    font-size: 0.85rem;
  }
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.8rem;
  background-color: #fff;
  border: 1px solid #37853e;
  border-radius: 4px;
  color: #37853e;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  font-weight: 600;
  white-space: nowrap;

  &:hover {
    background-color: #378a40;
    color: #fff;

    .pin {
      fill: #fff;
    }
  }

  @media screen and (max-width: 428px) {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
}

.map-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* メインコンテンツ ここまで------------------------- */

/* ナビゲーションメニュー -------------------------*/
/* 変数 */
:root {
  /* ベース色 */
  --nav-primary: #000;
  --nav-secondary: #fff;
  --nav-border: #e2e8f0;

  /* SNSアカウントボタン */
  --nav-account-btn-border: #1a1a1a;
  --nav-account-btn-color: #fff;
  --nav-account-btn-bg: #1a1a1a;
  --nav-account-btn-icon: #ffff;

  /* 詳細 */
  --nav-bg: var(--nav-primary);
  --nav-color: var(--nav-secondary);
  /* pc時ナビゲージョン区切り線 */
  --nav-divider-color: var(--nav-secondary);
  /* pc時ナビゲージョン高さ */
  --nav-height: 64px;
  /* 閉じるボタン */
  --nav-close-button-border-top: var(--nav-border);
  --nav-close-button-bg: var(--nav-bg);
  --nav-close-button-color: var(--nav-color);
  --nav-close-button-icon: var(--nav-color);
  /* 開くボタン */
  --nav-open-button-bg: var(--nav-primary);
  --nav-open-button-color: var(--nav-secondary);
  --nav-open-button-icon: var(--nav-secondary);

  /* スマホ時 */
  @media (max-width: 768px) {
    --nav-bg: var(--nav-secondary);
    --nav-color: var(--nav-primary);
    --nav-height: 0px;
  }
}

/* アンカーリンク位置調整 */
:target {
  scroll-margin-top: calc(var(--nav-height) + var(--header-height));
}

/* ラジオボタン非表示 */
#nav-switch {
  display: none;
}

/* メニュー表示中親要素スクロール停止 */
html:has(#nav-switch:checked) {
  overflow: hidden;
}

@media (min-width: 769px) {
  .nav {
    top: var(--header-height,0);
    position: sticky;
    left: 0;
    z-index: 1001;
  }
}

.nav__container {
  background: var(--nav-bg);
}

@media (max-width: 768px) {
  .nav__container {
    position: fixed;
    width: 100%;
    height: 100dvh;
    top: 0;
    left: 0;
    opacity: 0;
    display: none;
    z-index: 1001;
    transition:
      opacity 0.3s ease-out,
      display 0.3s ease-out allow-discrete;
    flex-direction: column;
  }

  #nav-switch:checked ~ .nav__container {
    opacity: 1;
    display: flex;

    @starting-style {
      opacity: 0;
    }
  }
}

@media (max-width: 768px) {
  .nav__main {
    padding: 32px 32px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
}

.nav__link-list {
  display: flex;
}

@media (max-width: 768px) {
  .nav__link-list {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
}

.nav__link a {
  color: var(--nav-color);
}

.nav__link a:hover {
  opacity: 0.7;
}

@media (min-width: 769px) {
  .nav__link {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    min-height: var(--nav-height);
    position: relative;
    flex: 1;
  }

  .nav__link a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .nav__link:not(:last-child)::after {
    content: '';
    display: block;
    top: calc(50% - (32px / 2));
    right: 0;
    position: absolute;
    background: var(--nav-divider-color);
    width: 1px;
    height: 32px;
  }
}

@media (max-width: 768px) {
  .nav__link a {
    display: flex;
    font-size: 1rem;
    padding: 12px 16px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    line-height: 1.2;
    min-height: 40px;
    font-weight: 800;
    word-break: break-word;
  }
  .nav__link:not(.nav__link--icon-none) a::before {
    content: '';
    flex: 0 0 auto;
    display: block;
    width: 1em;
    height: 1em;
    background: no-repeat center / contain url(../images/nav-list-icon.svg);
  }
}

/* 閉じるボタン(スマホ時のみ表示) */
.nav__close-button {
  display: flex;
  width: 100%;
  border-top: 1px solid var(--nav-close-button-border-top);
  background: var(--nav-close-button-bg);
  min-height: 68px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: var(--nav-close-button-color);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  position: sticky;
  bottom: 0;
  margin-top: auto;

  @media (min-width: 769px) {
    display: none;
  }

  &::before {
    content: '';
    display: block;
    width: 20px;
    aspect-ratio: 1/1;
    background: var(--nav-close-button-icon);
    mask-image: url(../images/close-line.svg);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
  }
}

/* 開くボタン(スマホ時のみ表示) */
.nav__open-button {
  display: flex;
  width: 92.56%;
  min-height: 56px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border-radius: 6px;
  background: var(--nav-open-button-bg);
  box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.25);
  color: var(--nav-open-button-color);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  position: fixed;
  bottom: 14px;
  left: calc(50% - (92.56% / 2));

  @media (min-width: 769px) {
    display: none;
  }

  &::before {
    content: '';
    display: block;
    width: 20px;
    aspect-ratio: 1/1;
    background: var(--nav-open-button-icon);
    mask-image: url(../images/menu-line.svg);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
  }
}

/* アカウントボタン(スマホ時のみ表示) */

.nav__account-btn {
  width: fit-content;
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 2px solid var(--nav-account-btn-border);
  background: var(--nav-account-btn-bg);
  color: var(--nav-account-btn-color);
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;

  &::before {
    content: '';
    flex: 0 0 auto;
    display: block;
    width: 1em;
    height: 1em;
    background: var(--nav-account-btn-icon);
    mask-image: url(../images/x_logo.svg);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
  }
}

@media (min-width: 769px) {
  .nav__account-btn {
    display: none;
  }
}

/* ナビゲーション ここまで ------------------------- */

/* snsリンク -------------------------*/
/* 変数 */
:root {
  /* ベース色 */
  --sns-color-primary: #000;
  --sns-color-secondary: #fff;

  /* 詳細 */
  --sns-bg: var(--sns-color-secondary);
  --sns-title-color: var(--sns-color-primary);
  --sns-btn-bg: var(--sns-color-secondary);
  --sns-btn-color: var(--sns-color-primary);
  --sns-btn-border: var(--sns-color-primary);
  --sns-btn-icon: var(--sns-color-primary);
}

.sns {
  background: var(--sns-bg);
  display: flex;
  padding: 40px 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.sns__title {
  color: var(--sns-title-color);
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.sns__share-button {
  display: flex;
  width: 240px;
  height: 52px;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  border: 1px solid var(--sns-btn-border);
  background: var(--sns-btn-bg);
  color: var(--sns-btn-color);

  &::before {
    content: '';
    display: block;
    width: 16px;
    aspect-ratio: 1/1;
    background: var(--sns-btn-icon);
    mask-image: url(../images/share-line.svg);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
  }

  &:hover {
    opacity: 0.7;
  }
}

/* SNSリンク ここまで------------------------- */
