/* ========================================
   muni design. Portfolio
   Phone-screen layout CSS
   ======================================== */

/* --- Custom Properties --- */
:root {
  --bg-base: #FFFFFF;
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-bg-white: #FFFFFF;
  --text-primary: #333333;
  --text-secondary: #666666;
  --accent: #4A76E1;
  --accent-dark: #3558B0;
  --accent-light: #D6E2F8;
  --pink: #FFD2EC;
  --pink-dark: #FFB0D8;
  --red: #FF8080;
  --red-dark: #E06060;
  --font-heading: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  --font-en: 'Montserrat', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --mobile-header-h: 60px;
  --radius-card: 16px;
  --border-thick: 3px solid var(--text-primary);
  --shadow-card: 6px 6px 0px rgba(0, 0, 0, 0.15);
  --shadow-soft: 4px 4px 0px rgba(0, 0, 0, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --content-width: 480px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-primary);
  background: var(--bg-base);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Utility --- */
.sp-only {
  display: inline;
}

/* ========================================
   BACKGROUND LAYER
   ======================================== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}

.bg-image--active {
  opacity: 1;
}

/* グラデーションフォールバック */
.bg-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-base) 0%, var(--accent-light) 50%, var(--bg-base) 100%);
  z-index: -1;
}

/* ========================================
   PAGE WRAPPER (flex centering)
   ======================================== */
.page-wrapper {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ========================================
   LEFT SIDEBAR (PC only, hidden by default)
   ======================================== */
.side-left {
  display: none;
}

.side-copy {
  display: none;
}

/* ========================================
   RIGHT SIDEBAR (PC only, hidden by default)
   ======================================== */
.side-right {
  display: none;
}

/* ========================================
   CONTENT COLUMN
   ======================================== */
.content-column {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
}

/* ========================================
   MOBILE HEADER (< 1024px)
   ======================================== */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--mobile-header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background var(--transition), box-shadow var(--transition);
}

.mobile-header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.mobile-header-inner {
  max-width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.mobile-header-logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

/* --- Hamburger --- */
.hamburger {
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 102;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* --- Mobile Navigation Overlay --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* --- Nav links (共有スタイル) --- */
.nav-link {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--mobile-header-h) + 20px) 0 0;
  /* SVGパターン背景（PC時に背景画像の代わりに表示） */
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235B8FB9' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* すりガラスカード */
.hero-glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-card);
  padding: 48px 24px 24px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-inner {
  max-width: 400px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--accent-dark);
  background: rgba(214, 229, 240, 0.5);
  padding: 6px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(91, 143, 185, 0.15);
}

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-accent {
  color: var(--accent-dark);
}

.hero-subline {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: #fff;
  background: var(--accent);
  padding: 14px 40px;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(91, 143, 185, 0.3);
}

.hero-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(91, 143, 185, 0.4);
}

/* --- Hero service icons --- */
.hero-services {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 32px 0 24px;
  width: 100%;
}

.hero-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 229, 240, 0.4);
  border-radius: 14px;
  color: var(--accent);
  transition: transform var(--transition);
}

.hero-service-icon:hover {
  transform: translateY(-4px);
}

.hero-service-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- Hero infinite scroll gallery --- */
.hero-gallery {
  width: 100%;
  overflow: hidden;
  margin: 8px 0 24px;
  border-radius: 12px;
}

.hero-gallery-track {
  display: flex;
  gap: 8px;
  animation: galleryScroll 40s linear infinite;
  width: max-content;
}

.hero-gallery-track img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

