/* ================================================================
   Portfolio — Editorial Design
   Color: charcoal(#2d2d2d) / cream(#faf8f5) / navy(#1e3a5f) / gold(#c4a35a)
   Typography: Cormorant Garamond + Noto Serif JP + Noto Sans JP
   ================================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: #2d2d2d;
  background-color: #faf8f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

::selection {
  background: rgba(196, 163, 90, 0.2);
  color: #2d2d2d;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.font-editorial {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
}

.font-editorial-display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: 0.06em;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* --- Utility Classes --- */
.section-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c4a35a;
}

.editorial-line {
  height: 1px;
  background: linear-gradient(to right, #c4a35a, #e8e4de, transparent);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }
.fade-in-delay-7 { transition-delay: 0.7s; }
.fade-in-delay-8 { transition-delay: 0.8s; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s ease;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8e4de;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 640px) {
  .header-inner { height: 80px; }
}

.header-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.125rem;
  letter-spacing: 0.12em;
  color: #2d2d2d;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-nav { display: flex; }
}

@media (min-width: 1024px) {
  .header-nav { gap: 2.5rem; }
}

.header-nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #555;
  transition: color 0.3s;
}

.header-nav a:hover { color: #2d2d2d; }

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  width: 32px;
  height: 32px;
  gap: 6px;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn span {
  display: block;
  height: 1px;
  background: #2d2d2d;
  transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) { width: 24px; }
.mobile-menu-btn span:nth-child(2) { width: 16px; }
.mobile-menu-btn span:nth-child(3) { width: 24px; }

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: #2d2d2d;
  padding: 1rem 0;
  border-bottom: 1px solid #e8e4de;
  width: 100%;
  display: block;
  transform: translateX(-20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.mobile-menu.open a {
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.25s; }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(250,248,245,0.7), rgba(250,248,245,0.4), #faf8f5);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

@media (min-width: 640px) {
  .hero-content {
    padding-top: 10rem;
    padding-bottom: 7rem;
  }
}

.hero-content-inner {
  max-width: 720px;
}

.hero-title {
  font-size: 28px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #2d2d2d;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-title { font-size: 36px; line-height: 1.45; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 44px; }
}

.hero-title .accent { color: #1e3a5f; }

.hero-sub {
  font-size: 14px;
  line-height: 2;
  color: #666;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .hero-sub { font-size: 15px; margin-bottom: 3.5rem; }
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .hero-cta-group { margin-bottom: 5rem; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #2d2d2d;
  color: #faf8f5;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: background 0.4s;
}

.btn-primary:hover { background: #1e3a5f; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid #2d2d2d;
  color: #2d2d2d;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: all 0.4s;
}

.btn-outline:hover {
  background: #2d2d2d;
  color: #faf8f5;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e4de;
}

@media (min-width: 640px) {
  .hero-stats { gap: 3rem; }
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.hero-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 28px;
  color: rgba(196, 163, 90, 0.5);
  line-height: 1;
}

@media (min-width: 640px) {
  .hero-stat-value { font-size: 32px; }
}

.hero-stat-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #999;
}

/* Decorative number */
.hero-deco-number {
  display: none;
  position: absolute;
  right: 3rem;
  bottom: 9rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 140px;
  color: rgba(196, 163, 90, 0.08);
  line-height: 1;
  user-select: none;
}

@media (min-width: 1024px) {
  .hero-deco-number { display: block; }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #999;
  text-transform: uppercase;
}

.scroll-indicator-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, #c4a35a, transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.5; }
}

/* ================================================================
   WORKS SECTION
   ================================================================ */
.works-section {
  padding: 6rem 0;
}

@media (min-width: 640px) { .works-section { padding: 8rem 0; } }
@media (min-width: 1024px) { .works-section { padding: 10rem 0; } }

.section-header {
  margin-bottom: 4rem;
}

@media (min-width: 640px) { .section-header { margin-bottom: 5rem; } }

.section-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #2d2d2d;
  margin-bottom: 1rem;
}

@media (min-width: 640px) { .section-title { font-size: 30px; } }
@media (min-width: 1024px) { .section-title { font-size: 36px; } }

.section-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.9;
  max-width: 480px;
}

