:root{
  --bg: #f6efdf;
  --surface: #fbf6ea;
  --ink: #3b302b;
  --muted: #6b5b53;
  --brand: #6b3f2d;
  --accent: #ff8a3d;
  --border: rgba(107, 63, 45, .75);
  --shadow: 0 16px 40px rgba(0,0,0,.08);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.12);
  --radius: 14px;
  --radius-lg: 22px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans";
  --transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html{ 
  scroll-behavior:smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 100px; /* ヘッダー分の余白を確保 */
}

body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height:1.6;
  overflow-x: hidden;
}

img{ 
  max-width:100%; 
  height:auto; 
  display:block;
}

.container{ 
  width:min(1100px, calc(100% - 40px)); 
  margin:0 auto;
  padding: 0 20px;
}

/* Skip Link */
.skip-link{ 
  position:absolute; 
  left:-999px; 
  top:auto; 
  width:1px; 
  height:1px; 
  overflow:hidden;
}

.skip-link:focus{
  left:16px; 
  top:12px; 
  width:auto; 
  height:auto;
  padding:12px 18px; 
  background:var(--surface);
  border:1px solid var(--border); 
  border-radius:12px; 
  z-index:999;
  font-weight: 600;
}

/* Header */
.site-header{
  position:sticky; 
  top:0; 
  z-index:50;
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 63, 45, .08);
  transition: var(--transition-fast);
}

.header-inner{ 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  padding: 18px 0;
  gap: 20px;
}

.brand{
  transition: var(--transition-fast);
}

.brand:hover{
  transform: scale(1.02);
}

.brand img{ 
  width: 220px;
  height: auto;
}

.top-link{ 
  color: var(--muted); 
  text-decoration:none; 
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.top-link:hover{ 
  background: rgba(107, 63, 45, .06);
  color: var(--brand);
}

/* Hero Section */
.hero{ 
  padding: 60px 0 40px;
  position: relative;
}

.hero-grid{ 
  display:grid; 
  grid-template-columns: 1.05fr .95fr; 
  gap: 48px; 
  align-items:center;
}

.hero-title{
  margin:0 0 20px;
  font-family: var(--serif);
  color: var(--brand);
  font-size: clamp(40px, 5.5vw, 68px);
  line-height:1.08;
  font-weight: 600;
}

.hero-title span{ 
  display:block;
}

.hero-title-sub{ 
  margin-top:12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lede{ 
  margin:0 0 28px; 
  color: var(--muted); 
  font-size: 17px; 
  max-width: 56ch;
  line-height: 1.7;
}

.hero-cta{ 
  display:flex; 
  gap: 16px; 
  flex-wrap:wrap;
}

.hero-media{ 
  display:flex; 
  justify-content:flex-end;
}

.hero-media-shape{
  width: min(440px, 100%);
  border-radius: 16px; /* 12〜22くらいで好み */
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: white;
  transition: var(--transition);
  transform-origin: center;

  /* A stable “hero frame” */
  aspect-ratio: 4 / 5;
  max-height: 640px;
  position: relative;
}

.hero-media-shape img{ 
  width:100%; 
  height:100%; 
  object-fit: cover;
  object-position: 50% 35%;
}

.hero-media-shape::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.00) 55%);
  pointer-events:none;
}

.hero-media-shape:hover{
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 28px 70px rgba(0,0,0,.15);
}

.hero-media-shape img{ 
  width:100%; 
  height:100%; 
  object-fit: cover;
}

/* Buttons */
.btn{
  display:inline-flex; 
  align-items:center; 
  justify-content:center;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration:none;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before{
  width: 300px;
  height: 300px;
}

.btn:active{ 
  transform: translateY(1px) scale(0.98);
}

.btn-primary{ 
  background: var(--brand); 
  color: #fff; 
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(107, 63, 45, .25);
}

.btn-primary:hover{ 
  background: color-mix(in srgb, var(--brand) 90%, black 10%);
  box-shadow: 0 6px 20px rgba(107, 63, 45, .35);
  transform: translateY(-2px);
}

.btn-secondary{ 
  background: transparent; 
  color: var(--brand); 
  border-color: var(--border);
}

.btn-secondary:hover{ 
  background: rgba(107,63,45,.08);
  border-color: var(--brand);
}

.btn-outline{ 
  background: transparent; 
  color: var(--accent); 
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border) 40%);
}