@keyframes galleryScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- Scroll hint --- */
.hero-scroll-hint {
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-hint span {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ========================================
   SLANT DIVIDER + CAROUSEL
   画面全幅を斜めに横断する帯 ＋ 写真カルーセル
   ======================================== */
.slant-divider {
  position: relative;
  z-index: 2;
  /* コンテンツカラムから画面全幅にはみ出す */
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

/* --- 青帯（SERVICE → WORKS間）--- */
.slant-divider--blue {
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(91, 143, 185, 0.18) 100%);
  padding: 80px 0;
  margin: -30px 0;
}

/* 斜め切りは疑似要素で上下の三角を白で塗る */
.slant-divider--blue::before,
.slant-divider--blue::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 50px;
  background: var(--card-bg);
  z-index: 1;
}

.slant-divider--blue::before {
  top: -1px;
  clip-path: polygon(0 0, 100% 0, 100% 0%, 0 100%);
}

.slant-divider--blue::after {
  bottom: -1px;
  clip-path: polygon(0 100%, 100% 0%, 100% 100%, 0 100%);
}

/* --- グレー帯（WORKS → FLOW間）--- */
.slant-divider--gray {
  background: linear-gradient(135deg, #ece8e3 0%, #e4e0db 100%);
  padding: 50px 0;
  margin: -20px 0;
}

.slant-divider--gray::before,
.slant-divider--gray::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--card-bg);
  z-index: 1;
}

.slant-divider--gray::before {
  top: -1px;
  clip-path: polygon(0 0, 100% 0, 0 100%, 0 0);
}

.slant-divider--gray::after {
  bottom: -1px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* --- 斜めカルーセル --- */
.slant-carousel {
  position: relative;
  z-index: 2;
  width: 120%;
  margin-left: -10%;
  /* 帯の中で画像列を斜めに傾ける */
  transform: rotate(-3deg);
  overflow: visible;
}

.slant-carousel-track {
  display: flex;
  gap: 14px;
  animation: slantScroll 22s linear infinite;
  width: max-content;
}

.slant-carousel-track img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease;
}

.slant-carousel-track img:hover {
  transform: scale(1.05);
}

@keyframes slantScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   FLOATING DOTS（浮遊するドット装飾）
   supikaスタイル：セクション間にリズムを出すアクセント
   ======================================== */
.floating-dots {
  position: relative;
  z-index: 1;
  height: 80px;
  overflow: visible;
  pointer-events: none;
}

.dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: floatDot 6s ease-in-out infinite;
}

.dot-1 {
  width: 14px; height: 14px;
  background: var(--accent);
  top: 10px; left: 10%;
  animation-delay: 0s;
  opacity: 0.3;
}

.dot-2 {
  width: 8px; height: 8px;
  background: var(--accent-light);
  top: 40px; left: 25%;
  animation-delay: 1s;
  opacity: 0.6;
}

.dot-3 {
  width: 20px; height: 20px;
  background: var(--accent);
  top: 5px; left: 55%;
  animation-delay: 2s;
  opacity: 0.15;
}

.dot-4 {
  width: 10px; height: 10px;
  background: var(--accent-dark);
  top: 50px; left: 70%;
  animation-delay: 0.5s;
  opacity: 0.25;
}

.dot-5 {
  width: 6px; height: 6px;
  background: var(--accent);
  top: 20px; left: 85%;
  animation-delay: 3s;
  opacity: 0.5;
}

.dot-6 {
  width: 16px; height: 16px;
  background: var(--accent-light);
  top: 35px; left: 42%;
  animation-delay: 1.5s;
  opacity: 0.2;
}

@keyframes floatDot {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.1); }
}

/* ========================================
   CARD SECTIONS
   ======================================== */
.card-section {
  background: var(--card-bg);
  border-radius: 0;
  margin-bottom: 0;
  padding: 56px 20px;
  box-shadow: none;
  position: relative;
  border: var(--border-thick);
  border-left: none;
  border-right: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 紙テクスチャオーバーレイ */
.card-section::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: url('images/texture-paper.png');
  background-size: 300px;
  opacity: 0.03;
}

.card-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* --- Section Title --- */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title-en {
  display: block;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 0.08em;
  color: var(--accent);
  line-height: 1.2;
}

.section-title-ja {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ========================================
   ABOUT
   ======================================== */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.about-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-light);
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(91, 143, 185, 0.15);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo--fallback::after {
  content: 'PHOTO';
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.about-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  margin-bottom: 4px;
}

