:root {
  --green: #2d623e;
  --deep: #174326;
  --ink: #17120f;
  --paper: #faf7ef;
  --line: #d8cfbd;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #ece6da;
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

.lp-frame {
  width: 960px;
  margin: 0 auto;
}

.lp {
  position: relative;
  width: 960px;
  height: 2358px;
  overflow: hidden;
  background: linear-gradient(90deg, #f6f1e7 0%, #fffdf8 50%, #f6f1e7 100%);
}

.section {
  position: relative;
  border-top: 10px solid rgba(255, 255, 255, 0.92);
}

.kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

h1,
h2 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  font-size: 40px;
  line-height: 1.36;
}

h2 {
  font-size: 22px;
  line-height: 1.45;
}

h3,
p {
  margin: 0;
}

.hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 350px;
  background: url("assets/HERO.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f8f3e9 0%, rgba(248, 243, 233, 0.95) 36%, rgba(248, 243, 233, 0.14) 60%, rgba(248, 243, 233, 0) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 430px;
  padding: 64px 0 0 38px;
}

.hero-lead {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.72;
}

.main-button,
.sub-button {
  width: 318px;
  height: 43px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
}

.main-button {
  margin-top: 17px;
  padding: 0 20px;
  gap: 11px;
  color: #fff;
  background: var(--green);
  font-size: 16px;
}

.main-button span:last-child,
.sub-button span {
  margin-left: auto;
  font-size: 22px;
  line-height: 1;
}

.chat-dot {
  width: 24px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  background: #fff;
  font-size: 10px;
  letter-spacing: 0;
}

.sub-button {
  margin-top: 11px;
  padding: 0 22px;
  border: 1.7px solid var(--green);
  color: var(--green);
  background: rgba(255, 253, 248, 0.68);
  font-size: 16px;
}

.worries {
  height: 237px;
}

.left-heading {
  position: absolute;
  top: 55px;
  left: 36px;
  width: 220px;
}

.worries .left-heading {
  width: 270px;
}

.worries .left-heading h2 {
  font-size: 20px;
  line-height: 1.48;
}

.promises .left-heading {
  width: 280px;
}

.promises .left-heading h2 {
  font-size: 19.5px;
  line-height: 1.5;
}

.worry-row {
  position: absolute;
  top: 43px;
  left: 315px;
  display: grid;
  grid-template-columns: repeat(6, 98px);
  gap: 10px;
}

.worry-card {
  height: 147px;
  padding: 15px 6px 9px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.worry-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 11px;
  display: block;
  object-fit: contain;
}

.worry-card p {
  font-size: 9px;
  font-weight: 800;
  line-height: 1.65;
}

.promises {
  height: 405px;
}

.promise-grid {
  position: absolute;
  top: 50px;
  left: 330px;
  display: grid;
  grid-template-columns: repeat(4, 138px);
  gap: 18px 13px;
}

.promise-card {
  position: relative;
  height: 145px;
  padding: 17px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.76);
  text-align: center;
}

.promise-card.lower {
  transform: translateX(22px);
}

.promise-card h3 {
  min-height: 31px;
  font-size: 9.8px;
  line-height: 1.55;
}

.promise-card p {
  margin-top: 1px;
  font-size: 8.4px;
  font-weight: 700;
  line-height: 1.55;
}

