/* 
================================================================================
★★★ Westana Corporation カスタムCSS - ここから ★★★
================================================================================
このセクションは株式会社ウェスタナのカスタムCSSです。
SWELLテーマのデフォルトCSSの後に追加されています。

最終更新: 2025-12-06
作成者: Westana Corporation

【重要】
- このセクションの上(↑)は元のSWELLテーマのCSSです
- このセクションの下(↓)がWestana独自のカスタムCSSです
- テーマアップデート時は、このコメントブロックから下を再度追加してください

【バックアップ方法】
1. このコメントから最後までをコピー
2. テキストファイルとして保存（ファイル名: westana-custom-backup-YYYYMMDD.css）
3. 安全な場所に保管

【復元方法】
1. バックアップファイルを開く
2. 内容を全てコピー
3. main.cssの末尾に貼り付け
================================================================================
*/


/* ==========================================================================
   01. グローバル設定（フォント・基本スタイル）
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

p, ul, ol {
  margin-bottom: 1.5em;
}

ul, ol {
  padding-left: 20px;
  margin-left: 0;
}

.entry-content {
  line-height: 1.7;
}

/* ==========================================================================
   02. 見出しスタイル（H1-H5）
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

.wp-block-heading {
  color: #008080;
  font-family: 'Helvetica', 'Arial', sans-serif;
}

h1.wp-block-heading,
h2.wp-block-heading,
h3.wp-block-heading,
h4.wp-block-heading {
  font-weight: bold;
}

h1.wp-block-heading {
  font-size: 1.2em;
  background-color: #f5f5f5;
  display: inline-block;
  padding: 5px 10px;
  margin: 20px 0;
  line-height: 1.4;
}

h2.wp-block-heading {
  font-size: 1.2em;
}

h3.wp-block-heading {
  font-size: 1em;
  border-bottom: 2px solid #008080;
  padding-bottom: 5px;
}

h4.wp-block-heading {
  font-size: 1em;
  padding-left: 20px;
  position: relative;
}

h4.wp-block-heading::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #008080;
}

h5.wp-block-heading {
  font-size: 1em;
}

/* 見出しの余白調整 */
h1.wp-block-heading,
h2.wp-block-heading,
h3.wp-block-heading,
h4.wp-block-heading,
h5.wp-block-heading {
  margin-top: 1.5em;
  margin-bottom: 1em;
}

/* ==========================================================================
   03. テーブルスタイル（統合版）
   ========================================================================== */

/* 基本テーブルスタイル */
.wp-block-table table {
  border-collapse: collapse;
}

.wp-block-table table tr td {
  padding: 8px;
  border-width: 0;
  vertical-align: top;
}

.wp-block-table table tr {
  line-height: 1.5;
  margin-bottom: 0;
}

/* ボーダーなしテーブル（トップページ用） */
.wp-block-table.is-style-stripes.no-border-table,
.wp-block-table.is-style-stripes.no-border-table table,
.wp-block-table.no-border-table,
.wp-block-table.no-border-table table {
  border: none !important;
  border-collapse: collapse !important;
  width: 100% !important;
}

.wp-block-table.is-style-stripes.no-border-table td,
.wp-block-table.is-style-stripes.no-border-table th,
.wp-block-table.no-border-table td,
.wp-block-table.no-border-table th {
  border: none !important;
  padding: 0.5em 0 !important;
}

.wp-block-table.no-border-table td:first-child {
  width: 25% !important;
  vertical-align: top !important;
  padding-top: 0.5em !important;
}

.wp-block-table.no-border-table td:last-child {
  width: 75% !important;
  padding-top: 0.5em !important;
}

.wp-block-table.no-border-table tr {
  margin-bottom: 1em !important;
}

/* ==========================================================================
   04. CTAセクション
   ========================================================================== */

.box {
  background-color: #f6f6f6;
}

.box-child {
  padding: 0 20px 20px 20px;
}

.headline {
  background-color: #20282f;
  color: #ffffff;
  padding-top: 10px;
  padding-bottom: 10px;
}

.cta-button {
  display: block;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem 0.5rem;
  font-weight: bold;
  border-radius: 0.3rem;
  border-bottom: 7px solid #E67E22;
  background: #FFA500;
  color: #ffffff !important;
}

