/*
Theme Name: AMS Pool Maintenance
Theme URI: https://sd-aircon.com/
Author: AMS Aquatic Maintenance Services
Description: シンガポールの個人住宅向けプールメンテナンス会社AMSのオリジナルテーマ。
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ams-pool
*/

@charset "UTF-8";

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

html {
  overflow-x: hidden; /* スクロール登場アニメーションの初期位置が横スクロールの原因になっていたため */
}

body {
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-weight: 500; /* 本文以外はMedium */
  color: #333;
  line-height: 1.6;
  overflow-x: hidden; /* スクロール登場アニメーションの初期位置が横スクロールの原因になっていたため */
}

p {
  font-weight: 400; /* 見出し・リスト以外の文章はRegular */
}

/* 明朝体用共通クラス */
.font-serif {
  font-family: 'Noto Serif JP', "Times New Roman", Georgia, "Yu Mincho", "游明朝", "MS Mincho", "MS P明朝", serif;
  font-weight: 600;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   ヘッダー (波形リピート背景 ＆ レスポンシブ仕様)
========================================== */
.header {
  width: 100%;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transform: translateZ(0);
}

/* 波形装飾（ヘッダー下端からわずかにはみ出す形。ヘッダー自体や隙間ゼロの帯は
   描画が不安定になるケースを確認したため、実績のある方式を採用しコンパクトに調整）
   transform指定は、初期表示時に波形が描画されない(スクロールすると現れる)不具合を防ぐため */
.header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -40px;
  width: 100%;
  height: 40px; /* 山の頂点が四角い枠で切れて平らに見えないよう、少し余裕を持たせた高さ */
  background-image: url('images/menu-bg.png');
  background-repeat: repeat-x;
  background-size: 195px 150px; /* 波を少し大きく、間隔も広げて緩やかに */
  background-position: bottom center;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  opacity: 0; /* PC・スマホ共通で、初期表示は直線のままにしスクロールで波形を表示する */
  transition: opacity 0.3s ease;
}

.header.wave-visible::after {
  opacity: 1;
}

.header-inner {
  max-width: 1200px; /* 全体の幅をコンパクトに縮小し、左右に余白を持たせる */
  margin: 0 auto;
  display: flex;
  justify-content: center; /* ロゴ・メニュー・CTAをまとめて画面中央に配置 */
  align-items: center; /* 子要素を縦位置中央に綺麗に揃える */
  gap: 56px; /* ロゴとメニューの距離を近づける */
  padding: 22px 20px 10px 20px; /* 上の余白を詰めてコンパクトに */
  position: relative;
}

/* 横型青ロゴのサイズ・配置調整（小さくして縦中央に固定） */
.logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: block;
  line-height: 1;
}

.logo-img {
  height: 30px; /* ロゴサイズをすっきりと小さめに調整 */
  width: auto;
  display: block;
}

/* スマホ用ハンバーガーメニュー非表示（初期状態） */
.menu-check, .menu-btn {
  display: none;
}

.nav-list {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-list a {
  font-size: 14px;
  font-weight: 400; /* PCのみ少し細く */
  color: #333;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: #005bac;
}

/* スマホ用のボタン類はPCでは非表示 */
.nav-lang-sp, .nav-cta {
  display: none;
}

/* PC用言語切り替え・お問い合わせエリア */
.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
}

.lang-btn {
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
}

.lang-btn:hover {
  color: #005bac;
}

.lang-btn.active {
  color: #333;
  cursor: default;
}

.lang-divider {
  color: #ccc;
  margin: 0 6px;
}

.header-cta .btn-contact {
  display: none; /* グローバルメニューのお問い合わせボタンを一旦非表示に */
}

.btn-contact {
  display: inline-block;
  border: 2px solid transparent; /* 太さを1px→2pxに。色はグラデーション用に透明化 */
  color: #003a8c; /* 群青色 */
  padding: 2px 20px; /* 上下をさらに詰めて高さをコンパクトに */
  border-radius: 4px;
  font-size: 13px; /* 文字サイズを少し小さく */
  font-weight: 700; /* 矢印を含む文字を太く */
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(to right, #00bcd4, #003a8c) border-box; /* 水色→群青色の水平グラデーションボーダー */
  transition: all 0.3s;
}

.btn-contact:hover {
  background: linear-gradient(to right, #00bcd4, #003a8c) border-box;
  color: #fff;
}

/* ==========================================
   メインビジュアル (JS自動スライドショー仕様)
========================================== */
.hero {
  margin-top: 75px;
  height: 75vh; /* 写真を美しく魅せるためのダイナミックな縦幅 */
  min-height: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.slider-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s ease-in-out, transform 5s ease-out;
  transform: scale(1.05);
}

/* 表示中のスライド（じわっとズームアウト） */
.slide.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1.0);
}

/* スライド画像指定（images/mainvisual-image01.jpg〜06.jpgの6枚で切り替え） */
.slide-1 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('images/mainvisual-image01.jpg');
}
.slide-2 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('images/mainvisual-image02.jpg');
}
.slide-3 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('images/mainvisual-image03.jpg');
}
.slide-4 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('images/mainvisual-image04.jpg');
}
.slide-5 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('images/mainvisual-image05.jpg');
}
.slide-6 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('images/mainvisual-image06.jpg');
}

/* 下中央の丸型インジケーター */
.slider-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
}

