/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; 
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.6rem; 
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 30px;
}

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

a {
    color: #0071BC; 
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005085; 
    text-decoration: underline;
}

/* Header */
.l-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; 
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.l-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.l-header__logo img {
    max-height: 40px; 
}

.l-header__nav ul {
    list-style: none;
    display: flex;
}

.l-header__nav ul li {
    margin-left: 30px;
}

.l-header__nav ul li a {
    font-size: 1.5rem; 
    font-weight: 700;
    color: #333;
    text-decoration: none;
    padding: 5px 0;
}

.l-header__nav ul li a:hover {
    color: #0071BC;
    text-decoration: none;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto; 
    z-index: 1005; 
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 1px;
}

.hamburger-menu.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.l-page-wrapper {
    padding-top: 80px; 
}

/* Main Content Sections */
.home-section {
    padding: 60px 0;
    text-align: center;
}

#main-logo {
    width: 90%;      
    display: block;   
    margin-left: auto; 
    margin-right: auto;
    margin-top: 30px;   
    margin-bottom: 60px;
}

.m-section-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    position: relative;
}
.m-section-title::after { 
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #0071BC;
}
#home-about p {
    font-size: 1.7rem;
    line-height: 1.9;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: left;
}

/* Security section paragraphs same as About (exclude image/link block) */
#home-security p:not(.security-figure) {
    font-size: 1.7rem;
    line-height: 1.9;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: left;
}

/* Form Styles (m-form) */
.m-form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.6rem;
    font-family: "Noto Sans JP", sans-serif;
    transition: border-color 0.3s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #0071BC;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 113, 188, 0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.m-button {
    display: inline-block;
    background-color: #0071BC;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    min-width: 180px;
}
.m-button:hover {
    background-color: #005085;
    color: #fff;
    text-decoration: none;
}
.m-button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
    opacity: 0.7;
}

.contact-form-wrapper .m-button[type="submit"] { 
    display: block;
    margin: 20px auto 0 auto;
}

/* Confirmation Page Styles */
.confirmation-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff; 
    padding: 20px 30px 30px; 
    border-radius: 8px; 
}
.confirmation-intro {
    margin-bottom: 25px;
    font-size: 1.6rem;
    line-height: 1.7;
    text-align: center;
}
.confirmation-data dt {
    font-weight: 700;
    font-size: 1.5rem;
    color: #444;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    padding-bottom: 0.3em;
    border-bottom: 1px dotted #ccc;
}
.confirmation-data dt:first-of-type {
    margin-top: 0;
}
.confirmation-data dd {
    margin-left: 0;
    margin-bottom: 1em;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 1.6rem;
    line-height: 1.7;
    color: #333;
    word-break: break-word; 
}
.confirmation-data dd pre {
    white-space: pre-wrap; 
    margin: 0;
    font-family: inherit; 
    font-size: inherit;
    color: inherit;
}
.confirmation-buttons {
    margin-top: 40px;
    text-align: center; 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}
.confirmation-buttons .m-button {
    margin: 0; 
}
.m-button-cancel {
    background-color: #777; 
    color: #fff;
}
.m-button-cancel:hover {
    background-color: #555;
    color: #fff;
}
.form-notice {
    text-align: center;
    margin-top: 30px;
    font-size: 1.3rem;
    color: #555; /* Changed from red to a more neutral color for general notices */
}

/* Thank You Page Styles */
.thankyou-message-container {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff; 
    border-radius: 8px;   
}
.thankyou-message-container p {
    font-size: 1.7rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #333;
}
.thankyou-actions .m-button {
    margin: 0 auto; 
}

