:root {
    --bone: #f3f0e8;
    --paper: #fbfaf6;
    --ink: #18201c;
    --ink-soft: #4d544f;
    --line: #cfcac0;
    --red: #c63b28;
    --red-dark: #9e2f22;
    --blue: #c6d6dc;
    --sage: #aebcab;
    --serif: "DM Serif Display", Georgia, serif;
    --sans: "IBM Plex Sans JP", Arial, sans-serif;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    background: var(--bone); 
    color: var(--ink); 
    font-family: var(--sans); 
    font-size: 15px; 
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
button, a { font: inherit; color: inherit; text-decoration: none; cursor: pointer; }
button { border: 0; background: none; }

/* Layout */
.portfolio-shell { overflow-x: hidden; }
main { width: 100%; }

/* Header */
.site-header { 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    height: 76px; 
    padding: 0 34px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    background: rgba(243, 240, 232, 0.88); 
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid rgba(207, 202, 192, 0.65); 
}
.brand-lockup { display: inline-flex; align-items: center; gap: 9px; letter-spacing: .08em; font-size: 10px; font-weight: 600; }
.brand-mark { width: 31px; height: 31px; }
.brand-name { font-size: 11px; letter-spacing: .1em; }
.brand-divider { color: var(--red); font-size: 16px; font-weight: 300; }
.brand-type { color: var(--ink-soft); font-weight: 400; }

.desktop-nav { display: flex; gap: 31px; }
.desktop-nav a { font-size: 11px; letter-spacing: .09em; position: relative; font-weight: 500; }
.desktop-nav a::after { content: ""; width: 0; height: 1px; background: var(--red); left: 0; bottom: -5px; position: absolute; transition: width .18s var(--ease-out); }
.desktop-nav a:hover::after { width: 100%; }

.menu-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.menu-icon, .menu-icon::before, .menu-icon::after { 
    width: 20px; height: 1.5px; background: var(--ink); display: block; position: relative; transition: all 0.3s;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; }
.menu-icon::before { top: -6px; }
.menu-icon::after { bottom: -6px; }
.menu-toggle.active .menu-icon { background: transparent; }
.menu-toggle.active .menu-icon::before { transform: rotate(45deg); top: 0; }
.menu-toggle.active .menu-icon::after { transform: rotate(-45deg); bottom: 0; }

.mobile-menu { 
    display: none; 
    position: fixed; 
    top: 76px; left: 0; width: 100%; height: calc(100vh - 76px); 
    background: var(--paper); 
    z-index: 90; 
    flex-direction: column; 
    padding: 40px 34px; 
    gap: 24px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { font-size: 24px; font-family: var(--serif); border-bottom: 1px solid var(--line); padding-bottom: 12px; }

/* Hero */
.hero { 
    min-height: 720px; 
    padding: 69px 8.5vw 60px; 
    display: grid; 
    grid-template-columns: 116px 1fr 0.87fr; 
    gap: 32px; 
    background: var(--bone); 
    border-bottom: 1px solid var(--line); 
    position: relative;
}
.hero::before { 
    content: ""; position: absolute; inset: 0; opacity: .22; 
    background-image: radial-gradient(#b2aa9d 0.65px, transparent .65px); 
    background-size: 6px 6px; pointer-events: none; 
}
.hero-index { font-size: 9px; letter-spacing: .12em; color: var(--ink-soft); writing-mode: vertical-rl; display: flex; flex-direction: column; gap: 9px; }
.hero-index span:last-child { color: var(--red); margin-top: 24px; }
.hero-copy { align-self: center; max-width: 640px; }
.eyebrow { color: var(--red); font-size: 10px; font-weight: 600; letter-spacing: .15em; margin-bottom: 20px; display: flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; }
h1 { font-family: var(--serif); font-size: clamp(48px, 5.15vw, 83px); line-height: 0.98; letter-spacing: -0.055em; font-weight: 400; }
h1 em { font-style: italic; color: var(--red); }
.hero-intro { color: var(--ink-soft); margin: 28px 0 31px; max-width: 470px; font-size: 14px; }
.text-link { 
    display: inline-flex; align-items: center; gap: 12px; 
    border-bottom: 1px solid var(--ink); padding: 0 2px 7px; 
    font-size: 12px; letter-spacing: .07em; transition: all 0.2s var(--ease-out); 
}
.text-link:hover { color: var(--red); border-color: var(--red); gap: 17px; }
.hero-art { min-height: 540px; border: 1px solid var(--line); overflow: hidden; position: relative; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }
.hero-corner-note { position: absolute; bottom: 25px; left: 8.5vw; display: flex; gap: 18px; font-size: 9px; letter-spacing: .11em; color: var(--ink-soft); }

/* Statement */
.statement-section { 
    padding: 118px 8.5vw 104px; 
    display: grid; 
    grid-template-columns: 116px 0.9fr 0.34fr; 
    gap: 32px; 
    background: var(--paper); 
}
.side-label { font-size: 9px; letter-spacing: .11em; color: var(--ink-soft); display: flex; gap: 11px; }
.side-label span:first-child { color: var(--red); font-size: 11px; }
.section-kicker { color: var(--red); font-size: 10px; font-weight: 600; letter-spacing: .15em; margin-bottom: 20px; }
h2 { font-family: var(--serif); font-size: clamp(39px, 4vw, 62px); line-height: 0.98; letter-spacing: -0.055em; font-weight: 400; }
.statement-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; margin-top: 39px; }
.statement-notes p { font-size: 13px; color: var(--ink-soft); line-height: 1.9; }
.measure-block { 
    align-self: end; justify-self: end; 
    width: 126px; height: 126px; 
    border: 1px solid var(--red); color: var(--red); 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    transform: rotate(-8deg); 
}
.measure-block span { font-family: var(--serif); font-size: 46px; line-height: 0.8; }
.measure-block small { font-size: 8px; margin-top: 9px; text-align: center; }

/* Works */
.works-section { padding: 118px 8.5vw 130px; background: var(--bone); position: relative; }
.section-heading { display: grid; grid-template-columns: 116px 1fr 190px; gap: 32px; align-items: flex-end; margin-bottom: 64px; }
.heading-note { font-size: 11px; color: var(--ink-soft); margin-bottom: 8px; }
.works-list { margin-left: 148px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px 31px; }
.work-card { cursor: pointer; }
.work-card:nth-child(even) { margin-top: 104px; }
.work-meta { 
    display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; 
    padding-bottom: 11px; border-bottom: 1px solid var(--ink); 
    font-size: 9px; letter-spacing: .11em; color: var(--ink-soft); 
}
.work-meta span:first-child { color: var(--red); }
.work-visual { 
    aspect-ratio: 1.25; margin-top: 9px; background: #ddd5c7; position: relative; overflow: hidden; 
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.work-card:hover .work-visual { transform: translateY(-4px); box-shadow: 0 16px 0 -10px var(--red); }
.work-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.work-card:hover .work-visual img { transform: scale(1.05); }

.specimen-tab { 
    position: absolute; top: 0; left: 0; z-index: 10; 
    background: rgba(251, 250, 246, 0.93); border: 1px solid rgba(24, 32, 28, 0.2); 
    padding: 7px 10px; font-size: 7px; display: flex; flex-direction: column; gap: 2px;
}
.material-swatches { position: absolute; top: 9px; right: 9px; display: flex; gap: 3px; padding: 4px; background: rgba(251, 250, 246, 0.89); border: 1px solid rgba(24, 32, 28, 0.2); }
.material-swatches i { width: 10px; height: 10px; display: block; }
.work-cross { position: absolute; color: var(--red); font-size: 20px; }
.cross-one { top: 10px; left: 10px; }.cross-two { right: 10px; bottom: 33px; }
.visual-caption { 
    position: absolute; bottom: 0; width: 100%; padding: 11px 13px; 
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); 
    color: white; font-size: 9px; 
}
.work-title-row { padding: 16px 0 8px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; }
.work-title-row h3 { font-family: var(--serif); font-size: 32px; font-weight: 400; }
.work-statement { margin-top: 11px; font-size: 13px; color: var(--ink-soft); }


/* Case Study */
.case-study { padding: 60px 8.5vw 92px; background: #31433e; color: var(--paper); transition: background 0.4s; }
.case-ruler { display: flex; align-items: center; gap: 14px; font-size: 9px; margin-bottom: 40px; }
.case-ruler i { flex: 1; height: 1px; background: rgba(255,255,255,0.2); }
.case-header { margin-left: 148px; display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.case-selector { display: flex; gap: 8px; }
.case-selector button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.3); color: white; transition: all 0.2s; }
.case-selector button.is-active { background: var(--paper); color: var(--ink); }
.case-content { margin-left: 148px; display: grid; grid-template-columns: 0.86fr 1fr; gap: 80px; }
.case-poster { aspect-ratio: 0.8; background: #c9d0c6; position: relative; transform: rotate(-2deg); outline: 1px solid rgba(255,255,255,0.4); outline-offset: 8px; overflow: hidden; }
.case-poster img { width: 100%; height: 100%; object-fit: cover; transform: rotate(2deg) scale(1.06); backface-visibility: hidden;}
.poster-lines { position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,0.4); pointer-events: none; }
.case-poster p { position: absolute; bottom: 25px; left: 25px; font-family: var(--serif); font-size: 32px; line-height: 1; }
.case-copy { padding-top: 10px; }
.case-lead { font-size: 15px; line-height: 2; margin-bottom: 40px; }
.case-data div { display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid rgba(255,255,255,0.2); padding: 12px 0; }
.case-data dt { font-size: 9px; color: #f7d4ca; }
.case-data dd { font-size: 11px; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-list span { border: 1px solid rgba(255,255,255,0.3); padding: 2px 8px; font-size: 9px; }

/* Extensions */
.extensions-section { padding: 119px 8.5vw 127px; background: var(--paper); }
.extensions-intro { margin: 33px 0 61px 148px; font-size: 14px; color: var(--ink-soft); max-width: 520px; }
.extensions-grid { margin-left: 148px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.extension-card:nth-child(even) { margin-top: 93px; }
.graphic-preview { height: 370px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.graphic-preview.flyer { background: #d8d3ba; }
.graphic-preview.business-card { background: #dce8e4; }
.flyer-img { width: 60%; transform: rotate(4deg); box-shadow: 15px 15px 30px rgba(0,0,0,0.1); }
.business-stack { position: relative; width: 70%; height: 60%; }
.card-front, .card-back { position: absolute; width: 85%; border: 1px solid rgba(0,0,0,0.05); box-shadow: 10px 10px 20px rgba(0,0,0,0.05); }
.card-front { top: 0; left: 0; z-index: 2; }
.card-back { bottom: 0; right: 0; transform: rotate(5deg); z-index: 1; }
.extension-copy { margin-top: 24px; }
.extension-label { font-size: 9px; display: flex; gap: 10px; margin-bottom: 12px; }
.extension-label span:first-child { color: var(--red); }
.extension-medium { font-size: 10px; color: var(--ink-soft); margin-bottom: 12px; }

/* Profile */
.profile-section { padding: 120px 8.5vw; display: grid; grid-template-columns: 116px 1fr 280px; gap: 40px; background: var(--bone); border-top: 1px solid var(--line); }
.profile-stamp { text-align: center; }
.profile-stamp img { width: 48px; margin: 0 auto 12px; }
.profile-stamp span { font-size: 8px; line-height: 1.2; display: block; font-weight: 600; }
.profile-copy h2 { font-size: 80px; line-height: 0.9; margin-bottom: 10px; }
.profile-copy h3 { font-size: 50px; line-height: 0.9; margin-bottom: 10px;
font-family: var(--serif); font-weight: 400; }
.profile-jp { font-size: 14px; margin-bottom: 26px; font-weight: 500; }
.profile-links { margin-top: 32px; display: flex; gap: 24px; }
.profile-links a { font-size: 13px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.skill-board { border-left: 1px solid var(--line); padding-left: 32px; position: relative; }
.skill-board p { font-size: 9px; font-weight: 600; margin-bottom: 20px; }
.skill-board ul { list-style: none; }
.skill-board li { font-size: 13px; margin-bottom: 8px; }
.registration-mark { position: absolute; bottom: 0; right: 0; color: var(--red); font-size: 24px; }
.profile-jp {
  margin-top: 1em; /* 該当のpタグの上に1行分余白をつける */
}

/* Footer */
.site-footer { padding: 60px 8.5vw; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 9px; color: var(--ink-soft); }

.page-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: 25px;
  height: 25px;
  background-color: var(--red);
  color: var(--bone);
  border-radius: 0%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

/* 表示用クラス */
.page-top.is-show {
  opacity: 1;
  visibility: visible;
}

/* ホバー時の装飾 */
.page-top:hover {
  background-color: #555;
}



/* Responsive */
@media (max-width: 1024px) {
    .hero, .statement-section, .works-section, .extensions-section, .profile-section, .case-study { padding-left: 34px; padding-right: 34px; }
    .hero { grid-template-columns: 1fr; gap: 40px; min-height: auto; }
    .hero-index { display: none; }
    .hero-art { min-height: 400px; }
    .statement-section { grid-template-columns: 1fr; }
    .side-label { margin-bottom: 20px; }
    .measure-block { display: none; }
    .works-list, .case-header, .case-content, .extensions-intro, .extensions-grid { margin-left: 0; }
    .works-list, .extensions-grid { grid-template-columns: 1fr; gap: 60px; }
    .case-content { grid-template-columns: 1fr; }
    .profile-section { grid-template-columns: 1fr; }
    .skill-board { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 32px; }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .menu-toggle { display: flex; }
    .hero h1 { font-size: 42px; }
    .statement-notes { grid-template-columns: 1fr; }
    .section-heading { grid-template-columns: 1fr; }
    .profile-copy h2 { font-size: 50px; }
}
