/* ==========================
   サイト全体
   ========================== */

:root {
    --color-primary: #222222;
    --color-background: #ffffff;
    --color-text: #222222;
    --color-text-muted: #666666;
    --color-border: #eeeeee;
    --color-white: #ffffff;
    --max-width: 1160px;
    --content-narrow: 700px;
    --header-height: 90px;
    --radius-hero: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-background);
}

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

a {
    color: var(--color-text);
    text-decoration: none;
}

a:hover {
    opacity: 0.65;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.container {
    width: min(100% - 60px, var(--max-width));
    margin-inline: auto;
}

.container.narrow {
    width: min(100% - 60px, var(--content-narrow));
}

.section {
    padding: 80px 0;
}

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 40px;
    font-family: "Poppins", "Noto Sans JP", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-align: center;
    color: var(--color-text);
}

.section-title::after {
    content: "";
    display: block;
    width: 20px;
    height: 1px;
    margin-top: 12px;
    background-color: var(--color-primary);
}

.section-catch {
    margin-bottom: 22px;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 2;
    text-align: center;
}

.section-text {
    margin-bottom: 0;
    font-size: 0.9375rem;
    line-height: 2.2;
    text-align: left;
}

/* ==========================
   ヘッダー
   ========================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background-color: var(--color-background);
}

.header-inner {
    width: min(100% - 60px, var(--max-width));
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-brand:hover {
    opacity: 1;
}

.site-name {
    font-family: "Poppins", "Noto Sans JP", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-text);
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 28px;
}

.nav-list a {
    display: inline-block;
    padding: 6px 0;
    font-family: "Poppins", "Noto Sans JP", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--color-primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================
   メインビジュアル
   ========================== */

.hero {
    padding: 0 30px 40px;
}

.hero-visual {
    position: relative;
    max-width: var(--max-width);
    margin-inline: auto;
    min-height: min(70vh, 673px);
    border-radius: var(--radius-hero);
    overflow: hidden;
    background-color: #111;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: min(70vh, 673px);
    object-fit: cover;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 80px;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.28));
}

.hero-kicker {
    margin: 0 0 12px;
    font-family: "Poppins", "Noto Sans JP", sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--color-white);
}

.hero-title {
    margin-bottom: 0;
    font-family: "Poppins", "Noto Sans JP", sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color-white);
}

.hero-lead {
    margin: 16px 0 0;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-white);
}

.scroll-button {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: grid;
    place-items: center;
}

.scroll-button:hover {
    opacity: 0.85;
}

.scroll-arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-white);
    border-bottom: 2px solid var(--color-white);
    transform: translateY(-3px) rotate(45deg);
}

/* ==========================
   SERVICE
   ========================== */

.service-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 20px;
    margin-top: 8px;
}

.service-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin-bottom: 16px;
    background-color: var(--color-border);
}

.service-card h3 {
    margin-bottom: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
}

.service-card p {
    margin-bottom: 0;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* ==========================
   NEWS
   ========================== */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.news-item {
    display: grid;
    gap: 8px;
}

.news-item time {
    font-family: "Poppins", "Noto Sans JP", sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.news-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.7;
}

.news-text {
    margin: 6px 0 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* ==========================
   COMPANY
   ========================== */

.company-map {
    margin: 8px 0 60px;
    width: 100%;
    aspect-ratio: 7 / 4;
    overflow: hidden;
    background-color: var(--color-border);
}

.company-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.info-list {
    margin: 0;
}

.info-row {
    display: grid;
    gap: 8px;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border);
}

.info-row:first-child {
    border-top: 1px solid var(--color-border);
}

.info-row dt,
.info-row dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.7;
}

/* ==========================
   フッター
   ========================== */

.footer {
    padding: 40px 0 48px;
    background-color: var(--color-background);
}

.footer-inner {
    text-align: center;
}

.footer-policy,
.copyright {
    margin: 0;
    font-family: "Poppins", "Noto Sans JP", sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.footer-policy {
    margin-bottom: 12px;
}

/* ==========================
   タブレット以上
   ========================== */

@media (min-width: 768px) {
    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-item {
        grid-template-columns: 120px 1fr;
        gap: 24px;
        align-items: start;
    }

    .info-row {
        grid-template-columns: 140px 1fr;
        gap: 0;
        align-items: baseline;
        padding: 20px 0;
    }

    .company-map {
        aspect-ratio: 7 / 4;
        height: 400px;
        aspect-ratio: auto;
    }
}

/* ==========================
   スマートフォン
   ========================== */

@media (max-width: 767px) {
    :root {
        --header-height: 72px;
    }

    .container,
    .container.narrow,
    .header-inner {
        width: min(100% - 40px, var(--max-width));
    }

    .hero {
        padding: 0 20px 24px;
    }

    .hero-visual,
    .hero-image {
        min-height: 68vh;
        border-radius: 18px;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .scroll-button {
        width: 64px;
        height: 64px;
        bottom: 20px;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }

    .menu-toggle {
        display: block;
        z-index: 120;
    }

    .nav {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.98);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .nav-list a {
        font-size: 1rem;
    }

    body.is-menu-open {
        overflow: hidden;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-name {
        font-size: 1.05rem;
    }

    .company-map {
        margin-bottom: 40px;
        aspect-ratio: 1 / 1;
    }
}
