/* =========================================
    Reset & Base (Inherited)
    ========================================= */
html {
    font-size: 62.5%;
    /* 1rem = 10px */
    scroll-behavior: smooth;
}

:root {
    --color-primary: #333333;
    --color-accent-brand: #4CB5A2;
    --color-accent-data: #2C5282;
    --color-accent: #4CB5A2;
    --color-bg-gray: #F5F5F5;
    --color-border: #DDDDDD;
    --color-error: #e74c3c;
    --font-base: 'Noto Sans JP', sans-serif;
    --font-en: 'Manrope', sans-serif;
    --header-height: 80px;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    color: var(--color-primary);
    line-height: 1.6;
    font-size: 1.6rem;
    letter-spacing: 0.01em;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Utility */
.u-pc-only {
    display: block;
}

.u-sp-only {
    display: none;
}

@media (max-width: 768px) {
    .u-pc-only {
        display: none;
    }

    .u-sp-only {
        display: block;
    }
}

/* Animation */
.js-scroll-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.0s var(--ease-out-expo), transform 1.0s var(--ease-out-expo);
}

.js-scroll-fade-up.is-show {
    opacity: 1;
    transform: translateY(0);
}

#hubspot-contact-form-wrapper .actions{
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* =========================================
    Header (Common)
    ========================================= */
.p-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #fff;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.p-header__logo img {
    width: 180px;
    display: block;
}

.p-header__nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.p-nav__list {
    display: flex;
    align-items: center;
}

.p-nav__item {
    position: relative;
    padding: 0 24px;
}

.p-nav__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background-color: #ccc;
}

.p-nav__link {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    position: relative;
    display: block;
}

.p-nav__link:hover {
    opacity: 0.7;
}

.p-header__right-content {
    display: flex;
    gap: 12px;
    align-items: center;
}

.c-header-btn {
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    background-color: #F5F5F5;
    color: #333;
    padding: 10px 24px;
    transition: all 0.3s;
}

.c-header-btn:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
    opacity: 1;
}

.c-header-btn--primary {
    background-color: #333;
    color: #fff;
}

.c-hamburger {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: 10px;
}

.c-hamburger span {
    position: absolute;
    left: 5px;
    width: 30px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s;
}

.c-hamburger span:nth-of-type(1) {
    top: 12px;
}

.c-hamburger span:nth-of-type(2) {
    top: 19px;
}

.c-hamburger span:nth-of-type(3) {
    top: 26px;
}

.c-hamburger.is-active span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 19px;
}

.c-hamburger.is-active span:nth-of-type(2) {
    opacity: 0;
}

.c-hamburger.is-active span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 19px;
}

/* Mobile Menu */
.p-mobile-header {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-expo);
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.p-mobile-header.is-active {
    transform: translateX(0);
}

.p-mobile-header__inner {
    padding: 20px 20px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.p-mobile-header__nav-item {
    border-bottom: 1px solid #eee;
}

.p-mobile-header__nav-item a {
    display: block;
    padding: 16px 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.p-mobile-header__cta-area {
    margin-top: 2rem;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.c-mobile-cta-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 4px;
    gap: 10px;
}

.c-mobile-cta-btn--secondary {
    background-color: #fff;
    color: #333;
    border: 1px solid #333;
}

.c-mobile-cta-btn--primary {
    background-color: #333;
    color: #fff;
    border: 1px solid #333;
}

/* =========================================
    Breadcrumb
    ========================================= */
.p-breadcrumb {
    background-color: var(--color-bg-gray);
    padding: 20px 0;
    font-size: 1.2rem;
    color: #666;
}

.p-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.p-breadcrumb li {
    display: flex;
    align-items: center;
}

.p-breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    font-family: var(--font-en);
}

.p-breadcrumb a:hover {
    text-decoration: underline;
}

/* =========================================
    Page Header
    ========================================= */
.p-page-header {
    background-color: #fff;
    padding: 5rem 0 7rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.p-page-title {
    font-size: 3.6rem;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.p-page-title-en {
    font-family: var(--font-en);
    font-size: 1.4rem;
    color: #666;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 32px;
}

.p-page-lead {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #333;
    max-width: 1100px;
    margin: 0 auto;
}

/* =========================================
    Contact Form Section
    ========================================= */
.section-contact {
    padding: 25px 0 25px;
    background-color: var(--color-bg-gray);
}

/* Wrapper for Centered Form */
.p-contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

/* Inheriting Form Styles from dlform.html */
.p-form-group {
    margin-bottom: 32px;
}

.p-form-label {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.p-label-required {
    background-color: var(--color-error);
    color: #fff;
    font-size: 1.1rem;
    padding: 3px 8px;
    border-radius: 2px;
    line-height: 1;
    font-weight: 700;
}

.p-label-optional {
    background-color: #999;
    color: #fff;
    font-size: 1.1rem;
    padding: 3px 8px;
    border-radius: 2px;
    line-height: 1;
    font-weight: 700;
}

.p-form-input,
.p-form-select,
.p-form-textarea {
    width: 100%;
    padding: 16px;
    font-size: 1.6rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: #fdfdfd;
    transition: all 0.3s;
    font-family: inherit;
}

.p-form-textarea {
    height: 200px;
    resize: vertical;
}

.p-form-input:focus,
.p-form-select:focus,
.p-form-textarea:focus {
    outline: none;
    border-color: var(--color-accent-brand);
    box-shadow: 0 0 0 4px rgba(76, 181, 162, 0.15);
}

/* Radio Buttons for Inquiry Type */
.p-form-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.p-form-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1.6rem;
}

.p-form-radio {
    width: 20px;
    height: 20px;
    accent-color: var(--color-accent-brand);
    cursor: pointer;
}

/* Privacy */
.p-form-privacy {
    margin: 40px 0;
    padding: 24px;
    background-color: #fafafa;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #eee;
}

.p-form-privacy-link {
    color: var(--color-accent-brand);
    text-decoration: underline;
    font-weight: 700;
}

.p-form-checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
}

.p-form-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-accent-brand);
}