/* Category filter */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .category-filter { gap: 0.75rem; margin-bottom: 4rem; }
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #888;
  border: 1px solid #ddd;
  background: transparent;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: #2d2d2d;
  color: #2d2d2d;
}

.filter-btn.active {
  background: #2d2d2d;
  color: #faf8f5;
  border-color: #2d2d2d;
}

.filter-btn .count {
  margin-left: 0.375rem;
  font-size: 10px;
  opacity: 0.6;
}

/* Project cards */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

@media (min-width: 640px) { .projects-list { gap: 7rem; } }

.project-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .project-card {
    grid-template-columns: repeat(12, 1fr);
    gap: 2.5rem;
  }
}

.project-card .card-thumbnail {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .project-card .card-thumbnail { grid-column: span 7; }
  .project-card .card-info { grid-column: span 5; }
  .project-card.reverse .card-thumbnail { order: 2; }
  .project-card.reverse .card-info { order: 1; }
}

.card-thumbnail-inner {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
}

.card-thumbnail-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover .card-thumbnail-inner img {
  transform: scale(1.03);
}

.card-thumbnail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 95, 0);
  transition: background 0.5s;
}

.project-card:hover .card-thumbnail-overlay {
  background: rgba(30, 58, 95, 0.1);
}

.card-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #2d2d2d;
  text-transform: uppercase;
}

.card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
}

@media (min-width: 1024px) {
  .card-info { padding: 1.5rem 0; }
}

.card-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 48px;
  color: rgba(196, 163, 90, 0.15);
  line-height: 1;
  margin-bottom: 0.75rem;
  user-select: none;
}

@media (min-width: 640px) { .card-number { font-size: 56px; } }
@media (min-width: 1024px) { .card-number { font-size: 64px; } }

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-meta-category {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #c4a35a;
  text-transform: uppercase;
}

.card-meta-divider {
  width: 16px;
  height: 1px;
  background: #ddd;
}

.card-meta-industry {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #999;
}

.card-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #2d2d2d;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

@media (min-width: 640px) { .card-name { font-size: 20px; } }

.project-card:hover .card-name { color: #1e3a5f; }

.card-summary {
  font-size: 13px;
  line-height: 1.9;
  color: #777;
  margin-bottom: 1.25rem;
}

.card-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.card-scope-tag {
  padding: 0.125rem 0.5rem;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #999;
  border: 1px solid #e0e0e0;
}

.card-view-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #2d2d2d;
  transition: color 0.3s;
}

.project-card:hover .card-view-detail { color: #1e3a5f; }

.card-view-detail svg {
  transition: transform 0.3s;
}

.project-card:hover .card-view-detail svg {
  transform: translateX(4px);
}

/* ================================================================
   STRENGTH SECTION
   ================================================================ */
.strength-section {
  position: relative;
  padding: 6rem 0;
}

@media (min-width: 640px) { .strength-section { padding: 8rem 0; } }
@media (min-width: 1024px) { .strength-section { padding: 10rem 0; } }

.strength-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
}

.strength-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strength-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 245, 0.88);
}

.strength-content {
  position: relative;
  z-index: 10;
}

.strength-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 2.5rem;
}

@media (min-width: 768px) {
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .strength-grid { grid-template-columns: repeat(3, 1fr); gap: 3.5rem 2.5rem; }
}

.strength-item .strength-icon-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.strength-item .strength-icon {
  color: rgba(196, 163, 90, 0.5);
  transition: color 0.3s;
}

.strength-item:hover .strength-icon {
  color: #c4a35a;
}

.strength-item .strength-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 28px;
  color: rgba(196, 163, 90, 0.2);
  line-height: 1;
  user-select: none;
}

