/* =========================================================
   TUMUGI - Minecraft Virtual Space Creation Service
   Complete Final CSS with all updates
   =======================================================*/

:root{
  --bg: #0f1115;
  --surface: #141821;
  --surface-2: #191e28;
  --text: #e8ecf2;
  --muted: #a8b2c3;
  --line: #262c38;
  --brand: #5ac8fa;
  --brand-2: #4f7cff;
  --ok: #39d98a;
  --warn: #f7b955;
  --danger: #ff6b6b;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;

  --shadow-1: 0 10px 30px rgba(0,0,0,.25);
  --shadow-2: 0 6px 16px rgba(0,0,0,.18);

  --max: 1120px;
  --gap: 28px;
  --gap-lg: 48px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh: 1.8;
}

/* ===== Base Styles ===== */
html,body{
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, -apple-system, sans-serif;
  line-height: var(--lh);
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: var(--fw-regular);
}

img{max-width:100%;height:auto;display:block;}
a{color:var(--brand);text-decoration:none;transition: color .3s ease;}
a:hover{color: color-mix(in oklab, var(--brand) 80%, #fff);}
p{color:var(--text);opacity:.92;}
h1,h2,h3,h4{font-weight:var(--fw-bold);line-height:1.35;letter-spacing:.01em;margin:0 0 .6em}
h1{font-size: clamp(32px, 4.5vw, 48px); font-weight: var(--fw-bold);}
h2{font-size: clamp(26px, 3.5vw, 36px); font-weight: var(--fw-bold);}
h3{font-size: clamp(20px, 2.5vw, 24px); font-weight: var(--fw-semibold);}
h4{font-size: clamp(15px, 1.8vw, 18px); font-weight: var(--fw-medium);}

/* ===== Layout ===== */
.wrapper{overflow-x:hidden;position:relative;}
.inner {
  width: min(90vw, 900px);
  margin: 0 auto;
}
.article-wrap{padding: clamp(48px, 6vw, 88px) 0;border-top:1px solid var(--line);background: transparent;}
.article-wrap:first-of-type{border-top:none;}
.gray{color:var(--muted);}
.orange{color:var(--warn);}
.sp-br{display:none;}

/* ===== Hero Title Section (ヘッダーの代わり) ===== */
.hero-title {
  background: linear-gradient(135deg, 
    color-mix(in oklab, var(--brand) 8%, var(--bg)) 0%,
    color-mix(in oklab, var(--brand-2) 5%, var(--surface)) 100%
  );
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 60px);
  text-align: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.08), transparent),
    radial-gradient(2px 2px at 60px 70px, rgba(90,200,250,0.06), transparent);
  background-repeat: repeat;
  background-size: 100px 100px;
  animation: pixelFloat 20s infinite linear;
  pointer-events: none;
}

@keyframes pixelFloat {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-200px, -200px); }
}

.hero-title-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero-title h1 {
  font-size: clamp(2px, 3.5vw, 36px);
  font-weight: var(--fw-bold);
  color: #fff;
  text-shadow: 
    2px 2px 8px rgba(0,0,0,0.5),
    0 0 30px rgba(90, 200, 250, 0.2);
  margin-bottom: 24px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  position: relative;
  display: inline-block;
  padding: 0 20px;
}

.hero-title h1::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: linear-gradient(180deg, transparent, var(--brand), transparent);
  border-radius: 2px;
}

.hero-title h1::after {
  content: '';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: linear-gradient(180deg, transparent, var(--brand), transparent);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255, 255, 255, 0.95);
  font-weight: var(--fw-medium);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
  margin: 0;
  padding: 8px 24px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(90, 200, 250, 0.1) 20%,
    rgba(90, 200, 250, 0.1) 80%,
    transparent
  );
  border-radius: 999px;
  display: inline-block;
}

