/* RESET */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@100;300;400;500;700;800;900&display=swap');

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

:root {
    --brand: #000;
    --black: #000000;
    --blue: #569DCC;
    --white: #ffffff;
    --red: #FF0000;
    --textColor: #0b0b0b;
    --subtextColor: #232932;
    --bgGrey: #f6f6f6;
    --border: #e5e7eb;
    --shadow: 0 10px 24px rgba(0, 0, 0, .08);
    --header-height: 60px;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "M PLUS 1p", sans-serif;
    color: var(--textColor);
    background: var(--white);
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}

p {
    margin: 0;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: inherit;
    text-decoration: none;
    line-height: 1.5;
}

ol,
ul,
li,
dl,
dt,
dd {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wan-container-2,
.wan-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    overflow: hidden;
}

.br-480-n {
    display: block;
    line-height: 0px;
}


.br-992 {
    display: none;

}

@media (max-width: 992px) {
    .br-992 {
        display: block;
        line-height: 0px;
    }
}

@media (max-width: 768px) {

    .wan-container-2,
    .wan-container {
        padding: 0 7px;
    }
}

@media (max-width: 480px) {
    .br-480-n {
        display: none;
    }
}


@media (min-width: 1600px) {
    .wan-container-2 {
        max-width: 1400px;
        overflow: hidden;
    }
}

/* ---------------- HEADER ---------------- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    z-index: 999;
    box-shadow: var(--shadow);
}

.header-wrapper {
    padding: 5px 0px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a img {
    display: block;
    height: 20px;
}

/* ---------------- NAV DESKTOP ---------------- */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--textColor);
    transition: 0.25s ease;
}

.nav a:hover {
    color: var(--brand);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    width: 23px;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--black);
    transition: 0.4s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: opacity .3s ease;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.header.blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.75);
}


/* ---------------- MOBILE MENU ---------------- */
@media (max-width: 768px) {
.nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        padding: 100px 30px 30px;
        background: var(--white);
        display: flex;
        flex-direction: column;
        gap: 25px;
        overflow-y: auto;
        transform: translateX(100%);
        opacity: 0;
        transition: transform .35s ease, opacity .35s ease;
        z-index: 1000;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav.show {
        transform: translateX(0);
         opacity: 1;
    }

    .hamburger {
        display: flex;
        z-index: 1100;
        position: relative;
    }

    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity .35s ease;
        z-index: 900;
    }

    .menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}



/*WANLIFE FOOTER */
.wanlife-footer {
    background: var(--bgGrey);
}

/* INNER (LEFT + RIGHT) */
.wanlife-footer__inner {
    display: flex;
    padding: 30px 0px 20px;
    justify-content: space-between;
    gap: 40px;
}

/* LEFT SIDE */
.wanlife-footer__logo img {
    width: 150px;
    margin-bottom: 12px;
}

.wanlife-footer__address {
    font-size: clamp(14px, 2vw, 16px);
    font-style: normal;
}

.wanlife-footer__address a {
    font-size: clamp(14px, 2vw, 16px);
    text-decoration: none;
    color: var(--textColor);
}

/* RIGHT SIDE */
.wanlife-footer__right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.wanlife-footer-app-link {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.wanlife-footer-app-link .wanlife-footer__store-btn img {
    width: 150px;
}

.wanlife-footer__bottom {
    text-align: right;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
}

.wanlife-footer__bottom a {
    color: var(--textColor);
    text-decoration: none;
    font-size: clamp(14px, 1vw, 16px);
}
.wanlife-footer__bottom a:hover {
    color: var(--textColor);
    text-decoration: underline;
}

.site-footer__copyright {
    background-color: var(--white);
    color: var(--black);
    font-size: 12px;
    text-align: center;
    padding: 10px;
}

@media (max-width: 768px) {

    .wanlife-footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .wanlife-footer__right {
        align-items: center;
    }

    .wanlife-footer__bottom {
        text-align: center;
        justify-content: center;
        margin-top: 16px;
    }
}



/* subpage top banner */
.top-header {
    background-color: var(--bgGrey);
    padding-top: var(--header-height);
}

.top-header__wrap {
    margin: 0 auto;
    padding-top: 50px;
    padding-bottom: 10px;
}

.top-header__heading {
    margin: 0;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--textColor);
}

