/* ===================================
   D-Paid Plus - ポップ＆アーティスティック
   =================================== */

:root {
  /* カラーパレット - ビビッドでポップ */
  --primary: #ff6b6b;
  --secondary: #4ecdc4;
  --accent-yellow: #ffe66d;
  --accent-pink: #ff8ed4;
  --accent-blue: #45b7d1;
  --accent-green: #96e6a1;
  --accent-orange: #ffa07a;
  --accent-purple: #dda0dd;

  --dark: #2d3436;
  --light: #fefefe;
  --gray: #636e72;

  /* フォント - プレイフル＆ポップ */
  /* Typekit が読めない環境（localhost等）でもポップに見えるよう、
     読み込み済みの Google Fonts（Dela Gothic One / Fredoka One）をフォールバックに */
  /* cheee-tbone(Typekit)が停止中のため代替に Matemasie を使用 */
  --font-display: "cheee-tbone", "Matemasie", "Dela Gothic One", sans-serif;
  /* corsairpe の代替に Aclonica（英字）＋日本語は Kaisei Opti */
  --font-title: "corsairpe", "Aclonica", "Kaisei Opti", "Fredoka One", cursive;
  /* 日本語のサービス見出し用（Adobe Fonts: AB-kokoro_no3 Regular） */
  --font-title-ja: "ab-kokoro-no3", "Kaisei Opti", sans-serif;
  --font-heading: "Baloo 2", "Fredoka One", cursive;
  --font-body: "Noto Sans JP", sans-serif;

  /* スペーシング */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
}

/* リセット & ベース */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===================================
   ローディング画面
   =================================== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.5s,
    visibility 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-icon {
  font-size: 4rem;
  animation: bounce 0.6s infinite alternate;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--light);
  margin-top: var(--space-sm);
}

.loader-bar {
  width: 200px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  margin-top: var(--space-md);
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: var(--light);
  border-radius: 3px;
  animation: loading 1.5s ease-in-out forwards;
}

@keyframes loading {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-20px);
  }
}

/* ===================================
   ナビゲーション
   =================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition:
    background 0.3s,
    padding 0.3s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-xs) var(--space-md);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
}

/* ロゴマーク画像（ヘッダー・フッター共通） */
.logo-mark {
  display: block;
  width: auto;
  height: 2.25rem;
}

.nav-menu {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  color: var(--dark);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--cta {
  background: var(--dark);
  color: var(--light) !important;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 50px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-link {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--light);
  text-decoration: none;
  transition: transform 0.3s;
}

.mobile-link:hover {
  transform: scale(1.1);
}

/* ===================================
   ヒーローセクション
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--accent-yellow) 0%,
    var(--accent-orange) 50%,
    var(--primary) 100%
  );
  padding-bottom: 60px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--accent-pink);
  top: 10%;
  left: -5%;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  top: 60%;
  right: -3%;
  animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: var(--accent-blue);
  bottom: 10%;
  left: 20%;
  animation: float 7s ease-in-out infinite;
}

.shape-4 {
  width: 100px;
  height: 100px;
  background: var(--accent-green);
  top: 30%;
  right: 20%;
  animation: float 5s ease-in-out infinite reverse;
}

.shape-5 {
  width: 80px;
  height: 80px;
  background: var(--accent-purple);
  top: 70%;
  left: 60%;
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

.hero-content {
  text-align: center;
  z-index: 1;
  padding: var(--space-md);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: 0.9;
  color: var(--light);
  text-shadow: 6px 6px 0 var(--dark);
}

.title-line {
  display: block;
  animation: slideIn 0.8s ease-out backwards;
}

.title-line-1 {
  animation-delay: 0.2s;
}
.title-line-2 {
  animation-delay: 0.4s;
  font-size: 0.5em;
  color: var(--dark);
  text-shadow: none;
}
.title-line-3 {
  animation-delay: 0.6s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--dark);
  margin-top: var(--space-md);
  animation: fadeIn 1s ease-out 0.8s backwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-illustration {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.illustration-item {
  font-size: 3rem;
  animation: popIn 0.5s ease-out backwards;
  cursor: pointer;
  transition: transform 0.3s;
}

.illustration-item:hover {
  transform: scale(1.3) rotate(10deg);
}

.item-burger {
  animation-delay: 1s;
}
.item-pizza {
  animation-delay: 1.1s;
}
.item-ramen {
  animation-delay: 1.2s;
}
.item-sushi {
  animation-delay: 1.3s;
}
.item-cake {
  animation-delay: 1.4s;
}
.item-coffee {
  animation-delay: 1.5s;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.scroll-line {
  width: 2px;
  height: 50px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--light);
  animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    top: -50%;
  }
  100% {
    top: 100%;
  }
}

/* ===================================
   波線デコレーション
   =================================== */
.wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
}