/* Security Policy & Contact Page Specifics (General page content styling) */
.page-content {
    padding-top: 50px;
    padding-bottom: 50px;
}
.page-content .text-content, /* For security policy text */
.contact-form-wrapper { /* For contact form area */
    max-width: 800px; 
    margin: 0 auto;
}
.m-page-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    position: relative;
}
.m-page-title::after { 
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #0071BC;
}
.page-content p, /* General paragraphs within page-content */
.policy-list li { /* List items in policy */
    margin-bottom: 1.8em; 
    color: #444;
}
.policy-list {
    padding-left: 25px; 
}
.policy-list li {
    font-size: 1.5rem;
}
.policy-signature {
    margin-top: 50px;
    text-align: right;
    font-size: 1.5rem;
    line-height: 1.9;
}
.policy-signature p {
    margin-bottom: 0.5em;
}

/* Footer */
.l-footer {
    background-color: #333;
    color: #f8f9fa;
    padding: 50px 0;
    text-align: center;
    font-size: 1.4rem;
    margin-top: 60px;
}
.l-footer .container p {
    margin: 10px 0;
    opacity: 0.8;
}
.l-footer .footer-company-name {
    font-size: 1.6rem;
    font-weight: 700;
    opacity: 1;
    margin-bottom: 15px;
}
.l-footer a {
    color: #fff;
    text-decoration: underline;
}
.l-footer a:hover {
    color: #00aaff; 
    text-decoration: underline;
}

/* Home Security section */
.security-figure {
    text-align: center;
    margin-top: 0; /* use normal line height spacing */
}
.security-image {
    width: 200px;
    height: auto;
}
.security-figure a {
    display: inline; /* follow normal line height */
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    html {
        font-size: 60%; 
    }
    .m-section-title, .m-page-title {
        font-size: 2.8rem;
    }
    .container { 
        padding: 0 20px;
    }
}

@media (max-width: 768px) { 
    html {
        font-size: 58%;
    }
    .l-header {
        height: 70px; 
    }
    .l-header__logo img {
        max-height: 30px; 
    }
    .l-header__nav {
        display: none; 
        position: absolute;
        top: 70px; 
        left: 0;
        width: 100%;
        background-color: #fdfdfd; 
        box-shadow: 0 3px 6px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        padding-top: 10px;
        padding-bottom: 20px;
    }
    .l-header__nav.is-active { 
        display: block; 
    }
    .l-header__nav ul {
        flex-direction: column;
        align-items: center;
    }
    .l-header__nav ul li {
        margin: 0; 
        width: 100%;
    }
    .l-header__nav ul li a {
        display: block;
        padding: 12px 20px;
        text-align: center;
        border-bottom: 1px solid #eee;
        font-size: 1.6rem; 
    }
    .l-header__nav ul li:last-child a {
        border-bottom: none;
    }
    .l-header__nav ul li a:hover {
        background-color: #f0f0f0;
    }
    .hamburger-menu {
        display: block; 
    }
    .l-page-wrapper {
        padding-top: 70px; 
    }
    .m-section-title, .m-page-title {
        font-size: 2.6rem; 
    }
    #home-about p {
        font-size: 1.6rem;
        padding: 0 10px;
    }
    #home-security p:not(.security-figure) {
        font-size: 1.6rem;
        padding: 0 10px;
    }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        font-size: 1.6rem; 
    }
    .confirmation-buttons { /* Ensure buttons stack or wrap nicely on mobile */
        flex-direction: column;
        gap: 15px;
    }
    .confirmation-buttons .m-button {
        width: 100%; /* Make buttons full width in column layout */
        max-width: 300px; /* But not excessively wide */
        margin: 0 auto; /* Center them */
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 15px; 
    }
    .m-section-title, .m-page-title {
        font-size: 2.2rem;
    }
    .m-button, 
    .contact-form-wrapper .m-button[type="submit"],
    .thankyou-actions .m-button { /* Make buttons full width on smallest screens */
        padding: 10px 20px;
        font-size: 1.5rem;
        width: 100%; 
        max-width: 100%; /* Override previous max-width if needed */
    }
     .confirmation-buttons .m-button {
        max-width: 100%;
    }
    .home-section { 
        padding: 40px 0;
    }
    #main-logo { 
        /* width: 90%; is already set */
    }
}