@charset "UTF-8";
/*
Theme Name: AINOS FC Child
Template: swell
Version: 1.2.5
Description: AINOS FC加盟店サイト用のSWELL子テーマ
Author: First Design
*/

/* 背景白で透過 */
.bg_white50 {
  background-color: rgba(255, 255, 255, 0.5); /* 白＋透過50% */
	border:none !important;
}
.bg_white70 {
  background-color: rgba(255, 255, 255, 0.7); /* 白＋透過50% */
	border:none !important;
}
.bg_white80 {
  background-color: rgba(255, 255, 255, 0.8); /* 白＋透過50% */
	border:none !important;
}
/* メールフォーム *******************************/
.custom-contact-form {
/*   background-color: #c7e9f5; /* 水色背景 */ 
/*   padding: 20px; */
}

/* ラベルと入力欄の距離を詰める */
div.wpcf7 form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0 !important;
  line-height: 1.2;
}

.custom-contact-form input[type="text"],
.custom-contact-form input[type="email"],
.custom-contact-form textarea {
  width: 100%;
  background-color: #fff;
  border: 1px solid #ccc; /* 囲み線をグレーに */
  padding: 8px;
  box-sizing: border-box;
}

.custom-contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.custom-contact-form .form-row {
  margin-bottom: 15px;
}

.custom-contact-form .two-columns {
  display: flex;
  gap: 10px;
}

.custom-contact-form .two-columns .form-field {
  flex: 1;
}

/* 送信ボタン中央寄せ */
/* .custom-contact-form .form-row:last-child {
  display: flex;
  justify-content: center; /* 完全に中央寄せ 
} */

.custom-contact-form input[type="submit"]  {
  background-color: #491600;
  color: #fff;
  padding: 12px 0;
  border: none;
  cursor: pointer;
  width: 200px;
  font-size: 16px;
}
.btn001{
  background-color: #491600;
  color: #fff;
  padding: 12px 0;
  border: none;
  cursor: pointer;
  width: 200px;
  font-size: 16px;
text-align:center;
}


.custom-contact-form input[type="submit"]:hover {
  background-color: #555;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .custom-contact-form .two-columns {
    flex-direction: column;
  }
}

/* LINE予約ボタン */
.line-btn {
  display: inline-block;
  background-color: #06C755; /* LINE公式カラー */
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 14px 24px;
  border-radius: 50px;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
  width: 100%;
  max-width: 320px;
  margin: 10px auto;
}
.line-btn:hover {
  opacity: 0.85;
}

/* 電話ボタン */
.tel-btn {
  display: inline-block;
  background-color: #f36f6f;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 50px;
  text-align: center;
  text-decoration: none;
  width: 100%;
  max-width: 320px;
  margin: 10px auto;
}
.tel-btn:hover {
  opacity: 0.85;
}

/* スマホ時中央寄せ */
.line-btn, .tel-btn {
  display: block;
}

/* ========================================
   トップページ スタッフ紹介
   ======================================== */

.ainos-top-staff__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.ainos-top-staff__card {
    text-align: left;
}

.ainos-top-staff__card-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 16px;
}

.ainos-top-staff__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ainos-top-staff__card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #bbb;
    font-size: 12px;
}

.ainos-top-staff__card-body {
    padding: 0 4px;
}

.ainos-top-staff__card-label {
    font-size: 12px;
    font-weight: 700;
    color: #5c3a1e;
    margin: 0 0 8px;
}

.ainos-top-staff__card-name {
    font-size: 20px;
    font-weight: 700;
    color: #5c3a1e;
    margin: 0 0 2px;
}

.ainos-top-staff__card-name-en {
    font-size: 11px;
    color: #888888;
    letter-spacing: 0.1em;
    margin: 0 0 12px;
}

.ainos-top-staff__card-intro {
    font-size: 13px;
    line-height: 1.8;
    color: #333333;
    margin: 0 0 16px;
}

.ainos-top-staff__card-btn {
    display: inline-block;
}

.ainos-top-staff__card-btn img {
    height: 36px;
    width: auto;
}

@media (max-width: 768px) {
    .ainos-top-staff__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 40px;
    }
}

/* <!-- ==============================
  お問い合わせセクション
  WordPress SWELL カスタムHTMLブロック用
============================== -->
 */

/* ===== セクション全体 ===== */
.contact-section {
  padding: 40px 10px;
  text-align: center;
    background: #ffffff;
/*     padding: 60px 20px; */
    margin-top: 60px;
}

