/* Modern renewal layer — loaded after the original stylesheet. */
:root {
  --ink: #10131a;
  --muted: #667085;
  --paper: #f4f3ee;
  --card: #ffffff;
  --greige: #e9e7df;
  /* アクセントは無彩色。細い罫線と小さなラベルにのみ使う */
  --accent: #10131a;
  --accent-light: #cfccc2;
  --line: rgba(16, 19, 26, .13);
  --shadow: 0 24px 70px rgba(16, 19, 26, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
::selection { color: var(--ink); background: #dcd9cf; }

.skip-link {
  position: fixed; z-index: 999; top: 12px; left: 12px; padding: 10px 16px;
  color: #fff; background: var(--ink); border-radius: 999px; transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.cursor-glow {
  position: fixed; z-index: -1; width: 420px; height: 420px; border-radius: 50%;
  left: var(--mouse-x, 75%); top: var(--mouse-y, 15%); pointer-events: none;
  background: radial-gradient(circle, rgba(16,19,26,.055), transparent 66%);
  transform: translate(-50%, -50%); transition: left .18s ease-out, top .18s ease-out;
}

.wrapper { display: block; }
.header {
  position: fixed; z-index: 50; top: 18px; left: 50%; width: min(1160px, calc(100% - 36px));
  height: auto; transform: translateX(-50%); background: rgba(244,243,238,.78);
  border: 1px solid rgba(16,19,26,.12); border-radius: 18px; backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(16,19,26,.06);
  padding: 0;
}
.header__container { position: static; width: 100%; max-width: none; height: auto; min-height: 64px; margin: 0; padding: 0 12px 0 22px; display: flex; align-items: center; justify-content: space-between; }
.header__logo {
  display: block; color: var(--ink); font: 700 17px/1.05 "Syne", sans-serif;
  letter-spacing: -.04em; text-decoration: none;
}
.header__logo br { display: none; }
.header__contents { width: auto; height: auto; padding: 0; display: flex !important; align-items: center; }
.header__contents > .header__logo { display: none; }
.header__nav-list { display: flex; align-items: center; gap: 2px; }
.header__nav-item,
.header__nav-item + .header__nav-item { margin-top: 0; }
.header__nav-link {
  position: relative; display: flex; padding: 11px 15px; border-radius: 12px;
  color: var(--ink); font: 600 12px/1 "Syne", sans-serif; letter-spacing: .04em;
  text-decoration: none; transition: background .25s, transform .25s;
}
.header__nav-link .button__text { margin-left: 0; font-size: inherit; line-height: 1; color: inherit; }
.header__nav-link:hover { background: #fff; transform: translateY(-2px); }
.button__icon { display: none; }
.header__menu-button { display: none; }

.main { margin: 0; }
.fv {
  position: relative; min-height: 100svh; padding: 148px max(7vw, 28px) 72px;
  display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: #fff;
}
.fv::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,12,18,.92) 0%, rgba(10,12,18,.68) 45%, rgba(10,12,18,.18) 100%),
              linear-gradient(0deg, rgba(10,12,18,.6), transparent 42%);
}
.fv::after {
  content: ""; position: absolute; z-index: 1; width: 38vw; aspect-ratio: 1; right: -9vw; top: 12%;
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 5vw rgba(255,255,255,.028), 0 0 0 10vw rgba(255,255,255,.018);
}
.fv__img { position: absolute; inset: 0; }
.fv__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.08); }
.fv__contents { position: relative; z-index: 3; width: min(940px, 100%); max-width: none; height: auto; margin: 0; padding: 0; background: none; }
.fv__eyebrow { margin: 0 0 24px; display: flex; align-items: center; gap: 12px; font: 600 11px/1 "Syne", sans-serif; letter-spacing: .2em; }
.fv__eyebrow span { width: 38px; height: 2px; background: var(--accent-light); }
.fv__heading { width: 100%; margin: 0; padding: 0; }
.fv__heading-main {
  display: block; color: #fff; font: 700 clamp(42px, 6vw, 86px)/.94 "Syne", sans-serif;
  letter-spacing: -.04em; text-shadow: none;
}
.fv__heading-main em { color: var(--accent-light); font-style: normal; }
.fv__heading-sub { display: block; margin-top: 28px; color: rgba(255,255,255,.82); font-size: clamp(13px, 1.15vw, 17px); font-weight: 500; line-height: 1.9; }
.fv__actions { display: flex; gap: 12px; margin-top: 32px; }
.fv__primary, .fv__secondary {
  display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 13px; text-decoration: none; transition: transform .25s, background .25s;
}
.fv__primary { gap: 30px; color: var(--ink); background: #fff; }
.fv__secondary { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.fv__primary:hover, .fv__secondary:hover { transform: translateY(-4px); }
.fv__secondary:hover { background: rgba(255,255,255,.1); }
.fv__status { position: absolute; z-index: 3; right: 4vw; bottom: 42px; font: 600 10px/1 "Syne", sans-serif; letter-spacing: .15em; }
.fv__status b { margin-left: 18px; color: rgba(255,255,255,.45); }
.fv__status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 0 5px rgba(255,255,255,.1); }
.scroll_down { display: none; }

.section { position: relative; padding: clamp(90px, 11vw, 160px) 0; scroll-margin-top: 96px; }
.section__inner { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.section__head { margin: 0 0 24px; }
.section__head-main { display: block; color: var(--ink); font: 700 clamp(36px, 4.6vw, 60px)/1.02 "Syne", sans-serif; letter-spacing: -.04em; }
.section__head-sub { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.section__head-sub::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.section__lead-text { max-width: 670px; margin: 6px 0; color: var(--muted); }
.section__contents { margin-top: 54px; }

.about { background: var(--paper); }
.about__container { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(48px, 8vw, 110px); align-items: center; }
.about__img { position: relative; }
.about__img::before { content: "01 / PROFILE"; position: absolute; z-index: 2; top: 20px; left: -18px; padding: 9px 14px; color: #fff; background: var(--ink); font: 700 10px/1 "Syne", sans-serif; letter-spacing: .12em; }
.about__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 180px 180px 24px 24px; filter: saturate(.85); box-shadow: var(--shadow); }
.about__text { max-width: 680px; color: #4a4f59; font-size: 14px; line-height: 2.05; }

.skill { color: #fff; background: var(--ink); overflow: hidden; }
.skill::after { content: "SKILLS"; position: absolute; right: -1vw; top: 0; color: rgba(255,255,255,.025); font: 800 14vw/1 "Syne", sans-serif; }
.skill .section__head-main { color: #fff; }
.skill .section__head-sub, .skill .section__lead-text { color: rgba(255,255,255,.58); }
.skill__list { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.skill__item { min-width: 0; padding: 22px 8px 17px; text-align: center; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.045); transition: transform .3s, border-color .3s, background .3s; }
.skill__item:hover { transform: translateY(-7px); border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.075); }
.skill__item-img { height: 42px; }
.skill__item-img img { width: 38px; height: 38px; object-fit: contain; filter: saturate(.8); }
.skill__item-name { margin-top: 12px; color: #fff; font: 600 10px/1.3 "Syne", sans-serif; }

.page-bottom { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; background: var(--paper); }
.page-bottom__item { min-height: 150px; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-bottom__button { transition: transform .3s; }
.page-bottom__button:hover { transform: scale(1.06); }
.page-bottom__button img { width: auto; height: auto; object-fit: contain; }
.page-bottom__button .cyber-uni-icon,
.page-bottom__button .deitora-icon { width: min(440px, 78%); max-width: 440px; }

.mc { background: #e9e7df; }
.mc__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mc__item { position: relative; padding: 30px 24px; display: flex; flex-direction: column; align-items: flex-start; background: var(--card); border: 1px solid transparent; border-radius: 22px; box-shadow: none; transition: transform .3s, box-shadow .3s; }
.mc__item:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.mc__item-img { align-self: center; height: 138px; margin-bottom: 20px; }
.mc__item-img img { height: 100%; object-fit: contain; }
.mc__item-name { min-height: 50px; font-size: 14px; line-height: 1.6; }
.mc__item-link, .apps__item-link, .works__item-link { margin-top: auto; padding: 9px 0 2px; color: var(--ink); border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; font-size: 12px; font-weight: 700; text-decoration: none; }
.mc__item-link::after, .apps__item-link::after, .works__item-link::after { content: " ↗"; color: var(--muted); }

.apps { background: var(--paper); }
.apps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.apps__item { position: relative; padding: 34px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 1px solid var(--line); border-radius: 28px; background: transparent; box-shadow: none; overflow: hidden; transition: color .3s, background .3s, transform .3s; }
.apps__item::after { content: ""; position: absolute; z-index: 0; width: 180px; height: 180px; right: -80px; top: -80px; border-radius: 50%; background: rgba(16,19,26,.05); transition: transform .45s; }
.apps__item:hover { color: #fff; background: var(--ink); transform: translateY(-8px); }
.apps__item:hover::after { transform: scale(1.25); }
.apps__item > * { position: relative; z-index: 1; }
.apps__item-icon img { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 12px 30px rgba(16,19,26,.18); }
.apps__item-name { margin: 25px 0 5px; font-size: 18px; line-height: 1.45; }
.apps__item-platform { color: var(--muted); font: 700 10px/1.5 "Syne", sans-serif; letter-spacing: .12em; }
.apps__item:hover .apps__item-platform { color: rgba(255,255,255,.72); }
.apps__item-text { margin: 18px 0 28px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.apps__item:hover .apps__item-text, .apps__item:hover .apps__item-link { color: rgba(255,255,255,.72); }
.apps__item:hover .apps__item-link { border-color: rgba(255,255,255,.72); }

.works { background: #fff; }
.works__list { display: grid; grid-template-columns: repeat(12, 1fr); gap: 70px 24px; }
.works__item { grid-column: span 6; align-items: flex-start; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.works__item:nth-child(3) { grid-column: 4 / span 6; }
.works__item-img { width: 100%; margin-bottom: 24px; overflow: hidden; border-radius: 22px; background: var(--paper); }
.works__item-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; box-shadow: none; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.works__item:hover .works__item-img img { transform: scale(1.045); }
.works__item-name, .works__item-text { padding: 0; }
.works__item-name { font: 700 21px/1.4 "Syne", "Noto Sans JP", sans-serif; }
.works__item-text { color: var(--muted); font-size: 13px; }

.message { color: #fff; background: linear-gradient(135deg, #10131a 0%, #18202d 58%, #111722 100%); overflow: hidden; }
.message::before { content: "KEEP MOVING"; position: absolute; left: 0; bottom: 0; color: rgba(255,255,255,.08); font: 800 9vw/.75 "Syne", sans-serif; white-space: nowrap; }
.message__container { position: relative; z-index: 1; display: grid; grid-template-columns: .3fr 1fr; gap: 80px; align-items: center; }
.message__img {
  width: 180px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: #000;
  box-shadow: 0 22px 55px rgba(16,19,26,.22);
  overflow: hidden;
}
.message__img img { width: 158%; max-width: none; filter: none; transform: translateY(-7%); }
.message .section__head-main { color: #fff; }
.message .section__head-sub, .message__text { color: rgba(255,255,255,.78); }
.message .section__head-sub::before { background: var(--accent-light); }
.message__text { max-width: 720px; line-height: 2; }

.contact { background: var(--greige); }
.contact .section__head-main { white-space: nowrap; font-size: clamp(36px, 4.2vw, 56px); }
.contact .section__inner { width: min(1400px, calc(100% - 48px)); display: grid; grid-template-columns: .72fr 1.38fr; gap: clamp(52px, 8vw, 110px); align-items: start; }
.contact .section__inner > * { min-width: 0; }
.contact__lead { max-width: 480px; margin: 30px 0 42px; color: rgba(16,19,26,.7); font-size: 14px; line-height: 2; }
.contact__x-card { width: 100%; max-width: 100%; min-width: 0; min-height: 280px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: clamp(30px, 5vw, 62px); color: #fff; background: var(--ink); border-radius: 30px; box-shadow: 0 28px 75px rgba(16,19,26,.14); text-decoration: none; overflow: hidden; transition: transform .3s, background .3s; }
.contact__x-card:hover { background: #262b34; transform: translateY(-8px); }
.contact__x-mark { display: grid; place-items: center; width: 78px; height: 78px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font: 600 34px/1 "Syne", sans-serif; }
.contact__x-content { min-width: 0; display: flex; align-items: flex-start; flex-direction: column; gap: 6px; }
.contact__x-label { color: rgba(255,255,255,.6); font: 700 9px/1 "Syne", sans-serif; letter-spacing: .18em; }
.contact__x-content strong { max-width: 100%; white-space: nowrap; font: 700 clamp(22px, 2vw, 30px)/1.2 "Syne", sans-serif; letter-spacing: -.04em; }
.contact__x-content > span:last-child { color: rgba(255,255,255,.62); font-size: 11px; }
.contact__x-arrow { align-self: start; font-size: 24px; }

.footer { padding: 62px max(4vw, 24px) 28px; display: flex; align-items: flex-end; justify-content: space-between; background: var(--ink); }
.footer__brand { color: #fff; font: 700 clamp(32px, 4vw, 58px)/.92 "Syne", sans-serif; letter-spacing: -.04em; }
.footer__brand span { color: rgba(255,255,255,.45); font-size: .15em; vertical-align: top; }
.footer__copy { color: rgba(255,255,255,.52); font-size: 10px; line-height: 1.7; text-align: right; }

.js-reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.js-reveal.is-visible { opacity: 1; transform: none; }
.fv__eyebrow, .fv__heading-main, .fv__heading-sub, .fv__actions { opacity: 0; animation: hero-in .9s both; }
.fv__heading-main { animation-delay: .12s; }
.fv__heading-sub { animation-delay: .25s; }
.fv__actions { animation-delay: .38s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .skill__list { grid-template-columns: repeat(4, 1fr); }
  .apps__list, .mc__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .header { top: 10px; width: calc(100% - 20px); }
  .header__container { min-height: 58px; padding: 0 10px 0 17px; }
  .header__logo br { display: initial; }
  .header__menu-button { position: relative; top: auto; right: auto; flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; overflow: hidden; color: transparent; border: 0; border-radius: 50%; background: var(--ink); }
  .header__menu-button::before, .header__menu-button::after { content: ""; position: absolute; width: 17px; height: 1px; background: #fff; transition: transform .3s; }
  .header__menu-button::before { transform: translateY(-3px); }
  .header__menu-button::after { transform: translateY(3px); }
  .header__menu-button.is-checked::before { transform: rotate(45deg); }
  .header__menu-button.is-checked::after { transform: rotate(-45deg); }
  .header__contents { display: none !important; position: absolute; top: 68px; left: 0; width: 100%; padding: 12px; border-radius: 18px; background: var(--ink); box-shadow: var(--shadow); }
  .header__contents[style*="display: block"] { display: block !important; }
  .header__nav-list { display: block; }
  .header__nav-link { padding: 16px; color: #fff; font-size: 15px; }
  .header__nav-link:hover { background: rgba(255,255,255,.08); }
  .fv { min-height: 820px; padding: 130px 24px 68px; align-items: center; }
  .fv::before { background: linear-gradient(0deg, rgba(10,12,18,.94), rgba(10,12,18,.3) 85%); }
  .fv::after { width: 75vw; right: -38vw; top: 12%; }
  .fv__img img { object-position: 62% center; }
  .fv__heading-main { font-size: clamp(36px, 10.5vw, 52px); }
  .fv__heading-sub { margin-top: 24px; }
  .fv__actions { align-items: stretch; flex-direction: column; width: min(320px, 100%); }
  .fv__status { left: 24px; right: auto; bottom: 28px; }
  .section { padding: 90px 0; }
  .section__inner { width: calc(100% - 40px); }
  .section__head-main { font-size: clamp(31px, 10vw, 44px); }
  .about__container, .message__container { grid-template-columns: 1fr; gap: 45px; }
  .contact .section__inner { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 52px; }
  .contact .section__head-main { font-size: clamp(30px, 8.6vw, 42px); }
  .contact__lead { margin-bottom: 30px; }
  .contact__x-card { min-height: 250px; grid-template-columns: 1fr auto; gap: 26px; padding: 30px 24px; }
  .contact__x-mark { grid-column: 1 / -1; width: 64px; height: 64px; font-size: 28px; }
  .contact__x-content strong { font-size: clamp(21px, 6.7vw, 28px); }
  .about__img { width: 82%; margin: 0 auto; }
  .about__img img { border-radius: 120px 120px 20px 20px; }
  .skill__list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .page-bottom { grid-template-columns: 1fr; }
  .page-bottom__item { min-height: 120px; }
  .page-bottom__button .cyber-uni-icon,
  .page-bottom__button .deitora-icon { width: min(320px, 82vw); }
  .apps__list, .mc__list { grid-template-columns: 1fr; }
  .mc__item { align-items: center; text-align: center; }
  .mc__item-name { width: 100%; text-align: center; }
  .works__list { display: block; }
  .works__item { margin-bottom: 64px; }
  .message__img { width: 132px; padding: 12px; }
  .footer { display: block; padding-top: 70px; }
  .footer__brand { margin-bottom: 36px; font-size: 10.5vw; }
  .footer__copy { display: block; text-align: left; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-reveal { opacity: 1; transform: none; }
}
