:root{
  --bg: #EBEDEF;
  --ink: #23292E;
  --ink-soft: #565F66;
  --line: #CDD2D6;
  --btn: #23292E;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }

html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--ink);
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap{
  max-width: 920px;
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3, .display{
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a{ color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
header{
  padding: 56px 0;
  background-color: #2A333A;
  margin-bottom: 0;
}

nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links{
  display: flex;
  gap: 36px;
  font-size: 16px;
  color: #99A6AE;
}

.nav-links a{ transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible{ color: #EEF1F3; }
.nav-links a.active{ color: #EEF1F3; }

.logo{
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 500;
  color: #EEF1F3;
}

/* Hamburger toggle (mobile only) */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span{
  display: block;
  width: 100%;
  height: 1.5px;
  background: #EEF1F3;
  transition: transform .25s ease, opacity .25s ease;
}

.btn{
  display: inline-block;
  background: var(--btn);
  color: #fff;
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 30px;
  border: none;
  cursor: pointer;
}

.btn:hover, .btn:focus-visible{ background: #3d4750; }

.btn-row{
  text-align: center;
  margin: 48px 0 8px;
}

/* ---------- Hero ---------- */
.hero-heading{
  font-size: 46px;
  line-height: 1.2;
  margin-bottom: 28px;
  max-width: 640px;
}

.hero-copy{
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 460px;
  margin-bottom: 56px;
}

.hero-copy p{ margin: 0; }

/* ---------- Image placeholders ---------- */
.ph{
  width: 100%;
  display: block;
  position: relative;
  background-size: cover;
  background-position: center;
  color: rgba(255,255,255,.82);
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  letter-spacing: .04em;
}

.ph span{
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: rgba(20,18,15,.45);
  padding: 6px 10px;
}

.ph.tone-a{ background-image: linear-gradient(135deg, #232a30, #1a2429 60%, #2b333a); }
.ph.tone-b{ background-image: linear-gradient(135deg, #d5dbdf, #b4bfc6); color: rgba(25,32,38,.7); }
.ph.tone-b span{ background: rgba(255,255,255,.55); }
.ph.tone-c{ background-image: linear-gradient(135deg, #c4ccd1, #9aa6ad); color: rgba(25,32,38,.7); }
.ph.tone-c span{ background: rgba(255,255,255,.55); }
.ph.tone-d{ background-image: linear-gradient(135deg, #262d33, #3c464e); }
.ph.tone-e{ background-image: linear-gradient(135deg, #2f383f, #14191d); }
.ph.tone-f{ background-image: linear-gradient(135deg, #dde2e5, #bcc6cc); color: rgba(25,32,38,.7); }
.ph.tone-f span{ background: rgba(255,255,255,.55); }
.ph.tone-g{ background-image: linear-gradient(135deg, #1e242a, #384049); }
.ph.tone-h{ background-image: linear-gradient(135deg, #ccd2d6, #a3adb3); color: rgba(25,32,38,.7); }
.ph.tone-h span{ background: rgba(255,255,255,.55); }

.hero-img{ height: 620px; margin-bottom: 120px; }

/* ---------- Works (home) ---------- */
section{ margin-bottom: 120px; }

.eyebrow{
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.section-heading{
  font-size: 34px;
  margin-bottom: 48px;
}

.works-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-img{ height: 260px; margin-bottom: 20px; }

/* Portable Comfort: keep the full figure in view on desktop,
   shift the visible window on narrow screens (see mobile query below) */
.work-img-portable{ object-position: center center; }

.work-title{
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.work-desc{
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- Craftsmanship ---------- */
.craft-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.craft-copy p{ color: var(--ink-soft); margin: 0 0 2px; }

.craft-images{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.craft-img{ height: 300px; }

/* Square variant — shows more of the photo than a tall crop */
.craft-img.square{ aspect-ratio: 1 / 1; height: auto; }

/* Wide variant: lets the craft-grid break out past the 920px .wrap on
   larger screens so the paired photos read bigger, while pinning the
   copy column to a comfortable reading width. Mobile is untouched
   (see .craft-grid reset in the responsive block). */
@media (min-width: 761px){
  .craft-grid.craft-wide{
    grid-template-columns: minmax(0, 440px) 1fr;
    width: 100vw;
    max-width: 1440px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 40px;
  }
}

/* ---------- Collaborative ---------- */
.collab-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.collab-img{ height: 320px; margin-bottom: 20px; }

/* ---------- Works page (works.html) ---------- */
.page-intro{ margin-bottom: 48px; }

.page-title{
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 20px;
}

.page-subtitle{
  color: var(--ink-soft);
  font-size: 19px;
  text-wrap: balance;
}

.intro-copy{ max-width: 680px; }

.intro-copy p{
  color: var(--ink-soft);
  margin-bottom: 20px;
  text-wrap: balance;
}

.intro-copy p:last-child{ margin-bottom: 0; }

.works-duo{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.works-duo-img{ height: 340px; }

.img-caption{
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 620px;
  margin: 0 auto;
  text-wrap: balance;
}

.works-list-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}

.works-list-grid .work-img{ height: auto; aspect-ratio: 3 / 2; margin-bottom: 16px; }

.works-list-grid .work-title{
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 4px;
}

.works-list-grid .work-desc{ font-size: 14px; }

/* Keep specific titles lowercase (e.g. brand names styled lowercase) */
.lowercase-title{ text-transform: none; }

/* Linked work cards */
.work-link{
  display: block;
  color: inherit;
  text-decoration: none;
}
.work-link .work-img{
  transition: opacity .25s ease;
}
.work-link:hover .work-img,
.work-link:focus-visible .work-img{
  opacity: .82;
}
.work-link:hover .work-title,
.work-link:focus-visible .work-title{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
footer{
  background-color: #2A333A;
  border-top: 1px solid #3d474f;
  padding: 56px 0 64px;
  color: #99A6AE;
  font-size: 16px;
}

.footer-row{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

footer p{ margin-bottom: 4px; color: #EEF1F3; }

.footer-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #3d474f;
  border-radius: 50%;
  margin-top: 24px;
  color: #99A6AE;
}

.footer-icon:hover{ color: #EEF1F3; border-color: #99A6AE; }

.footer-email{
  display: block;
  margin-top: 6px;
  color: #99A6AE;
  font-size: 15px;
  text-decoration: underline;
}

.footer-email:hover{ color: #EEF1F3; }

.footer-links{ text-align: right; }
.footer-links a{
  display: block;
  color: #EEF1F3;
  text-decoration: underline;
  margin-bottom: 6px;
  font-size: 16px;
}

.footer-copyright{
  color: #99A6AE;
  font-size: 14px;
  margin-top: 16px;
}

/* ---------- About page ---------- */
.profile-section{
  margin-top: 64px;
  margin-bottom: 96px;
}

.profile-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.profile-name{
  font-size: 52px;
  margin-bottom: 32px;
}

.profile-role{
  font-size: 24px;
  margin-bottom: 2px;
}

.profile-portrait{ aspect-ratio: 508 / 655; height: auto; }

.about-img{ aspect-ratio: 1 / 1; height: auto; }

/* ---------- Award / recognition detail page ---------- */
.award-eyebrow{
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.award-title{
  font-size: 40px;
  margin-bottom: 16px;
}

.award-subtitle{
  color: var(--ink-soft);
  font-size: 19px;
  max-width: 640px;
  margin-bottom: 0;
}

/* Recognition photo linking to the award detail page */
.recognition-link{ display: block; }
.recognition-link img{ transition: opacity .25s ease; }
.recognition-link:hover img,
.recognition-link:focus-visible img{ opacity: .82; }

@media (max-width: 760px){
  .award-title{ font-size: 30px; }
  .award-subtitle{ font-size: 17px; }
}

/* ---------- Full-bleed photo sections ----------
   Lets a section's photos widen beyond the 920px .wrap on larger
   screens (iMac etc.), while text sections stay at the normal
   reading width. Mobile is untouched. */
@media (min-width: 761px){
  .bleed{
    width: 100vw;
    max-width: 1440px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 40px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px){
  .wrap{ padding: 0 22px; }
  nav{ flex-wrap: wrap; align-items: center; }
  .nav-toggle{ display: flex; }
  .nav-links{
    width: 100%;
    flex-direction: column;
    gap: 18px;
    font-size: 16px;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .3s ease, margin-top .3s ease;
  }
  nav.nav-open .nav-links{
    max-height: 320px;
    margin-top: 28px;
    opacity: 1;
  }
  nav.nav-open .nav-toggle span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  nav.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
  nav.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }
  header .logo{ font-size: 12px; line-height: 1.25; }
  .hero-heading{ font-size: 32px; }
  .hero-img{ height: auto; aspect-ratio: 3 / 2; margin-bottom: 80px; }
  section{ margin-bottom: 84px; }
  .works-grid{ grid-template-columns: 1fr; gap: 44px; }
  .craft-grid{ grid-template-columns: 1fr; gap: 32px; }
  .craft-images{ order: -1; }
  .collab-grid{ grid-template-columns: 1fr; gap: 44px; }
  .page-title{ font-size: 30px; }
  .works-duo{ grid-template-columns: 1fr; }
  .works-duo-img{ height: auto; aspect-ratio: 3 / 2; }
  .works-list-grid{ grid-template-columns: 1fr; gap: 32px; }

  /* Prevent images from being cropped on narrow screens:
     replace fixed heights with proportional aspect ratios */
  .work-img{ height: auto; aspect-ratio: 3 / 2; }
  .works-list-grid .work-img{ height: auto; aspect-ratio: 3 / 2; }
  .work-img-portable{ object-position: center 16%; }
  .collab-img{ height: auto; aspect-ratio: 3 / 2; }
  .craft-img{ height: auto; aspect-ratio: 3 / 2; }
  .footer-row{ flex-direction: column; }
  .footer-links{ text-align: left; }
  .profile-section{ margin-top: 40px; margin-bottom: 64px; }
  .profile-grid{ grid-template-columns: 1fr; gap: 32px; }
  .profile-name{ font-size: 36px; }
  .profile-portrait{ order: -1; }
}

/* ---------- Japanese pages ---------- */
.lang-ja body,
body.lang-ja{
  font-family: 'Noto Serif JP', 'EB Garamond', serif;
}

.lang-ja .logo,
.lang-ja h1,
.lang-ja h2,
.lang-ja h3,
.lang-ja .display{
  font-family: 'Noto Serif JP', 'Playfair Display', serif;
  font-weight: 600;
}

.lang-ja .hero-heading{ font-size: 40px; line-height: 1.35; }
.lang-ja .profile-name{ font-size: 44px; }
.lang-ja .page-title{ letter-spacing: .02em; }
.lang-ja body{ line-height: 1.9; }

.lang-switch{
  margin-left: 28px;
  font-size: 14px;
  color: #99A6AE;
  border: 1px solid #3d474f;
  border-radius: 2px;
  padding: 4px 10px;
  transition: color .2s ease, border-color .2s ease;
}
.lang-switch:hover{ color: #EEF1F3; border-color: #99A6AE; }

@media (max-width: 760px){
  .lang-ja .hero-heading{ font-size: 28px; }
  .lang-ja .profile-name{ font-size: 32px; }
  .lang-switch{ margin-left: 0; }
}

/* ---------- Portable Comfort (KYO-SOKU) responsive framing ---------- */
/* The photo is nearly square (person + leather cushion).
   On mobile the card fills the full width, so a 3/2 crop would cut off
   the head and the base of the cushion. Use a square box there instead,
   and (via <picture> in the HTML) load a wider-framed source so the whole
   scene stays visible. */
@media (max-width: 760px){
  .work-img-kyosoku{
    aspect-ratio: 1 / 1;
    object-position: center;
  }
}

/* ---------- Scroll fade-in (photos) ---------- */
.fade-in{
  opacity: 0;
  filter: blur(9px) saturate(.65);
  transform: scale(1.025) translateY(10px);
  transition:
    opacity 1.8s cubic-bezier(.16,1,.3,1),
    filter 1.8s cubic-bezier(.16,1,.3,1),
    transform 1.8s cubic-bezier(.16,1,.3,1);
}
.fade-in.is-visible{
  opacity: 1;
  filter: blur(0) saturate(1);
  transform: scale(1) translateY(0);
}

/* 動きを抑えたい設定のユーザーには即表示 */
@media (prefers-reduced-motion: reduce){
  .fade-in{
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

/* 移動やぼかしをつけず、その場でフェードインだけさせたい写真用 */
.fade-in-static{
  filter: none;
  transform: none;
  transition: opacity 1.8s cubic-bezier(.16,1,.3,1);
}
.fade-in-static.is-visible{
  filter: none;
  transform: none;
}

/* Works一覧(写真枚数が多いグリッド)はぼかし処理を外し、
   軽量なフェード+わずかな移動のみにする */
.works-list-grid .fade-in{
  filter: none;
  transform: translateY(10px);
  transition:
    opacity 1.4s cubic-bezier(.16,1,.3,1),
    transform 1.4s cubic-bezier(.16,1,.3,1);
}
.works-list-grid .fade-in.is-visible{
  filter: none;
  transform: translateY(0);
}