.btn-outline:hover{ 
  background: rgba(255, 138, 61, .1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-cta{ 
  background: rgba(255,255,255,.12); 
  color: #fff; 
  border-color: rgba(255,255,255,.3); 
  white-space:nowrap;
  backdrop-filter: blur(10px);
}

.btn-cta:hover{ 
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
}

.btn.wide{ 
  margin-top: 16px;
  min-width: 240px;
}

/* Sections */
.section{ 
  padding: 80px 0;
  scroll-margin-top: 100px; /* アンカーリンク時のオフセット */
}

.section-title{
  margin:0 0 16px;
  font-family: var(--serif);
  color: var(--brand);
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.15;
  font-weight: 600;
}

.section-intro{ 
  margin:0 0 32px; 
  color: var(--muted); 
  max-width: 90ch;
  font-size: 16px;
  line-height: 1.7;
}

/* Feature Cards */
.card-row{ 
  display:grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 20px; 
  margin: 32px 0 40px;
}

.feature-card{ 
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 26px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(107, 63, 45, .02) 0%, rgba(255, 138, 61, .02) 100%);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.feature-card:hover::before{
  opacity: 1;
}

.feature-icon{
  width: 52px; 
  height: 52px; 
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 85%, var(--accent) 15%) 100%);
  color: #fff;
  display:grid; 
  place-items:center; 
  margin-bottom: 16px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(107, 63, 45, .2);
}

.feature-card:hover .feature-icon{
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 18px rgba(107, 63, 45, .3);
}

.feature-icon svg{ 
  width: 24px; 
  height: 24px;
}

.feature-card h3{ 
  margin: 0 0 12px; 
  font-family: var(--serif); 
  color: var(--brand); 
  font-size: 23px;
  line-height: 1.3;
}

.feature-card p{ 
  margin:0; 
  color: var(--muted); 
  font-size: 15px;
  line-height: 1.6;
}

/* Split Layout */
.split{ 
  display:grid; 
  grid-template-columns: 1fr 1.2fr; 
  gap: 40px; 
  align-items:center;
  margin-top: 48px;
}

.split-title{ 
  margin:0 0 16px; 
  font-family: var(--serif); 
  color: var(--brand); 
  font-size: 32px;
  font-weight: 600;
}

.industry-list{ 
  margin:0; 
  padding-left: 24px; 
  color: var(--muted);
  list-style: none;
}

.industry-list li{ 
  margin: 16px 0;
  padding-left: 8px;
  position: relative;
  line-height: 1.6;
}

.industry-list li::before{
  content: '→';
  position: absolute;
  left: -20px;
  color: var(--accent);
  font-weight: bold;
}

.image-card{ 
  background: var(--surface); 
  border-radius: var(--radius-lg); 
  overflow:hidden; 
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.image-card:hover{
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.image-card img{ 
  width:100%; 
  height: 360px; 
  object-fit: cover;
}

/* Subhead */
.subhead-title{ 
  margin: 0 0 10px; 
  font-family: var(--serif); 
  color: var(--brand); 
  font-size: 30px;
  font-weight: 600;
}

.subhead-note{ 
  margin:0 0 24px; 
  color: var(--muted); 
  max-width: 90ch;
  line-height: 1.7;
}

/* Selected Work Snapshots — light carousel (desktop + mobile) */
.snapshot-grid{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 20px;
  margin-top: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 14px;
  margin-left: -4px;
  margin-right: -4px;
}

.snapshot-grid::-webkit-scrollbar{ display: none; }
.snapshot-grid{ scrollbar-width: none; }

.snapshot{ 
  padding: 16px 4px;
  transition: var(--transition);
  border-radius: 12px;
  scroll-snap-align: start;
}

.snapshot:hover{
  transform: translateX(8px);
  background: rgba(107, 63, 45, .02);
}

.dot{ 
  width: 8px; 
  height: 8px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, var(--brand) 30%) 100%);
  margin-bottom: 14px;
  box-shadow: 0 0 0 4px rgba(255, 138, 61, .15);
  transition: var(--transition);
}

