@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #202b35;
  --muted: #66727c;
  --line: #d9dfe2;
  --paper: #fff;
  --soft: #f4f6f6;
  --blue: #4d7089;
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
p, dd, li { line-break: strict; overflow-wrap: anywhere; }
.portfolio { overflow: clip; }
.micro-label { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .15em; line-height: 1.6; text-transform: uppercase; }

.site-header {
  min-height: 66px;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.site-header a { text-decoration: none; }
.site-brand { font-size: 14px; font-weight: 700; white-space: nowrap; letter-spacing: .02em; }
.site-brand span { color: var(--muted); font-size: 11px; font-weight: 500; }
.site-header nav { display: flex; gap: clamp(16px, 2vw, 34px); }
.site-header nav a { color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; transition: color .2s; }
.site-header nav a:hover, .site-header nav a.is-active { color: var(--blue); }

.hero, .section-wrap, .case-study, .skills-section { width: min(100% - 56px, 1180px); margin-inline: auto; }
.hero { padding-top: clamp(50px, 6vw, 92px); }
.hero-heading { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .8fr); align-items: center; gap: clamp(30px, 6vw, 100px); }
.hero-text .micro-label { margin-bottom: 20px; }
.hero h1 { font-size: clamp(47px, 6.1vw, 88px); font-weight: 500; letter-spacing: -.065em; line-height: .99; }
.hero h1 span { white-space: normal; }
.hero-title-ja { margin-top: 17px; color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.hero-name { margin-top: 35px; display: flex; align-items: baseline; gap: 16px; }
.hero-name strong { font-size: 23px; font-weight: 600; letter-spacing: -.025em; }
.hero-name span { font-size: 14px; font-weight: 500; }
.hero-catch { margin-top: 16px; font-size: clamp(17px, 1.65vw, 21px); font-weight: 600; line-height: 1.75; letter-spacing: .02em; }
.hero-categories { margin-top: 24px; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.hero-categories span { margin: 0 6px; color: #a6b2b8; }
.hero-photo { width: min(100%, 346px); aspect-ratio: 1; justify-self: end; overflow: hidden; border-radius: 50%; background: var(--soft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-intro { margin-top: 64px; padding-top: 25px; display: grid; grid-template-columns: 25% 1fr; gap: 30px; border-top: 1px solid var(--line); }
.hero-intro > div { max-width: 830px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.hero-intro p:not(.micro-label) { font-size: 13px; line-height: 1.95; }
.hero-intro p:last-child { grid-column: 1 / -1; }
.stats { margin-top: 43px; display: grid; grid-template-columns: 1fr 1fr 1.45fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 18px 20px 18px 0; }
.stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: 11px; }
.stats dd { margin-top: 7px; font-size: clamp(14px, 1.35vw, 17px); font-weight: 600; line-height: 1.45; }
.index-list { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.index-list a { padding: 13px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 12px; font-weight: 600; transition: color .2s; }
.index-list a span { color: var(--blue); }
.index-list a:hover { color: var(--blue); }

.banner-works { padding-top: clamp(100px, 11vw, 158px); padding-bottom: clamp(100px, 11vw, 150px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; }
.section-heading h2 { margin-top: 10px; font-size: clamp(38px, 4.4vw, 62px); font-weight: 500; letter-spacing: -.055em; line-height: 1.12; }
.section-heading > p { max-width: 300px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.banner-production-note { margin-top: 34px; padding: 18px 0 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; }
.banner-production-note p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.banner-production-note p:last-child { font-size: 11px; }
.works-stack { margin-top: 54px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 46px; }
.works-stack + .works-stack { margin-top: 70px; }
.work-item { min-width: 0; border-top: 1px solid var(--ink); padding-top: 14px; }
.work-image { min-height: 330px; padding: 20px; display: grid; place-items: center; background: var(--soft); }
.work-image img { width: auto; max-width: 100%; max-height: 370px; object-fit: contain; }
.work-image.is-wide img { width: 100%; max-height: none; }
.work-title-row { margin-top: 22px; display: flex; align-items: baseline; gap: 15px; }
.work-title-row span { flex: none; color: var(--blue); font-size: 12px; font-weight: 700; }
.work-title-row h3 { font-size: clamp(19px, 2vw, 25px); font-weight: 600; line-height: 1.45; letter-spacing: -.025em; }
.work-spec { margin-top: 20px; }
.work-spec div { padding: 7px 0; display: grid; grid-template-columns: 85px 1fr; gap: 14px; border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1.7; }
.work-spec dt { color: var(--muted); }
.work-spec dd { font-weight: 500; }
.intent { margin-top: 15px; display: grid; grid-template-columns: 85px 1fr; gap: 14px; font-size: 11px; line-height: 1.85; }
.intent p { color: var(--muted); }
.intent span { display: block; }
.works-last { grid-template-columns: 1fr; }
.works-last .work-item:first-child { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 38px; align-items: start; }
.works-last .work-item:first-child .work-image { grid-row: 1 / 3; }
.works-last .work-item:first-child .work-title-row { margin-top: 4px; }
.work-item-featured .work-copy { max-width: 820px; }
.size-gallery { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: 24px; align-items: stretch; }
.size-image { padding: 16px; display: flex; flex-direction: column; background: var(--soft); }
.size-image figcaption { margin-bottom: 15px; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; letter-spacing: .11em; }
.size-image figcaption strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.size-image img { width: 100%; height: auto; margin: auto; object-fit: contain; }
.size-variation img { max-width: 390px; }

.case-study { padding-top: clamp(95px, 9vw, 140px); padding-bottom: clamp(105px, 10vw, 155px); border-top: 1px solid var(--line); }
.case-header { align-items: center; }
.case-subtitle { margin-top: 13px; color: var(--muted); font-size: 14px; }
.case-link { min-width: 145px; padding: 13px 18px; display: inline-flex; justify-content: space-between; align-items: center; gap: 30px; border: 1px solid var(--ink); text-decoration: none; font-size: 12px; font-weight: 600; transition: background .2s, color .2s; }
.case-link:hover { background: var(--ink); color: #fff; }
.case-link span { font-size: 17px; line-height: 1; }
.case-layout { margin-top: 42px; }
.case-copy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px 50px; }
.case-facts { grid-row: 1 / 4; }
.case-facts div { padding: 10px 0; display: grid; grid-template-columns: 85px 1fr; gap: 15px; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.75; }
.case-facts div:first-child { border-top: 1px solid var(--line); }
.case-facts dt { color: var(--muted); }
.case-facts dd { font-weight: 500; }
.case-tools, .case-intent, .case-disclaimer { font-size: 12px; line-height: 1.8; }
.case-tools .micro-label, .case-intent .micro-label { margin-bottom: 8px; }
.case-tools p:last-child, .case-intent p:not(.micro-label), .case-disclaimer { color: #4c5862; }
.case-intent p + p { margin-top: 8px; }
.case-flow { font-weight: 600; }
.case-disclaimer { padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; }
.case-disclaimer p + p { margin-top: 7px; }
.case-disclaimer strong { margin-right: 8px; color: var(--ink); }
.case-visuals { margin-top: 64px; }
.pc-mock { width: min(100%, 1060px); margin: 0 auto; }
.pc-mock img { width: 100%; height: auto; }
.pc-mock figcaption { margin-top: 14px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.case-visual-bottom { margin-top: 70px; display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 62px 70px; align-items: start; }
.fullpage-block { grid-column: 1 / -1; }
.visual-label { margin-bottom: 13px; display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.fullpage-preview { width: 100%; height: clamp(500px, 55vw, 680px); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); background: var(--soft); scrollbar-width: thin; scrollbar-color: #b9c3c9 transparent; }
.fullpage-preview img { width: 100%; height: auto; max-width: none; }
.fullpage-preview::-webkit-scrollbar { width: 8px; }
.fullpage-preview::-webkit-scrollbar-thumb { background: #bbc5ca; border: 2px solid var(--soft); border-radius: 99px; }
.phone-column .micro-label, .design-docs .micro-label { margin-bottom: 18px; }
.screen-phone { width: 276px; max-width: 100%; margin-inline: auto; }
.device-shell { width: 276px; height: 579px; max-width: 100%; padding: 11px; position: relative; overflow: hidden; border: 5px solid #1f252c; border-radius: 40px; background: #1f252c; box-shadow: 0 12px 32px rgba(21,32,40,.12); }
.device-speaker { position: absolute; top: 12px; left: 50%; z-index: 2; width: 63px; height: 13px; transform: translateX(-50%); border-radius: 0 0 9px 9px; background: #1f252c; }
.device-screen { height: 100%; overflow: hidden; border-radius: 27px; background: #fff; }
.device-browserbar { height: 26px; padding-top: 5px; overflow: hidden; color: #7a8790; background: #f7f8f9; text-align: center; white-space: nowrap; font-size: 9px; }
.device-browserbar span { margin-right: 5px; color: #98a4ac; font-size: 6px; }
.device-live { width: 100%; height: calc(100% - 26px); overflow: hidden; background-size: cover; background-position: top center; }
.device-live iframe { display: block; width: 390px; height: 850px; border: 0; transform: scale(.625); transform-origin: top left; }
.device-hint { margin-top: 14px; color: var(--muted); text-align: center; font-size: 10px; letter-spacing: .04em; }
.design-docs > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.design-docs a { min-width: 0; padding: 8px; border: 1px solid var(--line); background: var(--soft); }
.design-docs img { width: 100%; height: auto; }

.skills-section { padding-top: clamp(95px, 9vw, 140px); border-top: 1px solid var(--line); }
.skills-intro { margin-top: 22px; max-width: 570px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.skill-groups { margin-top: 46px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.skill-group { padding-top: 16px; border-top: 1px solid var(--ink); }
.skill-group h3 { min-height: 37px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.skill-group p { margin-top: 12px; color: #4d5963; font-size: 12px; line-height: 2; }
.strengths-layout { margin-top: 100px; padding-top: 24px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; border-top: 1px solid var(--line); }
.strengths-title h3 { margin-top: 18px; font-size: clamp(27px, 3vw, 42px); font-weight: 500; line-height: 1.4; letter-spacing: -.04em; }
.strengths-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.strengths-list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.7; }
.closing-line { margin-top: 110px; padding: 33px 0; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--ink); color: var(--muted); font-size: 11px; letter-spacing: .04em; }

@media (max-width: 900px) {
  .hero-heading { grid-template-columns: 1fr 280px; gap: 20px; }
  .hero h1 { font-size: clamp(46px, 6.5vw, 70px); }
  .hero-intro { grid-template-columns: 20% 1fr; }
  .works-stack { gap: 55px 28px; }
  .work-image { min-height: 270px; }
  .case-copy { grid-template-columns: 1fr; }
  .case-facts { grid-row: auto; }
  .case-tools, .case-intent, .case-disclaimer { max-width: 760px; }
  .case-visuals { margin-top: 48px; }
  .case-visual-bottom { gap: 48px 35px; }
}

@media (max-width: 680px) {
  .site-header { min-height: auto; padding: 14px 20px; display: block; }
  .site-brand { font-size: 13px; }
  .site-brand span { display: none; }
  .site-header nav { margin-top: 10px; gap: 20px; overflow-x: auto; }
  .site-header nav a { font-size: 10px; }
  .hero, .section-wrap, .case-study, .skills-section { width: min(100% - 40px, 1180px); }
  .hero { padding-top: 43px; }
  .hero-heading { grid-template-columns: 1fr 116px; align-items: start; gap: 8px; }
  .hero h1 { font-size: clamp(30px, 7.5vw, 54px); }
  .hero-photo { width: 116px; margin-top: 14px; }
  .hero-title-ja { font-size: 10px; }
  .hero-name { margin-top: 23px; gap: 10px; flex-wrap: wrap; }
  .hero-name strong { font-size: 19px; }
  .hero-name span { font-size: 12px; }
  .hero-catch { font-size: 15px; }
  .hero-categories { font-size: 9px; line-height: 1.8; }
  .hero-intro { margin-top: 40px; grid-template-columns: 1fr; gap: 13px; }
  .hero-intro > div { grid-template-columns: 1fr; gap: 9px; }
  .hero-intro p:last-child { grid-column: auto; }
  .hero-intro p:not(.micro-label) { font-size: 12px; }
  .stats { margin-top: 30px; grid-template-columns: 1fr 1fr; }
  .stats div { padding: 15px 10px 15px 0; }
  .stats div + div { padding-left: 0; border-left: 0; }
  .stats div:nth-child(even) { padding-left: 15px; border-left: 1px solid var(--line); }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats dd { font-size: 14px; }
  .index-list { grid-template-columns: 1fr; margin-top: 20px; }
  .index-list a { font-size: 11px; }
  .banner-works { padding-top: 88px; padding-bottom: 90px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 41px; }
  .section-heading > p { margin-top: 14px; font-size: 12px; }
  .banner-production-note { margin-top: 22px; grid-template-columns: 1fr; gap: 10px; }
  .works-stack, .works-last { margin-top: 40px; grid-template-columns: 1fr; gap: 52px; }
  .works-stack + .works-stack { margin-top: 52px; }
  .work-image { min-height: 0; }
  .work-image img { max-height: 370px; }
  .works-last .work-item:first-child { display: block; }
  .works-last .work-item:first-child .work-title-row { margin-top: 22px; }
  .size-gallery { grid-template-columns: 1fr; gap: 14px; }
  .size-variation img { max-width: 100%; }
  .case-study { padding-top: 85px; padding-bottom: 95px; }
  .case-header { display: flex; align-items: flex-start; gap: 22px; flex-direction: column; }
  .case-header h2 { font-size: clamp(32px, 8vw, 42px); }
  .case-link { min-width: 150px; }
  .case-layout { margin-top: 26px; }
  .case-facts div { grid-template-columns: 75px 1fr; font-size: 11px; }
  .case-visuals { margin-top: 38px; }
  .case-visual-bottom { margin-top: 48px; grid-template-columns: 1fr; gap: 55px; }
  .fullpage-block { grid-column: auto; }
  .fullpage-preview { height: 520px; }
  .design-docs > div { gap: 10px; }
  .skills-section { padding-top: 88px; }
  .skill-groups { grid-template-columns: 1fr 1fr; gap: 28px 15px; }
  .skill-group h3 { font-size: 12px; }
  .strengths-layout { margin-top: 65px; grid-template-columns: 1fr; gap: 25px; }
  .strengths-title h3 br { display: none; }
  .strengths-list { grid-template-columns: 1fr; }
  .closing-line { margin-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
/* First view only: display the supplied, finished collage without cropping. */
.hero-heading {
  min-height: clamp(500px, calc(100svh - 120px), 610px);
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  gap: clamp(10px, 1.3vw, 20px);
  align-items: center;
}
.fv-copy { position: relative; z-index: 1; padding: 5px 0; }
.fv-label { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 12px; letter-spacing: .2em; }
.fv-label::before { content: ''; width: 38px; height: 1px; flex: none; background: var(--blue); }
.hero-heading h1 { margin-top: 25px; font-size: clamp(64px, 5.9vw, 84px); font-weight: 500; letter-spacing: -.064em; line-height: .99; }
.fv-subcopy { margin-top: 18px; font-size: clamp(18px, 1.7vw, 22px); letter-spacing: .115em; line-height: 1.55; }
.fv-name { margin-top: 24px; font-size: 20px; font-weight: 500; letter-spacing: .015em; }
.fv-description { margin-top: 12px; color: #4d5963; font-size: 12px; line-height: 1.9; letter-spacing: .025em; }
.fv-application { margin-top: 18px; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.fv-collage { position: relative; z-index: 0; width: 100%; display: flex; align-items: center; overflow: visible; }
.fv-collage img { display: block; width: 116%; max-width: none; height: auto; margin-left: -16%; filter: drop-shadow(0 7px 22px rgba(20, 30, 50, .10)); }

@media (max-width: 1023px) {
  .hero-heading { min-height: clamp(455px, calc(100svh - 125px), 560px); grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 8px; }
  .hero-heading h1 { font-size: clamp(52px, 6.3vw, 66px); }
  .fv-subcopy { font-size: 16px; }
  .fv-description { font-size: 11.5px; }
}

@media (max-width: 820px) {
  .hero-heading { display: block; min-height: 0; }
  .fv-copy { max-width: 620px; }
  .fv-collage { width: 100%; margin-top: 22px; }
  .fv-collage img { width: 100%; max-width: 100%; margin-left: 0; }
}

@media (max-width: 767px) {
  .fv-copy { padding: 0; }
  .fv-label { font-size: 11px; }
  .hero-heading h1 { margin-top: 20px; font-size: clamp(48px, 12vw, 62px); line-height: 1; }
  .fv-subcopy { margin-top: 14px; font-size: 14px; }
  .fv-name { margin-top: 17px; font-size: 17px; }
  .fv-description { margin-top: 10px; font-size: 12px; line-height: 1.8; }
  .fv-application { margin-top: 14px; font-size: 10px; }
  .fv-collage { width: calc(100% + 8px); margin-top: 25px; margin-left: -4px; }
}
