@charset "UTF-8";
/* ==========================================
   File: style.css
   Description: ページ固有のデザイン・コンテンツ装飾
   ========================================== */

/* --- 1. スライダー設定（最強版） --- */
.swiper-container {
  width: 94%;
  max-width: 1200px;
  height: 80vh;
  margin: 20px auto;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16 / 9; /* 基本は16:9（横長の長方形） */
  height: auto; /* 高さは比率に合わせて自動計算 */
  max-height: 600px; /* ただしPCでデカくなりすぎないように制限 */
}
.swiper-slide {
  height: 100%;
  overflow: hidden;
  position: relative;
}
.swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: brightness(90%);
}
.swiper-slide .text {
  position: absolute;
  top: 50%;
  left: 50% !important;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  text-align: center !important;
  color: #fff;
  z-index: 100;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}
.swiper-slide .text strong {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 20px;
}

/* ▼ スマホ用の調整 */
@media screen and (max-width: 767px) {
  .swiper-container {
    width: 95%;
    margin: 10px auto;

    /* スマホでは少し縦幅を持たせて見やすくする（4:3など） */
    aspect-ratio: 4 / 3;
    max-height: none; /* スマホでは高さ制限を解除 */
  }

  .swiper-slide .text strong {
    font-size: 1.8rem;
  }
}

/* --- 2. 共通見出し・フォーム --- */
.section-title {
  font-size: 2rem;
  color: #465daa;
  text-align: center;
  margin: 50px 0 30px;
  font-weight: bold;
}
.h4 {
  color: #333;
  margin-top: 40px;
}

/* フォーム共通 */
.form-control {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px;
}
/* フォーム入力時の枠線を「シンプル」にする */
.form-control:focus {
  border-color: #888 !important; /* 濃いグレー */
  box-shadow: none !important; /* ふわっとした影を消す */
}

/* --- 3. カードデザイン --- */
/* 基本理念カード */
.philosophy-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-top: 5px solid #88c95f;
  transition: transform 0.3s;
  height: 100%;
}
.philosophy-card:hover {
  transform: translateY(-5px);
}

/* 作業内容カード */
.card {
  border: none;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.card-img-top {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-img-top {
  transform: scale(1.05);
}
.card-body {
  padding: 1.25rem;
}

/* お問い合わせフォームカード */
.contact-card {
  max-width: 700px;
  margin: 40px auto;
  padding: 40px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* --- 4. タイムライン（1日の流れ） --- */
.timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 40px;
  border-left: 4px solid #e0e0e0;
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -51px;
  top: 5px;
  width: 22px;
  height: 22px;
  background: #465daa;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #465daa;
  z-index: 1;
}
.timeline-time {
  font-weight: bold;
  font-size: 1.2rem;
  color: #465daa;
  background: #fff;
  padding-right: 10px;
}
.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 6px solid #465daa;
  margin-top: 10px;
}
/* 休憩時間の特別色（オレンジ） */
.timeline-time.text-theme-orange {
  color: #f29f05 !important;
}
.timeline-item:has(.text-theme-orange)::before {
  background: #f29f05;
  box-shadow: 0 0 0 2px #f29f05;
}
.timeline-time.text-theme-orange + .timeline-content {
  border-left-color: #f29f05;
}
/* あさひ工房テーマカラーの文字色 */
.text-theme-orange {
  color: #f29f05 !important;
}

/* --- 5. 背景アニメーション --- */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  background-color: #fff8e1;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: -1;
  opacity: 0.6;
  animation: diagonal-flow-1 15s infinite alternate ease-in-out;
}
body::after {
  content: "";
  position: fixed;
  bottom: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  background-color: #e0f7fa;
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  z-index: -1;
  opacity: 0.6;
  animation: diagonal-flow-2 18s infinite alternate ease-in-out;
}
@keyframes diagonal-flow-1 {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-20vw, 20vh) rotate(20deg);
  }
}
@keyframes diagonal-flow-2 {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(20vw, -20vh) rotate(-15deg);
  }
}