.about-role {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
}

.about-bio {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 12px;
}

.about-bio:last-child {
  margin-bottom: 0;
}

/* ========================================
   SERVICE
   ======================================== */
.service-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-card {
  background: var(--card-bg-white);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 16px;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags li {
  font-size: 12px;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 400;
}

/* ========================================
   WORKS
   ======================================== */
.works-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.works-tab {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.works-tab.active,
.works-tab:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.works-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg-white);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), opacity 0.4s ease;
}

.works-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.works-item.hidden {
  display: none;
}

.works-thumb {
  position: relative;
  width: 100%;
  padding-top: 60%;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg-base) 100%);
  overflow: hidden;
}

.works-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.works-item:hover .works-thumb img {
  transform: scale(1.05);
}

.works-thumb--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-thumb--fallback::after {
  content: 'IMAGE';
  position: absolute;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.works-overlay {
  position: absolute;
  inset: 0;
  background: rgba(91, 143, 185, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.works-item:hover .works-overlay {
  opacity: 1;
}

.works-view {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #fff;
  border: 1.5px solid #fff;
  padding: 8px 24px;
  border-radius: 100px;
}

.works-info {
  padding: 16px 20px 20px;
}

.works-category-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.works-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.works-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   FLOW
   ======================================== */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.flow-step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  position: relative;
}

/* 縦線 */
.flow-step::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-light);
}

.flow-step:first-child::before {
  top: 50%;
}

.flow-step:last-child::before {
  bottom: 50%;
}

.flow-number {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 12px rgba(91, 143, 185, 0.3);
}

.flow-body {
  padding-top: 4px;
}

.flow-step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
}

.flow-step-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ========================================
   CONTACT
   ======================================== */
.card-section--contact {
  margin-bottom: 0;
}

.contact-lead {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.9;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
}

.required {
  color: #d9534f;
  font-size: 12px;
}

.form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-primary);
  background: var(--card-bg-white);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input::placeholder {
  color: #c5c0ba;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 143, 185, 0.15);
}

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

.form-submit {
  width: 100%;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  background: var(--accent);
  padding: 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.form-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
}

.form-submit-loading,
.form-submit-done {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-submit.loading .form-submit-text { display: none; }
.form-submit.loading .form-submit-loading { display: flex; }
.form-submit.done .form-submit-text { display: none; }
.form-submit.done .form-submit-done { display: flex; }
.form-submit.done {
  background: #5cb85c;
}

.spinner {
  width: 22px;
  height: 22px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}

.contact-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 100px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: var(--card-bg-white);
  transition: all var(--transition);
}

.contact-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 2px 12px rgba(91, 143, 185, 0.15);
}

/* ========================================
   WAVE DIVIDER
   ======================================== */
