@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+JP:wght@100..900&display=swap');

/* ==========================================================================
   Reset & Variables
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:where([hidden]:not([hidden="until-found"])) {
    display: none !important;
}


@supports not (min-block-size: 100dvb) {
    :where(html) {
        block-size: 100%;
    }
}

:where(body) {
    block-size: 100%;
    block-size: 100dvb;
    line-height: 1.5;
    font-family: system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

:where(input, button, textarea, select) {
    font: inherit;
    color: inherit;
}

:where(textarea) {
    resize: vertical;
    resize: block;
}

:where(button, label, select, summary, [role="button"], [role="option"]) {
    cursor: pointer;
}

:where(:disabled) {
    cursor: not-allowed;
}

:where(label:has(> input:disabled), label:has(+ input:disabled)) {
    cursor: not-allowed;
}

:where(button) {
    border-style: solid;
}

:where(a) {
    text-underline-offset: 0.2ex;
}

:where(img, svg, video, canvas, audio, iframe, embed, object) {
    display: block;
}

:where(img, picture, svg) {
    block-size: auto;
}

:where(p, h1, h2, h3, h4, h5, h6) {
    overflow-wrap: break-word;
}

:where(h1, h2, h3) {
    line-height: calc(1em + 0.5rem);
}

:where(hr) {
    border: none;
    border-block-start: 1px solid;
    color: inherit;
    block-size: 0;
    overflow: visible;
}

:where(:focus-visible) {
    outline: 2px solid var(--focus-color, Highlight);
    outline-offset: 2px;
}

:where(.visually-hidden:not(:focus, :active, :focus-within, .not-visually-hidden)) {
    clip-path: inset(50%) !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
    position: absolute !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:root {
    --header-height: 80px;

    --primary: #183A6A;
    --primary-light: #0080D9;
    --attention: #BF0000;
    --dark: #16273D;
    --white: #ffffff;
    --blue-gray: #879DAC;
    --color-gray-dark: #666;
    --color-gray: #C5CBD3;
    --color-gray-light: #F1F4F9;


    --font-en: "Montserrat", sans-serif;

    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 16px;
    --radius-x-large: 32px;
    --radius-full: 9999px;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.7;
    color: var(--dark);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Background
   ========================================================================== */
.bg-blue {
    background-image: url('../images/common/bg-blue.jpg');
    background-size: auto;
    background-position: center top;
    background-repeat: repeat;
}

.bg-cta {
    background-image: url('../images/common/bg-cta.jpg');
    background-size: auto;
    background-position: center top;
    background-repeat: repeat;
}

.bg-white {
    background-image: url('../images/common/bg-white.jpg');
    background-size: auto;
    background-position: center top;
    background-repeat: repeat;
}

.bg-gray {
    background-image: url('../images/common/bg-gray.jpg');
    background-size: auto;
    background-position: center top;
    background-repeat: repeat;
}