.num {
  position: absolute;
  top: -10px;
  left: 11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.promise-icon {
  width: 50px;
  height: 50px;
  margin: 2px auto 1px;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.promise-icon--wide {
  width: 62px;
}

.promise-icon--calc {
  width: 44px;
}

.no-problem {
  height: 280px;
}

.left-copy {
  position: absolute;
  top: 53px;
  left: 32px;
  width: 335px;
}

.left-copy h2 {
  margin-bottom: 14px;
  font-size: 19px;
  line-height: 1.42;
}

.left-copy p:not(.kicker) {
  margin-bottom: 6px;
  font-size: 9.4px;
  font-weight: 700;
  line-height: 1.58;
}

.problem-photo {
  position: absolute;
  top: 42px;
  right: 32px;
  width: 560px;
  height: 198px;
  border-radius: 7px;
}

.items {
  height: 390px;
}

.items-heading {
  position: absolute;
  top: 62px;
  left: 32px;
}

.item-row {
  position: absolute;
  top: 170px;
  left: 28px;
  display: grid;
  grid-template-columns: repeat(5, 174px);
  gap: 12px;
}

.item-card {
  height: 184px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.78);
  text-align: center;
}

.item-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.item-card h3 {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.2;
}

.item-card p {
  margin-top: 7px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.55;
}

.flow {
  height: 340px;
}

.flow h2 {
  position: absolute;
  top: 58px;
  left: 0;
  width: 100%;
  font-size: 25px;
  text-align: center;
}

.flow-row {
  position: absolute;
  top: 132px;
  left: 45px;
  display: grid;
  grid-template-columns: repeat(5, 158px);
  gap: 20px;
}

.flow-card {
  position: relative;
  height: 116px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.8);
  text-align: center;
}

.flow-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 55px;
  right: -15px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid var(--green);
}

.flow-card .num {
  left: 69px;
}

.flow-icon {
  width: 43px;
  height: 43px;
  margin: 25px auto 0;
  display: block;
  object-fit: contain;
}

.flow-icon--store {
  width: 48px;
}

.flow-icon--wide {
  width: 58px;
}

.flow-card p {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}

.flow-card:nth-child(2) p {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.18;
}