.dot {
  width: 3px;
  height: 24px;
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.dot.active {
  background-color: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-title {
  font-size: 44px; /* バナーとの重なりを避けるため縮小 */
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 18px;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.mobile-break {
  display: none; /* PCでは改行しない */
}

.pc-break {
  display: block; /* PCでは改行する */
}

.mobile-hide {
  display: inline; /* PCでは表示 */
}

/* 縦型白ロゴ画像（枠なし・単体ですっきり表示） */
.hero-logo {
  display: block;
  background: none;
  padding: 0;
  margin: 0 auto;
}

.hero-logo-img {
  height: 100px;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* ==========================================
   特徴セクション (濃紺グラデーション & ゴールド枠画像挿入仕様)
========================================== */
.features {
  background: linear-gradient(135deg, #004098 0%, #002868 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

/* 3カラムグリッド（枠と枠の間を詰めた状態を維持：gap 8px） */
.feature-grid {
  display: flex;
  justify-content: center; 
  gap: 8px; 
  margin-bottom: 80px;
}

.feature-item {
  flex: 1;
  max-width: 250px; 
}

/* 飾り線と文字を縦に並べるボックス */
.feature-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px; /* 飾り画像とテキストの間隔をさらに30px広げた */
  width: 100%;
  height: 220px; /* ゴールド画像と文字の距離を元に戻すため、全体の縦幅をゆったり（220px）に戻しました */
  margin: 0 auto;
}

/* 上部の飾り画像スタイル（幅60%維持） */
.deco-img-top {
  width: 60%; 
  height: auto;
  display: block;
}

/* 下部の飾り画像スタイル（幅60%維持） */
.deco-img-bottom {
  width: 60%; 
  height: auto;
  display: block;
  transform: rotate(180deg); 
}

.feature-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px; /* 見出しとサブテキストの行間を広げた */
}

.feature-item h3 {
  font-size: 28px; 
  color: #f7cd46; 
  margin-bottom: 0; /* 行間を詰めるため余白は line-height 側で調整 */
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.1; /* 行間を詰めてサブテキストとの距離を縮める */
  white-space: nowrap; 
}

.feature-item p {
  font-size: 14px;
  color: #e0e8f5;
  line-height: 1.1;
  white-space: nowrap; 
}

.intro-text h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

.intro-text p {
  font-size: 15px;
  color: #e0e8f5;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================
   お悩みセクション（左：テキスト／右：画像）
========================================== */
.pain-points {
  width: 100%;
  background-color: #f6f6f6;
  padding: 80px 0 0 0; /* 下は前回通り0に戻し、次のセクションと接するように */
}

.pain-points-inner {
  display: flex;
  align-items: flex-start; /* 見出しテキストと写真の上端を揃える */
  gap: 20px; /* テキストと写真の間隔を詰めた */
}

.pain-points-text {
  flex: 0 0 auto;
  width: calc(100% - 557px - 20px); /* 写真の固定幅を差し引いた残りを確実に確保 */
  min-width: 0;
  padding-left: 15px; /* 見出しが1行に収まるよう調整（写真側への寄せは控えめに） */
  box-sizing: border-box;
}

.pain-points-text h2 {
  font-size: 38px;
  color: #003a8c;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 30px;
  line-height: 1.4;
}

.pain-points-text > p {
  font-size: 15px;
  color: #444;
  line-height: 1.9;
  margin-bottom: 35px;
}

.pain-points-list {
  margin-bottom: 40px;
}

.pain-points-list li {
  position: relative;
  padding-left: 32px;
  font-size: 21px; /* 110%に拡大 */
  font-weight: 600;
  color: #222;
  margin-bottom: 22px;
}

.pain-points-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px; /* 文字サイズ拡大に合わせて中央に調整 */
  width: 13px; /* 70%に縮小 */
  height: 7px; /* 70%に縮小 */
  border-left: 2px solid #2ca0e0; /* 70%に縮小 */
  border-bottom: 2px solid #2ca0e0; /* 70%に縮小 */
  transform: rotate(-45deg);
}

.pain-points-closing {
  font-size: 15px;
  color: #444;
  margin-bottom: 0;
}

.pain-points-image {
  flex: 0 0 557px; /* 写真のサイズを維持するため固定幅に */
  min-width: 0;
}

.pain-points-image img {
  width: 100%; /* 間隔を詰めた分、さらに拡大 */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==========================================
   AMSの特徴セクション（背景写真＋数字付き4カード）
========================================== */
.ams-features {
  position: relative;
  padding: 100px 0; /* 上の余白を戻した */
  background-color: #f7f8f9;
  background-image:
    linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)),
    url('images/ams-features-bg.jpg');
  background-size: cover;
  background-position: center;
}

.ams-features-header {
  text-align: center;
  margin-bottom: 35px; /* タイトル下の余白を半分に詰めた */
}

.title-mark {
  display: block;
  height: 70px;
  width: auto;
  margin: 0 auto 20px auto;
}

.ams-features-header h2 {
  font-size: 40px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.05em;
}

.ams-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px; /* 3・4番目のボックス上の余白(行間)を詰めた */
  max-width: 1100px;
  margin: 0 auto;
}

.ams-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ams-feature-number {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: -44px; /* 下の白いボックスに半分重ねる */
}

.ams-feature-number .num {
  display: block;
  font-size: 56px;
  font-style: italic;
  font-weight: 400;
  color: #8fc6ea;
  line-height: 1;
}

.ams-feature-number .swoosh {
  display: block;
  width: 64px;
  height: 32px;
  margin: -10px auto 0 auto; /* 数字と括弧の間隔をさらに詰めた */
  border-bottom: 4px solid #8fc6ea;
  border-radius: 50%;
}

.ams-feature-box {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.75);
  width: 100%;
  flex: 1; /* 同じ行の左右ボックスと高さを揃える（グリッドの行の高さいっぱいに広がる） */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 64px 40px 40px 40px; /* 括弧下と見出しの間隔を半分に詰めた（重なり44px＋見える余白20px） */
  text-align: center;
}

/* 1番目・4番目のボックスは背景を透明にし、白いボーダーを内側に入れる */
.ams-feature-card:nth-child(1) .ams-feature-box,
.ams-feature-card:nth-child(4) .ams-feature-box {
  background-color: transparent;
  border: 15px solid #fff;
}

.ams-feature-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: #003a8c;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.ams-feature-box p {
  font-size: 14px;
  color: #444;
  line-height: 1.9;
  text-align: left;
}

/* ==========================================
   サービス内容セクション（背景タイル模様＋アイコン付き4カード）
========================================== */
.services {
  position: relative;
  padding: 100px 0;
  background-color: #eafbff;
  background-image: url('images/services-bg.png');
  background-size: cover;
  background-position: center;
}

.services-header {
  text-align: center;
  margin-bottom: 50px;
}

.services-header h2 {
  font-size: 40px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.05em;
  margin-bottom: 25px;
}

.services-intro {
  font-size: 15px;
  color: #333;
  line-height: 1.9;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-icon {
  display: block;
  width: auto;
  height: 64px;
  margin: 0 auto 16px auto;
}

.service-box {
  background-color: rgba(255, 255, 255, 0.85);
  width: 100%;
  flex: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px;
  text-align: center;
}

.service-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: #003a8c;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.service-box p {
  font-size: 14px;
  color: #444;
  line-height: 1.9;
  text-align: left;
}

/* ==========================================
   お見積りご依頼セクション
========================================== */
.quote-cta {
  position: relative;
  background-color: #094d96;
  padding: 100px 0;
  text-align: center;
}

/* ヘッダーと同じ波形画像を使い、色をセクション背景色にして上部に配置（上のセクションと繋がる） */
.quote-cta::before {
  content: '';
  position: absolute;
  left: 0;
  top: -40px;
  width: 100%;
  height: 40px;
  background-color: #094d96;
  -webkit-mask-image: url('images/menu-bg.png');
  mask-image: url('images/menu-bg.png');
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 195px 150px;
  mask-size: 195px 150px;
  -webkit-mask-position: bottom center;
  mask-position: bottom center;
  transform: scaleY(-1); /* 波の向きを上向きにする */
  pointer-events: none;
}

.quote-cta-text {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin-bottom: 50px;
}

.quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 540px;
  max-width: 100%;
  aspect-ratio: 1015 / 130;
  background-image: url('images/quote-btn-frame.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: transform 0.3s ease, filter 0.3s ease;
}

a.quote-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.quote-btn-text {
  color: #e0b400;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ==========================================
   プールケア詳細セクション
========================================== */
.pool-care {
  padding: 0 0 100px 0; /* PCのみ上の余白をなくし、前セクションと密着 */
  background-color: #fff;
}

.pool-care-grid {
  display: grid;
  column-gap: 50px;
  row-gap: 30px;
  align-items: start;
}

.pool-care-grid + .pool-care-grid {
  margin-top: 0; /* PCのみブロック同士を密着させる */
}

/* ブロック1：バナー・チェックリストが左、写真が右。バナーは写真に少し重ねる */
.pool-care-grid-1 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto auto 1fr; /* 上下の余白行でバナー+リストを中央に */
  grid-template-areas:
    ".      photo"
    "banner photo"
    "checklist photo"
    ".      photo";
}

.pool-care-grid-1 .pool-care-banner {
  grid-area: banner;
  position: relative;
  z-index: 2;
  margin-right: -100px; /* 列間隔50px+実際の重なり50px */
}

.pool-care-grid-1 .pool-care-photo {
  grid-area: photo;
}

.pool-care-grid-1 .pool-care-checklist {
  grid-area: checklist;
}

/* ブロック2：写真が左、バナー・理由リストが右。バナーは写真に少し重ねる */
.pool-care-grid-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "photo banner"
    "photo reasons";
}

.pool-care-grid-2 .pool-care-banner {
  grid-area: banner;
  position: relative;
  z-index: 2;
  margin-left: -100px; /* 列間隔50px+実際の重なり50px */
  margin-top: 50px; /* 写真の上端から50px下へ */
}

.pool-care-grid-2 .pool-care-photo {
  grid-area: photo;
}

.pool-care-grid-2 .pool-care-reasons {
  grid-area: reasons;
}

.pool-care-photo {
  position: relative;
  min-width: 0;
}

.pool-care-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.pool-care-banner {
  padding: 30px 35px;
  margin-bottom: 35px;
  text-align: center;
}

.pool-care-banner-lime {
  background-color: #088093;
  padding-top: 45px;
  padding-bottom: 45px;
}

.pool-care-banner-purple {
  background-color: #7a5fc4;
}

.pool-care-banner h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 12px;
}

.pool-care-banner-lime h3 {
  color: #fff;
  font-weight: 600; /* PCのみ少し細く */
}

