/* トップのレイアウトの正本。共通の色・影・角丸は styles.css の :root を参照。 */
.home-page {
  font-family: "Inter Home", "Noto Sans JP Home", system-ui, sans-serif;
  background: var(--bg);
  overflow-x: visible;
}

.home-page::before,
.home-page::after { display: none; }
.home-page .skip-link:not(:focus) { box-shadow: none; }
.home-page :where(h1, h2, h3) { text-wrap: balance; }
.home-page :where(a, summary) { -webkit-tap-highlight-color: transparent; }
.home-page :where(a, summary):focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 5px; }
.home-container { width: var(--content-width); margin-inline: auto; }
.home-header { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; border-bottom: 1px solid var(--line); }
.home-brand { text-decoration: none; color: var(--accent-strong); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.055em; }
.home-brand__dot { color: var(--accent); }
.home-nav { display: flex; align-items: center; gap: 22px; }
.home-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 0.87rem; text-decoration: none; }
.home-nav__social { border-left: 1px solid var(--line); padding-left: 24px; }
.home-main { display: grid; gap: 80px; padding-top: 40px; }
.home-main:focus { outline: none; }
.home-main section[id] { scroll-margin-top: 32px; }

/* 人物像、作品、二つの主導線を最初の画面にまとめる。 */
.home-hero { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 42px; align-items: center; }
.home-hero__copy { min-width: 0; }
.home-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.home-identity img { width: 56px; height: 56px; border-radius: 50%; }
.home-identity p { font-size: 1rem; font-weight: 600; line-height: 1.6; }
.home-identity span { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 400; }
.home-hero h1 { margin-bottom: 24px; color: var(--text); font-size: clamp(2.25rem, 3.7vw, 3.3rem); line-height: 1.32; letter-spacing: -0.055em; font-weight: 600; }
.home-hero h1 > span { display: block; }
.home-hero__lead { color: var(--muted); font-size: 0.94rem; line-height: 1.9; text-wrap: pretty; }
.home-socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.home-social { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 22px 24px 18px; border: 1px solid var(--accent); border-radius: var(--radius-lg); text-decoration: none; transition: box-shadow 180ms ease, transform 180ms ease; }
.home-social--x { background: var(--accent-strong); color: var(--surface-strong); }
.home-social--note { background: var(--bg-soft); color: var(--accent-strong); }
.home-social__name { font-size: 2rem; font-weight: 500; letter-spacing: -0.06em; line-height: 1; }
.home-social__description { font-size: 0.78rem; line-height: 1.6; }
.home-social__action { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 12px; border-top: 1px solid currentColor; font-size: 0.86rem; font-weight: 500; }
.home-hero__art { min-width: 0; margin: 0; }
.home-hero__art img { display: block; width: 100%; height: 510px; object-fit: cover; object-position: 70% center; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.home-hero__art figcaption { margin-top: 10px; padding-inline: 12px; color: var(--muted); font-size: 0.7rem; }

/* 作品は開いた一覧、道具は目的別の行として見せる。 */
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.home-page h2 { margin-bottom: 0; font-size: clamp(1.6rem, 2.55vw, 2.2rem); line-height: 1.5; font-weight: 500; letter-spacing: -0.035em; }
.home-section-heading > p { color: var(--muted); font-size: 0.87rem; }
.home-works { padding-top: 40px; border-top: 1px solid var(--line); }
.home-work-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-work-list > a { display: flex; flex-direction: column; min-width: 0; padding: 2px 30px; text-decoration: none; }
.home-work-list > a:first-child { padding-left: 0; }
.home-work-list > a:last-child { padding-right: 0; }
.home-work-list > a + a { border-left: 1px solid var(--line); }
.home-work-list h3 { margin-bottom: 12px; font-size: 1.4rem; font-weight: 500; color: var(--accent-strong); }
.home-work-list p { margin-bottom: 22px; font-size: 0.85rem; line-height: 1.9; color: var(--muted); }
.home-text-link { display: inline-flex; align-items: center; align-self: flex-start; gap: 18px; min-height: 44px; padding-block: 8px; margin-top: auto; border-bottom: 1px solid currentColor; color: var(--accent-strong); font-size: 0.9rem; text-decoration: none; }
.home-tools__panel { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: 40px; padding: 40px; border-radius: var(--radius-xl); background: var(--surface-strong); }
.home-tools__intro { padding-right: 32px; border-right: 1px solid var(--line); }
.home-tools__intro p { margin-block: 22px; font-size: 0.88rem; line-height: 1.9; color: var(--muted); }
.home-tool-list { display: grid; }
.home-tool-list > a { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 22px; padding-block: 24px; text-decoration: none; }
.home-tool-list > a:first-child { padding-top: 8px; }
.home-tool-list > a:last-child { padding-bottom: 8px; }
.home-tool-list > a + a { border-top: 1px solid var(--line); }
.home-tool-list svg { width: 34px; height: 34px; fill: none; stroke: var(--accent-strong); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-tool-list h3 { font-size: 1.05rem; margin-bottom: 7px; line-height: 1.5; font-weight: 600; color: var(--accent-strong); }
.home-tool-list p { font-size: 0.83rem; line-height: 1.7; color: var(--muted); }
.home-tool-arrow { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent-strong); transition: background 150ms ease, color 150ms ease; }

/* 全リンクは削らず、用途ごとに開く。JSに依存しない。 */
.home-directory { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: 60px; }
.home-directory__intro p { margin-top: 20px; font-size: 0.88rem; line-height: 1.9; color: var(--muted); }
.home-disclosure { border-top: 1px solid var(--line); }
.home-disclosure:last-child { border-bottom: 1px solid var(--line); }
.home-disclosure--tools { margin-top: 26px; }
.home-disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 20px 8px; list-style: none; cursor: pointer; font-size: 0.97rem; }
.home-disclosure summary::-webkit-details-marker { display: none; }
.home-disclosure__icon { flex: 0 0 18px; position: relative; width: 18px; height: 18px; color: var(--accent-strong); }
.home-disclosure__icon::before,
.home-disclosure__icon::after { content: ""; position: absolute; inset: 8px 1px; background: currentColor; height: 1px; }
.home-disclosure__icon::after { transform: rotate(90deg); }
.home-disclosure[open] .home-disclosure__icon::after { transform: none; }
.home-directory-links { display: grid; padding: 0 8px 20px; }
.home-directory-links--tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.home-directory-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 14px 0; text-decoration: none; }
.home-directory-link strong { display: block; font-weight: 500; font-size: 0.88rem; overflow-wrap: anywhere; }
.home-directory-link div > span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.78rem; line-height: 1.7; }
.home-arrow { flex-shrink: 0; color: var(--accent-strong); }

