@charset "UTF-8";

:root {
  --pink: #ff6fb1;
  --pink-strong: #ff2f91;
  --pink-soft: #fff0f7;
  --pink-pale: #fff8fc;
  --text: #5b4650;
  --muted: #9a7c8a;
  --shadow: 0 18px 45px rgba(255, 111, 177, .22);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Noto Sans JP', corporate, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(255, 240, 247, 1), transparent 34%),
              radial-gradient(circle at bottom right, rgba(255, 255, 255, 1), transparent 38%),
              linear-gradient(180deg, #fffafd 0%, #fff0f7 100%);
  padding: 18px 14px 34px;
}

.page {
  width: min(100%, 520px);
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 22px 10px 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--pink-strong);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(255, 111, 177, .16);
  margin-bottom: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 10vw, 52px);
  line-height: 1.05;
  letter-spacing: .02em;
  color: var(--pink-strong);
  font-weight: 900;
  text-shadow: 0 4px 0 #ffe1f0;
}

.lead {
  margin: 16px auto 0;
  line-height: 1.75;
  font-weight: 700;
  color: #7b5969;
  font-size: 15px;
}

.card {
  background: rgba(255, 255, 255, .88);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 184, 220, .5);
  backdrop-filter: blur(10px);
}

.form-grid {
  display: grid;
  gap: 15px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #7a5266;
  margin-bottom: 8px;
}

input, select {
  width: 100%;
  min-height: 48px;
  border: 2px solid #ffd0e6;
  border-radius: 16px;
  background: #fffafd;
  padding: 11px 13px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  outline: none;
  appearance: none;
}

input:focus, select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 111, 177, .16);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.places {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.place-chip {
  position: relative;
}

.place-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.place-chip span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border-radius: 999px;
  background: #fffafd;
  border: 2px solid #ffd0e6;
  color: #8a6475;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}

.place-chip input:checked + span {
  background: linear-gradient(135deg, #ff79b9, #ff3f9a);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 63, 154, .24);
  transform: translateY(-1px);
}

.note {
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  min-height: 56px;
  margin-top: 6px;
  background: linear-gradient(135deg, #ff7fbe, #ff2f91);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(255, 47, 145, .3);
  cursor: pointer;
  transition: .18s ease;
}

.button:active {
  transform: translateY(2px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(80, 45, 62, .32);
}

.modal.show {
  display: flex;
}

.loading-box {
  display: grid;
  justify-items: center;
  gap: 18px;
  color: #fff;
  text-align: center;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(122, 48, 82, .25);
}

.ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 7px solid rgba(255, 255, 255, .5);
  border-top-color: #ff4fa2;
  border-right-color: #ff9aca;
  animation: spin .8s linear infinite;
  filter: drop-shadow(0 10px 18px rgba(255, 47, 145, .32));
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.popup {
  width: min(100%, 430px);
  background: #fff;
  border-radius: 28px;
  padding: 22px 18px 18px;
  box-shadow: 0 24px 60px rgba(112, 56, 82, .28);
  border: 1px solid rgba(255, 184, 220, .65);
}

.result-popup {
  max-height: min(88vh, 760px);
  overflow-y: auto;
  animation: floatIn .36s ease both;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup-title {
  text-align: center;
  margin: 0 0 16px;
  color: var(--pink-strong);
  font-size: 22px;
  font-weight: 900;
}

.daily-box {
  text-align: center;
  background: linear-gradient(180deg, #fff5fa, #ffe6f2);
  border-radius: 24px;
  padding: 17px 12px 18px;
  margin-bottom: 14px;
  border: 1px solid #ffd0e6;
}

.daily-box .small {
  display: block;
  font-weight: 900;
  color: #8a6475;
  margin-bottom: 3px;
}

.daily-amount {
  color: var(--pink-strong);
  font-size: clamp(34px, 10vw, 48px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.daily-amount .approx {
  font-size: .48em;
  letter-spacing: 0;
  margin-right: 2px;
  vertical-align: .12em;
}

.section-label {
  font-size: 14px;
  font-weight: 900;
  color: #7a5266;
  margin: 14px 2px 8px;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-card {
  background: var(--pink-pale);
  border: 1px solid #ffd4e9;
  border-radius: 20px;
  padding: 12px 8px;
  text-align: center;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-card .caption {
  color: #8a6475;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 6px;
}

.lower {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.upper {
  color: var(--pink-strong);
  font-size: clamp(19px, 5.2vw, 24px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.profile-copy-box {
  margin: 12px 0 0;
  background: #fffafd;
  border: 1px solid #ffe8f3;
  border-radius: 18px;
  padding: 10px 12px;
}

.profile-lines {
  display: grid;
  gap: 7px;
  color: #7a5266;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.profile-label {
  display: block;
  color: #b99aaa;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1px;
}

.copy-button {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  border: 0;
  border-radius: 999px;
  background: #ffe4f1;
  color: var(--pink-strong);
  min-height: 34px;
  padding: 0 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.profile-text {
  display: none;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.shop-card {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffafd, #fff0f7);
  border: 1px solid #ffd4e9;
  color: #7a5266;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(255, 111, 177, .12);
}

.shop-note {
  display: block;
  color: #b58a9f;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;
  margin-top: 2px;
}

.close-button {
  display: block;
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: #ffe4f1;
  color: var(--pink-strong);
  min-height: 46px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.alert-message {
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 900;
  color: #7a5266;
  margin: 8px 0 4px;
}

/* レスポンシブ (スマートフォン最適化) */
@media (max-width: 360px) {
  body {
    padding-inline: 10px;
  }
  .card {
    padding: 15px;
  }
  .places {
    grid-template-columns: 1fr;
  }
  .result-row, .shop-grid {
    gap: 8px;
  }
  .mini-card, .shop-card {
    padding-inline: 6px;
  }
}

#areaTab ul {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  background-color: #ffffff;
  border-radius: 5px 5px 0 0;
}

#areaTab li {
  width: calc(100% / 3);
  text-align: center;
  font-weight: 700;
  border-style: solid;
  border-color: #d7dcfc;
  border-width: 2px 1px;
  box-sizing: border-box;
}

#areaTab li.select {
  background-color: #d7dcfc;
}

#areaTab li:first-of-type {
  border-left-width: 2px;
  border-top-left-radius: 5px;
}

#areaTab li:last-of-type {
  border-right-width: 2px;
  border-top-right-radius: 5px;
}

@media screen and (min-width: 981px) {

  #areaTab {
    margin-top: 60px;
  }

  #areaTab ul {
    width: 1020px;
  }

  #areaTab li {
    height: 60px;
    line-height: 60px;
  }

}

@media screen and (max-width: 980px) {

  #areaTab {
    width: 94%;
    margin: 15% auto 0;
  }

  #areaTab li {
    font-size: 0.7em;
    height: 9vw;
    line-height: 8.5vw;
  }

}

/* =========================================================
shop areaTab
--------------------------------------------------------- */

/* スマートフォン表示（画面幅980px以下）での調整 */
@media screen and (max-width: 980px) {
    /* 1. タブ自体の下の余白をなくす（もし設定していた場合） */
    #areaTab {
        margin-bottom: 0 !important;
    }

    /* 2. 背景色がついているエリアの上部に内側余白を追加する */
    .shopAreaWrap {
        padding-top: 4vw; /* 数値はお好みで調整してください（4vw〜20px程度） */
    }
}