.top-header__subtitle {
    margin: 0.3rem 0 0.5rem;
    color: var(--textColor);
    font-size: 14px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.breadcrumb__list {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb__item {
    color: var(--textColor);
}

.breadcrumb__item a {
    color: inherit;
    font-size:14px;
    text-decoration: none;
}

.breadcrumb__item a:hover {
    text-decoration: underline;
}

.breadcrumb__item+.breadcrumb__item::before {
    content: "/";
    margin-right: 0.5rem;
    opacity: 0.6;
}



/* button */

.wan-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    font-size: clamp(16px, 3vw, 20px);
    min-width: 200px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    margin: auto 0;
    font-weight: 500;
    text-decoration: none;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.25s ease;
}

.wan-life-button-primary {
    border: 1px solid var(--black);
    background-color: var(--black);
    color: var(--white);
}

.wan-life-button-primary:hover {
    background-color: var(--white);
    color: var(--black);
    border-color: var(--black);
    transform: translateY(-2px);
}

.wan-life-button-submit {
    border: 1px solid var(--black);
    background-color: var(--black);
    color: var(--white);
}

#submitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.thanks-container {
    max-width: 850px;
    margin: 80px auto;
    padding: 0 20px;
}

.thanks-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

.thanks-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.thanks-highlight {
    background: var(--bgGrey);
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    margin: 28px 0;
    display: inline-block;
}

.thanks-note {
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.7;
    margin-top: 28px;
    opacity: 0.7;
}

.thanks-note-icon {
    color: #D4A017;
    font-weight: 700;
    margin-right: 4px;
}

.thanks-home-link {
    display: inline-block;
    margin-top: 40px;
    background: var(--black);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
}

.thanks-home-link:hover {
    opacity: 0.8;
}



@media (max-width: 576px) {
    :root {
        --header-height: 55px;
    }

    .header {
        padding: 12px 0px
    }
    .top-header {
    padding-top: var(--header-height);
}
}



/* Container */
#contact-section{
    padding: 50px 0px;
}
.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

/* 2 columns */
.contact-row {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
}

.contact-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-field.full {
    width: 100%;
    margin-bottom: 32px;
}

/* Label */
.contact-field label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.contact-field label span {
    color: #e53935;
}

/* Inputs */
.contact-field input,
.contact-field select {
    border: none;
    border-bottom: 1px solid #999;
    padding: 8px 0;
    font-size: 16px;
}

.contact-field input::placeholder {
    color: #c0c0c0;
}

/* Select (下線スタイルを維持) */
.contact-field select {
    background: none;
    color: #666;
}

/* Textarea */
.contact-field textarea {
    width: 100%;
    height: 180px;
    border: 1px solid #eee;
    background: #fafafa;
    padding: 12px;
    font-size: 16px;
    resize: vertical;
    border-radius: 4px;
}
/* Remove focus highlight */
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    outline: none;
    border-bottom: 1px solid #999; /* 変化させない */
    box-shadow: none;              /* iOS/Safari青枠対策 */
}

/* Textarea（フォーカス時も変えない） */
.contact-field textarea:focus {
    border: 1px solid #eee; /* 変化なし */
}

/* Submit button */
.contact-submit-wrap {
    text-align: center;
    margin-top: 20px;
}

.contact-submit {
    padding: 14px 40px;
    background: #ff6b6b;
    color: #fff;
    font-size: 17px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s ease;
}

.contact-submit:hover {
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-row {
        flex-direction: column;
        gap: 20px;
    }
}