/* ===== First View (Video Background + Image Only) ===== */
.fv{
  position:relative;
  isolation:isolate;
  padding: clamp(40px, 6vw, 60px) 0;
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video Background Layer */
.fv-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.fv-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Semi-transparent Overlay with mosaic effect */
.fv::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, 
      rgba(15, 17, 21, 0.92) 0%,
      rgba(20, 24, 33, 0.88) 40%,
      rgba(90, 200, 250, 0.25) 70%,
      rgba(79, 124, 255, 0.3) 100%
    );
  z-index: -1;
  backdrop-filter: blur(2px);
}

/* Mosaic pixel overlay effect */
.fv-video-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(0deg, 
      transparent, 
      transparent 3px, 
      rgba(0,0,0,0.15) 3px, 
      rgba(0,0,0,0.15) 6px
    ),
    repeating-linear-gradient(90deg, 
      transparent, 
      transparent 3px, 
      rgba(0,0,0,0.15) 3px, 
      rgba(0,0,0,0.15) 6px
    );
  mix-blend-mode: multiply;
  opacity: 0.4;
  pointer-events: none;
}

.fv-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.fv img{
  width: min(85vw, 780px);
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 0 auto;
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.4),
    0 0 40px rgba(90, 200, 250, 0.2);
  border: 2px solid rgba(90, 200, 250, 0.3);
}

/* ===== Parallax Animation Classes ===== */
.parallax-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.parallax-fade.active {
  opacity: 1;
  transform: translateY(0);
}

.parallax-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.parallax-fade-left.active {
  opacity: 1;
  transform: translateX(0);
}

.parallax-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.parallax-fade-right.active {
  opacity: 1;
  transform: translateX(0);
}

.parallax-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.parallax-scale.active {
  opacity: 1;
  transform: scale(1);
}

.parallax-rotate {
  opacity: 0;
  transform: translateY(20px) rotate(-2deg);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.parallax-rotate.active {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* Stagger Animation Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===== Intro (top-p) ===== */
.top-p{display:grid;gap:24px;}
.top-p h2{
  display:inline-block;
  padding-bottom:10px;
  border-bottom:3px solid var(--brand);
}

/* ===== Merit ===== */
.merit{margin-top: clamp(18px, 3vw, 32px);}
.merit > h3{
  font-weight:var(--fw-semibold);
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.12em;
}
.merit-flex{
  margin-top:20px;
  display:grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.merit-flex section{
  background: linear-gradient(180deg,var(--surface),var(--surface-2));
  border:1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-2);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.merit-flex section:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-1);
  border-color: color-mix(in oklab, var(--brand) 40%, var(--line));
}
.merit-flex h4{color:#fff;margin-bottom:.5em;}
.merit-flex p{color:var(--muted);line-height:1.7;}
@media (min-width: 900px){
  .merit-flex{grid-template-columns: repeat(3, 1fr);}
}

/* ===== Projects ===== */
.article-wrap:has(> h2){padding-top: clamp(24px, 5vw, 60px);}
.article-wrap > h2{
  text-align:center;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-size: clamp(26px, 3.5vw, 34px);
  letter-spacing:.08em;
  position: relative;
  display: inline-block;
  width: 100%;
  background: linear-gradient(135deg, #fff, rgba(90, 200, 250, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-wrap > h2::before,
.article-wrap > h2::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.article-wrap > h2::before {
  left: calc(50% - 180px);
}

.article-wrap > h2::after {
  right: calc(50% - 180px);
}

.project-flex{
  display:grid; gap: var(--gap);
  grid-template-columns: 1fr;
  position: relative;
}

.project-flex::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 200, 250, 0.3), transparent);
}

.project-flex > div{
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border:1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow:hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
  position: relative;
}

.project-flex > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    transparent 40%, 
    rgba(90, 200, 250, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-flex > div:hover::before {
  opacity: 1;
}

.project-flex img{aspect-ratio: 16/9; object-fit: cover;}
.project-flex p{
  padding:16px 20px;
  color:var(--muted);
  font-size:15px;
  font-weight: var(--fw-medium);
}
.project-flex > div:hover{
  transform: translateY(-6px) scale(1.02);
  border-color: color-mix(in oklab, var(--brand) 40%, var(--line));
  box-shadow: 
    0 15px 40px rgba(0,0,0,0.2),
    0 0 30px rgba(90, 200, 250, 0.15);
}
@media (min-width: 820px){
  .project-flex{grid-template-columns: repeat(2, 1fr);}
}

/* ===== Banner (Tour Section) ===== */
.banner-wrap{
  background: linear-gradient(135deg,
    rgba(90, 200, 250, 0.08) 0%,
    rgba(79, 124, 255, 0.12) 100%
  );
  border-top:2px solid color-mix(in oklab, var(--brand) 30%, var(--line));
  border-bottom:2px solid color-mix(in oklab, var(--brand) 30%, var(--line));
  position: relative;
  overflow: hidden;
}

.banner-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(90, 200, 250, 0.03) 10px,
      rgba(90, 200, 250, 0.03) 20px
    );
  pointer-events: none;
}

