/* Variables */
:root {
    --color-primary: #0f172a;
    /* Deep Navy */
    --color-secondary: #0ea5e9;
    /* Sky Blue/Cyan */
    --color-accent: #0284c7;
    /* Darker Blue */
    --color-text: #334155;
    /* Slate 700 */
    --color-text-light: #64748b;
    /* Slate 500 */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    /* Slate 50 */
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    /* Slate 200 */

    --font-main: 'Inter', 'Noto Sans JP', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn--primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn--outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn--text {
    padding: 0;
    color: var(--color-secondary);
    font-weight: 600;
}

.btn--text:hover {
    text-decoration: underline;
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn--block {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo__icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 1.2rem;
}

.logo__text {
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.nav__list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    color: var(--color-text);
}

.nav__link:hover {
    color: var(--color-secondary);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-btn__line {
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    transition: 0.3s;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--color-white);
    padding-top: var(--header-height);
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
}

.hero__content {
    max-width: 800px;
    padding: 2rem 0;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.hero__lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero__actions {
    display: flex;
    gap: 1rem;
}

/* Section Common */
.section {
    padding: 6rem 0;
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__header--left {
    text-align: left;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section__subtitle {
    color: var(--color-secondary);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* News */
.news {
    background-color: var(--color-bg-alt);
}

.news__list {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.news__item {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s;
}

.news__item:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.news__date {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-light);
    margin-right: 2rem;
    min-width: 100px;
}

.news__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.8rem;
    border-radius: 4px;
    margin-right: 1.5rem;
    min-width: 100px;
    text-align: center;
}

.news__link {
    font-weight: 500;
    color: var(--color-primary);
    flex: 1;
}

.news__link:hover {
    color: var(--color-secondary);
}

.news__more {
    text-align: center;
}

/* Service */
.service__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service__card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.service__img-wrapper {
    height: 200px;
    overflow: hidden;
}

.service__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service__card:hover .service__img {
    transform: scale(1.05);
}

.service__body {
    padding: 2rem;
}

.service__name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.service__desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* About */
.about {
    background-color: var(--color-bg-alt);
}

.about__inner {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about__content {
    flex: 1;
}

.about__text {
    margin-bottom: 3rem;
    line-height: 1.8;
}


.company-profile {
    border-top: 1px solid var(--color-border);
}

.profile__row {
    display: flex;
    align-items: baseline;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.profile__row:last-child {
    border-bottom: none;
}

.profile__row dt {
    width: 120px;
    font-weight: 600;
    color: var(--color-primary);
    flex-shrink: 0;
}

.profile__row dd {
    flex: 1;
}

.about__visual {
    flex: 1;
    min-width: 0;
}

.about__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Contact */
.contact__box {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.required {
    color: #ef4444;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    background-color: #fee2e2;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form__textarea {
    height: 150px;
    resize: vertical;
}

.form__submit {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0 1rem;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.footer__address {
    font-style: normal;
    color: #94a3b8;
    line-height: 1.8;
}

.footer__nav {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer__nav a:hover {
    color: var(--color-secondary);
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: var(--color-secondary);
}

.footer__copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-white);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 2rem;
    }

    .nav.is-active {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .menu-btn {
        display: flex;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .btn--lg {
        width: 100%;
        text-align: center;
    }

    .news__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .news__date,
    .news__tag {
        margin-right: 0;
    }

    .about__inner {
        flex-direction: column;
    }

    .contact__box {
        padding: 2rem;
    }

    .footer__inner {
        flex-direction: column;
    }

    .footer__nav {
        flex-direction: column;
        gap: 1rem;
    }
}