/* ==========================================================================
   Header (Mobile First)
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
    transition: transform 0.3s ease;
    & .logo {
    display: flex;
    align-items: center;
}

    & .logo img {
        height: 27px;
    }
}

header.header-hidden {
    transform: translateY(-100%);
}



/* Desktop nav — hidden on mobile */
nav {
    display: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* Header submenu */
.header-submenu {
    display: none;
    gap: 1rem;
    align-items: center;
    order: 2;
    margin-left: auto;
    margin-right: 1rem;
}

@media(width >= 768px) {
    .header-submenu {
        display: flex;
    }
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    order: 3;
}

.mobile-menu-button span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
    transition: all 0.3s;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
    display: block;
    visibility: hidden;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-content {
    padding: 1rem 2rem 2rem 2rem;
}

.mobile-nav-content a {
    display: block;
    padding: 1rem 0;
    color: var(--dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s;
}

.mobile-nav-content a:hover {
    color: var(--primary);
}

.mobile-submenu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 80%;
    margin-inline: auto;
    padding-top: 1rem;
    a {
        max-width: 150px;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button-rect {
    display: block;
    max-width: 360px;
    min-width: 150px;
    padding: 0.5rem 1rem;
    color: var(--white);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--dark);
    border-radius: var(--radius-small);
    background: var(--dark);
    transition: all 0.3s;
    &:hover {
        background-color: var(--primary-light);
        border-color: var(--primary-light);
    }
}
.button-rect-border {
    display: block;
    max-width: 360px;
    min-width: 150px;
    padding: 0.5rem 1rem;
    color: var(--dark);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--dark);
    border-radius: var(--radius-small);
    background: var(--white);
    transition: all 0.3s;
    &:hover {
        color: var(--primary-light);
        border-color: var(--primary-light);
    }
}

.button-round-red {
    display: block;
    padding: 1rem 3rem;
    background: var(--attention);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp( 1.25rem, calc( 0.9782608695652174rem + 1.0869565217391304vw ), 1.5rem );
    transition: all 0.3s;
    border-radius: var(--radius-full);
    &:hover {
        transform: translateY(-2px);
    }
}

.button-round-white {
    display: block;
    padding: 1rem 3rem;
    background: var(--white);
    color: var(--dark);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp( 1.25rem, calc( 0.9782608695652174rem + 1.0869565217391304vw ), 1.5rem );
    transition: all 0.3s;
    border-radius: var(--radius-full);
    &:hover {
        transform: translateY(-2px);
    }
}
#contact .mktoForm .mktoButtonWrap .mktoButton,
#quick-inquiry .mktoForm .mktoButtonWrap.mktoSimple .mktoButton,
.mktoButtonWrap button[type="submit"]{
    display: block;
    padding: 1rem 3rem !important;
    background-color: var(--dark) !important;
    background-image: none !important;
    color: var(--white) !important;
    text-align: center !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    transition: all 0.3s !important;
    line-height: inherit !important;
    border-width: 0 !important;
    border-radius: var(--radius-full) !important;
    text-shadow: none !important;
    &:hover {
        transform: translateY(-2px) !important;
    }
}
#contact .mktoForm .mktoButtonWrap .mktoButton {
    margin-top: 2rem !important;
    min-width: 300px !important;
}




/* ==========================================================================
   Section Base
   ========================================================================== */

section {
    padding: clamp( 50px, calc( -4.347826086956516px + 13.586956521739129vw ), 100px ) 1.5rem;
    margin: 0 auto;
}
.content {
    max-width: 1200px;
    margin: 0 auto;
    &.--mid {
        max-width: 980px;
    }
    &.--narrow {
        max-width: 900px;
    }
}
.content {
    h2,h3,h4 {
        margin-top: 0;
    }
}

.section-title {
    margin-bottom: clamp( 24px, calc( -36.86956521739131px + 15.217391304347828vw ), 80px );
    font-size: clamp( 24px, calc( -2.086956521739129px + 6.521739130434782vw ), 48px );
    font-feature-settings: "halt";
    font-weight: 400;
    text-align: justify;
    br {
        display: none;
    }
}

.section-subtitle {
    text-align: center;
    font-size: clamp( 16px, calc( 11.652173913043478px + 1.0869565217391304vw ), 20px );
    margin-block-start: 0;
    margin-bottom: 3rem;
    font-weight: 400;
    @media(width < 768px) {
        text-align: left;
    }
}

@media(width >= 768px) {
    .section-title {
        text-align: center;
        br {
            display: block;
        }
    }
}

/* ==========================================================================
   Cta
   ========================================================================== */