.wave-divider {
  position: relative;
  z-index: 1;
  margin-top: -2px;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 48px 20px 32px;
  text-align: center;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 8px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: background var(--transition), transform var(--transition);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

/* ========================================
   FADE-UP ANIMATION
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--delay, 0s)),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--delay, 0s));
}

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

/* ========================================
   MOBILE NAV OVERLAY (背景暗幕 - 互換用)
   ======================================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ========================================
   RESPONSIVE: TABLET (768px - 1023px)
   ======================================== */
@media (min-width: 768px) {
  .sp-only {
    display: none;
  }

  /* コンテンツカラム: 420px幅で中央配置 */
  .content-column {
    max-width: var(--content-width);
  }

  /* カードセクション: 丸角 + ギャップ */
  .card-section {
    border-radius: var(--radius-card);
    margin-bottom: 40px;
    padding: 48px 24px;
    box-shadow: var(--shadow-card);
    border: var(--border-thick);
  }

  .card-section--contact {
    margin-bottom: 0;
  }

  .hero-headline {
    font-size: 30px;
  }

  .hero-subline {
    font-size: 15px;
  }

  .hero-services {
    gap: 40px;
  }

  .hero-service-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .hero-service-label {
    font-size: 13px;
  }

  .section-title-en {
    font-size: 36px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  /* Works: 2カラム */
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Contact: 横並びボタン */
  .contact-buttons {
    flex-direction: row;
    max-width: 400px;
  }

  /* 斜めカルーセル: タブレット */
  .slant-carousel-track img {
    width: 220px;
    height: 140px;
  }

  .slant-divider--blue {
    padding: 90px 0;
  }

  .slant-divider--blue::before,
  .slant-divider--blue::after {
    height: 60px;
  }

  .wave-divider svg {
    height: 60px;
  }

  /* フッター: 角丸なし（コンテンツ幅に合わせる） */
  .footer {
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    padding: 40px 20px 28px;
  }

  .wave-divider svg {
    border-radius: 0;
  }

  /* ページヘッダー: タブレット */
  .page-header {
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    padding: 48px 24px 32px;
  }

  /* 詳細ページ: タブレット */
  .project-detail {
    border-radius: var(--radius-card);
    padding: 48px 24px 56px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-card);
  }

  .project-detail-title {
    font-size: 32px;
  }
}

/* ========================================
   RESPONSIVE: PC (1024px+)
   ======================================== */
@media (min-width: 1024px) {

  /* --- モバイルヘッダーを隠す --- */
  .mobile-header {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  /* --- ヒーローのpadding-topをリセット（ヘッダーなし） --- */
  .hero {
    padding-top: 40px;
  }

  /* --- サイドバー表示 --- */
  .side-left {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: calc((100vw - var(--content-width)) / 2);
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-right: 48px;
    z-index: 2;
  }

  .side-left-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 32px;
  }

  .side-logo {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    text-align: right;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
  }

  .side-logo:hover {
    color: var(--accent);
  }

  .side-tagline {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
    text-align: right;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.5);
  }

  .side-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
  }

  .side-nav-link {
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.5);
  }

  .side-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width var(--transition);
  }

  .side-nav-link:hover,
  .side-nav-link.active {
    color: var(--accent);
  }

  .side-nav-link:hover::after,
  .side-nav-link.active::after {
    width: 100%;
  }

  .side-copy {
    font-family: var(--font-en);
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    opacity: 0.5;
    text-align: right;
    margin-top: 16px;
  }

  /* --- PC: フッター・wave非表示 --- */
  .footer,
  .wave-divider {
    display: none;
  }

  /* --- Right sidebar --- */
  .side-right {
    display: flex;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: calc((100vw - var(--content-width)) / 2);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 48px;
    z-index: 2;
  }

  .side-right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .side-social {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .side-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    color: var(--accent);
    transition: background var(--transition), transform var(--transition), color var(--transition);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }

  .side-social-link:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
  }

  /* --- Scroll indicator --- */
  .side-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .side-scroll-text {
    font-family: var(--font-en);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.5);
  }

  .side-scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
  }

  .side-scroll-line-inner {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollDown 1.8s ease-in-out infinite;
  }

  /* --- Decorative text --- */
  .side-deco-text {
    font-family: var(--font-en);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    opacity: 0.5;
    writing-mode: vertical-rl;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.5);
  }

  /* --- コンテンツカラム調整 --- */
  .content-column {
    max-width: var(--content-width);
    padding-top: 0;
  }

  /* カードセクション: PC用の余白 */
  .card-section {
    padding: 48px 28px;
    margin-bottom: 48px;
  }

  /* Hero: PCではスクロールヒントを非表示（右サイドバーにある） */
  .hero-scroll-hint {
    display: none;
  }

  /* ページヘッダー: PC */
  .page-header {
    padding-top: 48px;
  }

  /* 詳細ページ: PC — 幅を広げて読みやすく */
  .project-detail {
    padding: 48px 28px 56px;
    margin-bottom: 48px;
  }

  .project-detail-inner {
    max-width: 720px;
  }

  /* Works: 2カラムを維持（420px幅のため3は狭すぎる） */
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* 斜め帯: PC — サイドバーの上を横断 */
  .slant-divider {
    z-index: 3;
  }

  .slant-divider--blue {
    padding: 100px 0;
  }

  .slant-divider--blue::before,
  .slant-divider--blue::after {
    height: 70px;
  }

  .slant-carousel-track img {
    width: 240px;
    height: 150px;
    border-radius: 14px;
  }
}

