/* ========================================= */
/* アニメーション */
/* ========================================= */
.anim-box.fadeup.is-animated {
  animation: fadeup 5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

@keyframes fadeup {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CSS変数 ===== */
:root {
  /* カラー */
  --primary: #003366; /* 深い紺色に変更 */
  --primary-light: #78b2e0; /* 元の色そのまま */
  --secondary: #b87333; /* 高級感あるブロンズ色 */
  --color-accent: #c0a060; /* ゴールド寄りのアクセントカラー */
  --secondary-dark: #8b541f;
  --accent: #c0a060; /* ゴールド寄りのアクセントカラー */
  --accent-dark: #997a3d;
  --text: #222; /* 少し濃い目のダークグレー */
  --text-light: #f9f9f9;
  --white: #fff;
  
  /* フォント */
  --font-main: 'Noto Serif JP', serif; /* 高級感ある明朝系に変更 */
  
  /* スペーシング */
  --space-xs: 5px;
  --space-sm: 10px;
  --space-md: 20px;
  --space-lg: 30px;
  --space-xl: 40px;
  
  /* シャドウ */
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.15);
  --shadow-md: 0 6px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.4);

  /* ボーダーラディウス */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;

}

/* ===== ベーススタイル ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* スムーズスクロール */
}

body {
  font-family: var(--font-main);
  background: var(--text-light);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

section {
  padding: var(--space-xl) var(--space-md);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===== ボタンスタイル ===== */
.btn:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-primary-light {
  display: inline-block;
  font-weight: 700;
  padding: 7px 22px;  /* ←縦サイズを半分に */
  border-radius: 8px;
  color: var(--white) !important;
  box-shadow: 0 6px 12px rgba(0, 51, 102, 0.6);
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-main);
  border: 1.5px solid var(--primary);
  background-clip: padding-box;
  cursor: pointer;
  letter-spacing: 0.05em;
  background-color: var(--primary); /* Consolidated from original duplicate */
}

.btn-primary-light:hover { /* Consolidated from original duplicate */
    background-color: #3a7bd5;
    opacity: 0.9;
}


.btn-secondary {
  display: inline-block;
  font-weight: 700;
  padding: 7px 22px;  /* ←縦サイズを半分に */
  border-radius: 8px;
  color: var(--white) !important;
  box-shadow: 0 6px 12px rgba(184, 115, 51, 0.6);
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-main);
  border: 1.5px solid var(--secondary);
  background-clip: padding-box;
  cursor: pointer;
  letter-spacing: 0.05em;
  background: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-accent {
  display: inline-block;
  font-weight: 700;
  padding: 7px 22px;  /* ←縦サイズを半分に */
  border-radius: 8px;
  color: #fff !important;
  box-shadow: 0 6px 12px rgba(192, 160, 96, 0.7);
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-main);
  border: 1.5px solid var(--accent);
  background-clip: padding-box;
  cursor: pointer;
  letter-spacing: 0.05em;
  background: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}


/* ===== ヘッダー ===== */
header {
  background: var(--primary-light);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-main);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
}

.logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.07em;
  font-family: var(--font-main);
  padding-top: 0.3em;    /* 上のスペース */
  padding-bottom: 0.3em; /* 下のスペース */
}

.logo h1 a {
  text-decoration: none;
  color: var(--white); /* ロゴ内のリンクの色を白に上書き */}

.logo h1 a:hover {
  color: var(--accent);
}

/* ナビゲーションメニューの初期状態 (モバイル用) */
.navbar {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 1.5s ease-out, opacity 0s ease-out;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--primary-light);
}

.navbar ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.navbar a {
  color: var(--white);
  font-weight: normal;
  font-size: 1rem;
  padding: var(--space-xs) 0;
  position: relative;
  font-family: var(--font-main);
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.7s ease;
  border-radius: 3px;
}

.navbar a:hover::after {
  width: 100%;
}