.snapshot:hover .dot{
  transform: scale(1.3);
  box-shadow: 0 0 0 8px rgba(255, 138, 61, .2);
}

.snapshot h4{ 
  margin: 0 0 10px; 
  font-family: var(--serif); 
  color: var(--brand); 
  font-size: 23px;
  line-height: 1.3;
}

.snapshot p{ 
  margin:0; 
  color: var(--muted); 
  font-size: 15px;
  line-height: 1.6;
}

/* Team Section */
.section-team .team-placeholder{
  background: color-mix(in srgb, var(--surface) 86%, white 14%);
  border: 2px dashed rgba(107,63,45,.25);
  border-radius: var(--radius);
  padding: 20px;
  margin: 18px 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.divider{ 
  border:0; 
  border-top: 2px solid rgba(107,63,45,.15); 
  margin: 48px 0;
}

/* Tips */
.tips-title{ 
  margin: 0 0 12px; 
  font-family: var(--serif); 
  color: var(--brand); 
  font-size: 32px;
  font-weight: 600;
}

.tips-intro{ 
  margin:0 0 24px; 
  color: var(--muted); 
  max-width: 95ch;
  line-height: 1.7;
}

.tips-grid{ 
  display:grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 20px;
  margin-top: 32px;
}

.tip{ 
  background: color-mix(in srgb, var(--surface) 92%, white 8%); 
  border: 1px solid rgba(107,63,45,.15); 
  border-radius: var(--radius); 
  padding: 24px; 
  min-height: 180px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tip::before{
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 138, 61, .08) 0%, transparent 70%);
  transform: translate(30%, -30%);
  transition: var(--transition);
}

.tip:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.tip:hover::before{
  transform: translate(20%, -20%) scale(1.5);
}

.tip-num{ 
  font-family: var(--serif); 
  color: var(--accent); 
  font-size: 20px; 
  margin-bottom: 12px;
  font-weight: 600;
}

.tip h4{ 
  margin: 0 0 10px; 
  font-family: var(--serif); 
  color: var(--brand); 
  font-size: 23px;
  line-height: 1.3;
}

.tip p{ 
  margin:0; 
  color: var(--muted); 
  font-size: 15px;
  line-height: 1.6;
}

/* Footer CTA */
.footer-cta{ 
  background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 85%, black 15%) 100%);
  color: rgba(255,255,255,.95); 
  padding: 48px 0; 
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.footer-cta::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,.05)"/></svg>');
  opacity: 0.5;
}

.footer-cta-inner{ 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap: 32px;
  position: relative;
  z-index: 1;
}

.footer-cta-left{ 
  display:flex; 
  align-items:flex-start; 
  gap: 20px; 
  max-width: 70ch;
}