/* ----- カード横並び ----- */
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 18px;
  max-width: 960px;
  margin: 0 auto 28px;
  flex-wrap: wrap;
}

/* ----- カード共通（外側＝背景色） ----- */
.contact-card {
  flex: 1 1 260px;
  max-width: 300px;
  min-width: 240px;
  border-radius: 14px;
  padding: 7px;
  overflow: hidden;
  display: flex;
}

/* カード内側（ボーダー） */
.contact-card__inner {
  width: 100%;
  flex: 1;
  border-radius: 9px;
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* ----- カード色バリエーション ----- */
/* 1枚目: 薄いグリーン */
.contact-card--line {
  background: #eff4ea;
}
.contact-card--line .contact-card__inner {
  border: 1.5px solid #cbd6c0;
}

/* 2枚目: 薄い水色 */
.contact-card--web {
  background: #eaf1f5;
}
.contact-card--web .contact-card__inner {
  border: 1.5px solid #c0d2dd;
}

/* 3枚目: 薄いピンク */
.contact-card--tel {
  background: #f7ece9;
}
.contact-card--tel .contact-card__inner {
  border: 1.5px solid #dcc5bf;
}

/* ----- カード内テキスト ----- */
.contact-card__heading {
  font-size: 22px;
  font-weight: 700;
  color: #4a4232;
  margin: 0 0 2px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.contact-card__sub {
  font-size: 22px;
  font-weight: 700;
  color: #4a4232;
  margin: 0 0 14px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.contact-card__tel-number {
  font-size: 22px;
  font-weight: 700;
  color: #4a4232;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  line-height: 1.3;
}

/* ----- ボタン画像 ----- */
.contact-card__btn {
  display: inline-block;
  transition: opacity 0.25s ease;
}
.contact-card__btn:hover {
  opacity: 0.75;
}
.contact-card__btn img {
  height: 36px;
  width: auto;
  display: block;
}

/* ----- 営業時間 ----- */
.contact-section__hours {
  color: #6b6050;
  margin: 0 0 24px;
  letter-spacing: 0.06em;
}

/* ----- SNSアイコン ----- */
.contact-sns {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.contact-sns__link {
  display: inline-block;
  transition: opacity 0.25s ease;
}
.contact-sns__link:hover {
  opacity: 0.7;
}
.contact-sns__link img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
}

/* ===== レスポンシブ ===== */
@media (max-width: 767px) {
  .contact-section {
    padding: 40px 16px 36px;
  }
  .contact-cards {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .contact-card {
    max-width: 380px;
    width: 100%;
    flex: 0 0 auto;
  }
  .contact-card__heading {
    font-size: 20px;
  }
  .contact-card__sub,
  .contact-card__tel-number {
    font-size: 20px;
  }
}
/* CTA タイトル画像 */
.contact-section__title {
    text-align: center;
    margin-bottom: 30px;
}

.contact-section__title img {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: inline-block;
}

@media (max-width: 767px) {
    .contact-section__title img {
        width: 100%;
    }
}

/* フッター見えるようにする */
@media (max-width: 767px) {
    #footer {
        padding-bottom: 80px; /* ボタンの高さに合わせて調整 */
    }
}

/* ========================================
   ペットのお世話の記録 - ランダム表示
   ======================================== */
.ainos-pet-records {
    max-width: 900px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.ainos-pet-records__title {
    text-align: center;
    color: #5c3a1e;
    margin-bottom: 30px;
}

.ainos-pet-records__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ainos-pet-records__card {
    display: block;
    text-decoration: none;
    color: #5c3a1e;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.ainos-pet-records__card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ainos-pet-records__thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.ainos-pet-records__no-img {
    width: 100%;
    height: 180px;
    background: #f0e6df;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a88c;
}

.ainos-pet-records__card-title {
    padding: 12px 12px 4px;
    font-weight: bold;
    line-height: 1.4;
}

.ainos-pet-records__date {
    display: block;
    padding: 0 12px 12px;
    color: #999;
}

/* モバイル */
@media (max-width: 599px) {
    .ainos-pet-records__grid {
        grid-template-columns: 1fr;
    }
}

/* 犬猫等お世話ページ：コース紹介の生テーブルをカード風に
   （.price-tableや、店舗情報ページ等で使われるGutenbergの正式なテーブルブロック figure.wp-block-table > table には影響しない） */
.post_content table:not(.price-table):not(figure.wp-block-table > table) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    border: none;
    margin-top: 20px; /* 直前の文章との余白 */
}

.post_content table:not(.price-table):not(figure.wp-block-table > table) tbody,
.post_content table:not(.price-table):not(figure.wp-block-table > table) tr {
    display: contents;
}

.post_content table:not(.price-table):not(figure.wp-block-table > table) td {
    display: block;
    width: 100% !important; /* 元のクラシックテーブルのインラインwidth（4.16667%等）を上書き */
    text-align: center !important; /* キャプション文字を中央揃えに */
    background: #fff;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
    padding: 0;
    vertical-align: top;
}

.post_content table:not(.price-table):not(figure.wp-block-table > table) td:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 画像を含まない空セル（行の埋め合わせ用）はカードの装飾を表示しない */
.post_content table:not(.price-table):not(figure.wp-block-table > table) td:not(:has(img)) {
    background: transparent;
    box-shadow: none;
}

.post_content table:not(.price-table):not(figure.wp-block-table > table) td:not(:has(img)):hover {
    box-shadow: none;
}

/* キャプションがプレーンテキスト＝画像より前にあるパターン（例：ごはんの用意 → 画像）
   テキスト上部とテキスト-画像間に余白を入れる */
.post_content table:not(.price-table):not(figure.wp-block-table > table) td:has(img):not(:has(strong)) {
    padding-top: 16px;
}
.post_content table:not(.price-table):not(figure.wp-block-table > table) td:not(:has(strong)) img {
    margin-top: 12px; /* テキストと画像の間の余白（pタグでラップされているセルにも対応） */
}

/* キャプションが<strong>＝画像より後にあるパターン（例：画像 → 基本コース60分）
   画像はカード上端にフラットに接する（元々余白なし） */
.post_content table:not(.price-table):not(figure.wp-block-table > table) td:has(strong) img {
    margin-top: 0;
}

/* 遅延読み込みプラグインがwidth/heightにインラインstyleを直接付与してくるため!importantで上書き */
.post_content table:not(.price-table):not(figure.wp-block-table > table) td img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover;
    display: block;
}

.post_content table:not(.price-table):not(figure.wp-block-table > table) td br {
    display: none;
}

.post_content table:not(.price-table):not(figure.wp-block-table > table) td strong {
    display: block;
    text-align: center;
    padding: 14px 12px;
    font-weight: bold;
    color: #5c3a1e;
}

@media (max-width: 599px) {
    .post_content table:not(.price-table):not(figure.wp-block-table > table) {
        grid-template-columns: 1fr;
    }
}

/* 本文中のEnterによる改行を可視化（犬猫等お世話ページのみ）
   カスタムHTMLブロック等で書かれた本文はwpautopが効かずEnterでの改行が反映されないため、
   ソース上の改行をそのまま表示する（テーブル内部は独自の余白制御と競合するため対象外に戻す）。
   .post_contentはSWELLの共通クラスでトップページ等の通常ブロックにも使われるため、
   body_classで付与される.ainos-care-page配下だけに適用範囲を絞る */
.ainos-care-page .post_content {
    white-space: pre-line !important;
}
.ainos-care-page .post_content table,
.ainos-care-page .post_content table * {
    white-space: normal !important;
}

/* トップお知らせ */
.ainos-notice {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 16px;
}
.ainos-notice__inner {
    background: #FCF9F7;
    border-radius: 6px;
    padding: 24px 32px;
}
.ainos-notice__inner p {
    margin-bottom: 0.5em;
    color: #5c3a1e;
}
.ainos-notice__inner p:last-child {
    margin-bottom: 0;
}

/* ===================================
 * 説明文セクション内 h3（全ページ共通）
 * =================================== */
.ainos-desc h3 {
  font-size: 1.25em !important;
  font-weight: bold !important;
  color: #5c3a1e !important;
  border-left: 6px solid var(--ainos-accent, #d4a88c) !important;
  padding: 0.15em 0 0.15em 0.6em !important;
  margin: 1.8em 0 0.6em !important;
  background: transparent !important;
}

/* SWELL h3 装飾の打ち消し */
.ainos-desc h3::before,
.ainos-desc h3::after {
  content: none !important;
  display: none !important;
}
/* ===================================
 * キービジュアルフォント（丸く）
 * =================================== */
.kv-copy,
.p-mainVisual__slideTitle,
.p-mainVisual__slideText {
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.7;
}