.strength-item h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #2d2d2d;
  margin-bottom: 1rem;
}

@media (min-width: 640px) { .strength-item h3 { font-size: 17px; } }

.strength-item .strength-line {
  width: 32px;
  height: 1px;
  background: rgba(196, 163, 90, 0.4);
  margin-bottom: 1rem;
}

.strength-item p {
  font-size: 13px;
  line-height: 2;
  color: #777;
}

/* Summary bar */
.strength-summary {
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e8e4de;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .strength-summary { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.strength-summary-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.strength-summary-item .label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #999;
  white-space: nowrap;
}

.strength-summary-item .line {
  flex: 1;
  height: 1px;
  background: #e8e4de;
}

.strength-summary-item .value {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 20px;
  color: rgba(196, 163, 90, 0.6);
  white-space: nowrap;
}

/* ================================================================
   STANCE SECTION
   ================================================================ */
.stance-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

@media (min-width: 640px) { .stance-section { padding: 8rem 0; } }
@media (min-width: 1024px) { .stance-section { padding: 10rem 0; } }

.stance-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.stance-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stance-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 245, 0.9);
}

.stance-content {
  position: relative;
  z-index: 10;
}

.stance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .stance-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 4rem;
  }
}

.stance-left {
  grid-column: 1;
}

@media (min-width: 1024px) {
  .stance-left { grid-column: span 4; }
}

.stance-right {
  grid-column: 1;
}

@media (min-width: 1024px) {
  .stance-right { grid-column: 6 / -1; }
}

.stance-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stance-text p {
  font-size: 14px;
  line-height: 2.1;
  color: #555;
}

@media (min-width: 640px) {
  .stance-text p { font-size: 15px; }
}

.stance-note {
  padding-top: 1rem;
  border-top: 1px solid #e8e4de;
}

.stance-note p {
  font-size: 13px;
  line-height: 2;
  color: #888;
}

.stance-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (min-width: 640px) {
  .stance-values { grid-template-columns: repeat(3, 1fr); }
}

.stance-value-item .value-line {
  width: 24px;
  height: 1px;
  background: #c4a35a;
  margin-bottom: 1rem;
}

.stance-value-item h4 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #2d2d2d;
  margin-bottom: 0.5rem;
}

.stance-value-item p {
  font-size: 12px;
  color: #999;
  line-height: 1.8;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

@media (min-width: 640px) { .cta-section { padding: 8rem 0; } }
@media (min-width: 1024px) { .cta-section { padding: 10rem 0; } }

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.75);
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) { .cta-title { font-size: 28px; } }
@media (min-width: 1024px) { .cta-title { font-size: 34px; } }

.cta-line {
  width: 40px;
  height: 1px;
  background: #c4a35a;
  margin: 0 auto 2rem;
}

.cta-desc {
  font-size: 14px;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
}

.cta-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.cta-tag {
  padding: 0.375rem 0.75rem;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #fff;
  color: #2d2d2d;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: all 0.4s;
}

.btn-cta:hover {
  background: #c4a35a;
  color: #fff;
}

.cta-note {
  margin-top: 2rem;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid #e8e4de;
}

