* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Noto sans", sans-serif;
    max-width: 440px;
    margin: 0 auto;
}

header {
    padding-block: 10px;
    background-color: #31439B;
}

.header-main {
    display: flex;
    justify-content: space-between;
    padding-inline: 10px;
    align-items: center;
    height: 60px;
    background-color:#ffffff
}

.logo {
}

.cta {
    font-size: 15px;
    width: fit-content;
    font-weight: bold;
    padding-inline: 6px;
    padding-block: 10px;
    background-color: #FA6E13;
    border: 1px solid #ffffff;
    box-shadow: 0 0 2.5px rgba(0, 0, 0, 0.25);
}

.cta a {
    text-decoration: none;
    color: #ffffff;
}

.hero {
    margin-block: 5px;
    background-color: #ffffff;
    background-image: url("../images/hero-bg.svg");
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-inline: 30px;
    justify-content: center;
    gap: 5px;
}

.main-copy {
    font-size:16px;
    font-weight: bold;
    width: 380px;
    text-align: center;
    padding-block: 8px;
    background-color: #022771;
    color: #ffffff;
}

.main-anime {
    width: 100%;
    height: 100px !important; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    padding-inline: 10px;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.75);
}

.logo-light {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #022771;
    height: 70px;
}

.free-survey-title {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.progress {
    padding-inline:60px;
    position: relative;
}

.progress-icon {
    position: absolute;
    top: -30px;
    left: 60px;
}

.progress-icon img {
    width: 32px;
    height: 32px;
}

.progress-bar {
    --progress: 0%;
    width: 100%;
    height: 5px;
    margin-top: 25px;
    background-color: #e5e5e5;
}

.progress-bar::before {
    content: "";
    display: block;
    width: var(--progress);
    height: 100%;
    background-color: #006DE1;
    transition: width 300ms ease;
}

.main-survey {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.survey-title {
    font-size: 24px;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 20px;
}

.answer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 320px;
}

.house-survey {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.back-btn, .next-btn {
    margin-top: 20px;
    border: none;
    background-color: unset;
}

.copylight {
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    background-color: #022771;
    font-size: 10px;
    width: 440px;
    position: fixed;
    bottom: 0;
}

/* Smooth survey section transitions only */
.survey-section {
    display: none !important;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 280ms ease-out, transform 280ms ease-out;
}
.survey-section.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}
/* Keep leaving element visible for the fade-out */
.survey-section.leaving { display: block !important; opacity: 0; transform: translateY(8px); }
/* Ensure entering element can start its fade-in */
.survey-section.entering { display: block !important; }

/* Subtle progress icon easing (left is set in JS) */
.progress-icon { transition: left 280ms ease-out; }

/* Clickable feedback: pointer + gentle hover/active */
.back-btn, .next-btn,
.house-survey, .price-survey, .age-survey, .period-survey,
.answer img,
.cta .btn, .submit-btn {
    cursor: pointer;
    transition: transform 160ms ease-out, filter 160ms ease-out;
}
.back-btn:hover, .next-btn:hover,
.house-survey:hover, .price-survey:hover, .age-survey:hover, .period-survey:hover,
.answer img:hover, .submit-btn:hover
.cta .btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}
.back-btn:active, .next-btn:active,
.house-survey:active, .price-survey:active, .age-survey:active, .period-survey:active,
.answer img:active, .submit-btn:active
.cta .btn:active {
    transform: translateY(0) scale(0.98);
    filter: brightness(0.98);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .survey-section, .progress-icon,
    .back-btn, .next-btn, .answer img,
    .house-survey, .price-survey, .age-survey, .period-survey, .cta .btn {
        transition: none !important;
    }
}

/* Disable back button on first section */
.survey-section[data-step="1"] .back-btn {
    display: none;
}

.address {
    font-size: 20px;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    width: 320px;
    gap: 30px;
}

.required {
    background-color: #B40000;
    color: #ffffff;
    font-size: 10px;
    padding: 3px;
    padding-inline: 5px;
    text-align: center;
    line-height: 15px;
}

.address-select {
    font-size: 16px;
    height: 40px;
    padding: 0 10px;
}

.place-holder {
    color: rgb(194, 194, 194);
}

.name {
    width: 320px;
    margin-top: 100px; 
    font-size: 20px;
}

.phone {
    font-size: 20px;
    width: 320px;
}
.email {
    font-size: 20px;
    width: 320px;
}
.label {
    display: flex;
    width: 320px;
}

.warning {
    font-size: 10px;
    color: #B40000;
    width: 400px;
}
input {
    font-size: 16px;
    line-height: 40px;
    padding: 0 10px;
}

.info {
    gap: 20px;
}

.btn-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 320px;
}

.thanks {
    display: flex ;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.thanks img {
    margin: 0 auto;
    display: flex;
}

.service-time {
    font-size: 14px;
    color: #787878;
    text-align: center;
    margin-bottom: 30px;
}

.submit-btn {
    height: 40px;
    background: unset;
    cursor: pointer;
    border: none;
    font-size: 20px;
    margin-top: 10px;
    font-weight: 500;
    background-color: #022771;
    color: white;
    padding-inline: 14px;
    border: 1px solid white;
    box-shadow: 0 2px 4px 0.25px rgb(0 0 0 / 25%);
    border-radius: 3px;
}

/* Responsive: adapt under 440px */
@media (max-width: 440px) {
    body {
        max-width: 100%;
    }
    .header-main { height: 56px; }
    .main-copy { width: 100%; font-size: 15px; }
    .logo-light { height: 60px; }
    .progress { padding-inline: 20px; }
    .progress-icon { left: 20px; }
    .answer { gap: 8px; }
    .copylight { width: 100%; font-size: 9px; }
    .warning { width: 100%; }
}


.audit-card {
  width: 320px;
  max-width: 600px;
  padding: 15px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-family: "Noto Sans JP", sans-serif;
}

.audit-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
  text-align: center;
}

.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 15px;
}

.audit-item {
  display: flex;
  flex-direction: column;
}

.audit-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 4px;
}

.audit-value {
  font-size: 12px;
  font-weight: 500;
  color: #222;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f7f9fc;
}

#name-info .btn-group {
    width: auto;
}

#prefecture {
    height: 40px;
    font-size: 16px;
    line-height: 40px;
    padding: 0 10px;
}

.prefecture, .zip {
    font-size: 20px;
}

#address-info {
    gap: 20px;
    margin-top: 30px;
}

#contact-info {
    margin-top: 60px;
}