:root {
  --orange: #ff6816;
  --pink: #fac1de;
  --hot: #ff45c0;
  --cream: #fff4d3;
  --paper: #f3efe7;
  --ink: #222;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--pink);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.sub-header {
  height: 84px;
  padding: 0 max(28px, 5vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--orange);
}
.logo {
  font:
    800 22px Outfit,
    sans-serif;
  letter-spacing: 0.12em;
}
.back {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  transition: transform 0.25s;
}
.back span {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: 0.25s;
}
.back:hover {
  transform: translateX(-4px);
}
.back:hover span {
  background: var(--ink);
  color: var(--orange);
}
.faq-hero {
  height: 500px;
  padding: 92px 24px 72px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.faq-hero h1 {
  margin: 0;
  font:
    400 clamp(120px, 17vw, 230px) / 0.82 Modak,
    cursive;
  letter-spacing: 0.025em;
  background: linear-gradient(90deg, var(--orange), #ff91ae 72%, var(--hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.faq-hero p {
  margin: 36px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.22em;
}
.deco {
  position: absolute;
  line-height: 1;
  filter: drop-shadow(8px 9px 8px #a23d6b24);
}
.heart {
  left: 10%;
  top: 112px;
  color: var(--hot);
  font-size: 70px;
  transform: rotate(-12deg);
}
.question {
  right: 12%;
  top: 90px;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--orange);
  font: 800 48px Outfit;
  transform: rotate(9deg);
}
.star {
  right: 9%;
  bottom: 66px;
  color: var(--cream);
  font-size: 58px;
  transform: rotate(15deg);
}
.faq-area {
  padding: 0 24px 140px;
}
.faq-panel {
  width: min(1120px, 100%);
  margin: -55px auto 0;
  padding: 78px clamp(24px, 6vw, 90px) 86px;
  position: relative;
  border: 7px solid var(--orange);
  border-radius: 76px;
  background: var(--paper);
  box-shadow: 18px 16px 0 rgba(255, 104, 22, 0.18);
}
.panel-heading {
  text-align: center;
}
.panel-heading > p {
  margin: 0 0 8px;
  color: var(--hot);
  font: 600 13px Outfit;
  letter-spacing: 0.2em;
}
.panel-heading h2 {
  margin: 0 0 18px;
  font-size: 32px;
}
.panel-heading > span {
  font-size: 15px;
  line-height: 1.8;
}
.faq-list {
  margin-top: 58px;
  display: grid;
  gap: 18px;
}
details {
  overflow: hidden;
  border: 2px solid var(--orange);
  border-radius: 24px;
  background: #fffaf0;
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}
details:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(147, 61, 20, 0.12);
}
details[open] {
  background: var(--cream);
  box-shadow: 0 10px 24px rgba(255, 104, 22, 0.12);
}
summary {
  min-height: 88px;
  padding: 18px 28px;
  display: grid;
  grid-template-columns: 50px 1fr 34px;
  align-items: center;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
}
summary::-webkit-details-marker {
  display: none;
}
summary i,
.answer i {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font:
    800 21px Outfit,
    sans-serif;
  font-style: normal;
}
summary i {
  background: var(--hot);
  color: #fff;
}
summary b {
  width: 32px;
  height: 32px;
  position: relative;
  border: 1px solid var(--hot);
  border-radius: 50%;
}
summary b::before,
summary b::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 15px;
  height: 2px;
  background: var(--hot);
  transition: transform 0.25s;
}
summary b::after {
  transform: rotate(90deg);
}
details[open] summary b::after {
  transform: rotate(0);
}
.answer {
  padding: 0 30px 28px 98px;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  align-items: start;
}
.answer i {
  background: var(--orange);
  color: var(--cream);
}
.answer p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 2;
}
.provisional {
  margin: 38px 0 0;
  text-align: center;
  color: #777;
  font-size: 12px;
}
.site-footer {
  height: 316px;
  padding: 80px max(150px, calc(50% - 570px));
  display: flex;
  gap: 64px;
  align-items: center;
  background: var(--cream);
  font-size: 16px;
}
.footer-logo {
  width: 164px;
  height: 156px;
  flex: 0 0 164px;
  position: relative;
  overflow: hidden;
}
.footer-logo img {
  position: absolute;
  width: 163.88%;
  height: 214.78%;
  max-width: none;
  left: -20.49%;
  top: -24.89%;
}
.footer-content {
  height: 156px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.footer-contact {
  width: 245px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.footer-contact img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.footer-contact a:last-child img {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  margin: 1px;
}
.footer-divider {
  width: 2px;
  height: 156px;
  object-fit: fill;
  flex: 0 0 2px;
}
.footer-links {
  width: 140px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.privacy {
  width: 240px;
  white-space: nowrap;
}
.site-footer a {
  position: relative;
  transition:
    color 0.25s,
    transform 0.25s;
}
.site-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: var(--orange);
  transition: right 0.3s;
}
.site-footer a:hover {
  color: var(--orange);
  transform: translateY(-2px);
}
.site-footer a:hover::after {
  right: 0;
}
.footer-contact a img {
  transition: 0.3s;
}
.footer-contact a:hover img {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 5px 5px #ff681638);
}
@media (max-width: 900px) {
  .site-footer {
    height: auto;
    padding: 55px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 35px;
  }
  .footer-logo {
    width: 145px;
    height: 138px;
  }
  .footer-content {
    width: 100%;
    height: auto;
    display: grid;
    gap: 28px;
  }
  .footer-contact,
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .footer-contact a {
    white-space: normal;
  }
  .footer-contact img {
    width: 22px;
    height: 22px;
  }
  .footer-divider {
    display: none;
  }
  .footer-links {
    width: 100%;
    padding-top: 28px;
    border-top: 1px solid var(--orange);
  }
  .privacy {
    width: 100%;
    padding-top: 28px;
    border-top: 1px solid var(--orange);
  }
}
@media (max-width: 650px) {
  .sub-header {
    height: 70px;
    padding: 0 18px;
  }
  .logo {
    font-size: 18px;
  }
  .back {
    font-size: 13px;
  }
  .back span {
    width: 30px;
    height: 30px;
  }
  .faq-hero {
    height: 390px;
    padding-top: 88px;
  }
  .faq-hero h1 {
    font-size: 112px;
  }
  .faq-hero p {
    margin-top: 27px;
    font-size: 16px;
  }
  .heart {
    left: 4%;
    top: 70px;
    font-size: 43px;
  }
  .question {
    right: 5%;
    top: 57px;
    width: 56px;
    height: 56px;
    font-size: 34px;
  }
  .star {
    right: 5%;
    bottom: 52px;
    font-size: 39px;
  }
  .faq-area {
    padding: 0 13px 80px;
  }
  .faq-panel {
    margin-top: -40px;
    padding: 52px 13px 60px;
    border-width: 5px;
    border-radius: 44px;
    box-shadow: 10px 10px 0 #ff681629;
  }
  .panel-heading h2 {
    font-size: 23px;
  }
  .panel-heading > span {
    font-size: 13px;
  }
  .faq-list {
    margin-top: 40px;
    gap: 12px;
  }
  details {
    border-radius: 18px;
  }
  summary {
    min-height: 76px;
    padding: 14px 15px;
    grid-template-columns: 40px 1fr 28px;
    gap: 11px;
    font-size: 14px;
  }
  summary i,
  .answer i {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  summary b {
    width: 28px;
    height: 28px;
  }
  summary b::before,
  summary b::after {
    left: 7px;
    right: 7px;
    top: 12px;
  }
  .answer {
    padding: 0 15px 21px 15px;
    grid-template-columns: 40px 1fr;
    gap: 11px;
  }
  .answer p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.9;
  }
  .provisional {
    line-height: 1.8;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .back,
  .back span,
  details,
  summary b::after,
  .site-footer a,
  .site-footer a::after,
  .footer-contact img {
    transition: none;
  }
  .back:hover,
  details:hover,
  .site-footer a:hover,
  .footer-contact a:hover img {
    transform: none;
  }
}

/* TOPページと共通の3Dデコレーション */
.faq-hero .deco {
  position: absolute;
  z-index: 3;
  display: block;
  background-image: url("../images/contact-decor.png");
  background-repeat: no-repeat;
  background-size: 720px 960px;
  font-size: 0;
  filter: drop-shadow(10px 12px 10px #6b26052b);
}
.faq-hero .heart {
  left: 7%;
  top: 90px;
  width: 165px;
  height: 165px;
  background-position: -20px -180px;
  transform: rotate(-12deg);
}
.faq-hero .question {
  right: 12%;
  top: 61px;
  width: 180px;
  height: 165px;
  border-radius: 0;
  background-color: transparent;
  background-position: -185px -180px;
  transform: rotate(7deg);
}
.faq-hero .star {
  right: 7%;
  bottom: 88px;
  width: 160px;
  height: 145px;
  background-position: -370px -350px;
  transform: rotate(17deg);
}
@media (max-width: 650px) {
  .faq-hero .deco {
    background-size: 480px 640px;
  }
  .faq-hero .heart {
    left: 1%;
    top: 52px;
    width: 110px;
    height: 110px;
    background-position: -13px -120px;
  }
  .faq-hero .question {
    right: 1%;
    top: 34px;
    width: 120px;
    height: 110px;
    background-position: -123px -120px;
  }
  .faq-hero .star {
    right: 1%;
    bottom: 74px;
    width: 107px;
    height: 97px;
    background-position: -247px -233px;
  }
}

/* Smartphone: keep the lower-page hero focused on its heading. */
@media (max-width: 700px) {
  .faq-hero .deco {
    display: none;
  }

  .faq-hero {
    height: 340px;
  }
}