@media (min-width: 640px) { .site-footer { padding: 4rem 0; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-brand .footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.125rem;
  letter-spacing: 0.12em;
  color: #2d2d2d;
}

.footer-brand p {
  font-size: 12px;
  color: #999;
  margin-top: 0.75rem;
  line-height: 1.9;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #c4a35a;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col ul li,
.footer-col ul li a {
  font-size: 12px;
  color: #888;
  transition: color 0.3s;
}

.footer-col ul li a:hover { color: #2d2d2d; }

.footer-copyright {
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: #bbb;
  letter-spacing: 0.04em;
}

/* ================================================================
   MODAL
   ================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 896px;
  margin: 2rem 1rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  background: #faf8f5;
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.4s ease 0.05s;
}

@media (min-width: 640px) {
  .modal-container { margin: 3rem 1rem; }
}

.modal-backdrop.open .modal-container {
  transform: translateY(0);
  opacity: 1;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 20;
  margin: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.3s;
}

@media (min-width: 640px) { .modal-close { margin: 1.5rem; } }

.modal-close:hover { background: #eee; }

.modal-hero {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 2.5rem 1.5rem;
}

@media (min-width: 640px) { .modal-body { padding: 3.5rem 2.5rem; } }
@media (min-width: 1024px) { .modal-body { padding: 3.5rem; } }

.modal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.modal-meta .meta-category {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #c4a35a;
  text-transform: uppercase;
}

.modal-meta .meta-divider {
  width: 16px;
  height: 1px;
  background: #ddd;
}

.modal-meta .meta-industry {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #999;
}

.modal-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #2d2d2d;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) { .modal-title { font-size: 28px; } }

.modal-summary {
  font-size: 14px;
  color: #777;
  margin-bottom: 2rem;
}

.modal-url {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8e4de;
}

.modal-url a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #1e3a5f;
  transition: color 0.3s;
}

.modal-url a:hover { color: #c4a35a; }

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.detail-block .detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.detail-block .detail-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 20px;
  color: rgba(196, 163, 90, 0.3);
  line-height: 1;
  user-select: none;
}

.detail-block .detail-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #2d2d2d;
}

.detail-block .detail-text {
  font-size: 13px;
  line-height: 2;
  color: #666;
  padding-left: 0;
}

@media (min-width: 640px) {
  .detail-block .detail-text { padding-left: 2.25rem; }
}

.modal-scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-scope-tag {
  padding: 0.375rem 0.75rem;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #666;
  border: 1px solid #ddd;
  background: #faf8f5;
}

.modal-bottom-cta {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e4de;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .modal-bottom-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.modal-bottom-cta p {
  font-size: 13px;
  color: #999;
}

.modal-bottom-cta .btn-modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #2d2d2d;
  color: #faf8f5;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: background 0.4s;
}

.modal-bottom-cta .btn-modal-cta:hover { background: #1e3a5f; }

/* CTA Contact Links */
.cta-contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-bottom: 1rem;
}

.cta-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
  text-decoration: none;
}

.cta-contact-item:hover {
  color: #c4a35a;
}

.cta-contact-item svg {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.cta-contact-item:hover svg {
  opacity: 1;
}

/* Footer Contact Links */
.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-contact-links > a {
  font-size: 12px;
  color: #888;
  transition: color 0.3s;
  text-decoration: none;
}

.footer-contact-links > a:hover {
  color: #2d2d2d;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.375rem;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 12px;
  color: #888;
  transition: color 0.3s;
  text-decoration: none;
}

.footer-social-links a:hover {
  color: #2d2d2d;
}

.footer-social-links a svg {
  flex-shrink: 0;
}

/* Body scroll lock */
body.modal-open {
  overflow: hidden;
}


/* ============================================================
   追加スタイル：制作依頼ページへの導線（2026-05-08追加）
   ============================================================ */

/* CTA ボタンを複数並べるためのラッパー */
.fade-in.fade-in-delay-5 {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* 「制作プランを見る」ボタン（btn-cta-plan）アウトラインスタイル */
.btn-cta.btn-cta-plan {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.btn-cta.btn-cta-plan:hover {
  background: #c4a35a;
  color: #fff;
  border-color: #c4a35a;
}

/* ヘッダーナビの「制作依頼」リンク - ゴールド色で目立たせる */
.header-nav a[href*="web-production"] {
  color: #c4a35a;
}

/* モバイルメニューの制作依頼リンク */
.mobile-menu a[href*="web-production"] {
  color: #c4a35a;
}

/* フッターの「ホームページ制作」リンク */
.footer-col a[href*="web-production"] {
  color: inherit;
  text-decoration: none;
}
.footer-col a[href*="web-production"]:hover {
  color: #c4a35a;
}
