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

html:focus-within {
  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%;
  aspect-ratio: 632/340;
  object-fit: cover;
  margin-bottom: 2rem;
  margin-top: 0;

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

.main-title {
  font-size: 2rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 2rem;
  text-align: left;
  padding-bottom: 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-bottom: 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;
}
/* メインコンテンツ ここまで------------------------- */

/* snsリンク -------------------------*/
/* SNS Styles */
/* SNSアイコンを追加、もしくはサイズ変更時にここを調整 */
.sns {
  --sns-icon-width: 48px;
  --sns-left-space: 8px;
  --sns-button-group-height: 96px;
  --sns-button-group-bottom-space: 16px;

  position: absolute;
  right: calc(-1 * (var(--sns-icon-width) + var(--sns-left-space)));
  top: 0;
  height: 100%;

  &.hide {
    transform: translateY(100%);
  }
}

.sns__button-group {
  position: sticky;
  top: calc(100svh - var(--sns-button-group-height) - var(--sns-button-group-bottom-space));
}

.sns__icons {
  display: flex;
  flex-direction: column;
}

.sns__image-wrapper {
  width: 48px;
  cursor: pointer;
}

.sns__image-logo {
  display: none;
}

/* SNSボタン表示切替 */
/* コンテンツ幅を変えたらmax-widthを調整 */
@media screen and (max-width: 1250px) {
  .sns {
    position: fixed;
    width: 100%;
    right: 0;
    bottom: 0;
    background-color: #fff;
    padding: 1rem 1.5rem 1.5rem;
    transition: transform 0.2s ease;
    height: auto;
    top: unset;
  }

  .sns .sns__button-group {
    display: flex;
    justify-content: space-between;
  }

  .sns .sns__image-logo {
    display: block;
    width: 128px;
  }

  .sns .sns__icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .sns .sns__image-wrapper {
    width: 36px;
  }
}
/* SNSリンク ここまで------------------------- */
