/* takashitadokoro.com — reproduction of the STUDIO design */
:root {
  --brown: #836f5e;
  --brown-light: #b49b85;
  --beige: #efebe9;
  --ink: #000;
  --text: #333;
  --gray: #555;
  --ease: cubic-bezier(0.4, 0.4, 0, 1);
  --serif: 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', sans-serif;
  --dosis: 'Dosis', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.4; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* ---------- menu ---------- */
.menu-button {
  position: fixed; top: 40px; right: 40px; z-index: 20;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: var(--brown); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.menu-button:hover { opacity: .85; transform: scale(1.05); }
.menu-button svg { width: 14px; height: 16px; fill: currentColor; }
.menu { position: fixed; inset: 0; z-index: 30; }
.menu[hidden] { display: none; }
.menu-backdrop { position: absolute; inset: 0; background: rgba(20, 16, 13, .45); opacity: 0; transition: opacity .5s var(--ease); cursor: pointer; }
.menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 40%; min-width: 420px;
  display: flex; flex-direction: column; padding: 120px 64px 48px; overflow-y: auto;
  background: var(--brown); color: #fff;
  transform: translateX(100%); transition: transform .6s cubic-bezier(.22, .8, .2, 1);
}
.menu.is-open .menu-backdrop { opacity: 1; }
.menu.is-open .menu-panel { transform: none; }
.menu-close {
  position: absolute; top: 40px; right: 40px; width: 48px; height: 48px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; background: transparent; cursor: pointer;
  transition: background .3s var(--ease);
}
.menu-close:hover { background: rgba(255, 255, 255, .12); }
.menu-close span { position: absolute; top: 50%; left: 50%; width: 16px; height: 1px; background: #fff; }
.menu-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.menu-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.menu-links { margin-top: 0; display: flex; flex-direction: column; }
.menu-links li { border-bottom: 1px solid rgba(255, 255, 255, .22); opacity: 0; transform: translateX(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu.is-open .menu-links li { opacity: 1; transform: none; }
.menu.is-open .menu-links li:nth-child(1) { transition-delay: .15s; }
.menu.is-open .menu-links li:nth-child(2) { transition-delay: .2s; }
.menu.is-open .menu-links li:nth-child(3) { transition-delay: .25s; }
.menu.is-open .menu-links li:nth-child(4) { transition-delay: .3s; }
.menu-links a { display: block; padding: 22px 0; color: #fff; }
.menu-en { display: inline-block; font-family: var(--dosis); font-size: 28px; font-weight: 500; letter-spacing: .12em; line-height: 1.2; transition: transform .4s var(--ease); }
.menu-links a:hover .menu-en { transform: translateX(8px); }
.menu-links a[aria-current="page"] .menu-en::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 12px; border-radius: 50%; background: #fff; vertical-align: middle; }
.menu-social { display: flex; gap: 4px; margin-top: auto; padding-top: 48px; margin-left: -12px; }
.menu-social a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; transition: opacity .3s var(--ease); }
.menu-social a:hover { opacity: .7; }
.menu-social svg { width: 18px; height: 18px; fill: currentColor; }
body.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .menu-panel, .menu-backdrop, .menu-links li { transition: none; }
}

/* ---------- common parts ---------- */
.container { width: 1000px; max-width: calc(100% - 60px); margin: 0 auto; }
.section-heading { display: flex; align-items: center; gap: 20px; }
.section-heading::before {
  content: ''; width: 12px; height: 2px; margin-left: 6px;
  background: linear-gradient(117deg, #7abeeb 0%, #bbb 100%);
}
.section-heading p { font-family: var(--dosis); font-size: 20px; font-weight: 500; letter-spacing: .1em; line-height: 1.4; color: var(--ink); }
.page-title { padding-top: 80px; font-family: var(--sans); font-size: 64px; font-weight: 700; letter-spacing: .1em; line-height: 1.7; text-align: center; color: var(--ink); }
.outline-button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink); background: #fff; color: var(--ink);
  font-family: var(--dosis); font-weight: 500; letter-spacing: .1em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.outline-button:hover { background: var(--brown); border-color: transparent; color: #fff; }
.center { text-align: center; }

/* thumbnails: image on ::before so hover can scale it, like the original */
.thumb { position: relative; display: block; overflow: hidden; background: #fff; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.thumb:hover img { transform: scale(1.05); }

/* ---------- top ---------- */
.hero { position: relative; height: 100vh; min-height: 480px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero h1 { position: relative; font-family: var(--serif); font-size: 40px; font-weight: 700; letter-spacing: .1em; line-height: 1.4; color: #fff; text-align: center; }

.about-me { padding-top: 100px; }
.profile { display: flex; justify-content: center; align-items: center; gap: 100px; margin-top: 50px; padding: 50px 0; border-bottom: 1px solid var(--gray); }
.profile-name { font-size: 28px; font-weight: 400; letter-spacing: .1em; line-height: 1.4; color: var(--ink); text-align: center; }
.profile-roles { margin-top: 20px; font-size: 18px; font-weight: 300; letter-spacing: .1em; line-height: 2; color: var(--ink); }
.profile img { width: 230px; height: 325px; object-fit: cover; }
.bio { margin-top: 50px; font-size: 16px; font-weight: 300; letter-spacing: .1em; line-height: 1.4; color: var(--ink); }
.more { margin-top: 50px; text-align: center; }
.more .outline-button { width: 106px; height: 47px; font-size: 15px; }

.director-works { padding-top: 96px; }
.director-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 55px; }
.director-grid .thumb { aspect-ratio: 333 / 200; }
.view-all { margin-top: 60px; padding-bottom: 96px; text-align: center; }
.view-all .outline-button { width: 197px; height: 51px; font-size: 18px; font-weight: 600; color: var(--gray); border-color: var(--gray); }
.view-all .outline-button:hover { color: #fff; }

.cd-works { padding-bottom: 196px; }
.cd-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 55px; }
.cd-grid .thumb { aspect-ratio: 2 / 1; }

/* ---------- works list ---------- */
.works-page { padding-bottom: 100px; }
.filters { display: flex; justify-content: center; margin-top: 40px; }
.filters a {
  padding: 0 10px; border-left: 1px solid var(--brown);
  font-family: var(--dosis); font-size: 14px; font-weight: 400; letter-spacing: .1em; line-height: 1.7; color: var(--ink);
  transition: color .3s var(--ease);
}
.filters a:first-child { border-left-color: var(--brown-light); }
.filters a:last-child { border-right: 1px solid var(--brown); }
.filters a:hover, .filters a.is-active { color: var(--brown); }
.filters a.is-active { font-weight: 600; }
.works-grid { display: grid; grid-template-columns: repeat(3, 300px); justify-content: center; margin-top: 80px; }
.works-grid .thumb { aspect-ratio: 3 / 2; }
.works-grid .thumb[hidden] { display: none; }
.load-more { margin-top: 20px; text-align: center; }
.load-more button {
  width: 109px; height: 42px; cursor: pointer;
  font-size: 13px; font-weight: 600;
}

/* ---------- work detail ---------- */
.work-head { padding-top: 50px; text-align: center; }
.work-head::before { content: ''; display: block; width: 1px; height: 76px; margin: 0 auto 7px; background: #222; }
.work-title { font-size: 32px; font-weight: 700; letter-spacing: .1em; line-height: 1.4; color: var(--text); }
.work-body { width: 580px; max-width: calc(100% - 80px); margin: 10px auto 0; padding-bottom: 100px; }
.rich h2 { font-size: 16px; font-weight: 400; line-height: 1.4; text-align: center; }
.rich h3 { font-size: 14px; font-weight: 400; line-height: 1.6; text-align: center; margin: 4px 0; }
.rich hr { margin: 10px 0 20px; border: 0; border-top: 1px solid #ccc; }
.rich p { font-size: 14px; line-height: 1.8; }
.rich p:empty { display: none; }
.rich .embed { position: relative; padding-top: 56.25%; margin: 0 0 20px; }
.rich .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rich img { margin: 0 auto 20px; height: auto; }
.back { margin-top: 48px; text-align: center; }
.back a {
  display: inline-flex; align-items: center; justify-content: center; width: 82px; height: 42px;
  background: #000; color: #fff; font-family: var(--dosis); font-size: 16px; font-weight: 600; letter-spacing: .1em;
  transition: opacity .3s var(--ease);
}
.back a:hover { opacity: .7; }

/* ---------- about ---------- */
html { scroll-behavior: smooth; }
.about-page { padding-bottom: 160px; }
.about-sections { width: 1000px; max-width: calc(100% - 60px); margin: 90px auto 0; display: flex; flex-direction: column; gap: 90px; }
.about-sec { scroll-margin-top: 40px; }
.about-panel { margin-top: 28px; padding: 24px 56px; border-radius: 24px; background: var(--beige); }
.about-group { padding: 24px 0; }
.about-group + .about-group { border-top: 1px solid rgba(131, 111, 94, .35); }
.about-group h3 { margin-bottom: 8px; font-family: var(--dosis); font-size: 16px; font-weight: 600; letter-spacing: .12em; color: var(--brown); }
.timeline-row { display: grid; grid-template-columns: 88px 1fr; gap: 24px; padding: 16px 0; }
.timeline-row + .timeline-row { border-top: 1px solid rgba(131, 111, 94, .18); }
.timeline-year { font-family: var(--dosis); font-size: 18px; font-weight: 600; letter-spacing: .06em; line-height: 1.6; color: var(--brown); font-variant-numeric: tabular-nums; }
.timeline-entries { display: flex; flex-direction: column; gap: 8px; }
.timeline-entries li { font-size: 15px; font-weight: 400; letter-spacing: .04em; line-height: 1.75; color: var(--text); }
.timeline-entries li, .award-name, .award-work { word-break: auto-phrase; }
.timeline-entries.is-multi li { position: relative; padding-left: 14px; }
.timeline-entries.is-multi li::before { content: ''; position: absolute; left: 0; top: .8em; width: 5px; height: 5px; border-radius: 50%; background: var(--brown-light); }
.timeline-entries .note { display: block; margin-top: 2px; padding-left: 1em; font-size: 13px; line-height: 1.7; color: #7a6a5c; }
.award-list { display: flex; flex-direction: column; }
.award-list li { display: grid; grid-template-columns: 88px 1fr; column-gap: 24px; padding: 14px 0; }
.award-list li + li { border-top: 1px solid rgba(131, 111, 94, .18); }
.badge {
  grid-row: span 2; align-self: start; justify-self: start; margin-top: 3px; padding: 2px 8px; border: 1px solid var(--brown);
  font-family: var(--dosis); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--brown);
}
.badge.is-winner { background: var(--brown); color: #fff; }
.award-name { font-size: 15px; font-weight: 500; letter-spacing: .04em; line-height: 1.7; color: var(--text); }
.award-work { font-size: 14px; letter-spacing: .04em; line-height: 1.7; color: #7a6a5c; }

/* ---------- contact ---------- */
.contact-page { padding-bottom: 100px; }
.contact-lead { margin-top: 40px; text-align: center; font-size: 16px; font-weight: 300; letter-spacing: .1em; line-height: 1.7; color: var(--text); }
.contact-form { width: 720px; max-width: calc(100% - 60px); margin: 80px auto 0; display: flex; flex-direction: column; gap: 32px; }
.field label { display: block; font-size: 16px; font-weight: 500; letter-spacing: .05em; line-height: 1.8; color: var(--text); }
.field label .req { margin-left: 8px; font-size: 12px; font-weight: 400; vertical-align: top; color: #d32f2f; }
.field input, .field textarea {
  display: block; width: 100%; height: 48px; padding: 0 12px; border: 1px solid #666; border-radius: 0; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .3s var(--ease);
}
.field textarea { height: 256px; padding: 12px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brown); }
.confirm { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; line-height: 2; color: var(--text); }
.submit { margin-top: 1px; text-align: center; }
.submit button { width: 100px; height: 56px; border: 1px solid var(--gray); background: #fff; color: var(--text); cursor: pointer; font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: .05em; transition: background .3s var(--ease), color .3s var(--ease); }
.submit button:hover { background: var(--brown); color: #fff; border-color: transparent; }
.submit button:disabled { opacity: .4; cursor: default; }
.form-status { text-align: center; font-size: 14px; line-height: 1.7; }
.form-status:empty { display: none; }
.form-status.is-error { color: #d32f2f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- static project pages (creative director works) ---------- */
.project-head .project-label { margin-top: 16px; font-size: 18px; font-weight: 400; letter-spacing: .1em; line-height: 1.4; color: var(--text); }
.project-head .work-title { margin-top: 15px; }
.project-body { width: 1080px; max-width: calc(100% - 60px); margin: 30px auto 0; padding-bottom: 100px; color: var(--ink); text-align: center; }
.project-body.narrow { width: 1000px; margin-top: 130px; text-align: left; }
.narrow .p-text + .p-video { margin-top: 60px; }
.narrow .p-sub { line-height: 1.5; margin-top: 66px !important; }
.project-body > * + * { margin-top: 30px; }
.p-lead { font-size: 16px; font-weight: 500; letter-spacing: .1em; line-height: 1.7; }
.p-text { font-size: 16px; font-weight: 300; letter-spacing: .1em; line-height: 1.7; }
.p-text.left { text-align: left; }
.project-body > .p-text { margin-top: 40px; }
.p-lead + .p-text { margin-top: 60px !important; }
.p-small + .p-text { margin-top: 90px !important; }
.p-sub + .p-small + .p-text, .p-sub + .p-text { margin-top: 30px !important; }
.project-body .section-heading + .p-text { margin-top: 30px; }
.p-plus { margin: 30px 0 !important; font-size: 24px; line-height: 1; color: #7abeeb; text-align: center; }
.p-sub { margin-top: 70px !important; font-size: 24px; font-weight: 700; letter-spacing: .1em; line-height: 1.7; }
.p-sub.tight { margin-top: 0 !important; }
.p-small { font-size: 16px; font-weight: 400; letter-spacing: .1em; line-height: 1.7; margin-top: 6px !important; }
.p-small.large { font-size: 18px; }
.p-small.spaced { margin-top: 100px !important; }
.p-video { position: relative; width: 100%; }
.p-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p-stack { margin-top: 50px !important; }
.p-stack img { width: 100%; aspect-ratio: 1080 / 560; object-fit: cover; }
.p-grid { display: grid; }
.p-grid img { width: 100%; height: 100%; object-fit: cover; }
.p-grid.cols-3 { grid-template-columns: repeat(3, 1fr); margin-top: 50px !important; }
.p-grid.cols-3 img { aspect-ratio: 360 / 520; }
.p-grid.cols-2 { grid-template-columns: repeat(2, 1fr); margin-top: 0 !important; }
.p-grid.cols-2 img { aspect-ratio: 540 / 300; }
.p-grid.cols-2.first { margin-top: 30px !important; }
.p-grid + .p-video { margin-top: 30px !important; }
.p-links { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 50px !important; }
.p-links a { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.p-links img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.p-links span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .447);
  font-family: var(--dosis); font-size: 18px; font-weight: 600; letter-spacing: .1em; color: #fff; transition: background .3s var(--ease);
}
.p-links a:hover img { transform: scale(1.05); }
.p-links a:hover span { background: rgba(0, 0, 0, .25); }
.slideshow { position: relative; aspect-ratio: 1080 / 580; overflow: hidden; margin-top: 50px !important; }
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease); }
.slideshow img.is-active { opacity: 1; }
.slideshow-controls { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 24px; }
.slideshow-controls button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #222; font-size: 20px; line-height: 1; cursor: pointer; }
.slideshow-controls button[data-toggle] { font-size: 11px; letter-spacing: -1px; }
.slideshow + .p-video { margin-top: 30px !important; }

/* ---------- footer ---------- */
.site-footer { background: var(--brown); color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px 40px; width: 1200px; max-width: calc(100% - 80px); margin: 0 auto; padding: 72px 0 56px; }
.footer-logo { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: .1em; line-height: 1.4; color: #fff; white-space: nowrap; }
.footer-nav ul { display: flex; gap: 40px; }
.footer-nav a { position: relative; font-family: var(--dosis); font-size: 15px; font-weight: 500; letter-spacing: .12em; color: #fff; }
.footer-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.footer-nav a:hover::after { transform: scaleX(1); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; width: 1200px; max-width: calc(100% - 80px); margin: 0 auto; padding: 16px 0 24px; border-top: 1px solid rgba(255, 255, 255, .25); }
.footer-copy { font-family: var(--dosis); font-size: 12px; letter-spacing: .1em; opacity: .75; }
.footer-social { display: flex; gap: 4px; margin-right: -12px; }
.footer-social a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; transition: opacity .3s var(--ease); }
.footer-social a:hover { opacity: .7; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- responsive (STUDIO breakpoints: 1140 / 840 / 540) ---------- */
@media (max-width: 840px) {
  .page-title { font-size: 48px; }
  .director-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 300px)); }
}
@media (max-width: 540px) {
  .menu-button { top: 40px; right: 16px; }
  .menu-close { right: 16px; }
  .container { max-width: calc(100% - 60px); }
  .hero h1 { font-size: 32px; padding: 0 20px; }
  .section-heading p { font-size: 18px; }
  .profile { flex-direction: column; gap: 50px; margin-top: 50px; padding: 0 0 50px; }
  .bio { margin-top: 50px; }
  .more .outline-button { width: 104px; height: 46px; font-size: 14px; }
  .director-works { padding-top: 96px; }
  .director-grid { grid-template-columns: 1fr; margin-top: 64px; }
  .director-grid .thumb { aspect-ratio: 330 / 170; }
  .view-all .outline-button { width: 146px; height: 43px; font-size: 12px; }
  .cd-grid { grid-template-columns: 1fr; }
  .cd-grid .thumb { aspect-ratio: 330 / 100; }
  .cd-works { padding-bottom: 100px; }

  .page-title { font-size: 32px; padding-top: 80px; }
  .filters { margin-top: 16px; }
  .filters a { padding: 0 6px; font-size: 13px; }
  .works-grid { grid-template-columns: minmax(0, 314px); margin-top: 40px; }
  .works-grid .thumb { aspect-ratio: 314 / 200; }

  .work-title { font-size: 20px; padding: 0 20px; }
  .work-body { max-width: calc(100% - 80px); }
  .back a { width: 79px; height: 41px; font-size: 15px; }

  .about-nav { margin-top: 16px; }
  .about-sections { margin-top: 56px; gap: 64px; }
  .about-panel { margin-top: 20px; padding: 8px 20px; border-radius: 16px; }
  .about-group { padding: 16px 0; }
  .timeline-row, .award-list li { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .timeline-year { font-size: 16px; }
  .timeline-entries li, .award-name { font-size: 14px; }
  .timeline-entries .note, .award-work { font-size: 12px; }
  .badge { grid-row: auto; margin: 0 0 6px; }

  .contact-lead { margin-top: 16px; padding: 0 30px; }
  .contact-form { max-width: calc(100% - 108px); margin-top: 41px; }
  .field label { font-size: 14px; }
  .confirm { font-size: 14px; }
  .submit button { width: 95px; height: 54px; font-size: 14px; }

  .project-head .work-title { font-size: 32px; padding: 0 30px; }
  .project-head .project-label { padding: 0 30px; }
  .project-body { max-width: calc(100% - 60px); }
  .p-lead, .p-small, .p-small.large { font-size: 14px; }
  .p-sub { font-size: 14px; margin-top: 50px !important; }
  .p-video { aspect-ratio: var(--m-ratio, 16 / 9) !important; }
  .p-stack img { aspect-ratio: 330 / 300; }
  .p-grid.cols-3, .p-grid.cols-2 { grid-template-columns: 1fr; }
  .p-grid.cols-3 img { aspect-ratio: 330 / 476; }
  .p-grid.cols-2 img { aspect-ratio: 330 / 240; }
  .p-links { grid-template-columns: 1fr; margin-top: 30px !important; }
  .p-links a { aspect-ratio: 330 / 120; }
  .p-links span { font-size: 12px; }
  .slideshow { aspect-ratio: 330 / 290; }

  .menu-panel { width: 100%; min-width: 0; padding: 112px 30px 40px; }
  .menu-en { font-size: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 36px; max-width: calc(100% - 60px); padding: 56px 0 40px; }
  .footer-logo { font-size: 20px; }
  .footer-nav ul { flex-direction: column; gap: 18px; }
  .footer-bottom { max-width: calc(100% - 60px); }
}