.cta-section .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp( 32px, calc( 23.304347826086957px + 2.1739130434782608vw ), 40px );
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.cta-section .content.visible {
    opacity: 1;
    transform: translateY(0);
}
.cta-title {
    margin: 0;
    font-size: clamp( 40px, calc( 13.913043478260871px + 6.521739130434782vw ), 64px );
    font-family: var(--font-en);
    line-height: 1;
}
.cta-comment {
    margin: 0;
    font-size: clamp( 16px, calc( 13.826086956521738px + 0.5434782608695652vw ), 18px );
    font-weight: 400;
}
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 90%;
    max-width: 360px;
}
@media(width >= 768px) {
    .cta-comment {
        text-align: center;
    }
    .cta-buttons {
        width: 100%;
        max-width: 100%;
        flex-direction: row;
        justify-content: center;
    }
    .cta-buttons a{
        min-width: 320px;
    }
}


/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: var(--white);
    color: var(--dark);
    padding-block: clamp(5rem, 4.55986rem + 1.87793vw, 6.25rem) clamp(2rem, 1.3838rem + 2.62911vw, 3.75rem);

    p {
        margin: 0;
    }
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    .logo-renoxia{
        width: 180px;
        height: auto;
        aspect-ratio: 5 / 1;
    }
    .logo-seiwa{
        width: 130px;
        height: auto;
        aspect-ratio: 4.6 / 1;
    }
}

.footer-content {
    width: calc(100% + -1 * clamp(2rem, 31.7371vw - 5.43838rem, 23.125rem) + -1 * clamp(2rem, 31.7371vw - 5.43838rem, 23.125rem));
    max-width: 700px;
    margin-inline: auto;
}

.footer-contact {
    text-align: center;
    border-left: 1px solid #a2a9b1;
    border-right: 1px solid #a2a9b1;
    place-items: center;
    max-width: 465px;
    margin-block-start: clamp(2.5rem, 2.05986rem + 1.87793vw, 3.75rem);
    margin-inline: auto;
    padding-inline: 2em;
    display: grid;

    & .accept {
        margin-block-start: 1rem;
        font-size: 0.875rem;
    }

    & img {
        width: 100%;
        max-width: 300px;
    }
}

.footer-bottom {
    text-align: center;
    margin-block-start: clamp(5rem, 4.55986rem + 1.87793vw, 6.25rem);
    font-size: clamp(.625rem, .580986rem + .187793vw, .75rem);
    font-weight: 400;
    font-size: clamp(.625rem, .580986rem + .187793vw, .75rem);
}
@media (min-width: 600px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(width >= 768px) {
    .footer-logo {
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
        .logo-renoxia, .logo-seiwa {
            width: auto;
            height: 62px;
        }
        .logo-renoxia {
            transform: translateY(-4px);
        }
    }
}

/* ==========================================================================
   Common Responsive
   ========================================================================== */

@media (min-width: 768px) {

    section {
        padding: 6rem 2rem;
    }

    .section-heading {
        font-size: 2.4rem;
    }

    .footer-social {
        flex-direction: row;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {

    header {
        padding: 1.5rem 2rem;
    }

    nav {
        display: flex;
    }

    .mobile-menu-button {
        display: none;
    }

    .mobile-nav {
        display: none;
    }

    .header-submenu {
        margin-left: 0;
        margin-right: 0;
    }


    section {
        padding: 8rem 2rem;
    }

    .section-heading {
        font-size: 2.8rem;
    }

    .section-subtitle {
        margin-bottom: 5rem;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

}

#contact .mktoForm .mktoButtonRow {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

#contact .mktoForm .mktoButtonWrap,
#contact .mktoForm .mktoButtonWrap.mktoSimple {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#contact .mktoForm .mktoButtonWrap .mktoButton,
#contact .mktoForm button[type="submit"] {
  display: block !important;
  min-width: 300px !important;
  max-width: 100% !important;
  margin: 2rem auto 0 !important;
}

@media screen and (max-width: 767px) {
  #contact .mktoForm .mktoButtonWrap .mktoButton,
  #contact .mktoForm button[type="submit"] {
    width: 100% !important;
    min-width: 0 !important;
  }
}