.wave-bottom svg {
  display: block;
  width: 100%;
  height: 80px;
}

@media (min-width: 768px) {
  .wave-bottom svg {
    height: 120px;
  }
}

/* ===================================
   サービスセクション
   =================================== */
.services {
  padding: var(--space-xl) 0;
  padding-bottom: calc(var(--space-xl) + 60px);
  position: relative;
  /* 左右からスライドインする前のブロックが画面外にはみ出し、
     スマホでページ全体が横に広がるのを防ぐ（clip 非対応ブラウザは hidden） */
  overflow-x: hidden;
  overflow-x: clip;
}

.services-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.title-accent {
  color: var(--primary);
  animation: twinkle 1s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-md);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto var(--space-xl);
}

.service-block:nth-child(odd) .service-visual {
  order: 2;
}

.service-visual {
  position: relative;
}

.visual-card {
  background: var(--accent-yellow);
  border-radius: 30px;
  padding: var(--space-lg);
  position: relative;
  transform: rotate(-3deg);
  transition: transform 0.5s;
  box-shadow: 10px 10px 0 var(--dark);
}

.visual-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.tipping-card {
  background: var(--accent-pink);
}

.visual-decoration {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.deco-1 {
  width: 100px;
  height: 100px;
  background: var(--secondary);
  top: -20px;
  right: -20px;
}

.deco-2 {
  width: 60px;
  height: 60px;
  background: var(--primary);
  bottom: -10px;
  left: -10px;
}

.deco-3 {
  width: 80px;
  height: 80px;
  background: var(--accent-blue);
  top: -15px;
  left: -15px;
}

.deco-4 {
  width: 50px;
  height: 50px;
  background: var(--accent-yellow);
  bottom: -15px;
  right: -15px;
}

/* フードコートイラスト */
.foodcourt-scene {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  min-height: 250px;
}

.fc-table {
  background: var(--light);
  border-radius: 15px;
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.fc-table:hover {
  transform: translateY(-5px);
}

.fc-shop {
  background: var(--dark);
  color: var(--light);
  border-radius: 15px;
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: transform 0.3s;
}

.fc-shop:hover {
  transform: scale(1.1);
}

/* チッピングイラスト */
.tipping-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 300px;
}

.phone-mockup {
  width: 180px;
  height: 350px;
  background: var(--dark);
  border-radius: 30px;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--light);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-ui {
  text-align: center;
  padding: var(--space-sm);
}

.tip-avatar {
  font-size: 3rem;
  margin-bottom: var(--space-xs);
}

.tip-name {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.tip-amounts {
  display: flex;
  gap: 5px;
  margin-bottom: var(--space-sm);
}

.tip-btn {
  background: var(--gray);
  color: var(--light);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tip-btn.active {
  background: var(--primary);
}

.tip-send {
  background: var(--secondary);
  color: var(--dark);
  padding: 10px 15px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
}

.tip-hearts {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.heart {
  position: absolute;
  font-size: 2rem;
  animation: floatHeart 3s ease-in-out infinite;
}

.heart-1 {
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}
.heart-2 {
  top: 50%;
  left: 5%;
  animation-delay: 1s;
}
.heart-3 {
  bottom: 20%;
  right: 15%;
  animation-delay: 2s;
}

@keyframes floatHeart {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.1);
  }
}

/* サービスコンテンツ */
.service-content {
  padding: var(--space-md);
}

.service-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: var(--gray);
  opacity: 0.2;
  line-height: 1;
}

.service-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  margin-top: -1rem;
  position: relative;
}

.service-title--ja {
  font-family: var(--font-title-ja);
  font-style: normal;
}

.service-catch {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-top: var(--space-sm);
  line-height: 1.4;
}