/* Submit Button */
.p-form-btn-area {
    text-align: center;
}

.p-form-btn {
    background-color: var(--color-accent-brand);
    color: #fff;
    border: none;
    padding: 20px 80px;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(76, 181, 162, 0.3);
    min-width: 320px;
}

.p-form-btn:hover {
    background-color: #3aa390;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 181, 162, 0.4);
}

/* Contact Info (Phone) */
.p-contact-tel {
    text-align: center;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #ddd;
}

.p-contact-tel-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.p-contact-tel-number {
    font-size: 3.2rem;
    font-weight: 900;
    font-family: var(--font-en);
    line-height: 1;
    margin-bottom: 8px;
}

.p-contact-tel-time {
    font-size: 1.3rem;
    color: #666;
}

/* =========================================
    Responsive
    ========================================= */
@media (max-width: 1024px) {

    .p-header__nav,
    .c-header-btn {
        display: none;
    }

    .c-hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .p-header {
        padding: 0 16px;
    }

    .p-header__logo img {
        width: 140px;
    }

    .p-page-header {
        padding: 60px 0 40px;
    }

    .p-page-title {
        font-size: 2.8rem;
    }

    .p-page-lead {
        text-align: left;
    }

    .section-contact {
        padding: 40px 0 60px;
    }

    .p-contact-form-wrapper {
        padding: 30px 20px;
    }

    .p-form-radios {
        flex-direction: column;
        gap: 16px;
    }

    .p-form-btn {
        width: 100%;
        min-width: auto;
        padding: 18px;
    }

    /* Inputs 2-col to 1-col */
    .p-form-row-2col {
        flex-direction: column;
    }

    .footer-row {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 40px;
    }
}

/* =========================================
    Footer & Floating CTA (Common)
    ========================================= */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 80px 0 20px;
    font-size: 1.3rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-logo img {
    width: 200px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-nav {
    display: flex;
    gap: 60px;
}

.footer-nav h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-family: var(--font-en);
    font-size: 1.2rem;
    opacity: 0.6;
}

/* Floating CTA */
.p-floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 900;
    font-family: var(--font-base);
    transition: transform 0.3s var(--ease-out-expo);
}

.p-floating-cta__inner {
    background-color: #222;
    padding: 24px 20px;
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    text-align: center;
}

.p-floating-cta__close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #eee;
    color: #333;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.p-floating-cta__title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.p-floating-cta__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p-floating-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: opacity 0.3s, transform 0.3s;
}

.p-floating-cta__btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.p-floating-cta__btn--primary {
    background-color: var(--color-accent);
    color: #fff;
}

.p-floating-cta__btn--secondary {
    background-color: #fff;
    color: #333;
}

.p-floating-cta__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #fff;
    margin-right: 12px;
    position: relative;
    top: 1px;
}

.p-floating-cta__dot--green {
    background-color: var(--color-accent);
}

.p-floating-cta__toggle {
    display: none;
}

@media (max-width: 768px) {
    .p-floating-cta {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        z-index: 2000;
        transform: translateY(0);
    }

    .p-floating-cta.is-closed {
        transform: translateY(100%);
    }

    .p-floating-cta__inner {
        width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 16px 16px 24px;
    }

    .p-floating-cta__close {
        display: none;
    }

    .p-floating-cta__title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .p-floating-cta__buttons {
        flex-direction: row;
        gap: 8px;
    }

    .p-floating-cta__btn {
        font-size: 1.2rem;
        height: 44px;
    }

    .p-floating-cta__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: -32px;
        right: 10px;
        width: 44px;
        height: 32px;
        background-color: #222;
        border-radius: 8px 8px 0 0;
        border: none;
        cursor: pointer;
        color: #fff;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    }

    .p-floating-cta__toggle::before {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
        transform: rotate(135deg);
        transition: transform 0.3s;
        margin-top: -4px;
    }

    .p-floating-cta.is-closed .p-floating-cta__toggle::before {
        transform: rotate(-45deg);
        margin-top: 4px;
    }
}