/* ========================================
   RESPONSIVE: WIDE PC (1400px+)
   ======================================== */
@media (min-width: 1400px) {
  .side-left {
    padding-right: 64px;
  }

  .side-right {
    padding-left: 64px;
  }

  .side-logo {
    font-size: 28px;
  }

  .side-nav-link {
    font-size: 13px;
    gap: 20px;
  }

  .side-nav {
    gap: 20px;
  }

  .side-tagline {
    font-size: 12px;
  }
}

/* ========================================
   MOBILE NAV CLOSE BUTTON（×ボタン）
   ======================================== */
.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 32px;
  line-height: 1;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
  z-index: 103;
}

.mobile-nav-close:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* ========================================
   WORKS: VIEW MOREボタン
   ======================================== */
.works-view-more {
  text-align: center;
  margin-top: 32px;
}

.works-view-more-btn {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 14px 48px;
  border-radius: 100px;
  transition: all var(--transition);
}

.works-view-more-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(91, 143, 185, 0.3);
}

/* トップページで7件目以降を非表示 */
.works-hidden-on-home {
  display: none !important;
}

/* works-itemがaタグの場合のリセット */
a.works-item {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ========================================
   WORKS一覧ページ・詳細ページ用スタイル
   ======================================== */

/* ページヘッダー（戻るリンク＋タイトル） */
.page-header {
  background: var(--card-bg);
  border-radius: 0;
  padding: calc(var(--mobile-header-h) + 24px) 20px 32px;
  text-align: center;
}

.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  transition: opacity var(--transition);
}

.page-back-link:hover {
  opacity: 0.7;
}

/* プロジェクト詳細ページ */
.project-detail {
  background: var(--card-bg);
  padding: calc(var(--mobile-header-h) + 24px) 20px 56px;
}

.project-detail-inner {
  max-width: 800px;
  margin: 0 auto;
}

.project-detail .page-back-link {
  display: inline-flex;
  margin-bottom: 24px;
}

.project-detail-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--red);
  padding: 4px 14px;
  border-radius: 6px;
  border: 2px solid var(--red-dark);
  margin-bottom: 12px;
}

.project-detail-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 24px;
}

.project-detail-hero {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg-base) 100%);
}

.project-detail-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.project-detail-desc {
  font-size: 15px;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.project-detail-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
}

.project-detail-placeholder {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  background: var(--card-bg-white);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 40px;
}

.project-detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  border: 3px solid var(--accent);
  padding: 14px 32px;
  border-radius: 100px;
  transition: all var(--transition);
}

.project-detail-back-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px var(--accent-dark);
}

/* --- 詳細ページ: 本文ブロック --- */
.project-detail-body {
  font-size: 15px;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.project-detail-body p {
  margin-bottom: 12px;
}

.project-detail-body ul {
  list-style: none;
  padding: 0;
}

.project-detail-body li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.project-detail-body li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.project-detail-body li strong {
  color: var(--text-primary);
}

/* --- 詳細ページ: メタ情報（クライアント・期間） --- */
.project-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 32px;
}

.project-detail-meta .meta-item {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-heading);
}

/* --- 詳細ページ: 概要ラベル（テーブル代替） --- */
.detail-info {
  margin-bottom: 12px;
}

.detail-info .detail-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  background: var(--accent);
  padding: 2px 10px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.detail-info .detail-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* ========================================
   iOS SAFE AREA
   ======================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }
}

/* ========================================
   DEMO SLOT ADDITIONS (2026-04-15)
   デモアプリ差し込みスロット用の追加スタイル
   ======================================== */

.project-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.project-detail-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.project-detail-demo-btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.05em;
  margin: 16px 0 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-detail-demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