.service-desc {
  margin-top: var(--space-sm);
  color: var(--gray);
  line-height: 1.8;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.tag {
  background: var(--dark);
  color: var(--light);
  padding: 5px 15px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
}

/* サービスリンクボタン */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--primary);
  color: var(--light);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-top: var(--space-md);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background 0.3s;
  box-shadow: 4px 4px 0 var(--dark);
}

.service-link:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 var(--dark);
  background: var(--accent-pink);
}

.link-arrow {
  transition: transform 0.3s;
  font-size: 1.2em;
}

.service-link:hover .link-arrow {
  transform: translateX(5px);
}

/* ===================================
   特徴セクション
   =================================== */
.features {
  background: var(--dark);
  padding: var(--space-xl) 0;
  padding-bottom: calc(var(--space-xl) + 60px);
  overflow: hidden;
  position: relative;
}

/* マーキーセクション（スクロール文字のみ） */
.marquee-section {
  background: var(--dark);
  padding: var(--space-sm) 0;
  padding-bottom: calc(var(--space-sm) + 60px);
  overflow: hidden;
  position: relative;
}

.features-marquee {
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: var(--space-md);
  animation: marquee 20s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--light);
  white-space: nowrap;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.feature-card {
  background: var(--light);
  border-radius: 20px;
  padding: var(--space-md);
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--card-color);
}