.banner-wrap .inner{
  display:flex; 
  flex-direction: column;
  align-items:center; 
  justify-content:center; 
  text-align:center;
  padding-block: clamp(40px, 6vw, 60px);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.banner-wrap h3{
  font-size:clamp(22px, 3vw, 28px);
  font-weight: var(--fw-bold);
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.banner-wrap > .inner > div > p:first-of-type {
  font-weight:var(--fw-medium);
  font-size:clamp(16px, 2.2vw, 20px);
  margin-bottom: 12px;
  color: rgba(255,255,255,0.95);
}

.tour-info{
  background: linear-gradient(135deg,
    rgba(20, 24, 33, 0.6),
    rgba(25, 30, 40, 0.7)
  );
  border: 1px solid rgba(90, 200, 250, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin: 20px 0;
  max-width: 650px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tour-info > p:first-child {
  font-size: 17px;
  font-weight: var(--fw-semibold);
  color: var(--brand);
  margin-bottom: 16px;
}

.tour-info ul{
  list-style: none;
  text-align: left;
  margin: 16px 0;
  padding: 0;
}

.tour-info li{
  padding: 8px 0;
  position: relative;
  padding-left: 28px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

.tour-info li::before{
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-size: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.tour-notice{
  font-size: 13px;
  color: rgba(168, 178, 195, 0.9);
  margin-top: 16px;
  line-height: 1.7;
  padding-top: 16px;
  border-top: 1px solid rgba(90, 200, 250, 0.2);
  text-align: left;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: var(--fw-semibold);
  font-size: 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(90, 200, 250, 0.3);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(90, 200, 250, 0.4);
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--brand);
  font-weight: var(--fw-semibold);
  font-size: 15px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(90, 200, 250, 0.3);
}

/* Button Icons */
.btn-icon {
  font-size: 18px;
}

/* ===== Decorative Elements ===== */
.minecraft-blocks {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.block {
  position: absolute;
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, 
    rgba(90, 200, 250, 0.1), 
    rgba(79, 124, 255, 0.1));
  border: 1px solid rgba(90, 200, 250, 0.2);
  animation: floatBlock 20s infinite linear;
}

@keyframes floatBlock {
  0% {
    transform: translateY(100vh) rotate(0deg);
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
  }
}

.block:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 15s; }
.block:nth-child(2) { left: 30%; animation-delay: 3s; animation-duration: 18s; }
.block:nth-child(3) { left: 50%; animation-delay: 6s; animation-duration: 20s; }
.block:nth-child(4) { left: 70%; animation-delay: 9s; animation-duration: 16s; }
.block:nth-child(5) { left: 90%; animation-delay: 12s; animation-duration: 22s; }

/* ===== Plans ===== */
.plan-title{
  display:inline-flex; align-items:center; gap:10px;
  font-size: clamp(20px, 2.5vw, 24px);
  margin-bottom:20px;
}
.plan-title::after{
  content:""; display:inline-block; width:60px; height:3px; border-radius:3px;
  background: var(--brand);
}

.service-plans .inner{display:grid;gap: var(--gap);}
.plan-card{
  display:flex; gap:20px; align-items:flex-start;
  background: linear-gradient(180deg,var(--surface), var(--surface-2));
  border:1px solid var(--line);
  border-radius: var(--radius-lg);
  padding:20px;
  box-shadow: var(--shadow-2);
  transition: transform .3s ease, box-shadow .3s ease;
}
.plan-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-1);
}
.plan-card .plan-icon{width:60px;height:60px;object-fit:contain;filter: drop-shadow(0 4px 12px rgba(0,0,0,.2));}
.plan-card .plan-content h3{
  font-size: clamp(17px, 2vw, 19px);
  display:flex; flex-wrap:wrap; gap:10px; align-items: baseline;
}
.plan-card .price{
  font-weight: var(--fw-semibold);
  color: var(--ok);
  background: rgba(57,217,138,.1);
  border:1px solid rgba(57,217,138,.4);
  border-radius: 6px;
  padding:3px 10px;
  font-size:14px;
}
.plan-card .tagline{margin:.3em 0 .8em;font-size:14px;}
.plan-card .description{color:var(--muted);line-height:1.7;}

.plan-card.starter{border-left:3px solid var(--brand);}
.plan-card.standard{border-left:3px solid var(--brand-2);}
.plan-card.premium{border-left:3px solid var(--ok);}

@media (max-width:680px){
  .plan-card{flex-direction:column;align-items:flex-start;}
}

/* ===== Flow ===== */
.flow .inner{ gap: clamp(20px, 3vw, 28px); }
.flow-base{
  position: relative;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 32px);
  isolation: isolate;
}

.flow-base > div:first-child{
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.flow-base > div:first-child img{
  position: absolute;
  right: max(-6vw, -60px);
  bottom: 10%;
  width: min(60vw, 780px);
  height: auto;
  opacity: .15;
  filter: grayscale(100%) contrast(95%);
  object-fit: contain;
}

.flow-p{
  max-width: 960px;
  margin: 0 auto;
}
.flow-p .plan-title{
  margin-bottom: .5em;
}
.flow-p .gray{
  margin: 0 0 .8em;
}

.flow-p ul{
  list-style: none;
  margin: 20px 0 0;
  padding: 0 0 0 20px;
  border-left: 3px solid color-mix(in oklab, var(--brand) 55%, var(--line));
}
.flow-p li{
  position: relative;
  margin: 16px 0 20px 0;
  padding-left: 20px;
  color: var(--text);
  opacity: .95;
  line-height: 1.7;
}

/* ===== Town background ===== */
.town-bg{
  background:
    radial-gradient(1200px 400px at 50% -200px, color-mix(in oklab, var(--brand) 10%, transparent), transparent 60%),
    linear-gradient(180deg, transparent, rgba(255,255,255,.01) 40%, transparent 100%);
}

/* ===== Project & Contact ===== */
.project {
  margin-bottom: 50px;
}

.contact {
  margin-bottom: 50px;
  background: linear-gradient(135deg,
    rgba(90, 200, 250, 0.05) 0%,
    rgba(79, 124, 255, 0.08) 100%
  );
  padding: clamp(40px, 6vw, 60px) 0;
  border-top: 1px solid color-mix(in oklab, var(--brand) 20%, var(--line));
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(-45deg,
      transparent,
      transparent 10px,
      rgba(90, 200, 250, 0.02) 10px,
      rgba(90, 200, 250, 0.02) 20px
    );
  pointer-events: none;
}

.contact .inner {
  position: relative;
  z-index: 1;
}

.contact .plan-title {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.contact-content {
  text-align: left;
  margin-bottom: 36px;
}

.contact-content p {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
  margin-bottom: 24px;
}

.contact-button-wrapper {
  margin-top: 28px;
  display: flex;
  justify-content: flex-start;
}

.company {
  margin: 40px 0 0;
  text-align: left;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.company > div:first-child {
  flex-shrink: 0;
}

.company img {
  width: 300px;  /* さらに大きく */
  height: auto;
}

.tumugi-link {
  font-weight: var(--fw-bold);
  font-size: 1.4em;
  margin-bottom: 12px;
}

.tumugi-link a {
  color: var(--brand);
  text-decoration: none;
  transition: color .3s ease;
}

.tumugi-link a:hover {
  color: color-mix(in oklab, var(--brand) 80%, #fff);
}

.attention {
  font-size: 0.75em;
  opacity: 0.7;
}

/* ===== Footer ===== */
footer{
  margin-top: clamp(40px, 6vw, 80px);
  border-top:1px solid var(--line);
  background: var(--surface-2);
}
.footer-inner{
  max-width:var(--max); 
  margin-inline:auto; 
  padding:40px 20px;
  text-align: center;
}
.footer-copyright{
  display:flex; 
  flex-direction: column;
  align-items:center; 
  gap:24px; 
  color:var(--muted);
  text-align: center;
}
.footer-copyright img{
  width:56px; 
  height:auto; 
  opacity:.9; 
  transition: opacity .3s ease, transform .3s ease;
}
.footer-copyright a:hover img{
  opacity:1;
  transform: scale(1.05);
}
.footer-copyright > div:last-child{
  font-size: 14px;
  line-height: 1.8;
}
footer a{
  color: color-mix(in oklab, var(--brand) 70%, var(--muted));
  transition: color .3s ease;
}
footer a:hover{
  color: var(--brand);
}
.phase-link{
  font-weight: var(--fw-medium);
}

/* Responsive adjustments for footer */
.only-pc1200{display:inline;}
.only-sp1200{display:none;}
.only-sp{display:none;}

@media (max-width: 1200px){
  .only-pc1200{display:none;}
  .only-sp1200{display:inline;}
}

/* ===== Utilities ===== */
.u-chip{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--line); border-radius:999px; padding:4px 10px;
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  color: var(--muted); font-weight: var(--fw-medium);
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 640px){
  .sp-br{display:block;}
  .only-sp{display:inline;}
  
  /* Hero Title */
  .hero-title {
    padding: clamp(40px, 7vw, 60px) 0 clamp(30px, 5vw, 40px);
  }
  .hero-title h1 {
    font-size: clamp(22px, 5.5vw, 32px);
  }
  .hero-title h1::before,
  .hero-title h1::after {
    display: none;
  }
  .hero-subtitle {
    font-size: clamp(14px, 3vw, 18px);
    padding: 6px 16px;
  }
  
  /* Projects */
  .article-wrap > h2::before,
  .article-wrap > h2::after {
    width: 40px;
  }
  .article-wrap > h2::before {
    left: calc(50% - 100px);
  }
  .article-wrap > h2::after {
    right: calc(50% - 100px);
  }
  
  /* FV */
  .fv{
    padding: clamp(30px, 5vw, 40px) 0;
    min-height: 40vh;
  }
  
  /* Contact */
  .contact .company {
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
  }
  .contact-content {
    text-align: center;
  }
  .contact-button-wrapper {
    justify-content: center;
  }
  
  /* Footer */
  .footer-copyright{flex-direction:column;gap:16px;}
  .footer-copyright > div:last-child{font-size:13px;}
  
  /* Flow */
  .flow-base{
    padding: clamp(22px, 6vw, 40px) clamp(14px, 5vw, 24px);
  }
  .flow-base > div:first-child img{
    right: -16vw;
    bottom: 10%;
    width: 88vw;
    opacity: .12;
  }
}

@media (min-width: 820px){
  .company {
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
  }
  .company img {
    max-width: 300px;
    margin: 0;
  }
  .company div {
    flex: 1;
  }
}

@media (min-width: 1200px){
  :root{ --gap: 32px; --gap-lg: 56px; }
}

@media (max-width: 520px){
  .article-wrap{padding:38px 0;}
}

@media (prefers-reduced-motion: reduce){
  .parallax-fade,
  .parallax-fade-left,
  .parallax-fade-right,
  .parallax-scale,
  .parallax-rotate { 
    opacity: 1;
    transform: none;
    transition: none; 
  }
  .hero-title::before { animation: none; }
}