.pool-care-banner-purple h3 {
  color: #fff;
  font-weight: 300; /* やや細く */
  font-size: 36px; /* やや小さく */
  line-height: 1.3; /* PCのみ行間を詰める */
  margin-bottom: 0;
}

.pool-care-banner-purple {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px; /* 行間を詰めた分、バナー高さを小さく */
}

.pool-care-banner p {
  font-size: 14px;
}

.pool-care-banner-lime p {
  color: #fff;
}

.pool-care-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0; /* 間隔はli側のpadding-bottomで作るため詰める */
  padding: 0 20px; /* PCのみ左右に余白 */
}

.pool-care-checklist li {
  position: relative;
  padding-left: 30px;
  padding-top: 16px; /* PCのみ罫線を中央に配置するため上下対称に */
  padding-bottom: 16px;
  font-size: 18px; /* PCのみ少し大きく */
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 1px solid #088093; /* PCのみバナーと同じ色の罫線 */
}

.pool-care-checklist li:first-child {
  padding-top: 0;
}

.pool-care-checklist li:first-child::before {
  top: 0; /* 1つ目はpadding-topが0のため、チェックマークもそれに合わせる */
}

.pool-care-checklist li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pool-care-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 16px; /* PCのみ文字の縦位置(padding-top)に合わせる */
  color: #94a3a8;
  font-weight: 700;
}

