.home-page {
    --ink: #20231f;
    --muted: #777b73;
    --line: #dddfd8;
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background: #f7f7f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

.home-page a { color: inherit; text-decoration: none; }

.home-page a:focus-visible {
    outline: 2px solid #8a9b84;
    outline-offset: 4px;
}

.home-page .page-width {
    width: min(calc(100% - 72px), 1060px);
    margin-inline: auto;
}

.home-page .home-header { border-bottom: 1px solid var(--line); }

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

.home-page .home-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.home-page .home-brand img {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
}

.home-page .contact-link {
    font-size: 13px;
    font-weight: 650;
}

.home-page .contact-link span { margin-left: 4px; }

.home-page .intro { padding: 98px 0 95px; text-align: center; }

.home-page .intro-label {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.home-page .intro h1 {
    margin: 0;
    font-size: clamp(48px, 6.3vw, 76px);
    font-weight: 740;
    line-height: 1.12;
    letter-spacing: -0.065em;
}

.home-page .intro-copy {
    margin: 23px auto 0;
    color: #626760;
    font-size: 17px;
    line-height: 1.75;
}

.home-page .list-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid #aeb3a9;
    color: #5a6058;
    font-size: 12px;
    font-weight: 700;
}

.home-page .project {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) minmax(210px, 290px);
    align-items: center;
    gap: 28px;
    min-height: 158px;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

.home-page .project-icon {
    display: block;
    width: 76px;
    height: 76px;
    border-radius: 18px;
    object-fit: cover;
}

.home-page .project-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px 16px;
}

.home-page .project-title h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.045em;
}

.home-page .project-title span {
    color: #898d85;
    font-size: 12px;
    font-weight: 600;
}

.home-page .project-content p {
    max-width: 450px;
    margin: 9px 0 0;
    color: #666b63;
    font-size: 14px;
    line-height: 1.7;
}

.home-page .project-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 11px 18px;
    font-size: 12px;
}

.home-page .project-links a {
    color: #7b8078;
    white-space: nowrap;
    transition: color 180ms ease;
}

.home-page .project-links .main-link {
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.home-page .project-links .main-link span { margin-left: 2px; }

.home-page .project-links a:hover,
.home-page .contact-link:hover,
.home-page .footer-content a:hover { color: #54704e; }

.home-page .home-footer { margin-top: 95px; border-top: 1px solid var(--line); }

.home-page .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 94px;
    color: #81867e;
    font-size: 12px;
}

.home-page .footer-content > div { display: flex; flex-wrap: wrap; gap: 24px; }
.home-page .footer-content a { transition: color 180ms ease; }

.contact-page .contact-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(calc(100% - 72px), 760px);
    min-height: calc(100svh - 170px);
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

.contact-page .contact-main h1 {
    margin: 0;
    font-size: clamp(48px, 6.3vw, 76px);
    font-weight: 740;
    line-height: 1.12;
    letter-spacing: -0.065em;
}

.contact-page .about-copy {
    max-width: 610px;
    margin: 36px auto 0;
    color: #626760;
    font-size: 18px;
    line-height: 1.9;
}

.contact-page .about-copy p { margin: 0 0 16px; }

.contact-page .email-section {
    margin-top: 58px;
    padding-top: 28px;
    border-top: 1px solid #aeb3a9;
}

.contact-page .email-section h2 {
    margin: 0 0 13px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.contact-page .email-section a {
    display: inline-block;
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 650;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
    transition: color 180ms ease;
}

.contact-page .email-section a:hover { color: #54704e; }
.contact-page .email-section a span { font-size: 0.65em; vertical-align: 0.15em; }

.contact-page .social-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 570px);
    margin: 43px auto 0;
}

.contact-page .social-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    transition: color 180ms ease;
}

.contact-page .social-links a + a { border-left: 1px solid var(--line); }
.contact-page .social-links a:hover { color: #54704e; }
.contact-page .social-platform { color: var(--muted); font-size: 13px; font-weight: 650; }
.contact-page .social-account { font-size: 19px; font-weight: 650; letter-spacing: -0.025em; }
.contact-page .social-account span { margin-left: 2px; font-size: 0.72em; }
.contact-page .home-footer { margin-top: 0; }

@media (max-width: 850px) {
    .home-page .project { grid-template-columns: 76px minmax(0, 1fr); gap: 12px 23px; }
    .home-page .project-links { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 600px) {
    .home-page .page-width { width: min(calc(100% - 40px), 1060px); }
    .home-page .header-content { min-height: 66px; }
    .home-page .home-brand { font-size: 17px; }
    .home-page .intro { padding: 70px 0 78px; }
    .home-page .intro h1 { font-size: 52px; }
    .home-page .intro-copy { font-size: 15px; }
    .home-page .project { grid-template-columns: 64px minmax(0, 1fr); gap: 11px 18px; min-height: 0; padding: 26px 0; }
    .home-page .project-icon { width: 64px; height: 64px; border-radius: 15px; }
    .home-page .project-title h2 { font-size: 22px; }
    .home-page .project-title span { width: 100%; }
    .home-page .project-content p { margin-top: 7px; font-size: 13px; }
    .home-page .project-links { gap: 10px 15px; }
    .home-page .home-footer { margin-top: 65px; }
    .home-page .footer-content { align-items: flex-start; flex-direction: column; justify-content: center; gap: 14px; padding-block: 28px; }
    .contact-page .contact-main { min-height: calc(100svh - 160px); padding-top: 72px; padding-bottom: 80px; }
    .contact-page .contact-main h1 { font-size: 52px; }
    .contact-page .about-copy { margin-top: 28px; font-size: 16px; }
    .contact-page .email-section { margin-top: 48px; padding-top: 23px; }
    .contact-page .email-section a { font-size: clamp(24px, 6vw, 30px); }
    .contact-page .social-links { margin-top: 38px; }
    .contact-page .social-links a { padding-inline: 4px; }
    .contact-page .social-account { font-size: 16px; }
    .contact-page .home-footer { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *, .home-page *::before, .home-page *::after { transition-duration: 0.01ms !important; }
}
