/* 採用済みプレビューの本文UI。index.htmlだけで読み込む。 */
.tech-stack-banner, .timeline-banner {
    position: relative;
    height: 136px;
    margin: 0 0 28px;
    overflow: hidden;
    background: #f1f6f8;
}
.tech-stack-banner img, .timeline-banner img, .banner-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-play .banner-layer { animation: banner-build .6s cubic-bezier(.22, 1, .36, 1) var(--draw-delay, 0ms) backwards; }
.banner-play .banner-detail { animation: banner-detail-in .35s ease var(--draw-delay, 0ms) backwards; }
.banner-play .banner-axis { stroke-dasharray: 1; animation: banner-axis-in .65s ease backwards; }
.banner-play .tech-banner-caption, .banner-play .timeline-banner-caption { animation: banner-detail-in .35s ease .65s backwards; }
.banner-play .pastel-note-art svg { animation: banner-build .75s cubic-bezier(.22, 1, .36, 1) backwards; }
.banner-play .pastel-note:nth-child(2) .pastel-note-art svg { animation-delay: .12s; }
.banner-play .pastel-note:nth-child(3) .pastel-note-art svg { animation-delay: .24s; }
@keyframes banner-build {
    from { clip-path: inset(0 0 100% 0); opacity: 0; }
    to { clip-path: inset(0); opacity: 1; }
}
@keyframes banner-detail-in { from { opacity: 0; } }
@keyframes banner-axis-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

#latest-notes-grid.pastel-notes {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    gap: 24px;
}
#latest-notes-grid[data-note-count="3"] .pastel-note:first-child {
    grid-row: span 2;
}
#latest-notes-grid .pastel-note {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dce3e9;
    border-radius: 0;
    background: #fff;
    color: #273850;
    transition: border-color .2s;
}
#latest-notes-grid .pastel-note::before { content: none; }
#latest-notes-grid .pastel-note:hover {
    border-color: #658eaa;
    box-shadow: none;
    transform: none;
}
.pastel-note-art {
    position: relative;
    flex: 0 0 76px;
    height: 76px;
    overflow: hidden;
    background: #faf7ef;
}
.pastel-note-art svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.pastel-note:first-child .pastel-note-art { flex-basis: auto; height: auto; aspect-ratio: 8 / 3; }
.pastel-note-copy { padding: 20px 22px 24px; }
#latest-notes-grid .pastel-note h3 {
    margin: 8px 0 12px;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
#latest-notes-grid .pastel-note:first-child h3 { font-size: 1.5rem; }
#latest-notes-grid .pastel-note .note-date { color: #65768a; }
#latest-notes-grid .pastel-note:not(:first-child) .note-excerpt { display: none; }
#latest-notes-grid .pastel-note .hashtags { margin-top: 12px; }

@media (max-width: 768px) {
    .tech-stack-banner, .timeline-banner { height: 92px; margin-bottom: 24px; }
    #latest-notes-grid.pastel-notes { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    #latest-notes-grid[data-note-count="3"] .pastel-note:first-child { grid-row: auto; }
    #latest-notes-grid .pastel-note:first-child h3 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    #latest-notes-grid .pastel-note { transition: none; }
}