.feature-card[data-color="yellow"] {
  --card-color: var(--accent-yellow);
}
.feature-card[data-color="pink"] {
  --card-color: var(--accent-pink);
}
.feature-card[data-color="blue"] {
  --card-color: var(--accent-blue);
}
.feature-card[data-color="green"] {
  --card-color: var(--accent-green);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.feature-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

.feature-text {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ===================================
   Aboutセクション
   =================================== */
.about {
  padding: var(--space-xl) var(--space-md);
  padding-bottom: calc(var(--space-xl) + 60px);
  background: linear-gradient(
    180deg,
    var(--light) 0%,
    var(--accent-yellow) 100%
  );
  position: relative;
  z-index: 2;
  margin-bottom: -80px;
  /* 回転する円文字の角が、スマホ幅で画面の外にはみ出すのを防ぐ */
  overflow-x: hidden;
  overflow-x: clip;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-circle {
  width: 300px;
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-text {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotateText 20s linear infinite;
}

.circle-text svg {
  width: 100%;
  height: 100%;
}

.circle-text text {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  fill: var(--dark);
}

@keyframes rotateText {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.circle-center {
  background: var(--primary);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-family: var(--font-heading);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.circle-center span {
  font-size: 0.9rem;
}

.circle-center strong {
  font-size: 2.5rem;
  font-weight: 900;
}

.about-content {
  padding: var(--space-md);
}

.about-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: var(--space-md);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.about-stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ===================================
   コンタクトセクション
   =================================== */
.contact {
  padding: var(--space-xl) var(--space-md);
  padding-top: calc(var(--space-xl) + 40px);
  background: var(--secondary);
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.contact-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.contact-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-yellow);
  opacity: 0.5;
  top: 50px;
  right: -100px;
}

.contact-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-pink);
  opacity: 0.5;
  bottom: -100px;
  left: -100px;
}

.contact-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 400;
  font-style: normal;
  color: var(--light);
  text-shadow: 5px 5px 0 var(--dark);
}

.contact-subtitle {
  font-size: 1.2rem;
  color: var(--dark);
  margin-top: var(--space-sm);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--dark);
  color: var(--light);
  text-decoration: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: var(--space-md);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-arrow {
  transition: transform 0.3s;
}

.contact-btn:hover .btn-arrow {
  transform: translateX(5px);
}

.contact-illustration {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.contact-emoji {
  position: absolute;
  font-size: 4rem;
  animation: floatEmoji 4s ease-in-out infinite;
}

.contact-emoji-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.contact-emoji-2 {
  top: 60%;
  right: 15%;
  animation-delay: 1.5s;
}
.contact-emoji-3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 0.5s;
}

@keyframes floatEmoji {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* ===================================
   フッター
   =================================== */
.footer {
  background: var(--dark);
  color: var(--light);
  padding: var(--space-lg) var(--space-md);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer .logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-md) 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--light);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ===================================
   アニメーションユーティリティ
   =================================== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s,
    transform 0.8s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   セクション見出し（共通）
   =================================== */
.section-head {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding: 0 var(--space-md);
}

.section-jp {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.3em;
  margin-top: var(--space-xs);
  font-size: 0.95rem;
}

/* ===================================
   ヒーロー リード文
   =================================== */
.hero-lead {
  max-width: 920px;
  margin: var(--space-md) auto 0;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 700;
  line-height: 2;
  color: var(--dark);
  animation: fadeIn 1s ease-out 1s backwards;
}

/* ===================================
   OUR BUSINESS
   =================================== */
.business {
  padding: var(--space-xl) 0;
  position: relative;
}

.business-intro {
  max-width: 980px;
  margin: 0 auto var(--space-lg);
  padding: 0 var(--space-md);
  text-align: center;
}

.business-intro p {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--dark);
  margin-bottom: var(--space-sm);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.business-grid .feature-card {
  text-align: center;
  /* 右下はグレーの影、左上はその半分のずらし幅でカードの色の影 */
  box-shadow:
    -4px -4px 0 var(--card-color),
    8px 8px 0 rgba(45, 52, 54, 0.12);
}

/* 色は左上の影で見せるので、カード内側の上辺の帯は出さない */
.business-grid .feature-card::before {
  display: none;
}

.business-grid .feature-title {
  font-size: 1.1rem;
  margin-top: var(--space-xs);
}

.business-grid .feature-text {
  line-height: 1.9;
  text-align: left;
  margin-top: var(--space-xs);
}

/* ===================================
   サービス アイコンビジュアル（02/03）
   =================================== */
.visual-card--pink {
  background: var(--accent-pink);
}

.visual-card--blue {
  background: var(--accent-blue);
}

.icon-scene {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  min-height: 250px;
  place-items: stretch;
}

.icon-tile {
  background: var(--light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s;
}

.icon-tile:hover {
  transform: translateY(-6px) rotate(-4deg);
}

/* ===================================
   ABOUT US 追記
   =================================== */
.about-jp {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.3em;
  margin-top: calc(-1 * var(--space-sm));
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.about-lead {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 900;
  line-height: 1.6;
  color: var(--dark);
  margin-bottom: var(--space-md);
}

.about-content .about-text + .about-text {
  margin-top: var(--space-sm);
}

/* ===================================
   NEWS
   =================================== */
.news {
  padding: var(--space-xl) 0;
  padding-bottom: calc(var(--space-xl) + 60px);
  background: linear-gradient(180deg, var(--light) 0%, #fff6e9 100%);
  position: relative;
}

.news-list {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.news-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-sm);
  border-bottom: 2px dashed rgba(45, 52, 54, 0.2);
  text-decoration: none;
  color: var(--dark);
  transition:
    background 0.3s,
    transform 0.3s;
}

.news-item:first-child {
  border-top: 2px dashed rgba(45, 52, 54, 0.2);
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(6px);
}

.news-date {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.news-text {
  flex: 1;
  line-height: 1.6;
}

.news-arrow {
  color: var(--gray);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.news-item:hover .news-arrow {
  transform: translateX(5px);
  color: var(--primary);
}

.news-more {
  text-align: center;
  margin-top: var(--space-lg);
}

/* ===================================
   COMPANY
   =================================== */
.company {
  padding: var(--space-xl) 0;
  padding-bottom: calc(var(--space-xl) + 60px);
  position: relative;
  background: var(--light);
}

.company-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.company-table {
  border-top: 3px solid var(--dark);
}

.company-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(45, 52, 54, 0.15);
}

.company-row dt {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
}

.company-row dd {
  line-height: 1.8;
}

.access-title {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.6rem;
  margin-bottom: var(--space-xs);
}

.access-text {
  color: var(--gray);
  margin-bottom: var(--space-sm);
}

.access-map {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--dark);
  line-height: 0;
  margin-bottom: var(--space-md);
}

.access-map iframe {
  display: block;
  width: 100%;
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 1024px) {
  .business-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .company-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .news-item {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .news-date {
    width: 100%;
  }

  .company-row {
    grid-template-columns: 100px 1fr;
  }
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* 単一カラムでは、02（DOM上は本文→図の順）も他ブロックと揃えて
     図を上に出す。order:-1 で本文より前に並べる。 */
  .service-block:nth-child(odd) .service-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: clamp(3rem, 12vw, 6rem);
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-illustration {
    gap: var(--space-sm);
  }

  .illustration-item {
    font-size: 2rem;
  }

  /* OUR SERVICES: ブロック間と最下部（03の下〜ダークな波線まで）の余白を詰める */
  .services {
    padding-bottom: calc(var(--space-sm) + 60px);
  }

  .service-block {
    margin-bottom: var(--space-lg);
  }

  /* 最後のサービスブロック（波線の直前）は下マージンを最小に */
  .services .service-block:nth-last-child(2) {
    margin-bottom: var(--space-sm);
  }

  /* マーキー「★DPAID PLUS★FOOD MARCHE★」の下に続く要素が無いため、
     浮いていた margin-bottom（space-xl）を詰める。間隔は section 側の padding で確保。 */
  .features-marquee {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
  }

  .visual-card {
    padding: var(--space-sm);
  }

  .phone-mockup {
    width: 150px;
    height: 280px;
  }

  .contact-emoji {
    font-size: 2.5rem;
  }
}

/* ===================================
   ロゴリンク（紫リンク化を防ぐ）
   =================================== */
.nav-logo,
.nav-logo:link,
.nav-logo:visited {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
}

.footer-logo,
.footer-logo:link,
.footer-logo:visited {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--light);
}

/* ===================================
   Hero タイトル（FOOD / おいしいを、× もっと楽しく。/ TECH）
   =================================== */
.hero-title .title-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 3.2vw, 2.1rem);
  font-weight: 900;
  color: var(--dark);
  text-shadow: none;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0.15em 0;
}

.hero-title .title-cross {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.7em;
  vertical-align: -0.18em;
  margin: 0 0.18em;
  text-shadow: 3px 3px 0 var(--dark);
}

/* ===================================
   ABOUT US レイアウト（Since と 見出しを横並び → 本文）
   =================================== */
.about-top {
  max-width: 1000px;
  margin: 0 auto var(--space-lg);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-head {
  padding: var(--space-sm) 0;
}

.about-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.about-body .about-text {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: var(--space-md);
}

.about-body .about-text:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .about-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }

  .about-head {
    text-align: center;
  }

  .about-body {
    text-align: left;
  }
}

/* ===================================
   下層ページ 共通（ページヘッダー等）
   =================================== */
.page-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--accent-yellow) 0%,
    var(--accent-orange) 55%,
    var(--primary) 100%
  );
  padding: 140px var(--space-md) 100px;
}

