/* ヨサノミン 開発者ホームページ Version 1.0.0 */
:root {
    --violet: #70439b;
    --violet-dark: #4e276f;
    --violet-light: #f1e9f8;
    --ink: #28232c;
    --muted: #625b67;
    --line: #d9cfdf;
    --paper: #fffdf9;
    --white: #fff;
    --yellow: #f8d64e;
    --shadow: 0 12px 30px rgba(65, 43, 76, .12);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "BIZ UDPGothic", "Yu Gothic", "Meiryo", sans-serif;
    font-size: 18px;
    line-height: 1.8;
}
a { color: var(--violet-dark); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 18px; color: #fff; background: #111; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 2px solid var(--line); background: rgba(255, 253, 249, .96); backdrop-filter: blur(10px); }
.header-inner, .hero-inner, .section, .footer-inner { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-name { color: var(--violet-dark); font-size: 1.55rem; font-weight: 900; letter-spacing: .05em; }
.brand-note { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .08em; }
.global-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; }
.global-nav a { color: var(--ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.global-nav a:hover { color: var(--violet); text-decoration: underline; }

.hero { overflow: hidden; border-bottom: 2px solid #e9dfed; background: radial-gradient(circle at 83% 18%, #fff3b6 0 8%, transparent 28%), radial-gradient(circle at 8% 82%, #f7ddec 0 5%, transparent 26%), linear-gradient(135deg, #f6effb, #eff9f7 58%, #fffbea); }
.hero-inner { min-height: 610px; padding-block: 70px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 60px; }
.eyebrow, .section-kicker { margin: 0 0 8px; color: var(--violet); font-size: .85rem; font-weight: 900; letter-spacing: .12em; }
.hero h1 { max-width: 700px; margin: 0; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1.28; letter-spacing: .02em; }
.hero-text { max-width: 680px; margin: 26px 0 0; color: #46404a; font-size: 1.08rem; font-weight: 600; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.button { min-height: 56px; padding: 12px 24px; border: 3px solid var(--violet-dark); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(78, 39, 111, .16); }
.button:active { transform: translateY(2px); box-shadow: none; }
.button-primary { color: #fff; background: var(--violet-dark); }
.button-secondary { color: var(--violet-dark); background: #fff; }
.hero-logo { margin: 0; transform: rotate(1.5deg); }
.hero-logo img { display: block; width: min(100%, 470px); margin-inline: auto; border: 8px solid #fff; border-radius: 34px; box-shadow: var(--shadow); }

.section { padding-block: 86px; scroll-margin-top: 90px; }
.section-heading { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.section-heading-left { margin-inline: 0; text-align: left; }
.section-heading h2, .about-box h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.35; }
.section-heading > p:last-child { margin: 12px 0 0; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project-card { --card-color: var(--violet); min-height: 300px; padding: 28px; border: 3px solid var(--ink); border-top: 10px solid var(--card-color); border-radius: var(--radius); display: flex; flex-direction: column; background: var(--white); box-shadow: 6px 7px 0 #e5dce9; }
.project-card--rose { --card-color: #d94768; }
.project-card--blue { --card-color: #2683b7; }
.project-card--green { --card-color: #33865d; }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-icon { font-size: 2rem; line-height: 1; }
.status { padding: 4px 12px; border: 2px solid currentColor; border-radius: 999px; color: var(--card-color); font-size: .78rem; font-weight: 900; }
.project-card h3 { margin: 20px 0 8px; font-size: 1.45rem; line-height: 1.4; }
.project-card p { margin: 0 0 20px; color: var(--muted); }
.card-link { margin-top: auto; font-weight: 900; }

.section-soft { width: min(1120px, calc(100% - 40px)); padding-inline: clamp(22px, 5vw, 60px); border: 3px solid var(--violet-dark); border-radius: 30px; background: var(--violet-light); box-shadow: 8px 9px 0 #d9c8e7; }
.news-list { border-top: 3px solid var(--violet-dark); }
.news-item { padding: 22px 4px; border-bottom: 2px solid #c9b5d7; display: grid; grid-template-columns: 250px 1fr; gap: 25px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 800; }
.news-meta span { padding: 2px 9px; border-radius: 6px; color: #fff; background: var(--violet-dark); font-size: .75rem; }
.news-item p { margin: 0; font-weight: 650; }
.home-news { margin-top: 76px; scroll-margin-top: 100px; }
.news-content { min-width: 0; }
.news-project { margin-bottom: 2px !important; color: var(--violet-dark); font-size: .82rem; font-weight: 900 !important; }
.news-content a { color: var(--ink); font-weight: 900; }
.news-version { display: inline-block; margin-left: 7px; padding: 1px 8px; border-radius: 999px; color: #6d3500; background: #ffe3a5; font-size: .72rem; white-space: nowrap; }
.news-empty { padding: 25px; border: 2px dashed #8f769f; border-radius: 12px; text-align: center; background: rgba(255,255,255,.55); font-weight: 800; }
.news-more { margin: 24px 0 0; text-align: right; font-weight: 900; }

.about-box { padding: clamp(30px, 6vw, 64px); border: 3px solid var(--ink); border-radius: 30px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; background: #fff; box-shadow: 8px 9px 0 #eee3cd; }
.about-text p { margin-top: 0; }
.about-text .owner { margin: 28px 0 0; color: var(--violet-dark); font-weight: 900; }

.site-footer { margin-top: 20px; border-top: 8px solid var(--violet-dark); color: #fff; background: #2f2536; }
.footer-inner { padding-block: 48px; text-align: center; }
.footer-inner p { margin: 4px 0; }
.footer-name { font-size: 1.4rem; font-weight: 900; letter-spacing: .08em; }
.copyright { margin-top: 20px !important; color: #d8ccde; }

@media (max-width: 800px) {
    body { font-size: 17px; }
    .site-header { position: static; }
    .header-inner { min-height: auto; padding-block: 14px; display: block; }
    .global-nav { margin-top: 10px; justify-content: flex-start; gap: 4px 18px; }
    .global-nav a { font-size: .84rem; }
    .hero-inner { min-height: auto; padding-block: 46px 56px; grid-template-columns: 1fr; gap: 38px; }
    .hero-logo { order: -1; }
    .hero-logo img { width: min(78vw, 380px); border-width: 6px; }
    .project-grid { grid-template-columns: 1fr; }
    .section { padding-block: 64px; }
    .section-soft { padding-inline: 20px; }
    .news-item { grid-template-columns: 1fr; gap: 6px; }
    .about-box { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 480px) {
    .header-inner, .hero-inner, .section, .footer-inner { width: min(100% - 28px, 1120px); }
    .brand { display: block; }
    .brand-note { display: block; margin-top: -4px; }
    .hero h1 { font-size: 2.15rem; }
    .hero-text { font-size: 1rem; }
    .hero-actions { display: grid; }
    .button { width: 100%; }
    .section-soft { width: calc(100% - 28px); }
    .project-card { min-height: auto; padding: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