/* 見出し・余白・本文の軽さを、採用したプレビューに揃える。 */
.pastel-home { --container-padding: 4rem; color: #273850; background: #fafdfe; }
.pastel-home .content-wrapper { width: min(1072px, 90%); max-width: none; padding: 34px 0 130px; }
.home-section { padding: 54px 0 26px; scroll-margin-top: 110px; }
.home-section.section-reveal { transition: opacity .45s ease, transform .45s ease; }
.home-section.section-pending { opacity: 0; transform: translateY(8px); }
.home-section.section-pending:focus-within { opacity: 1; transform: none; }
.home-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 28px; }
.home-heading h2 { margin: 0; color: #273850; font-size: 38px; line-height: 1.15; letter-spacing: -.025em; font-weight: 500; }
.home-heading a, .home-text-link { flex-shrink: 0; color: #50677a; font-size: 12px; text-decoration: underline; text-underline-offset: 5px; }
.tech-banner-caption, .timeline-banner-caption { position: absolute; top: 18px; right: 28px; display: grid; gap: 5px; color: #273850; font: 10px/1.5 var(--font-mono); text-align: right; }
.tech-banner-caption span:first-child, .timeline-banner-caption span:first-child { letter-spacing: .16em; }
.tech-banner-caption span:last-child, .timeline-banner-caption span:last-child { font-size: 11px; letter-spacing: -.02em; }
.skills-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.skill-column { border-top: 1px solid #ced8df; padding-top: 18px; }
.skill-column h3 { margin: 0 0 14px; font-size: 19px; font-weight: 500; }
.skill-column ul { list-style: none; padding: 0; margin: 0; color: #5b6979; font-size: 14px; line-height: 2.2; }
.skill-column li { display: inline; }
.skill-column li:not(:last-child)::after { content: ' / '; color: #a1aeb7; margin: 0 3px; }
.pastel-home .filter-controls { gap: 14px; margin-bottom: 18px; }
.pastel-home .chips-group { gap: 6px; }
.pastel-home .filter-chip { position: relative; }
.pastel-home .filter-chip:has(input[value="school"]), .timeline-summary [data-category="school"] { --category-color: #72a088; }
.pastel-home .filter-chip:has(input[value="cert"]), .timeline-summary [data-category="cert"] { --category-color: #449fb0; }
.pastel-home .filter-chip:has(input[value="cert-other"]), .timeline-summary [data-category="cert-other"] { --category-color: #9096c4; }
.pastel-home .filter-chip:has(input[value="contest"]), .timeline-summary [data-category="contest"] { --category-color: #ca9078; }
.pastel-home .filter-chip span::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 6px; vertical-align: 1px; background: var(--category-color, #70adb6); }
.pastel-home .filter-chip input { display: block; position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.pastel-home .filter-chip span { padding: 4px 7px; border: 1px solid transparent; border-radius: 0; background: transparent; color: #66798a; font-size: 11px; box-shadow: none; transition: border-color .2s; }
.pastel-home .filter-chip input:checked + span { border-bottom-color: #70adb6; color: #273850; background: transparent; box-shadow: none; }
.pastel-home .filter-chip input:focus-visible + span { outline: 2px solid #236e87; outline-offset: 3px; }
.pastel-home .filter-count { color: #6c7c8d; font-size: 10px; }
html.timeline-resizing { overflow-anchor: none; }
.timeline-summary { list-style: none; margin: 0; padding: 0; border-top: 1px solid #dce3e9; }
.timeline-summary .timeline-item { max-height: none; padding: 0; margin: 0; opacity: 1; border-bottom: 1px solid #e6ebef; transition: none; }
.timeline-summary .timeline-item[hidden] { display: none; }
.timeline-entry { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 20px 0; color: #273850; font-size: 15px; }
.timeline-entry time { color: #6c7c8d; font: 11px/2 var(--font-mono); }
.timeline-entry span { position: relative; padding-left: 20px; overflow-wrap: anywhere; }
.timeline-entry span::before { content: ''; position: absolute; width: 5px; height: 5px; background: var(--category-color, #70adb6); left: 0; top: 9px; }
a.timeline-entry:hover span { text-decoration: underline; text-underline-offset: 5px; }
.timeline-expand { display: block; margin: 18px 0 0 auto; padding: 4px 0; border: 0; background: transparent; color: #50677a; font: 12px var(--font-main); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.timeline-expand[hidden] { display: none; }
#latest-notes-grid .pastel-note .note-date { font-size: 10px; }
#latest-notes-grid .pastel-note .tag-link { border: 0; padding: 0; background: transparent; color: #567684; font-size: 11px; transform: none; }
.home-profile { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 40px; align-items: center; border-top: 1px solid #dce3e9; padding-top: 30px; }
.home-profile h3 { font-size: 28px; font-weight: 500; margin: 0 0 8px; }
.home-profile .philosophy { font-size: 12px; color: #66798a; margin: 0 0 20px; letter-spacing: 0; }
.home-profile .bio p { font-size: 14px; line-height: 2; color: #536679; margin: 0 0 18px; }
.home-profile .profile-links { font-size: 12px; }
.profile-social { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #e6ebef; }
.profile-social .home-text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; text-decoration: none; }
.profile-social .home-text-link span { text-decoration: underline; text-underline-offset: 5px; }
.contact-icon { display: block; flex: 0 0 16px; width: 16px; height: 16px; }
.profile-composition { width: 100%; height: 180px; }
.pastel-home footer { margin-top: 0; padding: 28px 5vw 60px; border-top: 1px solid #dde5eb; background: transparent; }
.pastel-home footer p { color: #708092; font: 10px var(--font-mono); }
.pastel-home a:focus-visible, .pastel-home button:focus-visible { outline: 2px solid #236e87; outline-offset: 4px; }
@media (max-width: 768px) {
    .pastel-home .content-wrapper { width: 86%; padding-top: 5px; padding-bottom: 80px; }
    .home-section { padding-top: 40px; }
    .home-heading { gap: 12px; }
    .home-heading h2 { font-size: 30px; }
    .home-heading a { font-size: 10px; }
    .skills-columns { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .skill-column { padding-top: 14px; }
    .skill-column h3 { font-size: 17px; }
    .skill-column ul { font-size: 12px; }
    .tech-banner-caption, .timeline-banner-caption { top: 10px; right: 12px; gap: 3px; font-size: 8px; }
    .tech-banner-caption span:last-child, .timeline-banner-caption span:last-child { font-size: 9px; }
    .timeline-entry { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; font-size: 13px; padding: 16px 0; }
    .timeline-entry time { font-size: 9px; }
    .timeline-entry span { padding-left: 12px; }
    .timeline-entry span::before { width: 4px; height: 4px; top: 7px; }
    .home-profile { grid-template-columns: minmax(0, 1fr); }
    .profile-composition { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .home-section.section-reveal { transition: none; }
    .home-section.section-pending { opacity: 1; transform: none; }
    .banner-play .banner-layer, .banner-play .banner-detail, .banner-play .banner-axis,
    .banner-play .tech-banner-caption, .banner-play .timeline-banner-caption,
    .banner-play .pastel-note-art svg { animation: none; }
}
@media (pointer: coarse) {
    .profile-social .home-text-link { min-height: 44px; }
}

/* Banner section headings */

.heading-banner { isolation:isolate; }
.heading-banner, .heading-banner * { -webkit-user-select:none; user-select:none; }
.heading-banner .heading-rail { position:absolute; left:18px; top:16px; writing-mode:vertical-rl; text-orientation:mixed; color:#273850; font:11px/1.3 var(--font-mono); letter-spacing:1.5px; }
.heading-banner::after { content:''; position:absolute; left:46px; top:18px; bottom:18px; width:1px; background:rgba(39,56,80,.35); }
.heading-banner .banner-heading { position:absolute; left:70px; top:24px; margin:0; color:#fff; -webkit-text-stroke:1.4px #111; paint-order:stroke fill; font-family:var(--font-main); font-size:58px; font-weight:500; line-height:1.1; letter-spacing:2px; white-space:nowrap; }
.heading-banner .heading-caption { position:absolute; right:24px; bottom:13px; color:#273850; font:12px/1.3 var(--font-mono); letter-spacing:.2px; }
.heading-dots { position:absolute; top:14px; right:28px; width:32px; height:32px; }
.timeline-measure { position:absolute; left:70px; top:96px; width:calc(100% - 94px); height:12px; }
.timeline-tags { position:absolute; left:370px; right:24px; top:10px; display:flex; justify-content:space-between; }
.timeline-tags span { position:relative; display:block; width:14px; height:6px; background:#273850; }
.timeline-tags span::after { content:""; position:absolute; left:6.5px; top:6px; height:87px; border-left:1px dashed #273850; }
.timeline-banner .heading-caption { bottom:6px; }
.banner-actions { display:flex; justify-content:flex-end; margin:-10px 0 18px; }
.banner-actions a { color:#273850; font:12px/1.4 var(--font-mono); text-decoration:none; border-bottom:1px solid #708b9b; padding:5px 0; }
@media(max-width:768px) {
 .heading-banner.tech-stack-banner,.heading-banner.timeline-banner { height:124px; }
 .heading-dots { top:12px; right:14px; width:24px; height:24px; }
 .timeline-measure { left:45px; top:78px; width:calc(100% - 59px); }
 .timeline-tags { left:calc(65px + clamp(25px,5.8vw,42px) * 5); right:14px; top:10px; }
 .timeline-tags span::after { height:69px; }
 .heading-banner .heading-rail { left:11px; top:12px; font-size:10px; letter-spacing:1px; }
 .heading-banner::after { left:32px; top:13px; bottom:13px; }
 .heading-banner .banner-heading { left:45px; top:25px; font-size:clamp(25px,5.8vw,42px); letter-spacing:1px; -webkit-text-stroke:1.1px #111; }
 .heading-banner .heading-caption { right:14px; bottom:14px; font-size:11px; }
}

/* Compact return control and mobile banner spacing. */
.pastel-home .back-to-top { position:fixed; right:max(16px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom)); z-index:900; display:grid; place-items:center; width:44px; height:48px; color:#273850; background:rgba(250,253,254,.9); border:1px solid rgba(39,56,80,.16); text-decoration:none; }
.pastel-home .back-to-top svg { width:24px; height:36px; }
.pastel-home .back-to-top:hover { background:#fafdfe; border-color:#708b9b; }
@media(max-width:768px) { .tech-stack-banner .tech-banner-accent { transform:translateY(-32px); } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