.footer-cta-icon{
  width: 50px; 
  height: 50px; 
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  display:grid; 
  place-items:center; 
  flex: 0 0 auto;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.footer-cta-icon:hover{
  transform: rotate(5deg) scale(1.05);
  background: rgba(255,255,255,.2);
}

.footer-cta-icon svg{ 
  width: 24px; 
  height: 24px; 
  color: #fff;
}

.footer-cta h3{ 
  margin: 0 0 10px; 
  font-family: var(--serif); 
  font-size: 24px; 
  color: #fff;
  font-weight: 600;
}

.footer-cta p{ 
  margin: 0; 
  font-size: 15px; 
  color: rgba(255,255,255,.9);
  line-height: 1.6;
}

/* Site Footer */
.site-footer{ 
  padding: 48px 0 60px;
  background: color-mix(in srgb, var(--bg) 95%, var(--brand) 5%);
}

.footer-grid{ 
  display:grid; 
  grid-template-columns: 1.1fr 1fr .8fr; 
  gap: 32px; 
  align-items:start;
}

.footer-col h4{ 
  margin: 0 0 16px; 
  font-family: var(--serif); 
  color: var(--brand); 
  font-size: 23px;
  font-weight: 600;
}

.footer-col p{ 
  margin: 10px 0; 
  color: var(--muted); 
  font-size: 15px;
  line-height: 1.6;
}

.footer-col a{ 
  color: var(--muted);
  transition: var(--transition-fast);
}

.footer-col a:hover{ 
  color: var(--brand);
  text-decoration: underline;
}

.footer-col-right{ 
  display:flex; 
  justify-content:flex-end; 
  padding-top: 6px;
}

/* Fade-in Animation */
.fade-in{
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Hero specific animation */
.hero .fade-in{
  animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes heroFadeIn{
  from{
    opacity: 0;
    transform: translateY(40px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design - Mobile First */
@media (max-width: 980px){
  .container{
    width: calc(100% - 32px);
    padding: 0 16px;
  }
  
  .hero{ 
    padding: 40px 0 30px;
  }
  
  .hero-grid{ 
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero-media{ 
    justify-content:center;
  }
  
  .hero-media-shape{ 
    width: min(100%, 420px);
  }
  
  .hero-title{
    font-size: clamp(36px, 8vw, 52px);
  }
  
  .hero-lede{
    font-size: 16px;
  }
  
  .hero-cta{
    flex-direction: column;
  }
  
  .hero-cta .btn{
    width: 100%;
    justify-content: center;
  }
  
  .section{
    padding: 50px 0;
  }
  
  .card-row{ 
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .split{ 
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .split-media{
    order: -1;
  }
  
  .snapshot-grid{ 
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .tips-grid{ 
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .tip{
    min-height: auto;
  }
  
  .footer-cta{
    padding: 36px 0;
  }
  
  .footer-cta-inner{ 
    flex-direction: column; 
    align-items:flex-start;
    gap: 24px;
  }
  
  .footer-cta-left{
    flex-direction: column;
    gap: 16px;
  }
  
  .footer-grid{ 
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-col-right{ 
    justify-content:flex-start;
  }
  
  .btn{
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .brand img{
    width: 180px;
  }
  
  .header-inner{
    padding: 14px 0;
  }
}

@media (max-width: 640px){
  .section-title{
    font-size: clamp(28px, 7vw, 38px);
  }
  
  .image-card img{
    height: 240px;
  }
  
  .feature-card,
  .tip,
  .snapshot{
    padding: 20px;
  }
  
  .hero-title{
    margin-bottom: 16px;
  }
  
  .hero-lede{
    margin-bottom: 20px;
  }
}

/* Smooth scrolling for all browsers */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn{
    border-width: 3px;
  }
}

/* Print styles */
@media print {
  .site-header,
  .footer-cta,
  .btn{
    display: none;
  }
  
  .section{
    page-break-inside: avoid;
  }
}

/* ------------------------------------------------------------
   What We Do
------------------------------------------------------------ */
.section-what{
  padding-top: 64px;
  padding-bottom: 64px;
}

.what-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.what-card{
  background: color-mix(in srgb, var(--surface) 92%, white 8%);
  border: 1px solid rgba(107,63,45,.15);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition-fast);
}

.what-card:hover{
  transform: translateY(-4px);
  background: white;
  box-shadow: var(--shadow);
}

.what-card h3{
  margin: 0 0 10px;
  font-family: var(--serif);
  color: var(--brand);
  font-size: 22px;
  line-height: 1.25;
}

.what-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.what-link{
  margin-top: 22px;
}

.inline-link{
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.inline-link:hover{
  color: color-mix(in srgb, var(--brand) 70%, black 30%);
}

@media (max-width: 860px){
  .what-grid{
    grid-template-columns: 1fr;
  }
}



/* ------------------------------------------------------------
   Meet the Japan Team — featured block
------------------------------------------------------------ */
.team-feature{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 78%, black 22%) 100%);
  box-shadow: var(--shadow);
}

.team-media{
  min-height: 360px;
}

.team-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: .94;
}

.team-copy{
  padding: 44px 42px;
  color: rgba(255,255,255,.92);
}

.team-copy .section-title{
  color: #fff;
  margin-bottom: 12px;
}

.team-tagline{
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255,255,255,.78);
}

.team-copy .section-intro{
  color: rgba(255,255,255,.84);
  margin-bottom: 0;
}

.team-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.team-fineprint{
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255,255,255,.74);
}

.team-fineprint a{
  color: rgba(255,255,255,.92);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px){
  .team-feature{
    grid-template-columns: 1fr;
  }
  .team-media{
    min-height: 260px;
    max-height: 360px;
  }
  .team-copy{
    padding: 34px 24px;
  }
}


/* ------------------------------------------------------------
   Contact — two-panel form (with gentle “no pressure” tone)
------------------------------------------------------------ */
.section-contact{
  padding-top: 70px;
  padding-bottom: 70px;
}

.contact-shell{
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-left{
  position: relative;
  padding: 46px 42px;
  color: rgba(255,255,255,.96);

  /* Warm, image-like panel using layered gradients (keeps a calm, non-SaaS feel). */
  background:
    radial-gradient(900px 500px at 10% 20%, rgba(255,255,255,.22), rgba(255,255,255,0) 55%),
    radial-gradient(700px 420px at 70% 20%, rgba(255,255,255,.14), rgba(255,255,255,0) 60%),
    radial-gradient(520px 520px at 35% 85%, rgba(255,255,255,.10), rgba(255,255,255,0) 60%),
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 92%, white 8%) 0%,
      color-mix(in srgb, var(--accent) 70%, var(--brand) 30%) 100%
    );
}

.contact-left::before{
  content:"";
  position:absolute;
  inset:-40px auto auto -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  filter: blur(2px);
}

.contact-kicker{
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: .03em;
  opacity: .92;
}

.contact-title{
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  color: #fff;
}

.contact-lede{
  margin: 0 0 24px;
  max-width: 34ch;
  color: rgba(255,255,255,.92);
  line-height: 1.7;
}

.contact-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 28px;
}

.contact-meta a{
  color: rgba(255,255,255,.95);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-right{
  padding: 46px 42px;
  color: rgba(255,255,255,.92);
  background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 80%, black 20%) 100%);
}

.contact-form{
  display: grid;
  gap: 14px;
}

.field label{
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(255,255,255,.82);
}

.field input,
.field select,
.field textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.95);
  outline: none;
  transition: var(--transition-fast);
}

.field textarea{
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder{
  color: rgba(255,255,255,.62);
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(255,138,61,.75);
  box-shadow: 0 0 0 4px rgba(255,138,61,.18);
}

.contact-submit{
  width: 100%;
  margin-top: 6px;
  padding: 14px 20px;
  border-radius: 14px;
}

.form-note{
  margin-top: 14px;
  margin-bottom: 0;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  line-height: 1.6;
}

.form-status{
  margin: 10px 0 0;
  font-size: 13px;
  min-height: 18px;
  color: rgba(255,255,255,.80);
}

.form-status.is-success{
  color: rgba(255,255,255,.92);
}

.form-status.is-error{
  color: rgba(255,255,255,.92);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px){
  .contact-shell{
    grid-template-columns: 1fr;
  }
  .contact-left,
  .contact-right{
    padding: 34px 24px;
  }
  .contact-lede{
    max-width: none;
  }
}


/* ------------------------------------------------------------
   Tips — center 4 & 5 on desktop for visual balance
------------------------------------------------------------ */
@media (min-width: 960px){
  .tips-grid{
    grid-template-columns: repeat(6, 1fr);
  }
  .tips-grid .tip{
    grid-column: span 2;
  }
  .tips-grid .tip:nth-child(4){
    grid-column: 2 / span 2;
  }
  .tips-grid .tip:nth-child(5){
    grid-column: 4 / span 2;
  }
}

/* select 本体（閉じているとき） */
.field select {
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.06);
}

/* ドロップダウンの中身 - より強力なセレクタで確実に適用 */
.field select option,
.contact-form select option,
select#topic option {
  color: #2f1b12 !important;        /* 濃いブラウン - 読みやすい */
  background-color: #ffffff !important;
}

/* デフォルト選択肢（Please select）も見えるように */
.field select option[disabled],
.contact-form select option[disabled] {
  color: #999999 !important;
  background-color: #f5f5f5 !important;
}

/* =========================
   Selected Work Snapshots Carousel
   ========================= */

.snapshot-carousel{
  position: relative;
  margin-top: 14px;
  padding: 0 30px; /* ボタン用のスペースを確保 */
}

.snapshots-viewport{
  overflow-x: scroll;
  overflow-y: hidden;
  border-radius: 16px;
  position: relative;
  scroll-behavior: smooth;
}

/* Hide scrollbar completely to force button/dot navigation */
.snapshots-viewport::-webkit-scrollbar{
  display: none;
}
.snapshots-viewport{
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.snapshots-track{
  display: flex;
  gap: 18px;
  padding: 18px 6px 10px;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.snapshots-track.is-dragging{ cursor: grabbing; }

.section-perspective .snapshot{
  flex: 0 0 min(420px, 78vw);
  scroll-snap-align: start;
  border: 1px solid rgba(107, 63, 45, .15);
  border-radius: 14px;
  padding: 24px;
  background: var(--surface);
  backdrop-filter: blur(4px);
  transition: var(--transition);
  cursor: pointer;
}

.section-perspective .snapshot:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(107, 63, 45, .3);
  background: rgba(251, 246, 234, 1);
}

.snapshots-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid rgba(107, 63, 45, .6);
  background: var(--surface);
  color: var(--brand);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  font-size: 28px;
  font-weight: bold;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.snapshots-nav:hover:not(:disabled){
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 18px rgba(107, 63, 45, .25);
}

.snapshots-nav.prev{ left: -20px; }
.snapshots-nav.next{ right: -20px; }

.snapshots-nav:disabled{
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.snapshots-dots{
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  padding: 8px;
}

.snapshots-dots button{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: rgba(107, 63, 45, .2);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.snapshots-dots button:hover{
  background: rgba(107, 63, 45, .4);
  transform: scale(1.3);
}

.snapshots-dots button[aria-current="true"]{
  background: var(--brand);
  width: 32px;
  border-radius: 6px;
}

@media (max-width: 520px){
  .snapshots-nav{ 
    width: 40px; 
    height: 40px;
    font-size: 22px;
    background: rgba(251, 246, 234, 0.95);
  }
  .snapshots-nav.prev{ left: -16px; }
  .snapshots-nav.next{ right: -16px; }
  
  .snapshots-dots{
    margin-top: 20px;
    gap: 10px;
  }
  
  .snapshots-dots button{
    width: 10px;
    height: 10px;
  }
  
  .snapshots-dots button[aria-current=\"true\"]{
    width: 28px;
  }
  .section-perspective .snapshot{ flex-basis: 86vw; }
}

@media (prefers-reduced-motion: reduce){
  .snapshots-track{ scroll-behavior: auto; }
}

/* Right footer column: force vertical stacking */
.footer-col-right {
  display: flex;
  justify-content: flex-end; /* optional: keeps it pushed to the right if grid is flex */
}

.footer-brand {
  display: flex;
  flex-direction: column;   /* ←縦積みの決定打 */
  align-items: flex-start;  /* 左揃え（右揃えにしたければ flex-end） */
  gap: 8px;
}

.footer-logo {
  display: block;
  max-width: 180px;
  height: auto;
}

.footer-unit {
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand); /* 茶色 #6b3f2d */
}

.footer-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--brand);
}

.footer-email {
  text-decoration: underline;
}
