:root {
    --paper: #f7f3eb;
    --surface: #fffdf8;
    --ink: #24211c;
    --muted: #746d63;
    --line: #ded3c3;
    --cedar: #9b6a44;
    --olive: #5d6952;
    --sea: #3f6870;
    --shadow: 0 18px 40px rgba(55, 43, 31, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.8;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(36, 33, 28, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 33, 28, 0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
}

a {
    color: inherit;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

figure {
    margin: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(36, 33, 28, 0.12);
    background: rgba(247, 243, 235, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner,
.section-inner,
.footer-inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav a {
    color: var(--ink);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--cedar);
}

.hero {
    display: grid;
    width: min(1320px, calc(100% - 40px));
    min-height: calc(100svh - 76px);
    margin: 0 auto;
    grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
    align-items: center;
    gap: 56px;
    padding: 56px 0 72px;
}

.hero-copy {
    max-width: 580px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--sea);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-style: italic;
    letter-spacing: 0.08em;
}

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

h1,
h2,
h3 {
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: 0;
}

h1 {
    margin-bottom: 28px;
    font-size: clamp(42px, 6.2vw, 86px);
}

h2 {
    margin-bottom: 0;
    font-size: clamp(30px, 4vw, 52px);
}

h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.lead {
    max-width: 520px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 17px;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button.primary {
    background: var(--ink);
    color: var(--surface);
}

.button.primary:hover {
    background: var(--cedar);
    border-color: var(--cedar);
}

.button.secondary {
    background: transparent;
    color: var(--ink);
}

.button.secondary:hover {
    background: var(--surface);
}

.image-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(36, 33, 28, 0.18);
    background: #d7c9b6;
    isolation: isolate;
}

.image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 16px solid rgba(255, 253, 248, 0.16);
    box-shadow: inset 0 0 0 1px rgba(36, 33, 28, 0.08);
    pointer-events: none;
}

.hero-photo {
    min-height: min(720px, calc(100svh - 150px));
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow);
}

.section-block,
.section-band {
    padding: 96px 0;
}

.section-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.58);
}

.narrow {
    max-width: 820px;
}

.intro p {
    margin: 0;
    color: var(--ink);
    font-size: clamp(21px, 2.6vw, 34px);
    line-height: 1.75;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 38px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.service-list article {
    display: grid;
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(55, 43, 31, 0.07);
}

.service-photo {
    aspect-ratio: 4 / 5;
}

.service-photo img {
    object-position: center;
}

.service-list article:nth-child(3) .service-photo img {
    object-position: center 44%;
}

.service-text {
    padding: 24px;
}

.service-number {
    display: block;
    margin-bottom: 12px;
    color: var(--olive);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
}

.service-text p {
    margin-bottom: 0;
    color: var(--muted);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: 70px;
    align-items: start;
}

.about-copy {
    min-width: 0;
}

.about-lead {
    margin-top: 30px;
    color: var(--muted);
    font-size: 17px;
}

.leader-photo {
    width: min(430px, 100%);
    aspect-ratio: 4 / 5;
    margin-top: 34px;
    box-shadow: var(--shadow);
}

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

.company-profile div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.company-profile dt {
    color: var(--olive);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.company-profile dd {
    margin: 0;
    color: var(--ink);
}

.company-profile a {
    text-decoration-color: rgba(36, 33, 28, 0.3);
    text-underline-offset: 5px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
    gap: 64px;
    align-items: center;
}

.contact-panel {
    padding: 36px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.contact-panel p {
    margin-bottom: 26px;
    color: var(--muted);
}

.site-footer {
    padding: 34px 0;
    background: var(--ink);
    color: var(--surface);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    color: var(--surface);
}

.footer-brand .brand-mark {
    border-color: rgba(255, 253, 248, 0.7);
}

.site-footer p {
    margin: 0;
    color: rgba(255, 253, 248, 0.72);
    font-size: 13px;
}

@media (max-width: 900px) {
    .header-inner {
        min-height: auto;
        padding: 16px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        gap: 0;
        justify-content: space-between;
        overflow-x: auto;
    }

    .hero,
    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        gap: 32px;
        padding-top: 42px;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-photo {
        min-height: 460px;
        aspect-ratio: 16 / 11;
    }

    .service-list {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .service-list article {
        grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
        align-items: stretch;
    }

    .service-photo {
        aspect-ratio: 4 / 3;
    }

    .section-block,
    .section-band {
        padding: 72px 0;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .section-inner,
    .footer-inner,
    .hero {
        width: min(100% - 28px, 1120px);
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-text {
        font-size: 18px;
    }

    .site-nav {
        font-size: 12px;
    }

    h1 {
        font-size: 40px;
    }

    .lead {
        font-size: 16px;
    }

    .hero-photo {
        min-height: 360px;
        aspect-ratio: 4 / 5;
    }

    .section-heading {
        display: block;
    }

    .service-list article,
    .company-profile div {
        grid-template-columns: 1fr;
    }

    .service-photo {
        aspect-ratio: 4 / 5;
    }

    .contact-panel {
        padding: 26px 20px;
    }

    .button {
        width: 100%;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
