/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
Author: 久保陽子
Author URI: https://lifesupport-animal-hsp.com/
Description: Astraテーマの子テーマ。北摂ライフサポート動物病院用。白背景・黒文字・オレンジボタン・茶色アクセント・Google Fonts。
*/

/* ===== 共通スタイル ===== */
body {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding-top: 120px; /* ヘッダー固定分の余白 */
}

body.admin-bar {
    padding-top: 152px; /* ヘッダー120 + 管理バー32 */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #000000;
    margin: 0 0 10px 0;
}

/* リンク色 */
a {
    color: #ff6600;
    text-decoration: none;
}
a:hover {
    color: #cc4400;
}

/* ボタン */
button, .btn, input[type="submit"], .btn-line, .btn-online {
    background-color: #ff6600;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}
button:hover, .btn:hover, input[type="submit"]:hover, .btn-line:hover, .btn-online:hover {
    background-color: #cc4400;
}

/* アクセントに茶色 */
hr, .accent-brown {
    border-color: #8b4513;
}

/* ----------------------------------
ヘッダー固定＆デザイン
----------------------------------- */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  z-index: 9999 !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.header-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 20px !important;
  border-bottom: 1px solid #eee !important;
}

.header-left img {
  height: 40px;
  margin-right: 10px;
  vertical-align: middle;
}

.header-left span {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000000;
}

.header-right .btn-line,
.header-right .btn-online {
  margin-left: 10px;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 4px;
}

/* ヘッダー2行目（ナビ） */
.header-bottom {
  background-color: #ffffff;
  border-top: 1px solid #ddd;
  overflow-x: auto; /* 横スクロール対応 */
}

.header-bottom .main-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 5px 0;
}

.header-bottom .main-menu li {
  margin: 0 15px;
}

.header-bottom .main-menu li a {
  text-decoration: none;
  color: #000000;
  font-weight: 500;
}

.header-bottom .main-menu li a:hover {
  color: #ff6600;
}

/* トップ画像 */
.top-image img {
  width: 100%;
  height: auto;
  margin-top: 0; /* body padding-topで調整済み */
}

/* ----------------------------------
お知らせセクション
----------------------------------- */
.news {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.news h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #8b4513;
}

.news ul {
  list-style: none;
  padding: 0;
}

.news li {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

/* ----------------------------------
診療時間・対象・保険
----------------------------------- */
.info-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.info-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.info-image {
  width: 60%;   /* 画像エリアを60% */
}

.info-image img {
  width: 100%;  /* エリアに対して全幅にフィット */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.info-text {
  width: 40%;   /* テキストエリアを40% */
}

@media (max-width: 768px) {
  .info-container {
    flex-direction: column;
    text-align: center;
  }

  .info-image,
  .info-text {
    width: 100%;   /* スマホは縦並びで全幅 */
  }
}



/* ----------------------------------
初診・理念・特徴・診療科目・院長・アクセス
----------------------------------- */
.first-time, .philosophy, .features, .icon-section, .director, .access {
  padding: 40px 20px;
}

.first-time h2,
.philosophy h2,
.features h2,
.icon-section h2,
.director h2,
.access h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #8b4513;
}

/* 診療科目 */

/* アイコンセクション */
/* タイトルは左寄せ */
.icon-section-title h2 {
  text-align: left;
  margin-bottom: 15px;
  color: #8b4513;
}

/* アイコンの親だけflexにする */
.icon-section {
  display: flex;
  flex-wrap: wrap;       /* 複数行に自動で折り返す */
  justify-content: center; /* 横中央に揃える */
  gap: 20px;             /* アイコン同士の間隔 */
  padding: 20px;
}

.icon-section a {
  width: 200px;          /* アイコン幅 */
  height: 120px;         /* アイコン高さ */
  display: block;
  text-align: center;    /* アイコン内の文字がある場合中央寄せ */
}


/* スマホ対応 */
@media (max-width: 768px) {
  .icon-section-items a {
    width: calc(50% - 5px);
  }
}




/* 院長紹介 */
.director img {
  max-width: 200px;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* アクセス */
.access .map {
  margin-top: 10px;
  height: 300px;
}

/* ----------------------------------
レスポンシブ対応
----------------------------------- */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-right {
    margin-top: 5px;
  }
  .header-bottom .main-menu {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-bottom .main-menu li {
    margin: 5px 0;
  }
  .top-image img {
    margin-top: 0;
  }
  .departments li {
    width: 48%;
  }
}

@media (max-width: 480px) {
  .header-top span {
    font-size: 1rem;
  }
  .header-right .btn-line,
  .header-right .btn-online {
    padding: 4px 8px;
    font-size: 0.9rem;
  }
  .departments li {
    width: 100%;
  }
}