/* style.css - 手書き版 v3 (シンプル構成ベース) */

/* フルスクリーン防止のためのグローバル設定 */
html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    /* フルスクリーン表示を防ぐ */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* フルスクリーン要素として認識されないようにする */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

/* フルスクリーン要素の防止 */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* テキスト選択を許可する要素 */
p, h1, h2, h3, h4, h5, h6, span, div, a, input, textarea, label {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* --- 基本設定 & リセット --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- スムーズスクロール強化 --- */
html { 
  scroll-behavior: smooth; 
  font-size: 16px; 
  /* カスタムスクロールバー */
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Webkit系ブラウザ用のカスタムスクロールバー */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* スムーズスクロール用のカスタムプロパティ */
:root {
  --scroll-padding-top: 80px;
  --scroll-behavior: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* スクロールスナップの設定 */
.section {
  scroll-margin-top: var(--scroll-padding-top);
}

/* スクロールインジケーター */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
  transform-origin: left;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-indicator.visible {
  opacity: 1;
}

/* スムーズスクロール用のアニメーションクラス */
.smooth-scroll-target {
  scroll-margin-top: var(--scroll-padding-top);
}

/* スクロール時の視覚的フィードバック */
.scroll-feedback {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.scroll-feedback:hover {
  transform: translateY(-2px);
}

/* パフォーマンス最適化 */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* スクロール時のアニメーション最適化 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #f8fafc; /* body背景色 */
  margin: 0;
  /* ↓ スティッキーフィンガーを追記 */
  min-height: 100vh; /* body全体の最小の高さを画面の高さ100%にする */
  display: flex;       /* Flexboxレイアウトを適用 */
  flex-direction: column; /* 子要素を縦に並べる */
  position: relative; /* ローディングアニメーションの基準点 */
}

/* メインコンテンツの初期状態 */
main {
  flex-grow: 1; /* main要素が利用可能なスペースを埋めるように伸びる */
  /* これにより、コンテンツが短くてもfooterが下に押しやられる */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

main.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ヘッダーの初期状態 */
.header {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.loaded {
  opacity: 1;
  transform: translateY(0);
}

img { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; transition: color 0.3s ease; }
a:hover { text-decoration: underline; color: #1d4ed8; }
ul { list-style: disc; padding-left: 1.5em; }
li { margin-bottom: 0.5rem; }

/* --- レイアウト用共通クラス --- */
.container, .section__inner {
  width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto;
  padding-left: 20px; padding-right: 20px;
}
.section { 
  padding-top: 50px; 
  padding-bottom: 50px; 
  margin-bottom: 80px; /* ★セクションの下に均等なスペースを作る */
}
.section__title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 40px; color: #1f2937; }
.section__subtitle { text-align: center; color: #4b5563; margin-bottom: 40px; max-width: 640px; margin-left: auto; margin-right: auto; }
.button { display: inline-block; background-color: #2563eb; color: white; font-weight: 700; padding: 10px 25px; border-radius: 5px; transition: all 0.3s ease; cursor: pointer; border: 2px solid #2563eb; text-align: center; font-size: 1rem; }
.button:hover { background-color: #fff; color: #2563eb; text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.hero__br { display: block; }
@media (min-width: 768px) { 
  .hero__br { display: none; } 
  .section {
    padding-top: 70px;  /* ← PC表示での上の余白をさらに増やす (例: 100px) */
    padding-bottom: 70px; /* ← PC表示での下の余白をさらに増やす (例: 100px) */
    margin-bottom: 70px; /* ★PCでのセクション下のスペースを増やす */
  }
}


/* --- ヘッダー --- */
.header { 
  background-color: transparent; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
.header__inner { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 24px 32px; 
  max-width: 1200px; 
  margin: 0 auto; 
}
.header__logo h1 { font-size: 1.25rem; font-weight: 700; }
.header__logo a { color: #1f2937; text-decoration: none; }
.header__gnav { display: none; }
@media (min-width: 768px) {
  .header__gnav { display: block; }
  .header__gnav-list { list-style: none; display: flex; gap: 40px; padding-left: 0; }
  .header__gnav-item a { color: #4b5563; font-weight: 500; font-size: 1.1rem; padding: 8px 0; text-decoration: none; transition: color 0.3s ease; }
  .header__gnav-item a:hover { color: #2563eb; text-decoration: none; }
  .header__gnav-item a.active { color: #2563eb; font-weight: 600; }
}

/* --- ハンバーガーメニュー --- */
.header__hamburger { 
  display: block; 
  cursor: pointer; 
  border: none; 
  background: none; 
  padding: 8px; 
  position: relative;
  z-index: 101;
  transition: all 0.3s ease;
}
.header__hamburger span { 
  display: block; 
  width: 25px; 
  height: 3px; 
  background-color: #333; 
  margin: 5px 0; 
  transition: all 0.3s ease;
  transform-origin: center;
}
@media (min-width: 768px) { .header__hamburger { display: none; } }

/* ハンバーガーメニューアニメーション */
.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* --- モバイルメニュー --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu__item {
  margin: 20px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.mobile-menu.active .mobile-menu__item {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-menu__item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu__item:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu__item:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu__item:nth-child(4) { transition-delay: 0.4s; }

.mobile-menu__link {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-menu__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  transition: left 0.5s ease;
}

.mobile-menu__link:hover::before {
  left: 100%;
}

.mobile-menu__link:hover {
  color: #2563eb;
  background-color: rgba(37, 99, 235, 0.05);
  transform: translateY(-2px);
}

/* スクロール時のヘッダー背景 */
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}


/* --- ヒーロー --- */
#hero { /* <<<--- セレクタが #hero (ID) であることを確認！ */
  position: relative;
  height: 100vh;      /* デフォルトの高さ */
  overflow: hidden;   /* はみ出し防止 */
  background-image: url('../images/hero-image.png'); /* <<<--- 画像パスを確認！(相対パス) */
  background-size: cover;                             /* 要素全体を覆う */
  background-position: center center;                 /* 中央を表示 (ここを center top や center bottom に変えて調整) */
  /* ↓ 背景画像の上にテキストを表示するための設定 */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0; /* 初期状態は非表示 */
  transition: opacity 2s ease-in-out; /* より滑らかな遷移 */
  filter: brightness(0.3) contrast(1.2); /* 初期状態は暗め */
}

#hero.visible {
  opacity: 1; /* アニメーション開始時に表示 */
  filter: brightness(1) contrast(1); /* 完全に表示された状態 */
}

/* ヒーローセクションのテキスト用オーバーレイとコンテンツ配置 */
.hero__overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.2); /* 半透明の黒 */
  z-index: 1;
}
.hero__inner {
  position: relative; z-index: 2; padding: 20px;
}
.hero__title { 
  font-size: 3.5rem; 
  font-weight: 700; 
  margin-bottom: 20px; 
  line-height: 1.3; 
  opacity: 0; /* 初期状態は完全に非表示 */
}
.hero__subtitle {
  opacity: 0; /* 初期状態は完全に非表示 */
  transform: translateY(30px) translateZ(0); /* 初期状態：下に30px移動 + GPUアクセラレーション */
  /* ↓ここでアニメーション本体を指定しています */
  animation: rise-up 1.2s ease forwards;
  animation-delay: 3.5s; /* ヒーローテキストが揃った後に開始 */
  font-size: 1.1rem; 
  margin-bottom: 30px; 
  max-width: 600px; 
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  animation-play-state: paused; /* 初期状態ではアニメーションを停止 */
}
.hero__button { 
  font-size: 1.1rem; 
  padding: 12px 30px; 
  border-radius: 30px; 
}
/* ↑↑↑ ヒーロー関連ここまで ↑↑↑ */

/* --- Splitting.js ヒーローテキストアニメーション --- */
/* ★★★★★ 不規則な出現アニメーション (速度調整版) ★★★★★ */
.hero__title .char {
  display: inline-block;
  opacity: 0; /* 初期状態は透明 */
  transform: translateZ(0); /* アニメーションを滑らかにするためのGPUアクセラレーション */
  /* ↓ここでアニメーション本体を指定しています */
  animation: random-reveal 2.0s ease forwards;
  animation-play-state: paused; /* 初期状態ではアニメーションを停止 */
}

.hero__title.animate .char {
  animation-play-state: running; /* アニメーション開始時に再生 */
}

.hero__subtitle .char {
  display: inline-block;
  opacity: 0; /* 初期状態は透明 */
  transform: translateY(30px) translateZ(0); /* 初期状態：下に30px移動 + GPUアクセラレーション */
  /* ↓ここでアニメーション本体を指定しています */
  animation: rise-up 1.2s ease forwards;
  animation-play-state: paused; /* 初期状態ではアニメーションを停止 */
}

.hero__subtitle.animate .char {
  animation-play-state: running; /* アニメーション開始時に再生 */
}

@keyframes random-reveal {
  from {
    opacity: 0;
    filter: blur(10px); /* 開始時：透明で、10pxのぼかしがかかっている */
  }
  to {
    opacity: 1;
    filter: blur(0);    /* 終了時：不透明で、ぼかしがなくなる */
  }
}

@keyframes rise-up {
  from {
    opacity: 0;
    transform: translateY(30px) translateZ(0); /* 開始時：透明で下に30px */
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);    /* 終了時：不透明で元の位置 */
  }
}
/* ★★★★★ ここまで ★★★★★ */


/* --- fade-inアニメーション --- */
.fade-in-before {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* --- セクションfade-inアニメーション --- */
.section-fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* セクション内の要素の段階的アニメーション */
.section-fade-in.visible .fade-in-before {
  animation: staggerFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes staggerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* --- 設備紹介 --- */
.equipment { background-color: #f9fafb; }
.equipment__highlight {
  max-width: 1100px; 
  margin: 0 auto; 
  background-color: white; 
  padding: 40px; 
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: flex; 
  flex-wrap: wrap; 
  align-items: center; 
  gap: 30px;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(0) rotate(0deg);
  position: relative;
  overflow: hidden;
}

.equipment__highlight:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipment__image-area { width: 100%; }
.equipment__text-area { width: 100%; }
@media (min-width: 768px) { .equipment__highlight {min-height: 500px;  flex-wrap: nowrap; gap: 40px; } .equipment__image-area { width: 50%; } .equipment__text-area { width: 50%; } }
.equipment__image-area img { border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.equipment__name { font-size: 1.75rem; font-weight: 700; margin-bottom: 15px; color: #1d4ed8; }
.equipment__description { margin-bottom: 20px; color: #374151; }
.equipment__features { margin-bottom: 25px; color: #374151; }
.equipment__button { padding: 8px 20px; }

/* 紙が波打つアニメーション */
@keyframes paperWave {
  0%, 100% {
    transform: translateY(-8px) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-8px) rotate(-0.3deg);
  }
  75% {
    transform: translateY(-8px) rotate(0.2deg);
  }
}

/* カード内の要素も波打ちに合わせて動く */
.equipment__highlight:hover .equipment__image-area,
.equipment__highlight:hover .equipment__name,
.equipment__highlight:hover .equipment__description {
  animation: none;
  transform: none;
}

/* --- サービス --- */
.services { background-color: #f9fafb; }
.services__container { display: grid; gap: 30px; }
@media (min-width: 768px) { .services__container { min-height: 500px; grid-template-columns: repeat(3, 1fr); } }
.service-card { 
  background-color: white; 
  padding: 30px; 
  border-radius: 8px; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(0) rotate(0deg);
  position: relative;
  overflow: hidden;
}

.service-card:hover { 
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card__image-area { margin-bottom: 20px; }
.service-card__image-area img { width: 100%; height: 180px; object-fit: cover; border-radius: 5px; }
.service-card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.service-card__description { color: #4b5563; margin-bottom: 15px; font-size: 0.9rem; }
.service-card__button { font-weight: 600; padding: 8px 18px; font-size: 0.9rem; background: #2563eb; color: #fff; border: 2px solid #2563eb; transition: all 0.3s ease; }
.service-card__button:hover { background: #fff; color: #2563eb; text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }

/* --- お問い合わせ --- */
.contact {
  margin-bottom: 0;
  padding-bottom: 40px;
  background: #2563eb;
  color: white;
  padding: 30px;
}
.contact__title { color: white; }
.contact__container { max-width: 900px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; background-color: white; color: #1f2937; padding: 40px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
@media (min-width: 768px) { .contact__container { flex-wrap: nowrap; padding: 30px; } .contact__info { width: 35%; } .contact__form-area { width: 65%; } }
.contact__info { width: 100%; }
.contact__subtitle { font-size: 1.5rem; font-weight: 700; margin-bottom: 25px; border-bottom: 2px solid #2563eb; padding-bottom: 8px; }
.contact__info p { margin-bottom: 12px; font-size: 0.9rem; line-height: 1.6; }
.contact__info p:last-child { margin-bottom: 0; }
.contact__info a { color: #2563eb; word-break: break-all; }
.contact__form-area { width: 100%; }

/* --- フォームアニメーション --- */
.contact__form {
  position: relative;
}

.form-group {
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group.animate {
  opacity: 1;
  transform: translateY(0);
}

/* フォーム要素の段階的アニメーション */
.form-group:nth-child(1) { transition-delay: 0.1s; }
.form-group:nth-child(2) { transition-delay: 0.2s; }
.form-group:nth-child(3) { transition-delay: 0.3s; }
.form-group:nth-child(4) { transition-delay: 0.4s; }
.form-group:nth-child(5) { transition-delay: 0.5s; }

/* フォーム要素のホバー効果 */
.form-group:hover {
  transform: translateY(-2px);
}

/* ラベルのアニメーション */
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.form-group:hover label {
  color: #2563eb;
}

/* 入力フィールドのアニメーション */
.contact__form input, 
.contact__form textarea { 
  display: block; 
  width: 100%; 
  padding: 12px 15px; 
  border: 2px solid #e5e7eb; 
  border-radius: 8px; 
  font-size: 1rem; 
  line-height: 1.5; 
  color: #1f2937; 
  font-family: inherit; 
  background-color: #f9fafb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact__form input::placeholder, 
.contact__form textarea::placeholder { 
  color: #9ca3af; 
  transition: color 0.3s ease;
}

.contact__form input:focus, 
.contact__form textarea:focus { 
  outline: none; 
  border-color: #2563eb; 
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background-color: white;
  transform: translateY(-1px);
}

.contact__form input:focus::placeholder,
.contact__form textarea:focus::placeholder {
  color: #d1d5db;
}

/* 入力フィールドの光る効果 */
.contact__form input::before,
.contact__form textarea::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact__form input:focus::before,
.contact__form textarea:focus::before {
  left: 100%;
}

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

/* 送信ボタンのアニメーション */
.contact__submit-button { 
  width: 100%; 
  font-size: 1rem; 
  padding: 12px 20px; 
  background: #2563eb; 
  color: #fff; 
  border: 2px solid #2563eb; 
  border-radius: 8px; 
  font-weight: 700; 
  transition: all 0.3s ease; 
  cursor: pointer;
}

.contact__submit-button:hover {
  background: #fff; 
  color: #2563eb; 
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.contact__submit-button:disabled { 
  opacity: 0.6; 
  cursor: not-allowed; 
  transform: none;
  box-shadow: none;
  border-color: #9ca3af;
}

/* フォームメッセージのアニメーション */
.form-message { 
  margin-top: 15px; 
  font-size: 0.9rem; 
  font-weight: 500; 
  min-height: 1.3em; 
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-message.success { 
  color: #16a34a; 
  background-color: #f0fdf4;
  padding: 12px;
  border-radius: 6px;
  border-left: 4px solid #16a34a;
}

.form-message.error { 
  color: #dc2626; 
  background-color: #fef2f2;
  padding: 12px;
  border-radius: 6px;
  border-left: 4px solid #dc2626;
}

/* フォーム送信中のアニメーション */
.contact__submit-button.sending {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  pointer-events: none;
}

.contact__submit-button.sending::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* フォーム要素のバリデーションアニメーション */
.form-group.error input,
.form-group.error textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group.success input,
.form-group.success textarea {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* フォーム全体のフェードイン */
.contact__form.animate {
  animation: formFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* --- フッター --- */
.footer {
  background: #1f2937;
  color: #fff;
  padding: 40px 0 20px 0;
  text-align: center;
  margin-top: 60;
  padding: 24px 0 32px 0;
}

.footer__nav ul {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.footer__nav li {
  list-style: none;
}

.footer__nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: #4fc3f7;
}

.footer__sns {
  margin-bottom: 16px;
}

.footer__sns a {
  margin: 0 8px;
  display: inline-block;
}

.footer__sns img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.footer p {
  margin: 0;
  font-size: 0.95em;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .footer__nav ul {
    flex-direction: column;
    gap: 12px;
  }
}

/* --- アニメーション --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.8s ease-out forwards; opacity: 0; }
.animation-delay-300 { animation-delay: 300ms; }
.animation-delay-600 { animation-delay: 600ms; }

/* ===== style.css 設備詳細ページ用スタイル (完成形 v2) ===== */

.equipment-detail {
  background-color: white;
}

.detail-content {
  max-width: 850px;
  margin: 0 auto;
  padding-top: 50px;
  padding-bottom: 50px;
}


/* --- 画像エリア --- */
.detail-image-area {
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
  margin-bottom: 50px; /* 画像下のマージンを増やす */
}
.detail-image-area img {
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1); /* 影を少し調整 */
  width: 100%;
}

/* --- テキストエリア --- */
.detail-text-area {
  max-width: 750px; /* テキストの最大幅も調整 */
  margin: 0 auto; /* 中央揃え */
  line-height: 1.85; /* 行間をほんの少しだけ広げる */
}
.detail-text-area p {
  margin-bottom: 1.5em; /* 段落下のマージン */
  color: #4a5568; /* 文字色を少し柔らかく (gray-700) */
}

/* --- 見出し類 --- */
.detail-subtitle { /* 「生産性と品質...」 */
  font-size: 1.6rem; /* 少し大きく */
  margin-bottom: 1.5em;
  padding-bottom: 0.8em;
  border-bottom: 1px solid #e5e7eb; /* 罫線を細く */
}

/* --- 特長リストと仕様表の共通見出し --- */
.detail-point-title {
  font-size: 1.2rem; /* 少し大きく */
  font-weight: 700;
  margin-top: 2.8em; /* 前の要素との間隔をしっかり空ける */
  margin-bottom: 1em;
  padding-left: 0; /* 左のpaddingをなくす */
  border-left: none; /* 左の線をなくす */
  border-bottom: 2px solid #2563eb; /* 代わりに下線を引く */
  padding-bottom: 0.4em;
}

/* --- 特長リスト --- */
.detail-list {
  margin-bottom: 1.8em;
  padding-left: 0.5em; /* 全体の左インデントを少し減らす */
  list-style-position: outside; /* マーカーを外側に */
}
.detail-list li {
  margin-bottom: 0.8em;
  padding-left: 0.8em; /* マーカーとテキストの間隔 */
}
.detail-list li strong {
  color: #1f2937; /* 太字の色を少し濃く (gray-800) */
}

/* --- 仕様表 --- */
.detail-specs {
  margin-bottom: 1.8em;
  border: 1px solid #e5e7eb; /* テーブル全体に枠線 */
  border-collapse: separate; /* セル境界線を分離 */
  border-spacing: 0; /* セル間隔を0に */
  border-radius: 6px; /* テーブルの角を丸める */
  overflow: hidden; /* 角丸のため */
}
.detail-specs th,
.detail-specs td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: middle; /* 上下中央揃えに */
  border-bottom: 1px solid #e5e7eb; /* 横罫線のみに */
  border-top: none;
  border-left: none;
  border-right: none;
}
.detail-specs th {
  background-color: #f9fafb;
  width: 30%; /* 幅を少し調整 */
  font-weight: 600; /* 少し細く */
  border-right: 1px solid #e5e7eb; /* 縦罫線を追加 */
}
/* 最後の行の下罫線を削除 */
.detail-specs tr:last-child th,
.detail-specs tr:last-child td {
   border-bottom: none;
}
/* ===== style.css に追記 (右カラムの背景とパディング) ===== */
@media (min-width: 768px) {
  .specs-column {
      /* width: 45%; などは既存の指定 */
      background-color: #f9fafb; /* 薄いグレー (テーブルヘッダと同じ) */
      padding: 20px;             /* 内側に余白 */
      border-radius: 8px;        /* 角を丸める */
  }
  /* カラムにパディングを追加した場合の調整 */
  .specs-column .detail-point-title { margin-top: 0; margin-bottom: 1em; }
  .specs-column .detail-specs { margin-bottom: 0; }
}
/* ====================================================== */

/* --- 戻るボタン --- */
.back-to-top {
    text-align: center;
    margin-top: 70px;
    margin-bottom: 50px;
}
.back-to-top .button {
  background-color: #4b5563; /* 少し濃いグレー (gray-600) */
  padding: 10px 25px; /* パディング調整 */
  border-radius: 5px;
  border: 2px solid #4b5563;
}
.back-to-top .button:hover {
  background-color: #fff; 
  color: #4b5563;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 85, 99, 0.2);
}

/* ====================================================== */

/*  uvサービス詳細ページ  */

.detail-feature-list {
  margin-bottom: 1.5em;
}

.detail-feature-list dt {
  font-weight: 700;
  color: #1f2937; /* 見出し色 (濃いグレー) */
  font-size: 1.1em;
  margin-top: 1.8em; /* 各項目の上に少しスペース */
  padding-bottom: 0.3em;
}
.detail-feature-list dt:first-child {
    margin-top: 0.5em; /* 最初の項目だけ上のスペースを少なめに */
}

.detail-feature-list dd {
  margin-left: 0; /* ブラウザデフォルトのマージンをリセット */
  margin-top: 0.5em;
  margin-bottom: 1em;
  color: #4a5568; /* 説明文の色 */
  padding-left: 0.5em; /* 少しインデント */
}

/* ========================================================== */

@media (min-width: 768px) {
  .equipment__highlight {
    min-height: 500px;
  }
  .services__container {
    min-height: 500px;
  }
  .contact__container {
    padding: 30px;
  }
  .contact {
    min-height: 500px;
  }
}

/* スムーズスクロールリンクのホバー効果 */
.smooth-scroll-link {
    position: relative;
    transition: color 0.3s ease;
}

.smooth-scroll-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.3s ease;
}

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

/* フォーム要素のフォーカス状態 */
.form-group.focused label {
  color: #2563eb;
  transform: translateY(-2px);
}

.form-group.focused input,
.form-group.focused textarea {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background-color: white;
  transform: translateY(-1px);
}

/* フォーム要素のバリデーションアニメーション */
.form-group.error input,
.form-group.error textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  animation: shake 0.5s ease-in-out;
}

.form-group.success input,
.form-group.success textarea {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* エラー時のシェイクアニメーション */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* --- ローディングアニメーション --- */
.loading-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #60a5fa);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease;
  /* フルスクリーン防止のための設定 */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  /* フルスクリーン表示を防ぐための追加設定 */
  overflow: hidden;
  transform: none;
  -webkit-transform: none;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  /* フルスクリーン要素として認識されないようにする */
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  /* 追加のフルスクリーン防止設定 */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  border: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* フルスクリーン表示を完全に防ぐ */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  background-color: transparent !important;
  background-image: linear-gradient(135deg, #1e3a8a, #3b82f6, #60a5fa) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  /* フルスクリーン表示を防ぐ追加設定 */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
}

.loading-content {
  text-align: center;
  color: white;
  max-width: 400px;
  padding: 40px;
}

/* ローディングロゴ */
.loading-logo h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.loading-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

/* ローディングスピナー */
.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
}

/* 風に吹かれる紙のアニメーション（横から見た表現） */
.spinner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 30%, #dee2e6 70%, #ced4da 100%);
  border: 1px solid #adb5bd;
  border-radius: 1px;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: paperBlownSide 4s ease-in-out infinite;
  transform-origin: center;
  transform-style: preserve-3d;
}

.spinner-ring:nth-child(1) {
  animation-delay: 0s;
  background: linear-gradient(90deg, #ffffff 0%, #f8f9fa 30%, #e9ecef 70%, #dee2e6 100%);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  width: 80px;
  height: 60px;
  border-radius: 2px;
}

.spinner-ring:nth-child(2) {
  animation-delay: 0.8s;
  background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 30%, #dee2e6 70%, #ced4da 100%);
  box-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  width: 60px;
  height: 45px;
  top: 7.5px;
  left: 10px;
  border-radius: 1px;
}

.spinner-ring:nth-child(3) {
  animation-delay: 1.6s;
  background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 30%, #ced4da 70%, #adb5bd 100%);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 30px;
  top: 15px;
  left: 20px;
  border-radius: 1px;
}

/* 風に吹かれる紙のアニメーション定義（横から見た表現） */
@keyframes paperBlownSide {
  0% {
    transform: translateX(0) translateY(0) rotateY(0deg) rotateZ(0deg) scale(1);
    opacity: 0.9;
  }
  20% {
    transform: translateX(20px) translateY(-8px) rotateY(15deg) rotateZ(5deg) scale(1.05);
    opacity: 1;
  }
  40% {
    transform: translateX(35px) translateY(-15px) rotateY(25deg) rotateZ(10deg) scale(1.1);
    opacity: 0.95;
  }
  60% {
    transform: translateX(25px) translateY(-10px) rotateY(15deg) rotateZ(8deg) scale(1.05);
    opacity: 1;
  }
  80% {
    transform: translateX(10px) translateY(-3px) rotateY(8deg) rotateZ(3deg) scale(1.02);
    opacity: 0.9;
  }
  100% {
    transform: translateX(0) translateY(0) rotateY(0deg) rotateZ(0deg) scale(1);
    opacity: 0.9;
  }
}

/* 紙の影効果（横から見た表現） */
.spinner-ring::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 80%;
  height: 8px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  transform: translateX(-50%);
  filter: blur(4px);
  animation: shadowBlownSide 4s ease-in-out infinite;
}

.spinner-ring:nth-child(1)::after {
  animation-delay: 0s;
  height: 10px;
}

.spinner-ring:nth-child(2)::after {
  animation-delay: 0.8s;
  width: 70%;
  height: 8px;
}

.spinner-ring:nth-child(3)::after {
  animation-delay: 1.6s;
  width: 60%;
  height: 6px;
}

@keyframes shadowBlownSide {
  0% {
    opacity: 0.12;
    transform: translateX(-50%) scale(1);
  }
  20% {
    opacity: 0.15;
    transform: translateX(-50%) scale(1.1) translateX(8px);
  }
  40% {
    opacity: 0.18;
    transform: translateX(-50%) scale(1.2) translateX(15px);
  }
  60% {
    opacity: 0.15;
    transform: translateX(-50%) scale(1.1) translateX(10px);
  }
  80% {
    opacity: 0.12;
    transform: translateX(-50%) scale(1.05) translateX(4px);
  }
  100% {
    opacity: 0.12;
    transform: translateX(-50%) scale(1);
  }
}

/* プログレスバー */
.loading-progress {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 0.9s forwards;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffffff, #e0e7ff);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.progress-text {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 500;
}

/* アニメーション定義 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ローディング完了時のアニメーション */
.loading-screen.complete {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.loading-screen.complete .loading-logo h1,
.loading-screen.complete .loading-subtitle {
  color: #1e3a8a;
}

.loading-screen.complete .progress-fill {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .loading-logo h1 {
    font-size: 1.5rem;
  }
  
  .loading-subtitle {
    font-size: 1rem;
  }
  
  .loading-spinner {
    width: 60px;
    height: 60px;
  }
  
  .spinner-ring:nth-child(2) {
    width: 45px;
    height: 45px;
    top: 7.5px;
    left: 7.5px;
  }
  
  .spinner-ring:nth-child(3) {
    width: 30px;
    height: 30px;
    top: 15px;
    left: 15px;
  }
}

/* アニメーション軽減設定対応 */
@media (prefers-reduced-motion: reduce) {
  .loading-screen {
    transition: opacity 0.3s ease;
  }
  
  .loading-logo h1,
  .loading-subtitle,
  .loading-progress {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .spinner-ring {
    animation: none;
  }
  
  .progress-fill {
    transition: width 0.1s ease;
  }
  
  /* 風にたなびくアニメーションを無効化 */
  .service-card:hover,
  .equipment__highlight:hover {
    animation: none;
    transform: translateY(-8px);
  }
  
  .service-card:hover .service-card__image-area,
  .service-card:hover .service-card__title,
  .service-card:hover .service-card__description,
  .equipment__highlight:hover .equipment__image-area,
  .equipment__highlight:hover .equipment__name,
  .equipment__highlight:hover .equipment__description {
    animation: none;
    transform: none;
  }
  
  /* ボタンホバー効果を無効化 */
  .button:hover,
  .service-card__button:hover,
  .contact__submit-button:hover,
  .back-to-top .button:hover {
    transform: none;
    box-shadow: none;
  }
}