/* 循環システム図解 */
.circulation-diagram {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 60px; /* 下の余白を倍に */
  margin: 0 auto;
  width: 300px;
  background-color: rgba(255, 255, 255, 0.8); /* スマホと同じ透明度に統一 */
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.circulation-diagram h4 {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  text-align: center;
}

.circulation-grid {
  display: grid;
  grid-template-columns: 1fr 20px 1fr; /* 横方向の間隔を詰めた */
  grid-template-rows: auto 30px auto;
  align-items: center;
  justify-items: center;
  margin-bottom: 16px;
}

.circulation-grid > *:nth-child(1) { grid-column: 1; grid-row: 1; } /* プール */
.circulation-grid > *:nth-child(2) { grid-column: 2; grid-row: 1; } /* → */
.circulation-grid > *:nth-child(3) { grid-column: 3; grid-row: 1; } /* バランスタンク */
.circulation-grid > *:nth-child(4) { grid-column: 1; grid-row: 2; } /* ↑ */
.circulation-grid > *:nth-child(5) { grid-column: 3; grid-row: 2; } /* ↓ */
.circulation-grid > *:nth-child(6) { grid-column: 1; grid-row: 3; } /* フィルター */
.circulation-grid > *:nth-child(7) { grid-column: 2; grid-row: 3; } /* ← */
.circulation-grid > *:nth-child(8) { grid-column: 3; grid-row: 3; } /* ポンプ */

.circulation-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.circulation-item img {
  width: 74px; /* 拡大 */
  height: 74px; /* 拡大 */
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.circulation-item span {
  font-size: 12px;
  font-weight: 600; /* やや太く */
  color: #333;
}

.circulation-arrow {
  color: #0d5aa7;
  font-size: 18px;
  font-weight: 700;
}

.circulation-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.7;
}

.pool-care-reasons {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 0 20px 0 8px; /* PCのみ左を詰めて右との見た目のバランスを整える */
}

.pool-care-grid-2 {
  row-gap: 15px; /* PCのみバナーと理由リストの間(上の余白)を詰める */
}

.pool-care-reason {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.pool-care-reason-num-wrap {
  display: block;
  text-align: center;
  flex-shrink: 0;
}

.pool-care-reason-num {
  display: block;
  font-size: 32px;
  color: #b3a3e0;
  line-height: 1;
}

.pool-care-reason-swoosh {
  display: block;
  width: 36px;
  height: 18px;
  margin: -6px auto 0 auto; /* 数字と括弧の間隔を詰める */
  border-bottom: 3px solid #b3a3e0;
  border-radius: 50%;
}

.pool-care-reason h4 {
  font-size: 20px; /* 少し大きく */
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.pool-care-reason p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

/* ==========================================
   Galleryセクション
========================================== */
.gallery {
  background: linear-gradient(160deg, #7fb8b1 0%, #a8d3ce 100%);
  padding: 90px 0 125px 0; /* もう少し詰めた */
}

.gallery-header {
  text-align: center;
  margin-bottom: 50px;
}

.gallery-header h2 {
  font-size: 80px;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0;
}

.gallery-header p {
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.2em;
  margin-top: -8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px; /* 写真間の間隔を広げた */
  max-width: 1500px; /* 写真サイズをやや縮小 */
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 533 / 298;
  overflow: hidden;
}

/* Galleryの写真がランダムな方向・回転からふわっと登場するアニメーション */
.gallery-item.reveal {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-item.reveal:nth-child(1) { transform: translate(-40px, -25px) rotate(-7deg) scale(0.85); transition-delay: 0s; }
.gallery-item.reveal:nth-child(2) { transform: translate(35px, -30px) rotate(6deg) scale(0.85); transition-delay: 0.12s; }
.gallery-item.reveal:nth-child(3) { transform: translate(-25px, 35px) rotate(5deg) scale(0.85); transition-delay: 0.24s; }
.gallery-item.reveal:nth-child(4) { transform: translate(45px, 25px) rotate(-6deg) scale(0.85); transition-delay: 0.36s; }
.gallery-item.reveal:nth-child(5) { transform: translate(-35px, -15px) rotate(4deg) scale(0.85); transition-delay: 0.48s; }
.gallery-item.reveal:nth-child(6) { transform: translate(25px, 30px) rotate(-4deg) scale(0.85); transition-delay: 0.6s; }

.gallery-item.reveal.is-visible {
  transform: translate(0, 0) rotate(0) scale(1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Galleryの写真をポップアップで開くボタン（見た目は従来のdivと同じになるようリセット） */
.gallery-item-trigger {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
}

.gallery-item-trigger:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ==========================================
   AMSについてセクション
========================================== */
.about-ams {
  position: relative;
  padding: 100px 0;
  background-color: #eaf2fa;
  background-image:
    linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)),
    url('images/about-bg.jpg');
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
}

.about-ams-header {
  text-align: center;
  width: 890px; /* 右端を写真の右端に揃える */
  margin: 0 0 50px calc(50% - 445px); /* 左位置は維持 */
}

.about-ams-header h2 {
  font-size: 40px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.05em;
  margin: 20px 0 15px 0;
}

.about-ams-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0d5aa7;
  margin-bottom: 25px;
}

.about-ams-header p {
  font-size: 15px;
  color: #333;
  line-height: 1.9;
  text-align: left;
  margin-bottom: 14px;
}

.about-ams-box {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 20px; /* 写真との間隔を詰め、テキストエリアをさらに広げた */
  max-width: 990px; /* 90%に縮小 */
  margin: 0 auto;
  padding: 45px 25px 45px 50px; /* 右の余白を半分に詰め、テキストエリアを広げた */
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid #0d5aa7;
  border-radius: 6px;
  box-shadow: inset 0 0 0 4px rgba(13, 90, 167, 0.15); /* 内側にもう一本線を入れて枠らしさを補強 */
}

.about-ams-box-text {
  flex: 1;
  text-align: left;
}

.about-ams-box-text h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.about-ams-box-text p {
  font-size: 14px;
  color: #333;
  line-height: 1.9;
  margin-bottom: 14px;
}

.about-ams-box-photo {
  position: relative;
  flex: 0 0 260px;
  border-radius: 4px 4px 0 0; /* 下は外枠に密着するため角丸を外した */
  overflow: hidden;
  background-color: transparent; /* グレー背景を削除(透明な角から覗いて隙間に見えていた) */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: -45px; /* 外側ボックスの下パディング分を打ち消し、実際の外枠に密着させる */
  align-self: flex-end; /* 写真ブロック自体も下端に揃える */
}

.about-ams-box-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0; /* 下に余白を作らずボーダーに密着させる */
}

.placeholder-icon {
  width: 55%;
  height: auto;
  margin-bottom: 10px;
}

.placeholder-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 2px;
}

/* ==========================================
   企業データ・沿革セクション
========================================== */
.company-data {
  background-color: #fff;
  padding: 100px 0;
}

.company-data-inner {
  max-width: 800px;
}

.company-data-block,
.company-history-block {
  text-align: center;
  margin-bottom: 90px;
}

.company-history-block {
  margin-bottom: 0;
}

.ripple-icon {
  display: block;
  height: 49px; /* さらに90%に縮小 */
  width: auto;
  margin: 0 auto 15px auto;
}

.company-data h2,
.company-history-block h2 {
  font-size: 28px;
  font-weight: 700;
  color: #003a8c;
  letter-spacing: 0.05em;
  margin-bottom: 45px;
}

.company-data-list {
  text-align: left;
}

.company-data-row {
  display: flex;
  gap: 40px;
  padding: 28px 0; /* PCのみ行間を広げた */
  border-bottom: 1px solid #d5d5d5; /* PCのみ罫線をやや薄く調整 */
}

.company-data-row:first-child {
  border-top: 1px solid #d5d5d5; /* PCのみ罫線をやや薄く調整 */
}

.company-data-row dt {
  flex: 0 0 140px;
  font-weight: 700;
  color: #333;
}

.company-data-row dd {
  flex: 1;
  color: #333;
}

/* ==========================================
   お客様の声セクション
========================================== */
.voice {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #98b04d 0%, #c6d673 100%);
  padding: 100px 0;
}

.voice-leaf {
  position: absolute;
  top: 40px;
  width: 300px;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.voice-leaf-left {
  left: calc(50% - 350px - 300px + 100px); /* タイトルに近づけた */
}

.voice-leaf-right {
  left: calc(50% + 350px - 100px); /* タイトルに近づけた */
  right: auto;
}

.voice-inner {
  position: relative;
  z-index: 1;
}

.voice-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.voice-header h2 {
  font-size: 80px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1;
}

.voice-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-top: -8px;
  margin-bottom: 30px;
}

.voice-lead {
  font-size: 17px;
  color: #fff;
  margin-bottom: 30px;
}

.voice-desc {
  font-size: 15px;
  color: #fff;
  line-height: 1.9;
}

.voice-list {
  display: flex;
  flex-direction: column;
  gap: 55px; /* 広がりすぎたためやや詰めた */
  max-width: 940px; /* PCのみ幅をひとまわり縮めた */
  margin: 0 auto;
}

.voice-card {
  flex: 1;
  min-width: 0;
  background-color: #fff;
  padding: 18px;
}

/* お客様の声の3つのボックスがランダムな方向・回転から登場するアニメーション（Galleryと同様） */
.voice-card.reveal {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.voice-card.reveal:nth-child(1) { transform: translate(-40px, -25px) rotate(-6deg) scale(0.85); transition-delay: 0s; }
.voice-card.reveal:nth-child(2) { transform: translate(35px, 30px) rotate(5deg) scale(0.85); transition-delay: 0.18s; }
.voice-card.reveal:nth-child(3) { transform: translate(-30px, 25px) rotate(-4deg) scale(0.85); transition-delay: 0.36s; }

.voice-card.reveal.is-visible {
  transform: translate(0, 0) rotate(0) scale(1);
}

.voice-card-frame {
  position: relative;
  border-style: solid;
  border-width: 35px 70px;
  border-image-source: url('images/voice-frame.png?v=2');
  border-image-slice: 65 145;
  border-image-width: 35px 70px;
  border-image-repeat: round;
  padding: 8px 5px;
  text-align: right;
}

.voice-flower {
  position: absolute;
  top: -86px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px; /* さらに120%に拡大 */
  height: auto;
  z-index: 2;
}

.voice-quote {
  font-family: 'New Tegomin', serif;
  font-size: 22px;
  color: #333;
  line-height: 2.6em;
  text-align: left;
  margin-bottom: 20px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(2.6em - 1px),
    #ccc calc(2.6em - 1px),
    #ccc 2.6em
  );
  background-size: 100% 2.6em;
  background-position: 0 2em;
  background-repeat: repeat-y;
}

.voice-attribution {
  font-size: 18px;
  color: #333;
}

/* ==========================================
   お問い合わせセクション
========================================== */
.contact {
  background-color: #003a8c;
  padding: 100px 0;
}

.contact-inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.contact-info {
  flex: 0 0 auto;
  width: calc(50% - 30px); /* gapの半分を差し引いて確実に50%均等に */
  min-width: 0;
  color: #fff;
}

.contact-heading {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 30px;
}

.contact-lead {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 90px;
  opacity: 0.9;
}

.contact-phone-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-phone-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.contact-phone-label {
  margin-bottom: 6px;
}

.contact-phone-hours {
  margin-top: 6px;
}

.contact-phone-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-phone-indent {
  margin-left: 56px; /* アイコン幅(40px)+間隔(16px)に合わせて字下げ */
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.contact-phone-label {
  display: inline-block;
  border: 1px solid #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 2px;
}

.contact-phone-title {
  font-size: 36px; /* PCで倍に */
  font-weight: 700;
  line-height: 1.1; /* 行の高さの余白を詰める */
}

.contact-phone-number {
  font-size: 64px; /* PCで倍に */
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.1; /* 行の高さの余白を詰める */
}

.contact-phone-number-tel {
  font-size: 45px; /* 70%に縮小 */
  font-weight: 500; /* やや細く */
}

.contact-phone-hours {
  font-size: 26px; /* 2倍に */
  opacity: 0.85;
  flex-basis: 100%;
}

.contact-form-box {
  flex: 0 0 auto;
  width: calc(50% - 30px); /* gapの半分を差し引いて確実に50%均等に */
  min-width: 0;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 4px;
  padding: 45px;
}

.contact-form-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  margin-bottom: 18px;
}

.contact-form label span {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #003a8c;
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background-color: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  display: block;
  width: 100%;
  background-color: #003a8c;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 2px;
  padding: 14px 0;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.contact-form button:hover {
  background-color: #0d5aa7;
}

.contact-form-note {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-top: 16px;
}

/* reCAPTCHAバッジがトップへ戻るボタンと重なるため非表示に（下記のrecaptcha-noteで注意書きを表示） */
.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-note {
  font-size: 10px;
  color: #888;
  line-height: 1.6;
  margin-top: 10px;
}

.recaptcha-note a {
  color: #888;
  text-decoration: underline;
}

/* Contact Form 7 のデフォルト出力を既存デザインに合わせて調整 */
.contact-form-box .wpcf7-form {
  margin-bottom: 0;
}

.contact-form-box .wpcf7-form p {
  margin-bottom: 18px;
}

.contact-form-box .wpcf7-form p:last-of-type {
  margin-bottom: 0; /* 送信ボタンの段落は詰めてメッセージをすぐ下に表示 */
}

.contact-form-box .screen-reader-response {
  margin: 0;
}

.contact-form-box .wpcf7-form label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

.contact-form-box .wpcf7-form input[type="text"],
.contact-form-box .wpcf7-form input[type="tel"],
.contact-form-box .wpcf7-form input[type="email"],
.contact-form-box .wpcf7-form select,
.contact-form-box .wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #003a8c;
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background-color: #fff;
}

.contact-form-box .wpcf7-form textarea {
  height: 110px; /* 行数を半分程度に固定 */
  resize: none; /* ドラッグでの拡大を防ぎ、高さを一定に保つ */
  overflow-y: auto; /* 収まりきらない内容は縦スクロールで表示 */
}

.contact-form-box .wpcf7-form input[type="submit"] {
  display: block;
  width: 100%;
  background-color: #003a8c;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 2px;
  padding: 14px 0;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.contact-form-box .wpcf7-form input[type="submit"]:hover {
  background-color: #0d5aa7;
}

.contact-form-box .wpcf7-form input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form-box .wpcf7-not-valid-tip {
  display: block;
  font-size: 12px;
  color: #c00;
  margin-top: 4px;
}

.contact-form-box .wpcf7 form.sent .wpcf7-response-output,
.contact-form-box .wpcf7-response-output {
  margin: 6px 0 0 0 !important; /* ボタンのすぐ下に表示されるよう詰めた */
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.contact-form-box .wpcf7-mail-sent-ok {
  border: 1px solid #4caf50;
  background-color: #eefaf0;
  color: #2e7d32;
}

.contact-form-box .wpcf7-validation-errors,
.contact-form-box .wpcf7-mail-sent-ng {
  border: 1px solid #c00;
  background-color: #fdecec;
  color: #c00;
}

.contact-form-box .wpcf7-spinner {
  margin-left: 8px;
}

/* ==========================================
   グループ企業のご紹介セクション
========================================== */
.group-companies {
  background-color: #f2f2f3;
  padding: 100px 0;
}

.group-companies-header {
  text-align: center;
  margin-bottom: 50px;
}

.group-companies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 90%; /* テキストが2行になったため少し広げた */
  max-width: 1100px;
  margin: 0 auto;
}

.group-company-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px; /* ロゴとテキストの間隔を詰めた */
  background-color: #fff;
  padding: 32px 28px; /* 余白を広げた */
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

a.group-company-card:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.group-company-card-wide {
  grid-column: 1 / -1;
}

.group-company-logo {
  height: 33px; /* 現状(22px)の150% */
  width: auto;
}

.group-company-card p {
  font-size: 14px;
  color: #333;
}

/* ==========================================
   フッター
========================================== */
.site-footer {
  position: relative;
  background-color: #0d5aa7;
  background-image:
    linear-gradient(rgba(13, 90, 167, 0.55), rgba(13, 90, 167, 0.55)),
    url('images/footer-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0 150px 0; /* 上下の余白を広げ、右のバナーがフッター内に収まるように */
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  height: 90px; /* 150%に拡大 */
  width: auto;
  margin-bottom: 20px;
}

.footer-operated {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.9;
  max-width: 420px;
}

.footer-nav h3,
.footer-links h3 {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-nav ul,
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav a,
.footer-links a {
  position: relative;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.2s ease, padding-right 0.2s ease;
}

.footer-nav a:hover,
.footer-links a:hover {
  opacity: 1;
  padding-right: 18px;
}

.footer-nav a::after,
.footer-links a::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(8px, -50%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover::after,
.footer-links a:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.footer-sublink {
  margin-top: 0;
}

.footer-copyright {
  grid-column: 1 / -1;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

/* ==========================================
   レスポンシブ対応（スマホ・タブレット向け）
========================================== */
@media (max-width: 768px) {
  .header::after {
    bottom: -24px;
    height: 24px;
    background-size: 117px 90px;
  }

  .header-cta {
    display: none;
  }

  /* 右端に配置されるハンバーガーメニュー */
  .menu-btn {
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 5px;
    top: 5px;
    cursor: pointer;
    z-index: 110;
  }

  .menu-btn span,
  .menu-btn span::before,
  .menu-btn span::after {
    content: '';
    display: block;
    height: 1.5px; /* 少し細く */
    width: 25px;
    border-radius: 3px;
    background: linear-gradient(to right, #00bcd4, #003a8c); /* お問い合わせボタンと同じグラデーション */
    position: absolute;
    transition: all 0.3s;
  }

  .menu-btn span::before { bottom: 8px; }
  .menu-btn span::after { top: 8px; }

  /* 三本線が×に変わるアニメーション */
  .menu-check:checked ~ .menu-btn span { background: none; }
  .menu-check:checked ~ .menu-btn span::before { bottom: 0; transform: rotate(45deg); }
  .menu-check:checked ~ .menu-btn span::after { top: 0; transform: rotate(-45deg); }

  /* スマホ用アコーディオンメニュー初期状態 */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 105;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 10px 0;
  }

  .nav-list li {
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-list a {
    display: block;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500; /* PCのみ細くしたため、スマホは元の太さを維持 */
    text-align: center;
  }

  /* スマホ用メニュー内言語切り替え表示 */
  .nav-lang-sp {
    display: block;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: bold;
    color: #888;
    text-align: center;
  }

  .nav-lang-sp .lang-switch-trigger { cursor: pointer; }
  .nav-lang-sp .active { color: #333; }

  /* スマホ用メニュー内お問い合わせ表示（グローバルメニューのお問い合わせボタンは一旦非表示のため） */
  .nav-cta {
    display: none;
    padding: 15px 20px;
    text-align: center;
    border-bottom: none !important;
  }
  
  .nav-cta .btn-contact {
    display: inline-block;
    width: 60%;
    padding: 2px 20px; /* 高さも詰める */
    font-weight: normal; /* PCのみ太字にしたため、スマホは通常の太さを維持 */
    font-size: 14px; /* PCのみ縮小したため、スマホは元のサイズを維持 */
  }

  /* メニュー展開時の最大の高さ */
  .menu-check:checked ~ .nav {
    max-height: 520px;
  }

  /* メインビジュアルスマホ調整 */
  .hero {
    margin-top: 71px;
    height: auto;
    min-height: 0; /* PC用のmin-height:550pxを解除し、高さを約3分の2に縮小 */
    padding: 110px 0;
  }

  .hero-logo-img {
    height: 70px;
  }

  /* スライダーインジケーターはスマホ従来のサイズを維持（PCのみ拡大したため） */
  .slider-indicator {
    gap: 14px;
  }

  .dot {
    height: 22px;
  }

  .hero .slider-wrapper {
    height: 100%;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.4;
  }

  .hero-subtitle {
    font-size: 13px;
    margin-bottom: 30px;
  }

  .mobile-break {
    display: block; /* スマホでは改行する */
  }

  .pc-break {
    display: none; /* スマホでは改行しない */
  }

  .mobile-hide {
    display: none; /* スマホでは非表示 */
  }

  /* 特徴セクション自体の上下余白をスマホのみ詰める */
  .features {
    padding: 20px 0 40px 0;
  }

  /* 特徴のスマホ調整 */
  .feature-grid {
    flex-direction: column;
    align-items: center;
    gap: 0px; /* ブロック間隔をさらに詰めて0に */
    margin-bottom: 25px; /* 下の説明文との間隔も詰めた */
  }

  .feature-item {
    width: 100%;
    max-width: 260px;
  }
  
  .feature-box {
    height: 180px; /* スマホ用もゆったり幅に戻しました */
    gap: 15px; /* 飾り画像とテキストの間隔を詰めた */
  }

  .feature-item h3 br {
    display: none; /* スマホでは見出しを1行にまとめる */
  }

  .deco-img-top, .deco-img-bottom {
    width: 60%; 
  }

  .feature-item h3 {
    font-size: 20px; 
    margin-bottom: 0;
  }

  .feature-item p {
    font-size: 12px;
  }

  .intro-text h2 {
    font-size: 18px;
    line-height: 1.5;
    padding: 0 10px;
  }

  .intro-text p {
    font-size: 14px;
    padding: 0 10px;
    text-align: left;
  }

  /* お悩みセクションのスマホ調整 */
  .pain-points {
    padding: 60px 0 0 0; /* 下は前回通り0に戻し、次のセクションと接するように */
  }

  .pain-points-inner {
    display: block; /* flexの高さ計算がずれる問題を避けるためblockに変更 */
  }

  .pain-points-text {
    width: auto; /* PC用のcalc()指定がスマホで負の値になり崩れていたため修正 */
    margin-bottom: 24px; /* 行間を詰めた（画像との間隔） */
    padding-left: 0; /* PCのみ寄せるため、スマホは元のまま */
  }

  .pain-points-text h2 {
    font-size: 26px;
    margin-bottom: 16px; /* 行間を詰めた */
  }

  .pain-points-text > p {
    line-height: 1.6; /* 行間を詰めた */
    margin-bottom: 18px; /* 行間を詰めた */
  }

  .pain-points-list {
    margin-bottom: 20px; /* 行間を詰めた */
  }

  .pain-points-list li {
    font-size: 16px;
    font-weight: 700; /* 太字に */
    padding-left: 20px; /* チェックマーク縮小に合わせて詰めた */
    margin-bottom: 12px; /* 行間を詰めた */
  }

  .pain-points-list li::before {
    top: 6px;
    width: 9px; /* チェックマークを半分のサイズに */
    height: 5px;
    border-width: 2px;
  }

  .pain-points-image {
    width: 70%; /* スマホの写真サイズを縮小 */
    margin: 24px auto 0 auto; /* 写真の上に余白を追加 */
  }

  .pain-points-image img {
    width: 100%; /* PCのみ縮小のため、スマホは元のサイズを維持 */
  }

  /* AMSの特徴セクションのスマホ調整 */
  .ams-features {
    padding: 60px 0; /* 上の余白を元に戻した */
  }

  .ams-features-header {
    margin-bottom: 40px;
  }

  .title-mark {
    height: 50px;
  }

  .ams-features-header h2 {
    font-size: 28px;
  }

  .ams-features-grid {
    grid-template-columns: 1fr;
    gap: 20px; /* ブロック間隔を半分に詰めた */
  }

  .ams-feature-number {
    margin-bottom: -13px; /* 縮小に合わせて重なり量も比例調整 */
  }

  .ams-feature-number .num {
    font-size: 37px; /* 約2/3に縮小 */
  }

  .ams-feature-number .swoosh {
    width: 43px; /* 約2/3に縮小 */
    height: 21px;
  }

  .ams-feature-box {
    min-height: 0; /* 固定高さを解除し、文章量に応じて可変に */
    padding: 40px 24px 24px 24px; /* 重なり分(13px)を確保した上で見出しとの間隔をとる */
  }

  /* スマホは1〜4番目全て白背景に戻す（PCのみ1・4番目を透明+ボーダーにする） */
  .ams-feature-card:nth-child(1) .ams-feature-box,
  .ams-feature-card:nth-child(4) .ams-feature-box {
    background-color: rgba(255, 255, 255, 0.75);
    border: none;
  }

  .ams-feature-box h3 {
    font-size: 18px; /* 少し大きめに調整 */
  }

  /* サービス内容セクションのスマホ調整 */
  .services {
    padding: 60px 0; /* お問い合わせ・フッター追加により、ボタン避け用の余白は不要になったため撤去 */
    background-size: cover; /* 4ボックス全体にリピートさせず1枚で表示 */
    background-repeat: no-repeat;
  }

  .services-header {
    margin-bottom: 30px;
  }

  .services-header h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .services-intro {
    font-size: 13px;
    text-align: left;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-icon {
    width: auto;
    height: 48px;
    margin: 0 auto 12px auto;
  }

  .service-box {
    padding: 24px;
  }

  .service-box h3 {
    font-size: 18px;
  }
}

/* ==========================================
   スクロールで各パーツが表示されるアニメーション
========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 左右からスライドして登場するアニメーション（プールケアセクション用） */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* グリッド内で少しずつ時間差をつけて表示 */
.feature-grid .reveal:nth-child(2),
.ams-features-grid .reveal:nth-child(2),
.services-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.feature-grid .reveal:nth-child(3),
.ams-features-grid .reveal:nth-child(3),
.services-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}
.ams-features-grid .reveal:nth-child(4),
.services-grid .reveal:nth-child(4) {
  transition-delay: 0.3s;
}

/* ==========================================
   画面右上に追従するお問い合わせバナー
========================================== */
.side-cta {
  position: fixed;
  top: 50%;
  right: 28.5px; /* トップへ戻るボタンの横中央に揃えた */
  transform: translateY(-50%); /* メインビジュアル中央に配置 */
  width: 47px; /* 現在の60% */
  height: 301px; /* 現在の60% */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 150;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.side-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 301px; /* 回転前は横長（バナーの縦寸法に合わせる） */
  height: 47px; /* 回転前は横長（バナーの横寸法に合わせる） */
  transform: translate(-50%, -50%) rotate(90deg);
  background-color: #fff; /* 基本(メインビジュアル・特徴セクション)は白に変更 */
  -webkit-mask-image: url('images/quote-btn-frame.png'); /* お見積りボタンと同じ画像を90度回転して使用 */
  mask-image: url('images/quote-btn-frame.png');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.side-cta span {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: #fff; /* 基本(メインビジュアル・特徴セクション)は白に変更 */
  font-family: 'Noto Serif JP', "Times New Roman", Georgia, "Yu Mincho", "游明朝", "MS Mincho", "MS P明朝", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.25em;
}

.side-cta:hover {
  transform: translateY(-50%) scale(1.05);
  filter: brightness(1.15);
}

/* お悩みセクション以降は、トップへ戻るボタンと同じ水色→群青グラデーションに切り替え */
.side-cta.on-blue::before {
  background: linear-gradient(to bottom, #00bcd4, #003a8c);
}

.side-cta.on-blue span {
  color: #003a8c;
}

/* お見積り・お客様の声セクション（背景色と馴染むため）は白バージョンに切り替え */
.side-cta.on-light-bg::before {
  background-color: #fff;
}

.side-cta.on-light-bg span {
  color: #fff;
}

/* ==========================================
   ページトップへ戻るボタン
========================================== */
.back-to-top {
  position: fixed;
  right: 16px; /* 少し右に詰めた */
  bottom: 24px;
  width: 72px; /* 1.5倍のサイズに */
  height: 72px;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 200;
}

.back-to-top::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: linear-gradient(to right, #00bcd4, #003a8c) border-box; /* お問い合わせボタンと同じ水色→群青色のグラデーション */
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude; /* 枠線だけにグラデーションを見せ、内側の背景は透明に */
  pointer-events: none;
  transition: background-color 0.25s ease;
}

/* 背景が紺色系のセクション（特徴セクション・お見積りセクション）と重なる際、
   グラデーション枠+透明背景では見えにくいため、白背景の枠に切り替えて視認性を確保 */
.back-to-top.on-dark::before {
  background: none;
  -webkit-mask: none;
  mask: none;
  border-color: #fff; /* ボーダーは白、太さは元(3px)のまま */
}

.back-to-top.on-dark .arrow {
  color: #fff;
  -webkit-text-stroke-color: #fff;
}

.back-to-top .arrow {
  position: relative;
  z-index: 1;
  display: block;
  color: #003a8c; /* 矢印は群青色 */
  font-size: 20px; /* 矢印サイズはそのまま */
  font-weight: 900; /* 矢印を太く */
  -webkit-text-stroke: 1.8px #003a8c; /* PCではさらに太く見せる */
  line-height: 1;
  transform: translateY(-2px); /* PCで下寄りに見えるため少し上に調整 */
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* スマホ専用：画面下部固定バー（お問い合わせ + トップへ戻る） */
.mobile-fixed-bar {
  display: none; /* PCでは非表示 */
}

@media (max-width: 768px) {
  .side-cta {
    display: none; /* スマホはメニュー内のお問い合わせボタンを使うため非表示 */
  }

  .back-to-top {
    display: none; /* 新しい画面下部固定バーに統合したため非表示 */
  }

  .mobile-fixed-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px; /* 間隔を少しあけた */
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 80px; /* 高さを詰めた */
    padding: 0 36px;
    background-color: #fff; /* 白に変更 */
    box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.08); /* ヘッダーの波形と同じ、薄くシャープな影 */
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  }

  .mobile-fixed-bar.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-fixed-contact {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; /* トップへ戻るボタンとの間をギリギリまで詰めて幅いっぱいに */
    height: 36px; /* さらに縮小 */
    border: 2px solid transparent;
    border-radius: 8px;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(to right, #00bcd4, #003a8c) border-box; /* 群青グラデーション */
  }

  .mobile-fixed-contact span {
    color: #003a8c;
    font-family: 'Noto Serif JP', "Times New Roman", Georgia, "Yu Mincho", "游明朝", "MS Mincho", "MS P明朝", serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1em;
  }

  .mobile-fixed-totop {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px; /* さらに縮小 */
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(to right, #00bcd4, #003a8c) border-box; /* 群青グラデーション */
  }

  .mobile-fixed-totop .arrow {
    color: #003a8c;
    font-size: 16px;
    font-weight: 900;
    -webkit-text-stroke: 1px #003a8c;
    line-height: 1;
  }

  body {
    padding-bottom: 80px; /* 画面下部固定バーの高さ分、コンテンツが隠れないように */
  }

  /* お見積りご依頼セクションのスマホ調整 */
  .quote-cta {
    padding: 60px 0;
  }

  .quote-cta::before {
    top: -24px;
    height: 24px;
    -webkit-mask-size: 117px 90px; /* ヘッダーと同じ波の数に揃える */
    mask-size: 117px 90px;
  }

  .quote-cta-text {
    font-size: 19px;
    margin-bottom: 30px;
  }

  .quote-btn {
    width: 320px;
  }

  .quote-btn-text {
    font-size: 14px;
  }

  /* Galleryセクションのスマホ調整 */
  .gallery {
    padding: 50px 0 70px 0; /* もう少し詰めた */
  }

  .gallery-header {
    margin-bottom: 25px;
  }

  .gallery-header h2 {
    font-size: 40px;
  }

  .gallery-header p {
    font-size: 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px; /* 写真間の間隔を広げた */
  }

  /* AMSについてセクションのスマホ調整 */
  .about-ams {
    padding: 60px 0;
  }

  .about-ams-header {
    width: auto; /* PC専用指定をリセット */
    max-width: 100%;
    margin: 0 auto 30px auto;
  }

  .about-ams-header h2 {
    font-size: 28px;
    margin: 15px 0 10px 0;
  }

  .about-ams-header h3 {
    font-size: 18px;
  }

  .about-ams-box {
    flex-direction: column;
    gap: 8px; /* 写真とテキストの間隔を詰めた */
    padding: 30px 24px;
  }

  .about-ams-box-photo {
    flex: none;
    height: auto; /* 固定高さで写真が途中で切れていたため、写真全体が表示されるよう修正 */
    align-self: center; /* 70%縮小に伴い中央配置に変更 */
    width: 70%; /* 70%に縮小 */
    margin-bottom: -30px; /* スマホのパディング(30px)に合わせて調整 */
    border-radius: 4px 4px 0 0;
  }

  /* 企業データ・沿革セクションのスマホ調整 */
  .company-data {
    padding: 60px 0;
  }

  .company-data-block,
  .company-history-block {
    margin-bottom: 50px;
  }

  .ripple-icon {
    height: 36px; /* さらに90%に縮小 */
  }

  .company-data h2,
  .company-history-block h2 {
    font-size: 24px;
    margin-bottom: 28px;
  }

  .company-data-row {
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    padding: 16px 0; /* PCのみ広げたため、スマホは元の間隔を維持 */
    border-bottom-color: #eee; /* PCのみ濃くしたため、スマホは元の色を維持 */
  }

  .company-data-row:first-child {
    border-top-color: #eee; /* PCのみ濃くしたため、スマホは元の色を維持 */
  }

  .company-data-row dt {
    flex: none; /* 縦積み時にflex-basis(140px)が高さに適用され隙間が空いていたため修正 */
  }

  /* お客様の声セクションのスマホ調整 */
  .voice {
    padding: 60px 0;
  }

  .voice-header {
    margin-bottom: 35px;
  }

  .voice-leaf {
    width: 130px;
    top: 20px;
  }

  .voice-leaf-left {
    left: -30px;
  }

  .voice-leaf-right {
    left: auto; /* PC用のleft指定と競合しないようリセット */
    right: -30px;
  }

  .voice-header h2 {
    font-size: 40px;
  }

  .voice-header h3 {
    font-size: 14px;
    margin-top: -4px;
    margin-bottom: 20px;
  }

  .voice-lead,
  .voice-desc {
    font-size: 14px;
  }

  .voice-list {
    flex-direction: column; /* スマホは縦積みに */
    gap: 34px; /* 広がりすぎたためやや詰めた */
  }

  .voice-card {
    padding: 10px;
  }

  .voice-card-frame {
    border-width: 20px 40px;
    border-image-width: 20px 40px;
    padding: 5px 3px;
  }

  .voice-flower {
    width: 58px; /* さらに120%に拡大 */
    top: -53px;
  }

  .voice-quote {
    font-size: 16px;
    line-height: 2.4em;
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(2.4em - 1px),
      #ccc calc(2.4em - 1px),
      #ccc 2.4em
    );
    background-size: 100% 2.4em;
    background-position: 0 1.9em;
    background-repeat: repeat-y;
  }

  .voice-attribution {
    font-size: 14px;
  }

  /* お問い合わせセクションのスマホ調整 */
  .contact {
    padding: 60px 0;
  }

  .contact-inner {
    display: block;
  }

  .contact-info {
    width: auto; /* PC用のcalc(50%-30px)が残り横並びが崩れていたため修正 */
    margin-bottom: 40px;
  }

  .contact-heading {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .contact-lead {
    font-size: 13px;
    margin-bottom: 24px; /* スマホのみ間隔を詰めた */
  }

  .contact-phone-block {
    width: fit-content;
    margin: 0 auto; /* ブロックごと画面中央に配置 */
  }

  .contact-phone-title {
    font-size: 22px; /* スマホのみひとまわり拡大 */
  }

  .contact-phone-number {
    font-size: 30px; /* スマホのみひとまわり拡大 */
  }

  .contact-phone-number-tel {
    font-size: 26px; /* PCのみ縮小のため、スマホは通常サイズを維持 */
    font-weight: 700;
  }

  .contact-phone-hours {
    font-size: 13px; /* PCのみ2倍のため、スマホは元のサイズを維持 */
  }

  .contact-form-box {
    width: auto; /* PC用のcalc(50%-30px)が残り横並びが崩れていたため修正 */
    padding: 24px;
  }

  /* グループ企業のご紹介セクションのスマホ調整 */
  .group-companies {
    padding: 60px 0;
  }

  .group-companies-header {
    margin-bottom: 30px;
  }

  .group-companies-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 95%; /* スマホはボタン幅を広げる */
  }

  .group-company-card-wide {
    grid-column: auto;
  }

  .group-company-card {
    padding: 26px 22px;
  }

  .group-company-logo {
    height: 27px; /* 現状(18px)の150% */
  }

  /* フッターのスマホ調整 */
  .site-footer {
    padding: 50px 0 30px 0; /* 固定バーができ旧ボタン分の余白が不要になったため詰めた */
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1; /* ブランドは全幅、その下でナビ・関連リンクを横並びに */
  }

  .footer-logo {
    height: 46px; /* 70%に縮小 */
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-operated {
    text-align: center;
  }

  .footer-nav a,
  .footer-links a {
    font-size: 12px; /* 2行になる箇所があるためひとまわり縮小 */
  }

  .footer-copyright {
    margin-top: 20px;
    font-size: 11px;
  }

  /* プールケア詳細セクションのスマホ調整 */
  .pool-care {
    padding: 24px 0 60px 0; /* 上の白い余白を詰めた */
  }

  .pool-care-grid-1,
  .pool-care-grid-2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto; /* PC用の4行スペーサー構成をリセット */
    grid-template-areas:
      "banner"
      "photo"
      "checklist";
    row-gap: 0; /* 間隔はmarginで個別に制御 */
  }

  .pool-care-grid-2 {
    grid-template-areas:
      "banner"
      "reasons"
      "photo";
  }

  .pool-care-grid-1 .pool-care-photo {
    margin-top: 0; /* 緑バナーと写真を密着させる */
  }

  .pool-care-grid-1 .pool-care-checklist {
    margin-top: 20px;
  }

  .pool-care-grid-2 .pool-care-reasons {
    margin-top: 20px;
  }

  .pool-care-reasons {
    padding: 0; /* PCのみ追加した左右余白をリセット */
  }

  .pool-care-grid-2 .pool-care-photo {
    margin-top: 20px;
  }

  .pool-care-grid-1 .pool-care-banner,
  .pool-care-grid-2 .pool-care-banner {
    margin-right: 0;
    margin-left: 0; /* スマホでは写真への重なりを解除 */
    margin-top: 0; /* スマホでは写真からのオフセットも解除 */
  }

  .pool-care-grid + .pool-care-grid {
    margin-top: 60px;
  }

  .pool-care-banner {
    padding: 20px 22px;
    margin-bottom: 0; /* 写真との密着のため下余白をなくす */
  }

  .pool-care-banner-lime {
    padding-top: 22px; /* 元に戻した */
    padding-bottom: 20px;
  }

  .pool-care-banner h3 {
    font-size: 18px;
  }

  .pool-care-banner-lime h3 {
    font-weight: 700; /* PCのみ細くしたため、スマホは元の太さを維持 */
  }

  .pool-care-banner-purple h3 {
    font-size: 22px; /* ひとまわり大きく */
    font-weight: 400; /* PCのみ細くしたため、スマホは元の太さを維持 */
  }

  .pool-care-banner-purple {
    display: block;
    min-height: 0;
  }

  .pool-care-checklist {
    gap: 18px; /* PCのみ詰めたため、スマホは元の間隔を維持 */
    padding: 0; /* PCのみ左右余白を追加したため、スマホはリセット */
  }

  .pool-care-checklist li {
    font-size: 14px;
    padding-top: 0; /* PCのみ追加したため、スマホはリセット */
    padding-bottom: 0; /* PCのみ罫線用に追加したため、スマホはリセット */
    border-bottom: none; /* PCのみ罫線を追加したため、スマホは非表示 */
  }

  .pool-care-checklist li::before {
    top: 0; /* PCのみ調整したため、スマホは元の位置を維持 */
  }

  .circulation-diagram {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 220px; /* 横サイズを縮小 */
    height: fit-content;
    padding: 14px;
    background-color: rgba(255, 255, 255, 0.8); /* プールの写真が透けて見えるよう透明度80% */
  }

  .circulation-diagram h4 {
    font-size: 15px; /* ひとまわり大きく */
    margin-bottom: 10px;
  }

  .circulation-grid {
    grid-template-columns: 1fr 12px 1fr; /* さらに間隔を詰める */
  }

  .circulation-item img {
    width: 50px; /* 拡大 */
    height: 50px; /* 拡大 */
  }

  .circulation-item span {
    font-size: 10px;
    font-weight: 600; /* やや太く */
  }

  .circulation-arrow {
    font-size: 14px;
  }

  .circulation-desc {
    font-size: 10px;
    line-height: 1.5;
  }

  .pool-care-reason-num {
    font-size: 26px;
  }

  .pool-care-reason-swoosh {
    width: 30px;
    height: 15px;
  }

  .pool-care-reason h4 {
    font-size: 15px;
  }

  .pool-care-reason p {
    font-size: 13px;
  }
}
/* ==========================================
   固定ページ共通テンプレート（page.php）
   バナー（アイコン＋ページタイトル）＋コンテンツエリア＋下部背景画像
========================================== */
.page-banner {
  margin-top: 75px; /* 固定ヘッダー分のオフセット（.heroと同様） */
  background-color: #094d96;
  padding: 56px 0;
}

.page-banner-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.page-banner-icon {
  display: block;
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.page-banner-title {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.page-content {
  position: relative;
  padding: 90px 0 340px 0; /* 下部の余白は背景写真が見えるスペース */
  background-color: #fff;
  background-image: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url('images/page-bg.jpg');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}

.page-content .container {
  position: relative;
  z-index: 1;
}

/* the_content()で出力される標準的な見出し・本文・リストのスタイル */
.page-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.03em;
  margin: 56px 0 18px 0;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0d5aa7;
  margin: 36px 0 14px 0;
}

.page-content p {
  font-size: 15px;
  color: #444;
  line-height: 1.9;
  margin-bottom: 18px;
}

.page-content ul,
.page-content ol {
  margin: 0 0 18px 0;
  padding-left: 1.4em;
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  font-size: 15px;
  color: #444;
  line-height: 1.9;
  margin-bottom: 6px;
}

.page-content a {
  color: #0d5aa7;
  text-decoration: underline;
}

.page-content a:hover {
  color: #005bac;
}

.page-content strong {
  font-weight: 700;
  color: #1a1a1a;
}

/* 固定ページ共通テンプレート：スマホ用調整 */
@media (max-width: 768px) {
  .page-banner {
    margin-top: 71px;
    padding: 34px 0;
  }

  .page-banner-inner {
    gap: 14px;
  }

  .page-banner-icon {
    height: 32px;
  }

  .page-banner-title {
    font-size: 21px;
  }

  .page-content {
    padding: 50px 0 220px 0;
    background-size: 200% auto; /* スマホ幅では画像の縦横比を保ちつつ十分な高さを確保 */
  }

  .page-content h2 {
    font-size: 19px;
    margin: 40px 0 14px 0;
  }

  .page-content h3 {
    font-size: 16px;
    margin: 28px 0 10px 0;
  }

  .page-content p,
  .page-content li {
    font-size: 14px;
  }
}

/* ==========================================
   固定ページ専用：お問い合わせバナー(side-cta)の挙動調整
   ・初期非表示、トップへ戻るボタンと同じタイミング(scrollY > 400)で表示
   ・カラーはトップへ戻るボタンと同じ水色→群青グラデーションに固定
========================================== */
.is-fixed-page .side-cta {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.25s ease, visibility 0.3s ease, filter 0.25s ease;
}

.is-fixed-page .side-cta.is-visible {
  opacity: 1;
  visibility: visible;
}

.is-fixed-page .side-cta::before {
  background: linear-gradient(to bottom, #00bcd4, #003a8c);
}

.is-fixed-page .side-cta span {
  color: #003a8c;
}

/* 固定ページ：フッター領域ではトップへ戻るボタンと同様に白バージョンへ切り替え
   （.is-fixed-page .side-cta::before より詳細度を上げて上書きする。
   ベース側がbackgroundショートハンド(グラデーション)を使っているため、
   ここもbackground-colorではなくbackgroundショートハンドで上書きし、
   グラデーション(background-image)を確実に打ち消す） */
.is-fixed-page .side-cta.on-light-bg::before {
  background: #fff;
}

.is-fixed-page .side-cta.on-light-bg span {
  color: #fff;
}

/* ==========================================
   ギャラリー／お客様の声：ページネーション
========================================== */
.ams-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.ams-pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.ams-pagination-item:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.ams-pagination-item.is-current {
  background-color: #fff;
  color: #094d96;
}

/* お客様の声セクションは背景が明るいため、配色を反転 */
.voice-pagination .ams-pagination-item {
  background-color: rgba(9, 77, 150, 0.1);
  color: #094d96;
}

.voice-pagination .ams-pagination-item:hover {
  background-color: rgba(9, 77, 150, 0.2);
}

.voice-pagination .ams-pagination-item.is-current {
  background-color: #094d96;
  color: #fff;
}

.gallery-empty,
.voice-empty {
  color: #fff;
  text-align: center;
  grid-column: 1 / -1;
}

/* ==========================================
   Galleryポップアップ（ライトボックス）
========================================== */
.ams-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background-color: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ams-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ams-lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.ams-lightbox.is-open .ams-lightbox-inner {
  transform: scale(1);
}

.ams-lightbox-inner img {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.ams-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: #094d96;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ams-lightbox-close:hover {
  background-color: #fff;
}

@media (max-width: 768px) {
  .ams-pagination {
    margin-top: 30px;
    gap: 8px;
  }

  .ams-pagination-item {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .ams-lightbox-close {
    top: -40px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}

/* ==========================================
   言語切り替え（JA / EN）：ボタンをリンク化したことに伴う見た目の調整
   ・英語＝トップ直下、日本語＝/ja/ の別URLへ移動する仕組み
========================================== */
.lang-switch a.lang-btn {
  text-decoration: none;
}

.lang-switch a.lang-btn.active {
  pointer-events: none; /* 表示中の言語は押せない（見た目は従来通り） */
}

/* スマホメニュー内：.nav-list a の共通スタイル（ブロック表示・余白）を打ち消し、従来の横並びを維持 */
.nav-list .nav-lang-sp a {
  display: inline;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  text-align: inherit;
  color: #888;
}

.nav-list .nav-lang-sp a:hover {
  color: #005bac;
}

.nav-list .nav-lang-sp a.active {
  color: #333;
  pointer-events: none;
}