.home-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr); align-items: center; gap: 50px; padding: 48px 56px; border-radius: var(--radius-xl); color: var(--surface-strong); background: var(--accent-strong); }
.home-contact > div > p { margin-top: 16px; font-size: 0.92rem; line-height: 1.8; }
.home-contact__links { display: grid; }
.home-contact__links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; border-bottom: 1px solid currentColor; text-decoration: none; font-size: 1rem; }
.home-contact .home-contact__links p { font-size: 0.75rem; margin-top: 12px; overflow-wrap: anywhere; }
.home-contact a:focus-visible { outline-color: var(--surface-strong); }
.home-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px 36px; margin-top: 36px; border-top: 1px solid var(--line); }
.home-footer .home-brand { font-size: 1rem; }
.home-footer p { font-size: 0.72rem; color: var(--muted); margin-top: 6px; }
.home-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.home-footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 0.8rem; }

@media (hover: hover) {
  .home-social:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
  .home-nav a:hover,
  .home-directory-link:hover strong,
  .home-footer nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
  .home-work-list > a:hover .home-text-link { color: var(--text); }
  .home-tool-list a:hover .home-tool-arrow { background: var(--accent-strong); color: var(--surface-strong); }
  .home-disclosure summary:hover { color: var(--accent-strong); }
}