.cta-button:hover {
  background-color: #FFA500;
  opacity: 0.7;
}

/* ==========================================================================
   05. メインビジュアル（MV）
   ========================================================================== */

#main-visual {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.mv-image img,
.mv-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mv-video-container {
  width: 100%;
  height: 100%;
}

/* 不要な要素を非表示 */
.header-video-container,
.header-image,
.header-video,
.header-image img {
  display: none;
}

/* ==========================================================================
   06. スクロールアニメーション
   ========================================================================== */

.wp-block-group, 
.wp-block-columns, 
.wp-block-image, 
.wp-block-heading, 
.wp-block-paragraph {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.wp-block-group.is-visible, 
.wp-block-columns.is-visible, 
.wp-block-image.is-visible, 
.wp-block-heading.is-visible, 
.wp-block-paragraph.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   07. Serviceページ専用スタイル
   ========================================================================== */

.single-service .wp-post-image {
  margin: 0 0 20px 0;
  max-width: 100%;
  width: 100%;
  height: auto;
}

.single-service .service-article {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.single-service .entry-title {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: left;
}

.single-service .service-thumbnail {
  margin-bottom: 20px;
}

.single-service .entry-content {
  line-height: 1.6;
}

.service-content {
  max-width: 1000px;
  margin: 0 auto;
}

/* ==========================================================================
   08. フォームスタイル（MW WP Form）
   ========================================================================== */

.mw_wp_form {
  width: 100%;
  max-width: 800px;
}

.mw_wp_form input[type="text"],
.mw_wp_form input[type="email"],
.mw_wp_form textarea {
  width: 100%;
  box-sizing: border-box;
}

.mw_wp_form input#zip {
  width: 100% !important;
  max-width: 200px;
}

/* ==========================================================================
   09. UAGBブロック固有スタイル
   ========================================================================== */

.uagb-block-5f0d749e p {
  margin-top: 0.5em !important;
  margin-bottom: 0.5em !important;
  line-height: 1.6 !important;
}

.uagb-block-5f0d749e > p:first-child {
  margin-top: 0 !important;
}

.uagb-block-5f0d749e > p:last-child {
  margin-bottom: 0 !important;
}

.uagb-block-5f0d749e p strong {
  display: inline-block;
  margin-bottom: 0.2em !important;
}

.uagb-block-5f0d749e ul,
.uagb-block-5f0d749e ol {
  margin-top: 0.5em !important;
  margin-bottom: 0.5em !important;
}

.uagb-block-5f0d749e li {
  margin-bottom: 0.3em !important;
}

.uagb-block-5f0d749e li:last-child {
  margin-bottom: 0 !important;
}

/* PCでのUAGB改行制御 */
.uagb-ifb-title br {
  display: none;
}

/* ==========================================================================
   10. レスポンシブブレーク制御
   ========================================================================== */

/* PC表示用改行 */
.pc-break {
  display: block;
}

/* スマホ表示用改行 */
.sp-break {
  display: none;
}

/* ==========================================================================
   11. レスポンシブ対応（タブレット・スマホ）
   ========================================================================== */

@media screen and (max-width: 768px) {
  /* 改行制御 */
  .pc-break {
    display: none;
  }
  
  .sp-break {
    display: inline;
  }
  
  /* テーブル調整 */
  .wp-block-table td:first-child {
    min-width: 90px;
    width: 30%;
  }
  
  .wp-block-table td:nth-child(2) {
    width: 70%;
  }
  
  /* フォーム調整 */
  .mw_wp_form {
    width: 100%;
  }
  
  /* UAGB改行表示 */
  .uagb-ifb-title br {
    display: inline;
  }
}

/* PC表示専用スタイル */
@media screen and (min-width: 769px) {
  /* テーブル調整 */
  .wp-block-table table td:first-child {
    width: auto;
  }
  
  /* フォーム調整 */
  .mw_wp_form {
    width: 60%;
    margin-left: 0;
  }
}

/* 
================================================================================
★★★ Westana Corporation カスタムCSS - ここまで ★★★
================================================================================
*/