/* --- 6. ご利用案内（navi.php）用 --- */
.step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}
.step-item {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 6px solid #f29f05;
  display: flex;
  flex-direction: column;
}
@media screen and (min-width: 768px) {
  .step-item {
    padding: 30px;
  }
}
.step-number {
  font-family: "Arial", sans-serif;
  font-weight: bold;
  font-size: 1.1rem;
  color: #f29f05;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.step-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #465daa;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #ddd;
}
.step-content p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.custom-table th {
  background-color: #eef2f9 !important;
  color: #465daa;
  vertical-align: middle;
  width: 30%;
}
.custom-table td {
  vertical-align: middle;
}

.faq-box {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
}
.faq-question {
  background-color: #465daa;
  color: #fff;
  padding: 15px 20px;
  font-weight: bold;
  position: relative;
}
.faq-question::before {
  content: "Q";
  font-size: 1.2em;
  margin-right: 10px;
  color: #f29f05;
}
.faq-answer {
  background-color: #fff;
  padding: 20px;
  line-height: 1.8;
}
.faq-answer::before {
  content: "A.";
  font-weight: bold;
  color: #465daa;
  margin-right: 10px;
  font-size: 1.2em;
}

/* ==========================================
   ▼ 文字サイズ変更ボタンへの対応（STEPリスト用） ▼
   ========================================== */

/* STEP番号 */
.step-number {
  font-size: 1.1em !important; /* rem から em に変更 */
}

/* 項目タイトル（お問い合わせ・見学など） */
.step-title {
  font-size: 1.3em !important; /* rem から em に変更 */
}

/* 説明文 */
.step-content p {
  font-size: 1em !important; /* 固定サイズを解除 */
}

/* ==========================================
   ▼ お問い合わせページ 新デザイン案 (A, B, C) ▼
   ========================================== */

/* --- 共通パーツ --- */
.badge-required {
  background-color: #ff6b6b; /* 必須バッジの赤色 */
  color: white;
  font-size: 0.75em;
  padding: 4px 8px;
  border-radius: 4px;
  vertical-align: 2px;
  margin-left: 8px;
  font-weight: normal;
}

/* --- 【案C】ウォーム・ヘッダー（親しみやすさ） --- */
.contact-hero-area {
  background-color: #fffbf0; /* 優しいオレンジ背景 */
  padding: 60px 0 100px; /* 下に余白を多く取ってカードを重ねる */
  text-align: center;
}
.contact-card-overlap {
  margin-top: -80px; /* 背景の上にカードを乗っける */
  background: #fff;
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

/* PCサイズ以上（768px〜）の時だけ改行を禁止するクラス */
@media (min-width: 768px) {
  .text-md-nowrap {
    white-space: nowrap !important;
  }
}

/* 全体を表示させたい画像用のクラス */
.swiper-slide img.show-all {
  object-fit: contain !important; /* 全体を表示 */
  background-color: #ffffff; /* ★ここを「白」に変更 */
}

/* --- 写真の上でも目立つ白いボタン --- */
.btn-white-pop {
  background-color: #ffffff; /* 背景を真っ白に */
  color: #333333; /* 文字は濃いグレーで見やすく */
  border: none; /* 枠線はなし */
  border-radius: 50px; /* 角を丸くして優しい印象に */
  padding: 12px 30px; /* ボタンのサイズを少し大きく */
  font-weight: bold; /* 文字を太く */
  transition: all 0.3s ease; /* ホバー時の動きをなめらかに */
  text-decoration: none; /* 下線を消す */
  display: inline-block; /* 形を崩さないおまじない */
  margin-top: 15px; /* 上の文字との隙間 */
}

/* マウスを乗せたときの動き */
.btn-white-pop:hover {
  background-color: #f0f0f0; /* 少しだけグレーに */
  transform: translateY(-3px); /* フワッと浮き上がる */
}