.page-hero .floating-shape {
  z-index: 0;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

/* スマホ幅では下層ページのタイトル部分（page-hero）が間延びするので、
   高さを抑える。固定ナビ（約52px）と下端の波線（80px）に重ならないよう、
   中央寄せ用の min-height ではなく上下パディングで間隔を決める。 */
@media (max-width: 768px) {
  .page-hero {
    min-height: 0;
    padding-top: calc(var(--space-lg) + var(--space-sm));
    padding-bottom: calc(80px + var(--space-sm));
  }
}

/* ヒーローの絵文字デコ（HOMEのような楽しさ） */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-deco span {
  position: absolute;
  font-size: clamp(1.8rem, 4vw, 3rem);
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(2px 3px 0 rgba(45, 52, 54, 0.15));
}

.hero-deco span:nth-child(1) {
  top: 20%;
  left: 8%;
  animation-delay: 0s;
}
.hero-deco span:nth-child(2) {
  top: 24%;
  right: 10%;
  animation-delay: 1s;
}
.hero-deco span:nth-child(3) {
  bottom: 28%;
  left: 14%;
  animation-delay: 2s;
}
.hero-deco span:nth-child(4) {
  bottom: 22%;
  right: 15%;
  animation-delay: 0.6s;
}
.hero-deco span:nth-child(5) {
  top: 46%;
  left: 47%;
  animation-delay: 1.5s;
}

/* ===================================
   下層ページの中身をポップに
   =================================== */
/* コンテンツセクション（下端の波線を収める） */
.page-section {
  position: relative;
  overflow: hidden;
}

.page-section > * {
  position: relative;
  z-index: 1;
}

/* 波線は下端に固定したまま（上の > * 指定で relative にしない） */
.page-section > .wave-bottom {
  position: absolute;
}

/* サービス番号をカラフルなバッジに */
.sd-head {
  align-items: center;
}

.sd-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  font-size: 2rem;
  color: var(--light);
  background: var(--primary);
  box-shadow: 5px 5px 0 var(--dark);
  flex-shrink: 0;
}