@media (max-width: 1000px) {
  .home-hero { gap: 28px; grid-template-columns: minmax(0, 1fr); }
  .home-hero__copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .home-identity,
  .home-hero h1,
  .home-hero__lead { grid-column: 1; }
  .home-socials { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin-top: 0; }
  .home-hero h1 { font-size: clamp(2rem, 4.05vw, 2.5rem); }
  .home-social { padding-inline: 16px; }
  .home-hero__art img { height: auto; aspect-ratio: 2.4; }
  .home-tools__panel { padding: 30px; gap: 28px; }
  .home-tools__intro { padding-right: 24px; }
  .home-tool-list > a { gap: 14px; }
  .home-directory { gap: 36px; }
  .home-work-list > a { padding-inline: 22px; }
}

@media (max-width: 760px) {
  .home-header { flex-wrap: wrap; min-height: 0; gap: 6px; padding-block: 16px 8px; }
  .home-brand { font-size: 1.25rem; }
  .home-nav { width: 100%; justify-content: space-between; gap: 8px; }
  .home-nav a { font-size: 0.8rem; }
  .home-nav__social { padding-left: 16px; }
  .home-main { gap: 48px; padding-top: 26px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-hero__copy { display: block; }
  .home-identity { margin-bottom: 18px; gap: 10px; }
  .home-identity img { width: 40px; height: 40px; }
  .home-identity p { font-size: 0.87rem; }
  .home-identity span { font-size: 0.7rem; }
  .home-hero h1 { font-size: clamp(2rem, 8.9vw, 3.4rem); letter-spacing: -0.045em; margin-bottom: 18px; }
  .home-hero__lead { font-size: 0.85rem; line-height: 1.85; }
  .home-socials { margin-top: 24px; gap: 12px; }
  .home-social { padding: 18px 16px 14px; }
  .home-social__name { font-size: 1.8rem; }
  .home-social__description { font-size: 0.73rem; }
  .home-social__action { font-size: 0.8rem; padding-top: 10px; }
  .home-hero__art img { height: auto; aspect-ratio: 1.8; object-position: 68% center; border-radius: var(--radius-lg); }
  .home-hero__art figcaption { font-size: 0.66rem; margin-top: 8px; }
  .home-section-heading { display: block; margin-bottom: 26px; }
  .home-section-heading > p { margin-top: 8px; font-size: 0.8rem; }
  .home-works { padding-top: 30px; }
  .home-work-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-work-list > a,
  .home-work-list > a:first-child,
  .home-work-list > a:last-child { padding: 22px 0; }
  .home-work-list > a + a { border-left: 0; border-top: 1px solid var(--line); }
  .home-work-list > a:first-child { padding-top: 0; }
  .home-work-list > a:last-child { padding-bottom: 0; }
  .home-work-list h3 { font-size: 1.2rem; margin-bottom: 8px; }
  .home-work-list p { margin-bottom: 8px; }
  .home-tools__panel { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 26px 22px; border-radius: var(--radius-lg); }
  .home-tools__intro { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .home-tools__intro p { margin-block: 16px; }
  .home-tool-list > a { grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 12px; padding-block: 20px; }
  .home-tool-list svg { width: 26px; height: 26px; }
  .home-tool-list h3 { font-size: 0.95rem; }
  .home-tool-list p { font-size: 0.78rem; }
  .home-tool-arrow { width: 28px; height: 28px; }
  .home-directory { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .home-directory__intro p { margin-top: 14px; }
  .home-directory-links--tools { grid-template-columns: minmax(0, 1fr); }
  .home-disclosure summary { min-height: 68px; padding-inline: 0; font-size: 0.9rem; }
  .home-directory-links { padding-inline: 0; }
  .home-contact { grid-template-columns: minmax(0, 1fr); padding: 30px 24px; gap: 24px; border-radius: var(--radius-lg); }
  .home-contact h2 { font-size: 1.5rem; }
  .home-contact > div > p { font-size: 0.83rem; margin-top: 12px; }
  .home-contact__links a { font-size: 0.9rem; }
  .home-footer { align-items: flex-start; flex-direction: column; gap: 16px; margin-top: 28px; }
  .home-footer nav { width: 100%; justify-content: space-between; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-social,
  .home-tool-arrow { transition: none; }
  .home-social:hover { transform: none; }
}
