/* ===========================
   石埜法律事務所 共通スタイル
   =========================== */

/* リセット */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* カラー変数 */
:root {
  --navy: #1e3454;
  --navy-light: #2a4a72;
  --gold: #a08340;
  --text: #2c2c2c;
  --text-light: #666;
  --bg: #ffffff;
  --bg-gray: #f7f7f5;
  --border: #ddd;
}

/* 基本設定 */
body {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "游明朝", Georgia, serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
}

/* ===========================
   ヘッダー
   =========================== */
header {
  background-color: var(--navy);
  color: #fff;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.office-name {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.office-name-ja {
  font-size: 1.15rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #fff;
}

.office-name-en {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  font-family: "Georgia", serif;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: 0.03em;
}

nav a:hover,
nav a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

nav a.active {
  border-bottom: 2px solid var(--gold);
}

/* ===========================
   ヒーロー（トップページ）
   =========================== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero-sub {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

.hero-title {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.6;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 2;
}

/* ===========================
   ページヒーロー（内部ページ）
   =========================== */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 40px 24px;
  text-align: center;
}

.page-hero h2 {
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  border: none;
  color: #fff;
  padding: 0;
}

/* ===========================
   セクション共通
   =========================== */
section {
  padding: 60px 24px;
}

section:nth-child(even) {
  background: var(--bg-gray);
}

.section-title {
  font-size: 1.4rem;
  color: var(--navy);
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  position: relative;
  border: none;
  padding: 0;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 12px auto 0;
}

h2 {
  font-size: 1.3rem;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 14px;
  margin-bottom: 20px;
  margin-top: 40px;
  letter-spacing: 0.05em;
}

/* ===========================
   取扱業務グリッド（トップ）
   =========================== */
.practice-overview {
  max-width: 1000px;
  margin: 0 auto;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.practice-item {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  padding: 28px 24px;
  border-radius: 2px;
}

.practice-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}

.practice-item h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.practice-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
}

.center {
  text-align: center;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 12px 36px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: background 0.2s;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

.btn:hover {
  background: var(--navy-light);
}

/* ===========================
   情報テーブル
   =========================== */
.info-box {
  max-width: 800px;
  margin: 0 auto;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.info-table th,
.info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 130px;
  color: var(--navy);
  font-weight: bold;
  white-space: nowrap;
  background: var(--bg-gray);
}

/* ===========================
   弁護士紹介
   =========================== */
.profile-section {
  max-width: 800px;
  margin: 0 auto;
}

.profile-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 2px;
}

.lawyer-name {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.lawyer-name-en {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: normal;
  margin-left: 12px;
}

.lawyer-title {
  font-size: 0.88rem;
  color: var(--gold);
  margin-bottom: 32px;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  letter-spacing: 0.1em;
}

.profile-subtitle {
  font-size: 0.9rem;
  color: var(--navy);
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin: 28px 0 14px;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

.career-list {
  list-style: none;
  padding: 0;
}

.career-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.92rem;
  border-bottom: 1px dotted var(--border);
}

.career-list li::before {
  content: "─";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}

/* ===========================
   取扱業務詳細
   =========================== */
.practice-detail {
  max-width: 800px;
  margin: 0 auto;
}

.practice-block {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.practice-block:last-child {
  border-bottom: none;
}

.practice-block h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.practice-num {
  font-size: 0.75rem;
  background: var(--navy);
  color: #fff;
  padding: 3px 8px;
  border-radius: 2px;
  font-family: "Georgia", serif;
  letter-spacing: 0.05em;
}

.practice-sub {
  font-size: 0.95rem;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  margin: 24px 0 12px;
  letter-spacing: 0.03em;
}

.practice-block p {
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.practice-block ul {
  padding-left: 0;
  list-style: none;
}

.practice-block ul li {
  padding: 5px 0 5px 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-light);
}

.practice-block ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ===========================
   費用・料金
   =========================== */
.fee-section {
  max-width: 800px;
  margin: 0 auto;
}

.fee-intro {
  margin-bottom: 36px;
  font-size: 0.92rem;
  color: var(--text-light);
}

.fee-subtitle {
  font-size: 1rem;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 12px;
  margin: 36px 0 16px;
  letter-spacing: 0.05em;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.fee-table th {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: normal;
  letter-spacing: 0.05em;
}

.fee-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.fee-table tr:nth-child(even) td {
  background: var(--bg-gray);
}

.fee-note {
  background: #fdf8f0;
  border: 1px solid #e8d9b0;
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  margin-top: 36px;
  border-radius: 2px;
}

.fee-note-small {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 8px 0 12px;
  line-height: 1.7;
}

.fee-note h4 {
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.fee-note p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===========================
   アクセス
   =========================== */
.access-section {
  max-width: 800px;
  margin: 0 auto;
}

.access-subtitle {
  font-size: 1rem;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 12px;
  margin: 36px 0 16px;
  letter-spacing: 0.05em;
}

.access-list {
  list-style: none;
  padding: 0;
}

.access-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 0.92rem;
  border-bottom: 1px dotted var(--border);
}

.access-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.6rem;
  top: 11px;
}

.map-container {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.map-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* ===========================
   フッター
   =========================== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 40px 24px;
  text-align: center;
  margin-top: 0;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-name {
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

footer p {
  font-size: 0.82rem;
  line-height: 2;
  margin-bottom: 6px;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

.copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
}

/* ===========================
   お知らせ
   =========================== */
.news-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.news-list {
  padding: 0;
  border-top: 1px solid var(--border);
  max-width: 600px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.news-date {
  color: var(--navy);
  font-weight: bold;
  white-space: nowrap;
  min-width: 90px;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

.news-text {
  color: var(--text);
}

/* ===========================
   著作・執筆
   =========================== */
.publications-section {
  background: var(--bg-gray);
  padding: 60px 24px;
}

.publications-section .section-title {
  margin-bottom: 12px;
}

.pub-intro {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.pub-list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
}

.pub-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  padding: 20px 24px;
  margin-bottom: 16px;
  border-radius: 2px;
}

.pub-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pub-body {
  flex: 1;
}

.pub-title {
  font-size: 0.98rem;
  color: var(--navy);
  font-weight: bold;
  margin-bottom: 4px;
}

.pub-title a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pub-title a:hover {
  color: var(--navy-light);
}

.pub-publisher {
  font-size: 0.82rem;
  color: var(--text-light);
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

/* ===========================
   レスポンシブ対応
   =========================== */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
  }

  nav a {
    font-size: 0.8rem;
    padding: 5px 8px;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .info-table th {
    width: 90px;
    font-size: 0.82rem;
  }

  .profile-card {
    padding: 24px;
  }
}