#support .sd-number {
  background: var(--secondary);
}

#rental .sd-number {
  background: var(--accent-blue);
}

/* サービス各セクション（下端の波線を収める） */
.service-detail {
  position: relative;
  overflow: hidden;
}

.service-detail > .sd-inner {
  position: relative;
  z-index: 1;
}

/* NEWS 一覧をポップなカードに */
.news-list .news-item {
  border: 3px dotted var(--dark);
  border-radius: 18px;
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: var(--light);
  box-shadow: 5px 5px 0 rgba(45, 52, 54, 0.14);
}

.news-list .news-item:first-child {
  border-top: 3px dotted var(--dark);
}

.news-list .news-item:hover {
  background: var(--accent-yellow);
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 rgba(45, 52, 54, 0.14);
}

.news-date {
  background: var(--primary);
  color: var(--light);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* 会社概要テーブルをカード化 */
.company-table {
  background: var(--light);
  border: 4px dotted var(--dark);
  border-radius: 20px;
  padding: var(--space-md) var(--space-lg);
  box-shadow: 6px 6px 0 rgba(45, 52, 54, 0.12);
}

.page-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 1;
  color: var(--light);
  text-shadow: 5px 5px 0 var(--dark);
}

/* h1 の日本語ページ名（英語ラベルの下に小さく添える。SEO: 見出しにページ内容を含める） */
.page-hero-sub {
  display: block;
  margin-top: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--dark);
  text-shadow: none;
}

.page-hero-lead {
  max-width: 680px;
  margin: var(--space-md) auto 0;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.9;
}

.page-section {
  padding: var(--space-xl) 0;
  position: relative;
}

/* 下端に波線（.wave-bottom）を置くので、その分だけ下の余白を足す */
.page-section--tint {
  background: linear-gradient(180deg, var(--light) 0%, #fff6e9 100%);
  padding-bottom: calc(var(--space-xl) + 60px);
}

.breadcrumb {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-md) 0;
  font-size: 0.85rem;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--gray);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* ===================================
   ポリシー等 プレーン文章ページ
   =================================== */
.policy {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.policy .lead {
  font-weight: 700;
  line-height: 1.9;
  margin-bottom: var(--space-lg);
}

.policy h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  margin: var(--space-lg) 0 var(--space-sm);
  padding-left: var(--space-sm);
  border-left: 6px solid var(--primary);
}

.policy p {
  line-height: 1.9;
  margin-bottom: var(--space-sm);
}

.policy ul {
  margin: var(--space-sm) 0 var(--space-md) 1.4em;
}

.policy li {
  list-style: disc;
  line-height: 1.8;
  margin-bottom: 0.4em;
}

.policy .box {
  background: var(--light);
  border: 3px dotted var(--dark);
  border-radius: 16px;
  padding: var(--space-md);
  margin: var(--space-sm) 0 var(--space-md);
}

.policy .box p {
  margin-bottom: 0.3em;
}

/* ===================================
   サービス詳細ページ
   =================================== */
/* 各サービスを背景色の帯にして、下端の波線（.wave-bottom）で区切る。
   波線の fill は次のセクションの背景色に合わせる */
.service-detail {
  padding: var(--space-xl) 0 calc(var(--space-xl) + 60px);
}

#wii {
  background: #fff6dc;
}

#support {
  background: #e6f8f6;
}

#rental {
  background: #ffeff4;
}

.sd-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* リード文と図を横並びに（図はTOPのサービスセクションと共通） */
.sd-lead {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-md);
}

.sd-lead--reverse .service-visual {
  order: -1;
}

.sd-lead .visual-card {
  padding: var(--space-md);
}

@media (max-width: 768px) {
  .sd-lead {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .sd-lead--reverse .service-visual {
    order: 0;
  }

  /* 傾けたカードの角と影が画面端で切れないよう、少し内側に収める */
  .sd-lead .service-visual {
    width: calc(100% - var(--space-md));
    max-width: 420px;
    margin: 0 auto var(--space-sm);
  }
}

.sd-head {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.sd-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--light);
}

