@charset "UTF-8";

/* --- 基本設定 & 変数 --- */
:root {
  --primary-color: #1f88d5;   /* 明るい水色寄りの青 */
  --accent-color: #1262a3;    /* 濃いめの青 */
  --bg-light: #f0f7fc;        /* 背景色 */
  --text-color: #333333;      /* 本文テキスト */
  --border-color: #d1e5f5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #ffffff;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- ヘッダー --- */
header {
  background-color: #ffffff;
  border-bottom: 4px solid var(--primary-color);
  padding: 15px 20px;
}

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.site-title h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.site-title h1 a {
  color: var(--primary-color);
  text-decoration: none;
}

.site-title p {
  font-size: 0.85rem;
  color: #666;
}

/* style.css の .site-title img に対する指定を追加 */
.site-title img {
  width: 250px; /* お好みに合わせて 220px〜280px で調整 */
  height: auto;
}

.header-contact {
  text-align: right;
}

.header-contact .tel-label {
  font-size: 0.8rem;
  color: #666;
}

.header-contact .tel-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.header-contact .hours {
  font-size: 0.8rem;
  color: #555;
}

/* --- ナビゲーション --- */
nav {
  background-color: var(--primary-color);
}

.nav-list {
  max-width: 1000px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.nav-list li {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.nav-list a {
  display: block;
  padding: 12px 10px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.nav-list a:hover,
.nav-list li.active a {
  background-color: var(--accent-color);
  text-decoration: none;
}

/* --- メインビジュアル / キャッチコピー (ヒーローエリア) --- */
.hero {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 30px 20px;
  text-align: center;
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-img-wrapper {
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-img-wrapper img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 4px;
}

.hero h2 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 12px;
  line-height: 1.5;
  text-align: center;
}

.hero p {
  font-size: 1rem;
  color: #444;
  text-align: center;
}

/* --- ページヘッダー / タイトル（サブページ用） --- */
.page-title {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 25px 20px;
  text-align: center;
}

.page-title h2 {
  font-size: 1.6rem;
  color: var(--primary-color);
  font-weight: 700;
}

.page-title h2 span.en {
  display: block;
  font-size: 0.85rem;
  color: #666;
  font-weight: 400;
  margin-top: 4px;
}

/* --- レイアウト構造 --- */
.main-container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.content-area {
  flex: 2;
  min-width: 300px;
}

.sidebar {
  flex: 1;
  min-width: 260px;
}

/* --- 見出し・汎用要素 --- */
h3.content-h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  border-left: 5px solid var(--primary-color);
  padding-left: 10px;
  margin: 25px 0 15px 0;
  background-color: var(--bg-light);
  padding-top: 6px;
  padding-bottom: 6px;
  font-weight: 700;
}

.content-area > h3.content-h3:first-child {
  margin-top: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 25px 0;
}

/* お知らせボックス */
.info-box {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 30px;
}

.info-box p {
  margin-bottom: 10px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* --- リスト装飾 --- */
.flow-list {
  list-style: none;
  counter-reset: flow-step;
  margin-bottom: 20px;
}

.flow-list > li {
  position: relative;
  padding: 15px 15px 15px 50px;
  background: var(--bg-light);
  border-radius: 4px;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
}

.flow-list > li::before {
  counter-increment: flow-step;
  content: counter(flow-step);
  position: absolute;
  left: 15px;
  top: 15px;
  width: 26px;
  height: 26px;
  background: var(--primary-color);
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  font-size: 0.85rem;
}

.flow-list h4 {
  font-size: 1.05rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.custom-list {
  padding-left: 20px;
  margin-bottom: 20px;
}

.custom-list li {
  margin-bottom: 8px;
}

.custom-list ul {
  padding-left: 20px;
  margin-top: 5px;
  list-style-type: circle;
}

/* 経歴の定義リスト */
.history-dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 15px;
  margin-bottom: 20px;
}

.history-dl dt {
  font-weight: bold;
  color: var(--accent-color);
}

/* 画像レイアウト */
.img-left-wrapper, .img-right-wrapper {
  margin-bottom: 15px;
}

.img-left-wrapper img, .img-right-wrapper img {
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

@media (min-width: 600px) {
  .img-right-wrapper {
    float: right;
    margin-left: 20px;
  }
  .img-left-wrapper {
    float: left;
    margin-right: 20px;
  }
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* マップエリア */
.map-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 比率 */
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  margin-top: 15px;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- サイドバー --- */
.sidebar-banner {
  display: block;
  margin-bottom: 15px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: opacity 0.2s;
}

.sidebar-banner:hover {
  opacity: 0.85;
}

.office-info {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.office-info-logo {
  margin-bottom: 12px;
}

.office-info h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

/* --- フッター --- */
footer {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.85rem;
}

/* スマホ用固定発信ボタン */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1a3d6d;
  color: #ffffff;
  text-align: center;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.mobile-cta a {
  color: #ffffff;
  text-decoration: none;
  display: block;
}

/* --- レスポンシブ対応 (画面幅768px以下) --- */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-contact {
    text-align: left;
    margin-top: 5px;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .main-container {
    flex-direction: column;
    margin: 20px auto;
  }

  .history-dl {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .history-dl dt {
    margin-top: 8px;
  }

  body {
    padding-bottom: 50px;
  }

  .mobile-cta {
    display: block;
  }
}