.contact {
  position: relative;
  height: 306px;
  color: #fff;
  background: linear-gradient(90deg, #245c34 0%, #143e23 100%);
}

.contact .kicker {
  color: #e8f1dd;
}

.contact-main {
  position: relative;
  height: 228px;
}

.contact-copy {
  position: absolute;
  top: 48px;
  left: 38px;
  width: 330px;
}

.intro {
  margin-bottom: 12px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 23px;
  font-weight: 700;
}

.contact h2 {
  font-size: 36px;
  line-height: 1;
}

address {
  margin-top: 11px;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

address::before {
  content: "●";
  margin-right: 7px;
  font-size: 10px;
}

.phone-number {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.phone-number::before {
  content: "☎";
  margin-right: 8px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 32px;
}

.footer-logo-panel {
  position: absolute;
  top: 48px;
  right: 38px;
  width: 520px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #fff;
}

.footer-logo {
  width: 390px;
  max-height: 122px;
  display: block;
  object-fit: contain;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

.footer-legal small {
  font-size: 11px;
  font-weight: 500;
}

@media (max-width: 960px) {
  .lp-frame {
    width: 100vw;
    height: 245.625vw;
    overflow: hidden;
  }

  .lp {
    transform: scale(calc(100vw / 960));
    transform-origin: top left;
  }
}

@media (max-width: 640px) {
  body {
    background: #f6f1e7;
  }

  .lp-frame {
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .lp {
    width: 100%;
    height: auto;
    overflow: visible;
    transform: none;
    background: linear-gradient(90deg, #f6f1e7 0%, #fffdf8 50%, #f6f1e7 100%);
  }

  .section {
    height: auto;
    padding: 50px 20px;
    border-top-width: 8px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.32;
  }

  h2 {
    font-size: 24px;
    line-height: 1.45;
  }

  .hero {
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    background: #f8f3e9;
  }

  .hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: 68vw;
    min-height: 250px;
    max-height: 360px;
    background-position: center top;
  }

  .hero::after {
    inset: 0 0 auto;
    height: 68vw;
    min-height: 250px;
    max-height: 360px;
    background: linear-gradient(180deg, rgba(248, 243, 233, 0) 48%, #f8f3e9 100%);
    pointer-events: none;
  }

  .hero-copy {
    width: 100%;
    padding: 28px 20px 48px;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.75;
  }

  .main-button,
  .sub-button {
    width: 100%;
    max-width: 360px;
    min-height: 52px;
    height: auto;
    padding: 0 18px;
    font-size: 15px;
  }

  .main-button {
    margin-top: 24px;
  }

  .sub-button {
    margin-top: 12px;
  }

  .left-heading,
  .worries .left-heading,
  .promises .left-heading,
  .left-copy,
  .items-heading {
    position: static;
    width: 100%;
  }

  .worries .left-heading h2,
  .promises .left-heading h2,
  .left-copy h2 {
    font-size: 24px;
    line-height: 1.45;
  }

  .worry-row,
  .promise-grid,
  .item-row,
  .flow-row {
    position: static;
    display: grid;
    width: 100%;
  }

  .worry-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
  }

  .worry-card {
    height: auto;
    min-height: 150px;
    padding: 18px 10px 16px;
  }

  .worry-icon {
    width: 66px;
    height: 66px;
  }

  .worry-card p {
    font-size: 12px;
    line-height: 1.55;
  }

  .promise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
    margin-top: 32px;
  }

  .promise-card,
  .promise-card.lower {
    height: auto;
    min-height: 174px;
    padding: 24px 10px 14px;
    transform: none;
  }

  .promise-card h3 {
    min-height: 42px;
    font-size: 13px;
  }

  .promise-card p {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.55;
  }

  .promise-icon {
    width: 58px;
    height: 58px;
    margin-top: 8px;
  }

  .promise-icon--wide {
    width: 70px;
  }

  .promise-icon--calc {
    width: 52px;
  }

  .num {
    top: -12px;
    left: 14px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .no-problem {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .left-copy p:not(.kicker) {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.75;
  }

  .problem-photo {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: 8px;
  }

  .item-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }

  .item-card {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 42% 1fr;
    grid-template-rows: auto auto;
    text-align: left;
  }

  .item-card img {
    grid-row: 1 / 3;
    height: 100%;
    min-height: 124px;
  }

  .item-card h3 {
    margin: 18px 16px 0;
    font-size: 17px;
  }

  .item-card p {
    margin: 8px 16px 18px;
    font-size: 12px;
    line-height: 1.6;
  }

  .flow {
    padding-bottom: 62px;
  }

  .flow h2 {
    position: static;
    width: 100%;
    font-size: 25px;
    text-align: left;
  }

  .flow-row {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 32px;
  }

  .flow-card {
    height: auto;
    min-height: 112px;
    padding: 18px 18px 18px 92px;
    display: flex;
    align-items: center;
    text-align: left;
  }

  .flow-card:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 44px;
    bottom: -17px;
    border-top: 10px solid var(--green);
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-bottom: 0;
  }

  .flow-card .num {
    top: 14px;
    left: 18px;
  }

  .flow-icon,
  .flow-icon--store,
  .flow-icon--wide {
    position: absolute;
    left: 26px;
    top: 45px;
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .flow-icon--wide {
    width: 58px;
    left: 19px;
  }

  .flow-card p,
  .flow-card:nth-child(2) p {
    margin-top: 0;
    font-size: 13px;
    line-height: 1.5;
  }

  .contact {
    height: auto;
    padding: 52px 20px 34px;
  }

  .contact-main {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .contact-copy,
  .footer-logo-panel {
    position: static;
    width: 100%;
  }

  .intro {
    font-size: 24px;
    line-height: 1.45;
  }

  .contact h2 {
    font-size: 40px;
  }

  address {
    margin-top: 18px;
    font-size: 14px;
  }

  .phone-number {
    margin-top: 10px;
    font-size: 34px;
  }

  .footer-logo-panel {
    height: auto;
    min-height: 138px;
    padding: 24px 16px;
  }

  .footer-logo {
    width: min(100%, 320px);
    max-height: none;
  }

  .footer-legal {
    margin-top: 30px;
    padding-top: 22px;
    font-size: 12px;
    line-height: 1.7;
  }
}

@media (max-width: 339px) {
  h1 {
    font-size: 30px;
  }

  h2,
  .worries .left-heading h2,
  .promises .left-heading h2,
  .left-copy h2 {
    font-size: 22px;
  }

  .promise-grid,
  .worry-row {
    grid-template-columns: 1fr;
  }

  .phone-number {
    font-size: 29px;
  }

  .phone-number::before {
    font-size: 27px;
  }
}