.sd-title {
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.sd-title--ja {
  font-family: var(--font-title-ja);
  font-weight: 400;
  font-style: normal;
}

.sd-catch {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.sd-text {
  line-height: 1.95;
  margin-bottom: var(--space-md);
}

.sd-sub {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  margin: var(--space-lg) 0 var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.sd-sub::before {
  content: "★";
  color: var(--secondary);
}

.sd-list {
  margin: 0 0 var(--space-md) 1.4em;
}

.sd-list li {
  list-style: disc;
  line-height: 1.9;
  margin-bottom: 0.35em;
}

.sd-box {
  background: var(--light);
  border-radius: 20px;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: 6px 6px 0 rgba(45, 52, 54, 0.1);
}

/* 図（.sd-lead）の直後に箱が来るときは、ほかのセクションと同じだけ間隔を空ける */
.sd-lead + .sd-box {
  margin-top: calc(var(--space-lg) + var(--space-md));
}

.sd-box-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.sd-box-title--blue {
  color: var(--accent-blue);
}

.sd-box .sd-sub {
  margin-top: var(--space-md);
}

/* スペース写真（Wii サイトと同じ画像） */
.sd-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.sd-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

/* 利用例のイラストカード（Wii サイトの「ご利用イメージ」と同じ線画アイコン） */
.use-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--space-sm);
}

.use-grid--kitchen {
  color: var(--primary);
}

.use-grid--office {
  color: var(--accent-blue);
}

.use-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: var(--space-sm) var(--space-xs);
  background: #fff0ee;
  border-radius: 16px;
  text-align: center;
}

.use-grid--office .use-card {
  background: #e9f6fa;
}

/* 色付きのセクションに直接置く説明カード（Wiiでできること／こんな方に）：
   カードを白、アイコンの下地を淡色にする */
.use-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: var(--space-md);
}

.use-grid--wide .use-card {
  background: var(--light);
}

.use-grid--wii {
  color: var(--primary);
}

.use-grid--wii .use-ill-bg {
  fill: #fff0ee;
}

.use-grid--support {
  color: var(--secondary);
}

.use-grid--support .use-ill-bg {
  fill: #e6f8f6;
}

.use-ill {
  width: 60px;
  height: 60px;
}

.use-ill-bg {
  fill: var(--light);
}

.use-ill path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.use-card-label {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
  /* 単語の途中で折り返さない（収まらないときだけ途中で折る） */
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .sd-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sd-gallery img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
}

.sd-note {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* ===================================
   お問い合わせフォーム
   =================================== */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.form-row {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.form-label .req {
  color: var(--light);
  background: var(--primary);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 0.5em;
  vertical-align: middle;
}

.form-label .opt {
  color: var(--gray);
  font-size: 0.75rem;
  margin-left: 0.5em;
  vertical-align: middle;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 3px dotted var(--dark);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--light);
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-consent {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  margin: var(--space-lg) 0;
  line-height: 1.7;
}

.form-consent input {
  margin-top: 0.35em;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-consent a {
  color: var(--primary);
  font-weight: 700;
}

.form-submit {
  text-align: center;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--primary);
  color: var(--light);
  border: none;
  cursor: pointer;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 4px 4px 0 var(--dark);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 var(--dark);
  background: var(--accent-pink);
}

.form-status {
  text-align: center;
  min-height: 1.4em;
  margin-top: var(--space-sm);
  font-weight: 700;
}

.form-status.is-success {
  color: var(--secondary);
}

.form-status.is-error {
  color: var(--primary);
}

/* 入力エラー時の見た目（クライアント側バリデーション） */
.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--primary);
  border-style: solid;
  background: #fff6f6;
}

.form-input.is-invalid:focus,
.form-textarea.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.25);
}

.field-error {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 0.4em;
  min-height: 1em;
}

.field-error:empty {
  margin-top: 0;
}

/* ===================================
   NEWS 記事（詳細）
   =================================== */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.article-date {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
}

.article-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.5;
  margin: var(--space-xs) 0 var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 3px solid var(--dark);
}

.article-body p {
  line-height: 2;
  margin-bottom: var(--space-md);
}