.header-contact {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

/* ===== ハンバーガーメニュー ===== */
.menu-toggle {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 10;
}

.menu-toggle span {
  transition: all 0.5s;
  position: absolute;
  height: 2px;
  background-color: var(--white);
  width: 100%;
  border-radius: 2px;
}

.menu-toggle span:nth-of-type(1) {
  top: 4px;
}

.menu-toggle span:nth-of-type(2) {
  top: 12px;
}

.menu-toggle span:nth-of-type(3) {
  top: 20px;
}

.menu-toggle.open span:nth-of-type(1) {
  top: 10px;
  transform: translateY(6px) rotate(-33deg);
}

.menu-toggle.open span:nth-of-type(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-of-type(3) {
  top: 22px;
  transform: translateY(-6px) rotate(33deg);
}

/* ナビゲーションメニューが開いたときのアニメーション */
.navbar.active {
  max-height: 500px;
  opacity: 1;
  transition: max-height 1.5s ease-in, opacity 0s ease-in;
}

/* モバイルメニュー内のリンクスタイル */
.navbar.active ul {
  flex-direction: column;
  padding: var(--space-sm) var(--space-md);
  gap: var(--space-xs);
}

.navbar.active ul li {
  width: 100%;
  text-align: center;
}

.navbar.active ul li a {
  display: inline-block;
  padding: var(--space-xs) 2ch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== デスクトップ用スタイル（メニューバーを中央に） ===== */
@media (min-width: 992px) {
  .header-container {
    justify-content: flex-start;
  }

  .logo {
    margin-right: auto;
    order: 1;
  }

  .navbar {
    position: static;
    max-height: unset;
    opacity: 1;
    transition: none;
    width: auto;
    box-shadow: none;
    order: 2;
    margin-left: auto;
    margin-right: auto;
    display: block; /* デスクトップで表示されない場合の対策 */
  }

  .navbar ul {
    flex-direction: row;
    padding: 0;
    gap: var(--space-md);
  }

  .navbar a {
    display: inline-block;
    padding: var(--space-xs) 0;
    width: auto;
    text-align: left;
    position: relative; /* 下線のために必須 */
  }

  .header-contact {
    order: 3;
    margin-left: auto;
  }

  .menu-toggle {
    display: none;
  }
}

/* ===== セクションタイトル ===== */
.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-xl);
  position: relative;
  font-family: var(--font-main);
  letter-spacing: 0.07em;
  color: #000;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  background: var(--primary);
  margin: var(--space-sm) auto 0;
  border-radius: 3px;
}



/* ========================================= */
/* 弁護士紹介セクション（シンプル） */
/* ========================================= */


.profile-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.profile-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 800px;
  width: 100%;
}

.profile-image {
  border-radius: 50%;
  width: 280px; /* サイズを調整 */
  height: 280px; /* サイズを調整 */
  object-fit: cover;
  margin: 0 auto var(--space-sm); /* 中央揃えとマージン */
  box-shadow: var(--shadow-sm);
}


.profile-name {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.7em;
  letter-spacing: 0.03em;
  text-align: center;
;}

p.spacer {
  margin: 1px 0; /* 上下に空白を作る */
  line-height: 1; /* 行間を調整 */
}

.profile-details h4 {
  font-size: 1.2em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary);
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.career-list, .affiliation-list, .committee-list, .lecture-list {
  list-style: none;
  padding-left: 15px;
  margin-bottom: 25px;
}

.career-list li, .affiliation-list li, .committee-list li, .lecture-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.career-list li::before, .affiliation-list li::before, .committee-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #000;  /* 黒色 */
  font-size: 0.7em; /* 小さくする（元のサイズの70%） */
}

.lecture-list li strong {
  color: #000;
}

.lecture-list ul {
  list-style: none; /* これでブラウザのデフォルト「・」を消す */
  padding-left: 15px;
  margin-top: 5px;
}

.lecture-list ul li::before {
  content: "•";   /* ここで「・」を指定 */
  color: #000;
  position: absolute;
  left: 0;
  font-size: 0.7em; /* 小さくする（元のサイズの70%） */
}

/* モバイル対応 */
@media screen and (max-width: 600px) {
  .section-title {
    font-size: 1.8em;
  }
  .profile-name {
    font-size: 1.5em;
  }
  .profile-details h4 {
    font-size: 1.2em;
  }
  .career-list li, .affiliation-list li, .committee-list li, .lecture-list li {
    font-size: 0.95em;
  }
  th, td {
    font-size: 0.9em;
  }
  .profile-image {
    width: 150px;
    height: 150px;
  }
}

/* =========================================
   デスクトップ用：プロフィールグリッドの調整
   - 弁護士が1名の場合は1列表示
   - 複数名いる場合は列数を調整可能
========================================= */
@media (min-width: 992px) {
  .profile-grid {
    grid-template-columns: 1fr; /* 1列表示 */
  }
}

/* ===== フッター ===== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  font-family: var(--font-main);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.4);
}

footer a {
  color: var(--accent);
  font-weight: 700;
}

footer a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===== 固定フッターバナー ===== */
.fixed-footer-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
  z-index: 999;
}

body {
  padding-bottom: 40px; /* 固定フッター分の余白を確保 */
}

/* ===== レスポンシブ ===== */
@media (max-width: 991px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .navbar ul {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .navbar {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }
  
  .navbar.active {
    max-height: 300px;
    opacity: 1;
  }
  
  section {
    padding: var(--space-lg) var(--space-sm);
  }
}