@import url("https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap");

/* =====================================
   基本設定
===================================== */

#ameru-shop {
  --am-purple: #8c7ee3;
  --am-purple-hover: #7968d2;
  --am-dark: #51466e;
  --am-light: #f6f3fc;
  --am-border: #e4deef;

  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--am-dark);
  font-family:
    "Zen Maru Gothic",
    "Hiragino Maru Gothic ProN",
    "Yu Gothic",
    sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
  overflow-wrap: anywhere;
}

#ameru-shop,
#ameru-shop * {
  box-sizing: border-box;
}

#ameru-shop h1,
#ameru-shop h2,
#ameru-shop h3,
#ameru-shop p {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
}

#ameru-shop a {
  color: inherit;
  text-decoration: none;
}

#ameru-shop img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 0;
}

#ameru-shop a:focus-visible {
  outline: 3px solid var(--am-purple);
  outline-offset: 5px;
}

/* =====================================
   ヘッダー
===================================== */

#ameru-shop .am-header {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--am-border);
}

#ameru-shop .am-header__inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1120px;
  min-height: 64px;
  margin: 0 auto;
}

/*
  元のロゴ画像は左右に白い余白があるため、
  表示枠で中央のロゴ部分だけを見せます。
*/
#ameru-shop .am-logo {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 180px;
  height: 65px;
  overflow: hidden;
}

#ameru-shop .am-logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 720px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

#ameru-shop .am-account {
  position: absolute;
  top: 50%;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 500;
}

#ameru-shop .am-account svg {
  flex-shrink: 0;
}

/* =====================================
   ブランド紹介
===================================== */

#ameru-shop .am-main {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

#ameru-shop .am-about {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px 52px;
  text-align: center;
}

#ameru-shop .am-eyebrow {
  color: var(--am-purple);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.24em;
}

#ameru-shop .am-about h1 {
  margin-top: 20px;
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

#ameru-shop .am-about h1 span {
  display: inline-block;
}

#ameru-shop .am-about__text {
  margin-top: 28px;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 400;
  line-height: 2;
}

#ameru-shop .am-about__text p + p {
  margin-top: 4px;
}

#ameru-shop .am-mobile-break {
  display: none;
}

/* =====================================
   商品一覧
===================================== */

#ameru-shop .am-products {
  width: 100%;
  max-width: 1168px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

#ameru-shop .am-section-heading {
  margin-bottom: 30px;
  text-align: center;
}

#ameru-shop .am-section-heading h2 {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.5;
}

#ameru-shop .am-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

#ameru-shop .am-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border-radius: 20px;
  background: var(--am-light);
}

#ameru-shop .am-card__image {
  display: block;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
}

#ameru-shop .am-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

#ameru-shop .am-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 2px 4px;
}

#ameru-shop .am-card h3 {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.5;
}

#ameru-shop .am-card__description {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
}

#ameru-shop .am-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
}

#ameru-shop .am-badge {
  display: inline-block;
  padding: 4px 20px;
  border: 1px solid var(--am-purple);
  border-radius: 999px;
  color: var(--am-purple);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

#ameru-shop .am-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--am-purple);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  transition: background-color 0.2s ease;
}

#ameru-shop .am-button svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  #ameru-shop .am-card__image:hover img {
    transform: scale(1.025);
  }

  #ameru-shop .am-button:hover {
    background: var(--am-purple-hover);
  }

  #ameru-shop .am-account:hover,
  #ameru-shop .am-footer__links a:hover {
    color: var(--am-purple);
  }
}

/* =====================================
   フッター
===================================== */

#ameru-shop .am-footer {
  display: flex;
  position: static;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 32px 24px 24px;
  background: var(--am-light);
  text-align: center;
}

#ameru-shop .am-logo--footer {
  width: 144px;
  height: 52px;
  mix-blend-mode: multiply;
}

#ameru-shop .am-logo--footer img {
  width: 576px;
}

#ameru-shop .am-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 24px;
  margin-top: 20px;
}

#ameru-shop .am-footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 12px;
  line-height: 1.6;
}

#ameru-shop .am-copyright {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.5;
}

/* =====================================
   タブレット：2列
===================================== */

@media (min-width: 601px) and (max-width: 900px) {
  #ameru-shop .am-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  #ameru-shop .am-about {
    padding-top: 48px;
  }
}

/* =====================================
   スマホ：1列
===================================== */

@media (max-width: 600px) {
  #ameru-shop .am-header {
    padding: 12px 16px;
  }

  #ameru-shop .am-header__inner {
    justify-content: space-between;
    min-height: 52px;
  }

  #ameru-shop .am-header .am-logo {
    width: 144px;
    height: 52px;
  }

  #ameru-shop .am-header .am-logo img {
    width: 576px;
  }

  #ameru-shop .am-account {
    position: static;
    gap: 6px;
    transform: none;
    font-size: 11px;
  }

  #ameru-shop .am-account svg {
    width: 18px;
    height: 18px;
  }

  #ameru-shop .am-about {
    padding: 40px 20px 36px;
  }

  #ameru-shop .am-eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  #ameru-shop .am-about h1 {
    margin-top: 16px;
    font-size: clamp(23px, 6vw, 32px);
    line-height: 1.65;
  }

  #ameru-shop .am-about h1 span {
    display: block;
  }

  #ameru-shop .am-about__text {
    margin-top: 22px;
    font-size: 13px;
    line-height: 2;
  }

  #ameru-shop .am-mobile-break {
    display: inline;
  }

  #ameru-shop .am-products {
    padding: 0 20px 44px;
  }

  #ameru-shop .am-section-heading {
    margin-bottom: 24px;
  }

  #ameru-shop .am-section-heading h2 {
    font-size: 27px;
  }

  #ameru-shop .am-product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    max-width: 420px;
    margin: 0 auto;
  }

  #ameru-shop .am-card {
    padding: 14px;
    border-radius: 18px;
  }

  #ameru-shop .am-card h3 {
    font-size: 22px;
  }

  #ameru-shop .am-card__description {
    font-size: 14px;
  }

  #ameru-shop .am-card__actions {
    padding-top: 20px;
  }

  #ameru-shop .am-button {
    min-height: 52px;
  }

  #ameru-shop .am-footer {
    padding: 28px 20px 24px;
  }

  #ameru-shop .am-footer__links {
    gap: 0 16px;
  }
}

/* 動きを抑える設定に対応 */
@media (prefers-reduced-motion: reduce) {
  #ameru-shop .am-card__image img,
  #ameru-shop .am-button {
    transition: none;
  }
}

/* 「あめる」の上に点を表示 */
#ameru-shop .am-about .am-emphasis {
  display: inline;
  -webkit-text-emphasis: filled dot;
  text-emphasis: filled dot;
  -webkit-text-emphasis-position: over right;
  text-emphasis-position: over right;
}

/* コピーの行間・段落間 */
#ameru-shop .am-about__text {
  margin-top: 32px;
  line-height: 2.2;
}

#ameru-shop .am-about__text p + p {
  margin-top: 20px;
}

@media (max-width: 600px) {
  #ameru-shop .am-about__text {
    margin-top: 28px;
  }

  #ameru-shop .am-about__text p + p {
    margin-top: 18px;
  }
}