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

:root {
  --bg: #F8F7F4;
  --text: #1C1C1C;
  --muted: #888;
  --accent: #4A6FA5;
  --border: #E0DED9;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* ── NAV ───────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 60px;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ── HERO ──────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 100px;
  position: relative;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 60px;
  position: relative;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.hero-name em {
  font-style: italic;
  color: var(--accent);
}

.hero-tagline {
  font-size: 15px;
  font-weight: 300;
  color: #555;
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 48px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border: 1.5px solid var(--text);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
  width: fit-content;
}

.hero-cta:hover {
  background: var(--text);
  color: var(--bg);
}

.hero-cta svg {
  transition: transform 0.25s;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

.hero-right {
  position: relative;
  overflow: hidden;
  background: #EAE8E3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 作品モックアップ（プレースホルダー） */
.mockup-container {
  position: relative;
  width: 78%;
  max-width: 440px;
}

.mockup-browser {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.13), 0 8px 24px rgba(0, 0, 0, 0.07);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
}

.mockup-bar {
  background: #F0EFEC;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #E0DED9;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-r {
  background: #FF5F57;
}

.dot-y {
  background: #FFBD2E;
}

.dot-g {
  background: #28C840;
}

.mockup-url {
  flex: 1;
  background: white;
  border-radius: 4px;
  height: 18px;
  margin-left: 10px;
}

.mockup-body {
  padding: 28px 24px;
  background: white;
}

.mb-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.mb-logo-block {
  width: 60px;
  height: 10px;
  background: #1C1C1C;
  border-radius: 2px;
}

.mb-nav-links {
  display: flex;
  gap: 12px;
}

.mb-link {
  width: 28px;
  height: 6px;
  background: #D0CEC9;
  border-radius: 2px;
}

.mb-hero-label {
  width: 50px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.mb-hero-title-1 {
  width: 90%;
  height: 18px;
  background: #1C1C1C;
  border-radius: 3px;
  margin-bottom: 8px;
}

.mb-hero-title-2 {
  width: 70%;
  height: 18px;
  background: #1C1C1C;
  border-radius: 3px;
  margin-bottom: 18px;
  opacity: 0.85;
}

.mb-hero-sub {
  width: 85%;
  height: 6px;
  background: #D0CEC9;
  border-radius: 2px;
  margin-bottom: 6px;
}

.mb-hero-sub2 {
  width: 65%;
  height: 6px;
  background: #D0CEC9;
  border-radius: 2px;
  margin-bottom: 24px;
}

.mb-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 1.5px solid #1C1C1C;
  border-radius: 1px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1C1C1C;
  font-family: 'Inter', sans-serif;
  margin-bottom: 28px;
}

.mb-divider {
  height: 1px;
  background: #E0DED9;
  margin-bottom: 18px;
}

.mb-works-label {
  width: 60px;
  height: 7px;
  background: #888;
  border-radius: 2px;
  margin-bottom: 14px;
}

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

.mb-work-card {
  aspect-ratio: 4/3;
  border-radius: 4px;
}

.mb-work-card:nth-child(1) {
  background: linear-gradient(135deg, #4A6FA5 0%, #2d4a7a 100%);
}

.mb-work-card:nth-child(2) {
  background: linear-gradient(135deg, #C0705A 0%, #8a4a38 100%);
}

.mb-work-card:nth-child(3) {
  background: linear-gradient(135deg, #6B8F71 0%, #3d5740 100%);
}

/* 浮かんでいるタグ */
.floating-tag {
  position: absolute;
  background: white;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.tag-1 {
  top: 18%;
  left: -5%;
}

.tag-2 {
  bottom: 22%;
  right: -4%;
}

.tag-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  left: 60px;
  bottom: -40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--muted));
}

.scroll-text {
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── WORKS SECTION ─────────────────── */
.works-section {
  padding: 120px 60px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.section-count {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

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

.work-card {
  cursor: pointer;
}

.work-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.work-thumb-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-card:hover .work-thumb-inner {
  transform: scale(1.04);
}

.wt-1 {
  background: url('../img/uchiko_moc.png') center center / cover no-repeat;
}

.wt-2 {
  background: url('../img/coffee_moc.png') center center / cover no-repeat;
}

.wt-3 {
  background: url('../img/cafe_moc.png') center center / cover no-repeat;
}

.wt-4 {
  background: url('../img/hamburger.jpg') center center / cover no-repeat;
}

.wt-5 {
  background: url('../img/hair_moc.png') center center / cover no-repeat;
  background-color: #D6CFC8;
}

/* ブランクカード */
.work-card--blank {
  cursor: default;
}

.work-thumb--blank {
  aspect-ratio: 4/3;
  border: 1.5px dashed var(--border);
  border-radius: 2px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blank-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--border);
}

.work-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.work-card:hover .work-thumb-overlay {
  background: rgba(0, 0, 0, 0.12);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.work-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
}

.work-category {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-year {
  font-size: 12px;
  color: var(--muted);
}

/* 内部のモックアップテキスト */
.wt-inner-text {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.wt-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  margin-bottom: 6px;
}

/* ── ABOUT STRIP ───────────────────── */
.about-strip {
  background: var(--text);
  color: var(--bg);
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 300;
  line-height: 1.2;
}

.about-heading em {
  font-style: italic;
  color: var(--accent);
  filter: brightness(1.6);
}

.about-body {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: #AAA;
  margin-bottom: 32px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 4px;
  transition: border-color 0.2s;
}

.about-link:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.service-btn:hover {
  opacity: 0.8;
}

.service-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  color: white;
}

.service-btn--cw {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-btn--cw span {
  background: #00a4e4;
}

.service-btn--coconala {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-btn--coconala span {
  background: #f5a623;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777;
}

/* ── FOOTER ────────────────────────── */
footer {
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── RESPONSIVE ────────────────────── */

/* デスクトップ最大幅 1720px */
.hero,
.works-section,
footer {
  max-width: 1720px;
  margin-left: auto;
  margin-right: auto;
}

/* about-stripは背景全幅、コンテンツのみ1720px以内に収める */
.about-strip {
  padding-left: max(60px, calc((100vw - 1720px) / 2 + 60px));
  padding-right: max(60px, calc((100vw - 1720px) / 2 + 60px));
}

/* ハンバーガーボタン（デスクトップでは非表示） */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* モバイルメニュー */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu ul li {
  margin: 28px 0;
}

.mobile-menu ul li a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.mobile-menu ul li a:hover {
  color: var(--accent);
}

/* ── TABLET (〜1024px) ─────────────── */
@media (max-width: 1024px) {
  nav {
    padding: 24px 40px;
  }

  .hero-left {
    padding: 60px 40px;
  }

  .works-section {
    padding: 80px 40px;
  }

  .about-strip {
    padding: 60px 40px;
    gap: 48px;
  }

  footer {
    padding: 36px 40px;
  }

  .scroll-indicator {
    left: 40px;
  }
}

/* ── MOBILE (〜768px) ──────────────── */
@media (max-width: 768px) {
  nav {
    padding: 20px 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero-left {
    padding: 48px 24px 80px;
  }

  .hero-right {
    display: none;
  }

  .hero-name {
    font-size: clamp(44px, 12vw, 72px);
  }

  .hero-tagline {
    max-width: 100%;
  }

  .scroll-indicator {
    left: 24px;
    bottom: 32px;
  }

  .scroll-indicator {
    display: none;
  }

  .works-section {
    padding: 64px 24px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .about-strip {
    grid-template-columns: 1fr;
    padding: 56px 24px;
    gap: 40px;
  }

  .about-heading {
    font-size: 36px;
  }

  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 32px 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* ── SMALL MOBILE (〜480px) ────────── */
@media (max-width: 480px) {
  .works-grid {
    grid-template-columns: 1fr;
  }

  .about-heading {
    font-size: 32px;
  }
}

/* ── LABEL BADGE ───────────────────── */
.design-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(28, 28, 28, 0.85);
  color: white;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  z-index: 200;
  text-transform: uppercase;
}