/* --- リセット & 共通定義 --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  /* スムーズスクロール */
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: "mamelon", sans-serif;
  font-weight: 500;
  font-style: normal;
  color: #333;
  line-height: 1.7;
  background-color: #fff;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
/* --- レイアウト構造 --- */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}
.section {
  padding: 80px 0;
}
.section-light {
  background-color: #ffffff;
}
.section-cream {
  background-color: #FFF9E6;
}
.section-title {
  text-align: center;
  font-size: 30px;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  position: relative;
  color: rgba(0, 0, 0, 0.56);
}
/* --- ヘッダー --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #eaeaea;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto 0 0;
  padding: 10px 20px 10px 35px;
}
.logo {
  font-size: 40px;
  font-weight: normal;
  color: #603D09;
}
/* --- ヘッダーナビゲーション --- */
.header-nav {
  margin-right: 30px;
}
.header-nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
}
.header-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.56);
  transition: opacity 0.2s;
}
.header-nav a:hover {
  opacity: 0.7;
}
.nav-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}
/* --- メインビジュアル --- */
.main-visual {
  width: 100%;
  height: 400px;
  margin: 0;
  padding: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
}
/* --- キャッチバナー --- */
.catch-banner {
  background-image: url('../images/catch-banner.jpg');
  width: 100%;
  height: 400px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed; /* ★背面に画像を完全固定 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
/* --- 取扱業務 --- */
.business-box {
  background-color: #FFF9E6;
  border-radius: 30px;
  padding: 28px 60px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 6px 6px rgba(0, 0, 0, 0.15);
  font-size: 18px;
  width: fit-content;
}
/* --- 弁護士紹介 --- */
.profile-content {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}
.profile-image {
  flex: 0 0 200px;
}
.profile-image img {
  border-radius: 20px;
  width: 100%;
  display: block;
}
.profile-details {
  flex: 1;
}
/* 弁護士名 */
.profile-details h3, .profile-details .profile-name {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 30px;
  color: #000;
  letter-spacing: 0.05em;
  border-bottom: none;
  padding-bottom: 0;
}
/* 略歴・公益活動の横並びグリッド */
.profile-grid {
  display: flex;
  gap: 25px;
  margin-bottom: 30px;
}
/* 略歴カラム */
.profile-grid .profile-col:first-child {
  flex: 0.85;
}
/* 主な公益活動カラム */
.profile-grid .profile-col:last-child {
  flex: 1.15;
}
/* 見出しと下線 */
.profile-sub-title {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #000;
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid #707070;
  letter-spacing: 0.05em;
}
/* 趣味の枠幅 */
.profile-hobby-wrap {
  width: calc(42% - 10px);
}
/* 本文テキスト */
.profile-info {
  font-size: 16px;
  line-height: 1.8;
  color: #000;
}
.profile-info p {
  margin-bottom: 4px;
}
.profile-history {
  margin-top: 6px;
}
.indent {
  padding-left: 0em;
}
/* 公益活動の2列揃え */
.activity-table {
  margin-top: 4px;
}
.activity-row {
  display: flex;
  margin-bottom: 4px;
  white-space: nowrap;
}
.act-org {
  width: 7.5em;
  flex-shrink: 0;
}
.act-role {
  flex: 1;
}
/* --- 相談風景画像 --- */
.profile-sub-image {
  text-align: right;
  margin-top: 20px;
  margin-bottom: -150px;
  position: relative;
  z-index: 10;
  transform: translateX(150px);
}
.profile-sub-image img {
  max-width: 380px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* --- 弁護士費用 --- */
#fee {
  padding-bottom: 160px;
}
.fee-group {
  margin-bottom: 40px;
}
.fee-group h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #000;
}
.fee-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #5b9eff;
  background-color: #fff;
}
.fee-table th, .fee-table td {
  border: 1px solid #5b9eff;
  padding: 14px 20px;
  font-size: 16px;
  color: #000;
  font-weight: normal;
}
/* 左端項目セル */
.fee-label {
  width: 130px;
  text-align: center;
  vertical-align: middle;
}
/* 右側値セル（法律相談料・刑事事件） */
.fee-value {
  text-align: left;
  vertical-align: middle;
  padding-left: 24px;
}
/* 白背景行（着手金） */
.fee-row-white th, .fee-row-white td {
  background-color: #ffffff;
}
/* 薄い青背景行（報酬金） */
.fee-row-blue th, .fee-row-blue td {
  background-color: #eaf2fe;
}
/* 一般民事事件 */
.fee-content {
  vertical-align: middle;
  padding: 14px 24px;
}
.fee-item {
  display: flex;
  justify-content: space-between;
  line-height: 1.9;
}
.fee-target {
  flex: 1.3;
}
.fee-rate {
  flex: 1;
}
/* --- オフィス内観画像 --- */
.fee-sub-image {
  text-align: left;
  margin-top: 40px;
  margin-bottom: -150px;
  position: relative;
  z-index: 10;
  transform: translate(-180px, 80px);
}
.fee-sub-image img {
  max-width: 450px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* --- アクセス --- */
.map-wrapper {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.google-map, .route-map {
  flex: 1;
  height: 380px;
  background: #fff;
  border: 1px solid #dcd1bd;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Googleマップ */
.google-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* イラスト地図 */
.route-map img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.3);
}
.access-info {
  text-align: center;
  margin-top: 20px;
}
.note {
  font-size: 15px;
  color: #666;
  margin-top: 5px;
}
/* --- お問い合わせ --- */
.contact-box {
  text-align: center;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 0 auto;
}
.office-name {
  font-size: 22px;
  font-weight: bold;
}
.lawyer-name {
  margin-bottom: 30px;
  font-size: 22px;
}
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.btn-phone {
  background: #000;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 16px;
  transition: opacity 0.2s;
}
.btn-phone:hover {
  opacity: 0.8;
}
/* --- フッター --- */
.site-footer {
  background: #4a3c31;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
}
/* --- レスポンシブ対応（画面幅 768px 以下） --- */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }
  .header-nav ul {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .header-nav a {
    font-size: 14px;
  }
  .nav-icon {
    width: 12px;
    height: 12px;
  }
  .main-visual, .catch-banner {
    background-attachment: scroll;
    height: 250px;
  }
  .main-visual {
    background-position: center center;
  }
  .profile-content {
    flex-direction: column;
    align-items: center;
  }
  .profile-image {
    flex: none;
    width: 180px;
    margin: 0 auto 20px;
  }
  .profile-grid {
    flex-direction: column;
    gap: 20px;
  }
  .profile-hobby-wrap {
    width: 100%;
  }
  .map-wrapper {
    flex-direction: column;
  }
  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
  #fee, #access {
    padding-top: 150px; 
  }
  .profile-sub-image {
    text-align: center;
    margin-top: 20px;
    margin-bottom: -200px;
    transform: none;
    margin-right: 0;
  }
  .profile-sub-image img {
    max-width: 60%;
  }
  .fee-sub-image {
    text-align: center;
    margin-top: 20px;
    margin-bottom: -200px;
    transform: none;
  }
  .fee-sub-image img {
    max-width: 60%;
  }
}