:root {
    --primary-color: #2a6fdb; /* Professional Blue */
    --primary-light: #5e9bff; /* Lighter Blue for accents/hovers */
    --primary-dark: #1a4f9e;  /* Darker Blue for deeper tones */
    --secondary-color: #f5f5f5; /* Light gray for section backgrounds */
    --text-color-dark: #222;
    --text-color-medium: #666;
    --text-color-light: #fff;
    --border-color: #e0e0e0;

    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;

    --max-width: 1200px;
    --padding-sides: 24px;
    --section-spacing: 100px; /* PC */
    --section-spacing-mobile: 60px; /* Mobile */
    --header-height: 80px;
    --border-radius-card: 12px;
    --box-shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}
a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-sides);
}

/* Typography classes */
.heading-main {
    font-family: var(--font-heading);
    font-size: 40px; /* PC */
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-color-dark);
}

.heading-section {
    font-family: var(--font-heading);
    font-size: 28px; /* PC */
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 10px;
}
.heading-section::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.heading-sub {
    font-family: var(--font-heading);
    font-size: 20px; /* PC */
    line-height: 1.5;
    font-weight: 600;
    color: var(--text-color-dark);
    margin-bottom: 1rem;
}

.eyebrow-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.body-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color-dark);
}

/* Section spacing */
.section {
    padding: var(--section-spacing) 0;
}

.section--light-bg {
    background-color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.3);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 111, 219, 0.4);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 111, 219, 0.2);
}

.btn .fa-solid, .btn .fa-regular {
    margin-right: 0px;
}

/* Header */
.header {
    background-color: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.header__logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.header__logo img {
    height: 60px;
}

.header__nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header__nav-link {
    font-weight: 500;
    color: var(--text-color-dark);
    display: flex;
    align-items: center;
    padding: 8px 0;
    position: relative;
}
.header__nav-link:hover {
    color: var(--primary-color);
}
.header__nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}
.header__nav-link:hover::after {
    width: 100%;
}
.header__nav-icon {
    margin-right: 8px;
    color: var(--primary-color); /* Apply primary color to icons */
}

/* Hamburger menu for mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color-dark);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section (Layout 2 specific) */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: var(--section-spacing) 0;
    background-image: url(images/contact_cta_bg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    z-index: 0;
}

.hero:after {
    content: '';
    background: rgb(255 255 255 / 60%);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

.hero__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.hero__text-column,
.hero__image-column {
    flex: 1;
    min-width: 300px;
}

.hero__text-column {
    padding-right: 40px;
}

.hero__title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-color-dark);
}

.hero__subtitle {
    font-size: 20px;
    color: var(--text-color-medium);
    margin-bottom: 2.5rem;
}

.hero__image-wrapper {
    position: relative;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--box-shadow-card);
}
.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Service Cards Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: #fff;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow-card);
    padding: 40px;
    text-align: center;
    transition: transform var(--transition-speed);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card__icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

.card__description {
    font-size: 15px;
    color: var(--text-color-medium);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    padding: 50px 0;
}

.testimonial-item {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow-card);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-item blockquote {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-color-dark);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-item cite {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}
.testimonial-item cite span {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-color-medium);
    display: block;
    margin-top: 5px;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: var(--section-spacing) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1;
}
.cta__background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.cta__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-color-light);
}

.cta__description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Company Page specifics */
.company-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.company-info-card {
    background-color: #fff;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow-card);
    padding: 30px;
}
.company-info-card dt {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 17px;
}
.company-info-card dd {
    margin-bottom: 15px;
    color: var(--text-color-dark);
}

.ceo-message {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}
.ceo-message__image {
    flex: 1;
    min-width: 250px;
    max-width: 400px; /* Limit image size for aesthetics */
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--box-shadow-card);
}
.ceo-message__text {
    flex: 2;
    min-width: 300px;
}
.ceo-message__signature {
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
}
.ceo-message__position {
    font-size: 15px;
    color: var(--text-color-medium);
}

/* Contact Page specifics */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info__item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.contact-info__icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-right: 20px;
    min-width: 32px;
}
.contact-info__text .heading-sub {
    margin-bottom: 5px;
}
.contact-info__text .body-text {
    color: var(--text-color-medium);
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow-card);
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color-dark);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-color-dark);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 111, 219, 0.2);
    outline: none;
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--text-color-dark);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 60px;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 15px;
}
.footer__brand .body-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer__nav-list li {
    margin-bottom: 10px;
}
.footer__nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}
.footer__nav-link:hover {
    color: var(--primary-light);
}

.footer__contact .body-text {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}
.footer__contact .fa-solid {
    margin-right: 10px;
    color: var(--primary-light);
}

.footer__bottom {
    padding: 20px 0;
    text-align: center;
}
.footer__bottom .body-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.form-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.form-modal__content {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  text-align: center;
}

button#modalClose {
    margin-top: 16px;
    padding: 2px 16px;
}

.fa-envelope:before {
    padding-left: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    :root {
        --padding-sides: 16px;
        --section-spacing: var(--section-spacing-mobile);
    }

    .heading-main {
        font-size: 32px;
    }

    .heading-section {
        font-size: 24px;
    }

    .heading-sub {
        font-size: 18px;
    }

    .hero__content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .hero__text-column {
        padding-right: 0;
    }
    .hero__title {
        font-size: 40px;
    }
    .hero__subtitle {
        font-size: 18px;
    }

    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
    }

    .header__nav-list {
        flex-direction: column;
        gap: 25px;
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .header__nav-list.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .header__nav-link {
        font-size: 20px;
        padding: 10px 0;
        justify-content: center;
    }
    .header__nav-link::after {
        left: 50%;
        transform: translateX(-50%);
        width: 0;
    }
    .header__nav-link:hover::after {
        width: 60%;
    }

    .menu-toggle {
        display: flex;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .cta__title {
        font-size: 28px;
    }
    .cta__description {
        font-size: 16px;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__nav-list {
        padding: 0;
    }
    .footer__contact .body-text {
        justify-content: center;
    }

    .ceo-message {
        flex-direction: column;
        text-align: center;
    }
    .ceo-message__image {
        max-width: 100%;
    }
}