/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background:
    linear-gradient(
      90deg,
      #e7d8b5 0%,
      #f5f1e8 50%,
      #f3efe8 100%
    );
  background-attachment: fixed;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  line-height: 1;
  color: #333;
}

img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}

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

/* ========================================
   LP Container
   ======================================== */
.lp-container {
  width: min(100%, 375px);
  margin: 0 auto;
  background-color: #fdfaf5;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
}

/* ========================================
   Sections
   ======================================== */
.lp-section {
  position: relative;
  overflow: hidden;
}

.lp-section--cta {
  isolation: isolate;
}

.lp-section.is-visible {
  animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   CTA Overlay Positioning
   ======================================== */
.cta-wrap {
  position: absolute;
  z-index: 2;
  container-type: size;
}

.cta-wrap .line-cta {
  height: 100%;
  min-height: 0;
  padding: 0 0.9em;
  font-size: 36cqh;
}

.cta-wrap .line-cta__icon img {
  width: auto;
  height: 68cqh;
}

.cta-wrap--hero {
  left: 4.86%;
  width: 90.29%;
  bottom: 5.4%;
  height: 60px;
}

.cta-wrap--hero .line-cta {
  font-size: 34cqh;
}

.cta-wrap--hero .line-cta__icon img {
  height: 66cqh;
}

.cta-wrap--section7 {
  left: 56.5%;
  width: 35.71%;
  bottom: 0.95%;
  height: 3.36%;
}

.cta-wrap--section7 .line-cta {
  padding: 0 0.6em;
  font-size: 32cqh;
}

.cta-wrap--section7 .line-cta__icon img {
  height: 35cqh;
}

.cta-wrap--section8 {
  left: 36.21%;
  width: 47.11%;
  bottom: 1.36%;
  height: 4.08%;
}

.cta-wrap--section8 .line-cta {
  border-radius: 6px;
  font-size: 34cqh;
}

.cta-wrap--section9 {
  left: 23.36%;
  width: 54.26%;
  bottom: 2.21%;
  height: 4.17%;
}

.cta-wrap--section9 .line-cta {
  border-radius: 6px;
  font-size: 34cqh;
}

.cta-wrap--section10 {
  left: 33.3%;
  width: 56.64%;
  bottom: 1.44%;
  height: 3.46%;
}

.cta-wrap--section10 .line-cta {
  border-radius: 999px;
  font-size: 38cqh;
}

.cta-wrap--section11 {
  left: 10%;
  width: 74.25%;
  bottom: 1.14%;
  height: 3.75%;
}

.cta-wrap--section11 .line-cta {
  border-radius: 999px;
  font-size: 36cqh;
}

/* ========================================
   CTA Block (standalone)
   ======================================== */
.cta-block {
  padding: 28px 20px 32px;
  text-align: center;
}

.cta-block--mid {
  background-color: #fdfaf5;
}

.cta-block__lead {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #444;
}

/* ========================================
   LINE CTA Base
   ======================================== */
.line-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.line-cta__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1em;
}

.line-cta__icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.line-cta--gold .line-cta__icon img {
  width: 28px;
  height: 28px;
}

.line-cta--compact .line-cta__icon img {
  width: 22px;
  height: 22px;
}

.line-cta__text {
  text-align: center;
  white-space: nowrap;
}

.line-cta__arrow {
  flex-shrink: 0;
  width: 0.45em;
  height: 0.45em;
  border-top: 0.12em solid currentColor;
  border-right: 0.12em solid currentColor;
  transform: rotate(45deg);
  margin-right: 0.1em;
}

/* Gold CTA (First View) */
.line-cta--gold {
  background: linear-gradient(180deg, #d4b06a 0%, #c49a4f 50%, #b8893f 100%);
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.3) inset;
  font-size: 16px;
  min-height: 58px;
}

.line-cta--gold .line-cta__arrow {
  border-color: #fff;
}

.line-cta--gold:hover {
  filter: brightness(1.1);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.3) inset;
  transform: translateY(-2px);
}

.line-cta--gold:active {
  filter: brightness(0.92);
  transform: translateY(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Outline CTA (white pill) */
.line-cta--outline {
  background: #fff;
  border: 1.5px solid #c5a368;
  border-radius: 999px;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.line-cta--outline .line-cta__arrow {
  border-color: #c5a368;
}

.line-cta--outline:hover {
  background: #faf8f4;
  box-shadow: 0 6px 22px rgba(197, 163, 104, 0.28);
  transform: translateY(-2px);
}

.line-cta--outline:active {
  background: #f5f0e8;
  transform: translateY(2px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.line-cta--compact {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 13px;
}

/* Green CTA (LINE brand) */
.line-cta--green {
  background: #06c755;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 3px 10px rgba(6, 199, 85, 0.35);
  font-size: 15px;
}

.line-cta--green .line-cta__arrow {
  border-color: #fff;
}

.line-cta--green:hover {
  background: #05b34c;
  box-shadow: 0 8px 22px rgba(6, 199, 85, 0.5);
  transform: translateY(-2px);
}

.line-cta--green:active {
  background: #049a42;
  transform: translateY(2px);
  box-shadow: 0 2px 6px rgba(6, 199, 85, 0.3);
}

/* Hover on overlay CTAs */
.cta-wrap .line-cta--gold:hover,
.cta-wrap .line-cta--outline:hover,
.cta-wrap .line-cta--green:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.cta-wrap .line-cta--gold:active,
.cta-wrap .line-cta--outline:active,
.cta-wrap .line-cta--green:active {
  filter: brightness(0.92);
  transform: translateY(2px);
}

/* ========================================
   Map Overlay (Section 09)
   ======================================== */
.map-wrap {
  position: absolute;
  z-index: 2;
}

.map-wrap--section9 {
  right: 8%;
  bottom: 26%;
}

.map-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 22px;
  padding: 5px 6px;
  border: 1px solid #e8e4df;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #444;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.map-link-btn::after {
  content: "";
  width: 3px;
  height: 3px;
  border-top: 1px solid #c5a368;
  border-right: 1px solid #c5a368;
  transform: rotate(45deg);
}

.map-link-btn:hover {
  background: #faf8f4;
  color: #333;
}

.map-link-btn:active {
  background: #f3efe8;
}

/* ========================================
   PC Enhancement
   ======================================== */
@media (min-width: 376px) {
  body {
    background:
      linear-gradient(
        90deg,
        #e7d8b5 0%,
        #f5f1e8 30%,
        #f5f1e8 70%,
        #f3efe8 100%
      );
    background-attachment: fixed;
  }

  .lp-container {
    min-height: 100vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-section.is-visible {
    animation: none;
  }

  .line-cta {
    transition: none;
  }
}

@supports not (font-size: 1cqh) {
  .cta-wrap--hero .line-cta { font-size: 14px; }
  .cta-wrap--section7 .line-cta { font-size: 8px; }
  .cta-wrap--section8 .line-cta,
  .cta-wrap--section9 .line-cta { font-size: 12px; }
  .cta-wrap--section10 .line-cta,
  .cta-wrap--section11 .line-cta { font-size: 11px; }

  .cta-wrap .line-cta__icon img { height: 18px; }
  .cta-wrap--hero .line-cta__icon img { height: 20px; }
  .cta-wrap--section7 .line-cta__icon img { height: 8px; }
}
