:root {
  --primary-color: #1a365d;   /* 信頼のネイビー */
  --accent-color: #b8944f;    /* 品格のゴールド */
  --bg-light: #f8f9fa;        /* 背景用の薄いグレー */
  --text-main: #333333;       /* メイン文字色 */
}

body {
  color: var(--text-main);
  line-height: 1.8;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color); /* 見出しに金のライン */
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.btn.primary {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
}

.btn.primary:hover {
  background-color: #2c5282; /* 少し明るくして反応を示す */
}
/* --- Base Styles --- */
* { box-sizing: border-box; }
body { margin: 0; font-family: "Hiragino Mincho ProN", serif; line-height: 1.8; color: #333; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif; font-weight: 700; margin: 0; }
a { text-decoration: none; transition: 0.3s; }
ul { padding-left: 20px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { font-size: 2.2rem; border-bottom: 3px solid #003366; display: inline-block; padding-bottom: 10px; margin-bottom: 15px; color: #003366; }

/* --- Header --- */
.site-header { background: #fff; padding: 15px 0; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 48px; }
.logo-sub { font-size: 10px; letter-spacing: 2px; color: #666; font-weight: bold; }
.nav a { margin-left: 20px; color: #333; font-size: 13px; font-weight: bold; }
.nav a:hover { color: #003366; }

/* --- Hero --- */
.hero { height: 700px; background-size: cover; background-position: center; display: flex; align-items: center; color: #fff; }
.hero-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.hero-copy { flex: 1; margin-right: 40px; }
.hero-title { font-size: 3.5rem; line-height: 1.2; margin-bottom: 25px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero-lead { font-size: 1.15rem; margin-bottom: 35px; }
.chip { display: inline-block; border: 1px solid #fff; padding: 4px 12px; border-radius: 4px; font-size: 11px; margin: 0 8px 10px 0; background: rgba(255,255,255,0.1); }
.btn { padding: 15px 35px; border-radius: 4px; font-weight: bold; display: inline-block; }
.btn.primary { background: #003366; color: #fff; }
.btn.ghost { border: 2px solid #fff; color: #fff; margin-left: 15px; }
.hero-panel-box { width: 400px; }
.panel { background: rgba(255,255,255,0.98); color: #333; padding: 40px; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.panel-title { font-weight: bold; font-size: 1.2rem; margin-bottom: 20px; color: #003366; }
.panel-list li { margin-bottom: 12px; font-size: 14px; line-height: 1.5; }

/* --- Photo Cards --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.photo-frame { overflow: hidden; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.photo-frame img { width: 100%; height: 350px; object-fit: cover; display: block; transition: 0.8s ease; }
.photo-card:hover img { transform: scale(1.08); }
.photo-caption { text-align: center; margin-top: 15px; font-weight: bold; font-size: 1.1rem; }

/* --- Strength Items --- */
.strength-item { background: #fff; padding: 50px 40px; border-radius: 8px; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.strength-item .num { position: absolute; top: 20px; right: 30px; font-size: 4rem; font-weight: 900; color: #f0f2f5; line-height: 1; }
.strength-item h3 { color: #003366; margin-bottom: 15px; position: relative; font-size: 1.3rem; }

/* --- Flow Steps --- */
.flow-list { max-width: 800px; margin: 0 auto; }
.flow-step { display: flex; gap: 40px; margin-bottom: 50px; border-left: 4px solid #003366; padding-left: 40px; position: relative; }
.step-num { font-weight: 900; color: #003366; font-size: 1.1rem; background: #fff; border: 2px solid #003366; padding: 5px 15px; border-radius: 30px; height: fit-content; }
.step-body h3 { font-size: 1.3rem; margin-bottom: 10px; color: #003366; }

/* --- Lawyer Full Card --- */
.lawyer-full-card { background: #fff; padding: 60px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.lawyer-header { display: flex; gap: 50px; align-items: flex-start; margin-bottom: 50px; }
.lawyer-img img { width: 240px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.lawyer-title-area h3 { font-size: 2rem; color: #003366; }
.lawyer-sub { font-weight: bold; color: #666; margin-bottom: 15px; }
.lawyer-message { font-size: 1.05rem; line-height: 1.8; }
.lawyer-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; border-top: 1px solid #eee; padding-top: 40px; }
.detail-block h4 { font-size: 1.2rem; color: #003366; border-left: 5px solid #003366; padding-left: 15px; margin-bottom: 20px; }
.lawyer-achievements { margin-top: 50px; background: #f8f9fa; padding: 40px; border-radius: 10px; }
.lawyer-achievements h4 { margin-bottom: 20px; color: #003366; }

/* --- Recruit --- */
.recruit-wrap { background: #fff; padding: 50px; border-radius: 12px; border: 1px solid #eee; }
.recruit-intro { margin-bottom: 40px; font-size: 1.05rem; }
.recruit-box { background: #f4f7f9; padding: 30px; border-radius: 8px; }
.recruit-box h4 { margin-bottom: 15px; color: #003366; }
.recruit-footer { margin-top: 30px; padding-top: 30px; border-top: 1px solid #eee; text-align: center; }

/* --- Contact Form --- */
.contact-form { max-width: 800px; margin: 0 auto; background: #f8f9fa; padding: 50px; border-radius: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 20px; font-family: sans-serif; }
.contact-form .btn { width: 100%; border: none; cursor: pointer; font-size: 1.1rem; }

/* --- Footer --- */
.site-footer { background: #1a1a1a; color: #fff; text-align: center; padding: 60px 0; font-size: 14px; }

/* --- Mobile --- */
@media (max-width: 900px) {
  .hero-inner, .grid-2, .lawyer-header, .lawyer-detail-grid, .header-inner { flex-direction: column; text-align: center; }
  .hero { height: auto; padding: 80px 0; }
  .hero-copy { margin: 0 0 50px 0; }
  .hero-panel-box { width: 100%; }
  .hero-title { font-size: 2.2rem; }
  .lawyer-header { align-items: center; }
  .detail-block { text-align: left; }
}
/* --- 取扱分野セクションの基本スタイル --- */
#services {
    background-color: #f8f9fa; /* 薄いグレーで他のセクションと区別 */
    padding: 80px 0;
}

/* 3列のグリッドレイアウト */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 画面幅に合わせて自動調整 */
    gap: 30px; /* カード同士の間隔 */
    margin-top: 40px;
}

/* カード1枚ずつの装飾 */
.card {
    background: #fff;
    padding: 30px;
    border-top: 4px solid #1a365d; /* 事務所のテーマカラー（紺系）をアクセントに */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* 軽い影で浮かせる */
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* ホバー時に少し浮き上がる演出 */
}

.card h3 {
    font-size: 1.25rem;
    color: #1a365d;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* カード内の箇条書き */
.card ul {
    list-style: none;
    padding: 0;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.card ul li {
    font-size: 0.85rem;
    color: #666;
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 8px;
}

.card ul li::before {
    content: "■"; /* 小さな四角のアイコン */
    position: absolute;
    left: 0;
    color: #1a365d;
    font-size: 0.7rem;
    top: 0.2em;
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr; /* スマホでは1列にする */
        gap: 20px;
    }
    
    #services {
        padding: 50px 0;
    }
}
/* フォーム全体の幅調整 */
.contact-form {
    max-width: 800px;
    margin: 0 auto 40px;
}

/* 入力欄のスタイル */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* 送信ボタンの配置 */
.contact-form .btn.primary {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    cursor: pointer;
}

/* 先ほど提案した contact-direct のスタイルもここに追加してください */
h1, h2, h3 {
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}
/* --- 全体のトーン調整 --- */
:root {
  --primary-color: #1a365d;   /* 濃紺：信頼と権威 */
  --accent-color: #b8944f;    /* 金色：専門性と品格 */
  --bg-light: #f8f9fa;        /* 薄灰：清潔感 */
  --text-main: #333333;       /* 濃灰：可読性 */
}

/* 見出しを明朝体にして高級感を出す */
h1, h2, h3, .hero-title, .logo-sub {
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-weight: 700;
}

/* 見出しのデザイン統一 */
.section-head h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  display: inline-block;
}

/* ボタンの色を信頼感のあるネイビーに */
.btn.primary {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 30px;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s;
}

.btn.primary:hover {
  opacity: 0.8;
}

/* お問合せ下のメールリンク */
.direct-email {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
/* --- ヒーローエリア：明るめのダウンライト＆白枠スタイル --- */
.hero-panel-box .panel {
    /* パネル自体は少し透けさせて背景をうっすら見せる */
    background: rgba(255, 255, 255, 0.05) !important; 
    backdrop-filter: blur(5px); /* 背後を少しだけぼかして高級感を出す */
    -webkit-backdrop-filter: blur(5px);

    padding: 35px;
    border-radius: 0px; /* 直角にしてシャープな印象に */
    
    /* 明るい白枠（ダウンライトでエッジが光っている表現） */
    border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
    
    /* 枠の外側に微かな光を漏らす */
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.1) !important;
}

.panel-title {
    color: #ffffff !important;
    font-size: 1.15rem;
    text-align: center;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.8) !important; /* 枠と同じ太さの線 */
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.panel-list li {
    color: #ffffff !important;
    font-size: 0.95rem;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* 背景が見える分、文字に影をつけて読みやすくする */
}

.panel-list li::before {
    content: "■";
    color: #ffffff !important;
    font-size: 0.7rem;
}
/* --- お悩みパネルの記号とリストの整理 --- */
.panel-list {
    list-style: none !important; /* 元々の「・」を確実に消す */
    padding: 0 !important;
    margin: 0 !important;
}

.panel-list li {
    position: relative;
    padding-left: 1.5em !important; /* 記号の分の余白を確保 */
    margin-bottom: 15px !important;
    color: #ffffff !important;
    font-size: 0.95rem;
    line-height: 1.6;
    list-style-type: none !important; /* 念のため重ねて指定 */
}

/* 記号を「■」一つに統一 */
.panel-list li::before {
    content: "■" !important;
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(255, 255, 255, 0.8) !important; /* 枠の色に合わせた白 */
    font-size: 0.7rem;
    line-height: 1.6rem; /* 文字の高さと合わせる */
}
/* --- 朝日が差し込むパネル・スタイル --- */
.hero-panel-box .panel {
    /* 真っ白ではなく、朝日の温かみを感じるオフホワイト */
    background: rgba(255, 252, 245, 0.15) !important; 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* 朝日の反射をイメージした、少し暖かみのある白枠 */
    border: 1px solid rgba(255, 240, 210, 0.6) !important;
    
    padding: 35px;
    border-radius: 4px;

    /* 右上（朝日の方角）から光が当たっているような影 */
    box-shadow: 
        -10px -10px 30px rgba(255, 230, 180, 0.1), /* 暖色の光の反射 */
        10px 10px 40px rgba(0, 0, 0, 0.3);         /* 下方向への影 */
}

.panel-title {
    /* 陽光をイメージした落ち着いたゴールド */
    color: #e5c385 !important; 
    font-size: 1.15rem;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid rgba(229, 195, 133, 0.4) !important;
    padding-bottom: 15px;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
}

.panel-list li {
    color: #ffffff !important;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3); /* 文字の可読性を確保 */
}

.panel-list li::before {
    content: "■";
    color: #e5c385 !important; /* 記号も朝日色に */
}
/* --- 朝日感を強めたヒーローパネル --- */
.hero-panel-box .panel {
    /* 左上から右下へ、朝日が差し込むようなグラデーション */
    background: linear-gradient(135deg, rgba(255, 245, 225, 0.25), rgba(255, 235, 200, 0.1)) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    /* 枠線：上と左を明るく、下と右を少し暗くして「立体的な光」を表現 */
    border-top: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-left: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;

    padding: 35px;
    border-radius: 4px;

    /* 黄金色の光の漏れ（グロー効果） */
    box-shadow: 
        -5px -5px 20px rgba(255, 200, 100, 0.2), 
        15px 15px 40px rgba(0, 0, 0, 0.4);
}

.panel-title {
    /* 輝く朝日をイメージした明るいシャンパンゴールド */
    color: #ffefd5 !important; 
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    font-size: 1.2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.panel-list li {
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* 文字を光の中に浮かび上がらせる */
}
/* 電話番号リンクのスタイル調整 */
.tel-link, .tel-link-note {
    color: inherit; /* 周りの文字色と同じにする */
    text-decoration: none; /* 下線を消す */
    font-weight: bold;
}

/* パソコンではクリック無効、スマホではクリック有効に見せる（任意） */
@media (min-width: 769px) {
    .tel-link, .tel-link-note {
        pointer-events: none; /* パソコンではリンクとして反応させない */
        cursor: default;
    }
}

@media (max-width: 768px) {
    .tel-link {
        color: var(--primary-color); /* スマホではリンクだとわかるように色を変えてもOK */
        text-decoration: underline;
    }
}
/* --- ヒーローエリア全体の調整 --- */
.hero {
    position: relative;
    padding: 100px 0; /* 上下の余白 */
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* コンテナ内の要素を左右に分ける */
.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

/* 左側：キャッチコピー */
.hero-copy {
    flex: 1;
    color: #fff;
}

.hero-eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: #ffd700; /* 朝日の色をアクセントに */
    margin-bottom: 20px;
}

/* 右側：お悩みパネル（ここが「朝日×白枠×透過」の核心です） */
.hero-panel-box {
    flex: 0 0 420px; /* パネルの横幅 */
}

.hero-panel-box .panel {
    /* 背景を極限まで薄くし、背景画像（NO LAW...）を透かす */
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(2px) !important; /* ぼかしを最小限にして背後の文字を見せる */
    -webkit-backdrop-filter: blur(2px) !important;

    /* 白枠：朝日が当たっているようなパキッとした白 */
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    padding: 40px;
    border-radius: 0; /* 直角の方がプロフェッショナルでかっこいい */
    
    /* 朝日の暖かな光がパネルの左上から漏れている演出 */
    box-shadow: 
        -15px -15px 40px rgba(255, 200, 100, 0.15), 
        10px 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.panel-title {
    color: #fff !important;
    font-size: 1.15rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.8) !important; /* 枠と同じ強さの線 */
}

.panel-list {
    list-style: none !important;
    padding: 0 !important;
}

.panel-list li {
    color: #ffffff !important;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 18px;
    padding-left: 1.8em;
    position: relative;
    /* 背景が見える分、文字を際立たせる影 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* 記号を「朝日の光の粒」に */
.panel-list li::before {
    content: "■" !important;
    position: absolute;
    left: 0;
    top: 2px;
    color: #ffd700 !important;
    font-size: 0.7rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
}
.map-wrap {
    margin-top: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); /* 柔らかい影 */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.section-head {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
    /* 背景に薄くロゴカラーやネイビーを引く */
    background: linear-gradient(to right, transparent, rgba(26, 54, 93, 0.05), transparent);
}

.section-head h2 {
    font-size: 2rem;
    color: #1a365d; /* 濃いネイビー */
    letter-spacing: 0.1em;
}
/* 偶数番目のセクションに落ち着いた色をつける */
section:nth-of-type(even) {
    background-color: #f8f9fa !important; /* わずかに青みのあるグレー */
}

/* 奇数番目のセクションは白のまま、またはごく薄いベージュ */
section:nth-of-type(odd) {
    background-color: #ffffff;
}
.section-head {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
    /* 背景に薄くロゴカラーやネイビーを引く */
    background: linear-gradient(to right, transparent, rgba(26, 54, 93, 0.05), transparent);
}

.section-head h2 {
    font-size: 2rem;
    color: #1a365d; /* 濃いネイビー */
    letter-spacing: 0.1em;
}
.site-footer {
    background-color: #121a24 !important; /* 深い夜空のような色 */
    color: #ffffff !important;
    padding: 60px 0 20px;
}

.footer-inner a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
}
/* style.css の body または全体背景を書き換え */
body {
    background-color: #f7f5f2; /* わずかにベージュが入った上品なグレー */
}

/* 白いカード（弁護士紹介や取扱分野）を際立たせる */
.card, .lawyer-full-card, .address-card {
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* 柔らかい影 */
}
/* --- 背景色を「真っ白」から「高級感のあるグレージュ」へ強制変更 --- */

/* ページ全体のベース */
body {
    background-color: #f0ede9 !important; /* 少し色の濃さを上げました */
}

/* 全てのセクションの背景を塗り替える */
section, .section, .section.alt {
    background-color: #f0ede9 !important; /* bodyと同じ色で統一 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* 境目に薄い線を */
}

/* 背景に色がつくので、カード状の要素を「白」にして浮き立たせる（これが重要！） */
.card, 
.lawyer-full-card, 
.address-card, 
.panel, 
.feature-item {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    border-radius: 4px;
}

/* アクセスセクションなどの「alt」クラスがある場所を、あえて少しだけ濃くしてリズムをつける */
.section.alt {
    background-color: #e8e4df !important; 
}
/* =============================================
   背景色の強制上書き（白っぽさを解消）
   ============================================= */

/* 1. 全てのセクションの背景を「温かみのある砂色」に強制変更 */
section, 
.section, 
.section.alt, 
main,
body {
    background-color: #ebe7e0 !important; /* 少し濃いめのグレージュ */
}

/* 2. 背景が暗くなった分、コンテンツ（カード）を真っ白にして浮かび上がらせる */
.card, 
.lawyer-full-card, 
.address-card, 
.feature-item,
.flow-step,
.recruit-item {
    background-color: #ffffff !important;
    border: none !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important; /* 影を強くして立体感を出す */
    padding: 30px;
    margin-bottom: 20px;
}

/* 3. 見出しの文字色を「深いネイビー」にして引き締める */
h2, .section-title {
    color: #1a365d !important;
    font-weight: bold;
    text-shadow: none;
}

/* 4. アクセスセクションなど、特定の場所をさらに一段階濃くしてリズムを作る */
#access, #contact {
    background-color: #dfdbd3 !important;
}
.section-head h2 {
    font-size: 2.2rem;
    color: #1a365d; /* 深いネイビー */
    position: relative;
    padding-left: 20px;
    border-left: 6px solid #b8944f; /* 朝日をイメージしたゴールド */
    line-height: 1.2;
    margin-bottom: 10px;
}

.section-head {
    border-bottom: 3px double #d1d5db; /* 下に落ち着いた二重線 */
    margin-bottom: 60px;
    padding-bottom: 15px;
    display: inline-block; /* 見出しの幅に合わせる */
}
/* ID指定と!importantを組み合わせて、強制的に白を上書きします */
section#recruit, 
section[id="recruit"],
#recruit.section {
    background-color: #1a365d !important; /* 濃いネイビー */
    background-image: none !important;    /* もし背景画像があれば消す */
    color: #ffffff !important;           /* 文字を白に */
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

/* 採用セクションの中にある全ての文字を白くする */
#recruit h2, 
#recruit h3, 
#recruit p, 
#recruit li, 
#recruit div {
    color: #ffffff !important;
}

/* 採用カードの中身を整理 */
#recruit .recruit-item {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid #b8944f !important;
    padding: 40px !important;
    margin-top: 30px !important;
}

/* 寂しさを消すためのアクセント：見出しの下に金色の線 */
#recruit .section-head h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #b8944f;
    margin: 20px auto 0;
}
/* 「取扱分野」を含む、すべてのセクションの背景をグレージュに統一 */
#services, 
.section, 
.section.alt, 
section {
    background-color: #f0ede9 !important; /* 山口先生が選んだグレージュ */
    border: none !important;
}

/* 各分野のカード（箱）を白く浮かび上がらせて、視認性を高める */
#services .service-item, 
.card, 
.feature-item {
    background-color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    padding: 30px !important;
    transition: transform 0.3s ease;
}

/* マウスを置いたときに少し浮き上がる演出（スタイリッシュに見えます） */
#services .service-item:hover {
    transform: translateY(-5px);
}
/* 全てのセクションの見出しエリアを画面の横幅いっぱい使い、中身を中央に寄せる */
.section-head, 
#services .section-head, 
#about .section-head, 
#recruit .section-head {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important; /* 文字を中央へ */
    display: block !important;    /* 塊として扱う */
    float: none !important;       /* もし左に浮いていたら解除 */
}

/* タイトル文字（h2）の左右の余白を自動調整して真ん中に置く */
.section-head h2 {
    display: inline-block !important; /* 文字の幅だけ確保 */
    margin-left: auto !important;
    margin-right: auto !important;
}
/* 写真の枠の設定を調整して、端を少しだけ隠す */
.photo-frame {
    overflow: hidden; /* 枠からはみ出た部分を見せなくする */
    position: relative;
}

.photo-frame img {
    width: 105% !important;    /* 5%だけ画像を大きくする */
    max-width: none !important; /* 幅制限を解除して拡大を優先 */
    margin-left: -2% !important; /* 左に少しずらす */
    margin-bottom: -3% !important; /* 下に少し沈めて、右下のキラキラを枠外に追いやる */
    display: block;
}
/* --- スマホ表示の最終調整 (画面幅768px以下) --- */
@media (max-width: 768px) {
    /* 1. ナビゲーションを横スクロール、または中央寄せに */
    .nav {
        display: flex;
        flex-wrap: wrap; /* 折り返しを許可 */
        justify-content: center;
        gap: 8px;
        padding: 10px 0;
    }
    .nav a {
        margin: 0 5px;
        font-size: 12px; /* 少し小さくして収まりを良くする */
    }

    /* 2. 弁護士カードの余白をスマホ用に削る */
    .lawyer-full-card {
        padding: 30px 15px !important; /* 60pxから30pxへ。左右は15pxに。 */
        margin: 0 10px; /* 画面端との隙間を作る */
    }

    /* 3. ヒーローエリアのタイトルサイズ調整 */
    .hero-title {
        font-size: 1.8rem !important; /* 3.5remは大きすぎるので調整 */
        line-height: 1.4;
    }

    /* 4. 弁護士画像（キラキラ隠し設定を維持しつつサイズ調整） */
    .lawyer-img {
        width: 100% !important;
        max-width: 280px;
        margin: 0 auto 20px;
        height: 280px !important; /* 正方形に近い形に */
    }
    
    .lawyer-img img {
        width: 105% !important; /* キラキラ隠しのための拡大 */
        height: 108% !important; /* 下側を多めにカット */
        object-fit: cover;
    }

    /* 5. 経歴・実績エリアのレイアウト */
    .lawyer-detail-grid {
        display: block !important; /* 横並びを解除 */
    }
    .detail-block {
        margin-bottom: 30px;
    }
    .lawyer-achievements {
        padding: 20px !important;
    }
}
/* --- 新しい弁護士プロフィールカード（写真なし） --- */
.lawyer-profile-card.no-photo {
    background: #ffffff;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    display: flex; /* 左右に分割 */
    gap: 60px; /* 左右の間の隙間 */
    align-items: flex-start; /* 上揃え */
    border-top: 5px solid var(--primary-color); /* 上部に太いネイビーライン */
}

.profile-summary {
    flex: 2; /* 左側（経歴）を広く */
}

.profile-message-area {
    flex: 1; /* 右側（メッセージ・実績）を狭く */
    padding-left: 40px;
    border-left: 1px solid #eee; /* 区切り線 */
}

.summary-head {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-color); /* 山口先生のゴールドの線 */
}

.profile-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    letter-spacing: 0.1em;
    font-weight: bold;
}

.profile-name {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: "Yu Mincho", serif; /* 明朝体で品格を */
}

.profile-affiliation {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.summary-details h4, .achievements-list h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color); /* ゴールドの縦線 */
    padding-left: 15px;
    margin-bottom: 20px;
    margin-top: 30px; /* 経歴と主な取扱分野の間の余白 */
}

.summary-details ul, .achievements-list ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.summary-details li, .achievements-list li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 8px;
    position: relative;
    padding-left: 1.5em; /* 記号分の余白 */
}

.summary-details li::before, .achievements-list li::before {
    content: "■"; /* 小さな四角の記号 */
    color: var(--accent-color); /* ゴールド */
    position: absolute;
    left: 0;
    font-size: 0.7em;
    top: 0.3em;
}

.practice-list li strong {
    font-weight: bold;
    color: var(--primary-color); /* 強調箇所をネイビーに */
}

.message-quote {
    background: var(--bg-light); /* 背景を少し明るいグレージュに */
    border-left: 5px solid var(--primary-color); /* 左にネイビーの太線 */
    padding: 30px;
    margin-bottom: 40px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
    font-family: "Yu Mincho", serif; /* メッセージも明朝体で */
}

/* --- スマホ表示の調整（画面幅768px以下） --- */
@media (max-width: 768px) {
    .lawyer-profile-card.no-photo {
        flex-direction: column; /* 縦並びにする */
        gap: 0;
        padding: 30px 15px !important; /* スマホ用に余白を調整 */
    }

    .profile-summary {
        margin-bottom: 30px; /* 上下の区切り */
    }

    .profile-message-area {
        padding-left: 0;
        border-left: none; /* 区切り線を消す */
        border-top: 1px solid #eee; /* 上部に細い区切り線 */
        padding-top: 30px;
    }

    .summary-head {
        text-align: center;
        border-bottom: none; /* スマホでは区切り線を消すか調整 */
        padding-bottom: 0;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .summary-details h4, .achievements-list h4 {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .message-quote {
        padding: 20px;
        font-size: 0.95rem;
    }
}
/* --- 取扱分野：4列レイアウト --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PCでは4列 */
    gap: 25px;
    margin-top: 40px;
}

.service-item {
    display: flex;
    flex-direction: column;
    height: 100%; /* 全てのカードの高さを揃える */
}

/* カード内のアイコン的なラベル */
.card-icon {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
}

/* スマホ・タブレット表示の調整 */
@media (max-width: 1100px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr); /* タブレットでは2列 */
    }
}

@media (max-width: 600px) {
    .grid-4 {
        grid-template-columns: 1fr; /* スマホでは1列 */
    }
}
/* プロフィール内の専門領域（2列） */
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.expertise-item {
    background: #fdfdfd;
    padding: 15px;
    border: 1px solid #eee;
}

.expertise-item h5 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 0.95rem;
}

.expertise-item p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* メッセージ部分の強調 */
.message-quote h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.message-text {
    font-size: 0.9rem;
    margin-top: 20px;
    color: #444;
}

.academic-list {
    margin-top: 40px;
}

.academic-list h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}
/* ================================================================
   10. フッター（濃紺）と最終調整
   ================================================================ */

/* --- フッター：色の指定をより強力に上書き --- */
.site-footer {
    background-color: #1a2a40 !important; /* 深い濃紺（ミッドナイトブルー） */
    color: #ffffff !important;
    padding: 60px 0 40px !important;
    text-align: center;
}

/* フッター内の文字 */
.site-footer p {
    color: #ffffff !important;
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* フッター内のリンク（個人情報保護方針など） */
.site-footer a {
    color: #ffffff !important; /* 必ず白にする */
    text-decoration: underline !important;
    font-size: 0.8rem;
    margin-top: 15px;
    display: inline-block;
}

.site-footer a:hover {
    color: #b8944f !important; /* ホバー時はゴールドに */
}
 

/* フッター内リンク */
.site-footer a {
    color: #ffffff;
    text-decoration: underline;
    font-size: 0.8rem;
    transition: opacity 0.3s, color 0.3s;
    display: inline-block;
    margin-top: 15px;
}

.site-footer a:hover {
    opacity: 1;
    color: var(--accent-color); /* ホバー時にゴールド */
}

/* 個人情報保護方針セクション（最下部） */
#privacy-policy {
    background-color: #f9f7f4; /* グレージュ系 */
    padding: 80px 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.8;
    border-top: 1px solid #e0ddd8;
}

#privacy-policy h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

/* ================================================================
   11. レスポンシブ対応（スマホ・タブレット調整）
   ================================================================ */

@media (max-width: 900px) {
    /* ヒーローエリアの調整 */
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-panel-box {
        width: 100%;
        max-width: 500px;
    }

    /* 弁護士紹介（写真なし版）の調整 */
    .lawyer-profile-card.no-photo {
        flex-direction: column;
        padding: 40px 20px;
    }
    .profile-message-area {
        border-left: none;
        border-top: 1px solid #eee;
        padding-left: 0;
        padding-top: 30px;
        margin-top: 30px;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 60px 0;
    }
    .contact-form-wrap {
        padding: 30px 15px;
    }
}

/* スムーズスクロールの設定（メニュークリック時にスルスル動く） */
html {
    scroll-behavior: smooth;
}
/* --- 採用情報セクションの洗練化 --- */
.section.alt {
    background-color: #f6f4f1 !important; /* メインよりほんの少しだけ明るくして、光が当たっているように見せる */
    border-top: 1px solid rgba(184, 148, 79, 0.3); /* ゴールドを30%の薄さで。これが「センス」です */
    border-bottom: 1px solid rgba(184, 148, 79, 0.3);
    padding: 120px 0 !important; /* 余白をたっぷり取ることで、余裕を演出 */
}

/* 採用情報のカードを上品に浮かせる */
.recruit-wrap {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    padding: 60px;
    border-radius: 2px; /* 角を丸めすぎず、鋭利に */
    box-shadow: 0 20px 50px rgba(0,0,0,0.03); /* 影は「ついているか分からない」くらい薄く */
    border-top: 4px solid var(--primary-color); /* 先生のネイビーをアクセントに */
}
/* ================================================================
   【最終解決】帯を消し、背景を完全に統一する
   ================================================================ */

/* 全ての .section.alt に対して、背景を無効化し、周りのグレージュに合わせる */
section.section.alt {
    background: transparent !important; /* 背景色を完全に透かす */
    background-color: transparent !important; 
    box-shadow: none !important; /* 余計な影も消す */
    
    /* 上下に繊細なゴールドのラインだけを引く */
    border-top: 1px solid rgba(184, 148, 79, 0.4) !important; 
    border-bottom: 1px solid rgba(184, 148, 79, 0.4) !important;
    
    /* 余白をたっぷり取ってセンス良く見せる */
    padding: 120px 0 !important;
}

/* 採用情報の白いカードを美しく浮かせる */
.recruit-wrap {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff !important; /* 背景が透けたので、ここだけ白が際立ちます */
    padding: 60px;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05) !important;
    border-top: 5px solid var(--primary-color) !important;
}
/* --- センスを上げる最終微調整 --- */

/* 強み：カードを横長にして「戦略」の重みを出す */
#strengths .strength-item {
    border-top: 1px solid var(--accent-color); /* 上に細い金線 */
    background: #fff;
    padding: 60px 40px;
    transition: all 0.4s ease;
}

/* フロー：STEPの間を点線で繋ぎ、手順の繋がりを表現 */
.flow-step {
    border-left: 2px dashed var(--accent-color) !important; /* 実線から「金の点線」へ */
    padding-left: 50px;
    margin-bottom: 0;
    padding-bottom: 40px;
}

.flow-step:last-child {
    border-left: none !important; /* 最後の線は消す */
}

.step-num {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}
/* 強みを2つにした時のバランス調整 */
#strengths .grid-2 {
    max-width: 900px; /* 少し幅を狭めて密度を出す */
    margin: 0 auto;
}

#strengths .strength-item {
    padding: 60px 40px; /* 上下の余白を増やして重厚感を出す */
}

/* 対応フロー（実線デザイン）の最終調整 */
.flow-step {
    border-left: 3px solid var(--primary-color) !important; /* 先生のネイビーを強調 */
    padding-bottom: 60px; /* ステップ間の間隔 */
}

.flow-step:last-child {
    border-left: 3px solid transparent !important; /* 最後は線を消す */
}
/* --- 強みとフローの最終調整 --- */

/* 強みを2つにした時の横幅を整えて「密度」を出す */
#strengths .grid-2 {
    max-width: 900px;
    margin: 0 auto;
}

/* 対応フローのデザイン調整（実線をしっかり見せる） */
.flow-step {
    border-left: 3px solid var(--primary-color) !important; /* 先生のネイビーを強調 */
    padding-left: 45px;
    padding-bottom: 60px;
    position: relative;
}

.flow-step:last-child {
    border-left: 3px solid transparent !important; /* 最後のステップの余計な線を消す */
    padding-bottom: 0;
}

/* ステップの数字をさらに見やすく */
.step-num {
    background: #fff !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    font-size: 0.9rem;
    font-weight: 900;
    padding: 4px 12px;
    margin-bottom: 15px;
    display: inline-block;
}

/* 本文の文字を少し細くして読みやすく */
.flow-step p {
    font-size: 0.95rem;
    color: #444;
}
/* =============================================
   対応フローを確実に再表示させる設定
   ============================================= */

/* セクション全体の背景（グレージュ）と表示を確保 */
#flow.section {
    display: block !important;
    visibility: visible !important;
    background-color: #f7f5f2 !important; /* 統一したグレージュ */
    padding: 100px 0 !important;
}

/* フローリストの配置をリセット */
.flow-list {
    display: block !important;
    max-width: 800px;
    margin: 40px auto 0 !important;
}

/* 先生お気に入りの「左側の太い実線」デザイン */
.flow-step {
    display: flex !important; /* 横並びに戻す */
    gap: 40px;
    margin-bottom: 0 !important;
    padding-left: 40px !important;
    padding-bottom: 60px !important;
    border-left: 4px solid #1a365d !important; /* 濃紺の実線 */
    position: relative;
    text-align: left !important;
}

/* 最後のステップだけ線を消す */
.flow-step:last-child {
    border-left: 4px solid transparent !important;
    padding-bottom: 0 !important;
}

/* STEPの丸数字/ラベルのデザイン */
.step-num {
    flex-shrink: 0;
    font-weight: 900;
    color: #1a365d !important;
    background: #ffffff !important;
    border: 2px solid #1a365d !important;
    padding: 5px 15px;
    border-radius: 30px;
    height: fit-content;
    font-size: 0.9rem;
}

.step-body h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1a365d !important;
    font-size: 1.3rem;
}
.flow-step {
    display: flex !important;
    gap: 40px;
    padding-left: 40px !important;
    padding-bottom: 60px !important;
    border-left: 4px solid #1a365d !important; 
    position: relative;
}

.flow-step:last-child {
    /* 04の横までラインを通すが、下には伸ばさない */
    border-left: 4px solid #1a365d !important; 
    padding-bottom: 0 !important;
}
/* ================================================================
   採用セクション：不自然な紺色の帯を「洗練された余白」に書き換え
   ================================================================ */

/* 1. 紺色の帯（背景色）を完全に消し、周りのグレージュに統一する */
#recruit.section, 
.section.alt#recruit {
    background-color: #f7f5f2 !important; /* 周りのグレージュと同じにする */
    background-image: none !important;
    padding: 120px 0 !important; /* 余白を広げて「ゆとり」を出す */
    
    /* 上下に、朝日をイメージした「髪の毛のように細い金線」を引く */
    border-top: 1px solid rgba(184, 148, 79, 0.3) !important;
    border-bottom: 1px solid rgba(184, 148, 79, 0.3) !important;
}

/* 2. 採用情報のカード（白い箱）をより上品に浮かせる */
#recruit .recruit-wrap {
    background: #ffffff !important;
    max-width: 850px;
    margin: 0 auto;
    padding: 60px;
    border-radius: 0; /* シャープな印象を維持 */
    border: none !important;
    
    /* 非常に薄い影をつけて、背景からフワッと浮かせる */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05) !important;
    
    /* カードのてっぺんだけに、ネイビーのアクセントラインを添える */
    border-top: 5px solid #1a365d !important;
}

/* 3. 中の文字が白くなっていたら、濃紺に戻して読みやすくする */
#recruit h2, #recruit p, #recruit .recruit-intro {
    color: #1a365d !important;
}
/* --- 「強み」のメッセージを募集職種(h4)と同じスタイルにする --- */

.strength-focus {
    text-align: center;
    padding: 40px 0; /* 上下の余白 */
    margin-bottom: 20px;
}

.strength-focus h4 {
    /* 募集職種(h4)と同じスタイルを強制的に適用 */
    color: #1a365d !important; /* ネイビー */
    font-weight: bold !important;
    font-size: 1.25rem !important; /* h4の標準的なサイズ（適宜調整してください） */
    
    /* 読みやすくするための調整 */
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.05em;
    display: inline-block;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .strength-focus h4 {
        font-size: 1.1rem !important;
        text-align: left; /* スマホでは左寄せが見やすい場合があります */
    }
}
/* --- 強みと取扱分野のリード文を「募集職種」と同じスタイルで統一 --- */

.strength-focus, .service-focus {
    text-align: center;
    padding: 20px 0 40px; /* 上下の余白を調整 */
}

.strength-focus h4, .service-focus h4 {
    color: #1a365d !important; /* ネイビー */
    font-weight: bold !important;
    font-size: 1.25rem !important; /* 募集職種(h4)と同等のサイズ */
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.05em;
    display: inline-block;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .strength-focus h4, .service-focus h4 {
        font-size: 1.1rem !important;
        text-align: left;
        display: block;
    }
}
/* --- ビジュアルスペースの最終調整 --- */
.visual-interlude {
    background-color: #f7f5f2; /* 背景のグレージュに合わせる */
    padding: 80px 0;
}

.interlude-grid {
    display: flex;
    gap: 20px;
    align-items: stretch; /* 高さを揃える */
    justify-content: center;
}

.interlude-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* 上品な影 */
    background: #fff;
}

/* 書斎：メイン（横長に美しく） */
.main-room {
    flex: 1.5;
}

/* 時計：サイド（縦横比を維持） */
.sub-clock {
    flex: 1;
}

.interlude-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせてトリミング（これが重要です） */
    display: block;
    transition: transform 0.5s ease;
}

/* マウスを置いた時に少しだけ写真が動く演出（高級感が出ます） */
.interlude-item:hover img {
    transform: scale(1.05);
}

.interlude-text {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(26, 54, 93, 0.7); /* 濃紺の半透明背景 */
    color: #fff;
    padding: 15px 10px;
    writing-mode: vertical-rl; /* 縦書き */
    font-family: "Yu Mincho", serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
}

/* スマホでは2枚を縦に並べる */
@media (max-width: 768px) {
    .interlude-grid {
        flex-direction: column;
        padding: 0 20px;
    }
    .main-room, .sub-clock {
        flex: none;
        width: 100%;
        height: 250px; /* スマホでの高さ固定 */
    }
}
/* --- 採用情報の上の二重線を消す --- */
#recruit.section {
    border-top: none !important; /* システムが勝手に引く線を消去 */
    padding-top: 60px !important;
}

/* --- 写真セクション自体の境界線を整える --- */
.visual-interlude {
    padding: 60px 0;
    background-color: #f7f5f2; /* サイト全体のグレージュ */
    /* ここに上品な金線を一本だけ引きます */
    border-top: 1px solid rgba(184, 148, 79, 0.3);
}

/* --- 写真のレイアウト（高さを揃える） --- */
.interlude-grid {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.interlude-item {
    flex: 1;
    height: 400px; /* PCでの高さを固定して2枚を揃えます */
    position: relative;
    overflow: hidden;
    background-color: #eee; /* 写真が出ない時の予備色 */
}

.interlude-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* これで写真が歪まずに枠に収まります */
    display: block !important;
}

.interlude-text {
    position: absolute;
    bottom: 0;
    right: 30px;
    background: #1a365d; /* 先生のネイビー */
    color: #fff;
    padding: 20px 10px;
    writing-mode: vertical-rl; /* 縦書き */
    font-family: "Yu Mincho", serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .interlude-grid { flex-direction: column; }
    .interlude-item { height: 250px; }
}
/* --- 写真のズーム（拡大）を完全に止める --- */

.interlude-item:hover img {
    /* マウスが乗ってもサイズを変えない */
    transform: none !important;
    /* 念のためズームの命令を完全に無効化 */
    scale: 1 !important;
}

.interlude-item img {
    /* 動きの余韻（transition）も不要なので削除 */
    transition: none !important;
}
/* --- 写真セクション：枠と文字を消し、完全に静止させる --- */

.interlude-text {
    display: none !important; /* 万が一HTMLに残っていても非表示にします */
}

.interlude-item img {
    transition: none !important; /* 動きを完全に排除 */
    transform: none !important;
    scale: 1 !important;
}

.interlude-item:hover img {
    transform: none !important; /* マウスを乗せても絶対動かさない */
}
/* --- 写真セクション：PCとスマホで最適化 --- */

/* PC・タブレットの設定（横並び） */
.interlude-grid {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

/* スマホの設定（画面幅が768px以下になったら適用） */
@media (max-width: 768px) {
    .interlude-grid {
        flex-direction: column; /* 縦に並べる */
        gap: 20px; /* 写真の間の余白を少し詰める */
        padding: 0 20px; /* 画面端にピッタリくっつかないよう余白を作る */
    }

    .interlude-item {
        width: 100%; /* 横幅を画面いっぱいに */
        max-width: 100%;
        height: auto; /* 高さを写真に合わせる */
    }

    .main-room, .sub-clock {
        flex: none; /* PC用の比率設定を解除 */
    }
}
/* --- 写真セクション：セピア加工と段違いレイアウト --- */

.visual-interlude {
    padding: 100px 0; /* 上下にゆとりを持たせる */
    background-color: #f7f5f2;
}

.interlude-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start; /* 上端を揃えつつ、個別にずらす */
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

/* 書斎：少し上にずらす */
.main-room {
    flex: 1.2;
    transform: translateY(-20px); /* 20px上に持ち上げる */
}

/* 時計：少し下にずらす */
.sub-clock {
    flex: 0.8;
    transform: translateY(40px); /* 40px下に下げる */
}

.interlude-item img {
    width: 100%;
    height: auto;
    display: block;
    /* セピア調の加工：0.4〜0.5くらいが品が良くておすすめです */
    filter: sepia(0.4) contrast(1.1) brightness(0.9);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); /* ずらしたことで影がより効果的に見えます */
}

/* スマホでは「ずらし」を解除して見やすくする */
@media (max-width: 768px) {
    .interlude-grid {
        flex-direction: column;
        gap: 50px; /* 縦に並べた時もゆとりを */
        padding: 0 40px;
    }
    .main-room, .sub-clock {
        transform: none; /* スマホでは真っ直ぐ並べる */
        max-width: 100%;
    }
}
/* プライバシーポリシーの各段落の間に余白を作る */
.privacy-section p {
    margin-bottom: 1.5rem !important; /* 下に一行分強のスペース */
    line-height: 1.8 !important;   /* 行間を広げて読みやすく */
}

/* 最後の段落だけは余白をゼロにする */
.privacy-section p:last-child {
    margin-bottom: 0 !important;
}

/* 太字見出しの少し下に隙間を作る */
.privacy-section strong {
    display: inline-block;
    margin-bottom: 5px;
    color: #444; /* 少しだけ濃くして読みやすく */
}
/* --- 写真付きプロフィールカードのデザイン --- */

.lawyer-profile-card.with-photo {
    display: grid;
    grid-template-columns: 350px 1fr; /* 左に写真、右に経歴 */
    gap: 40px;
    background: #fff;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    align-items: start;
}

.profile-photo-area {
    grid-row: span 2; /* 写真を縦長に使う */
}

.profile-photo-area img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    filter: contrast(1.05); /* 少しだけくっきりさせる */
}

/* メッセージエリアは写真の下ではなく、横に回り込むように調整 */
.profile-message-area {
    grid-column: 2;
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 20px;
}

/* スマホ対応：縦1列に並べ替える */
@media (max-width: 992px) {
    .lawyer-profile-card.with-photo {
        grid-template-columns: 1fr;
        padding: 25px;
    }
    .profile-photo-area {
        grid-row: auto;
        max-width: 300px;
        margin: 0 auto 30px;
    }
    .profile-message-area {
        grid-column: 1;
    }
}
/* --- 弁護士写真のサイズを適正化（控えめに） --- */

.lawyer-profile-card.with-photo {
    /* 写真の幅を350pxから280pxに絞り、右側の本文を広くします */
    grid-template-columns: 280px 1fr !important; 
    gap: 50px !important; /* 写真と文字の間を少し広げて、窮屈さを解消 */
}

.profile-photo-area {
    max-width: 280px; /* ここで写真の最大幅を固定します */
    margin: 0;
}

.profile-photo-area img {
    width: 100%;
    height: auto;
    /* 影を少し繊細にして、主張しすぎないようにします */
    box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
}

/* スマホでは中央寄せで、少し小さめに見せる */
@media (max-width: 992px) {
    .profile-photo-area {
        max-width: 200px; /* スマホではさらに一回り小さく */
        margin: 0 auto 20px;
    }
}
/* --- プロフィール：写真を浮かせて「ずらし」を加える --- */

.lawyer-profile-card.with-photo {
    display: block; /* グリッドを解除し、回り込みを可能にする */
    position: relative;
    background: #fff;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: visible; /* 写真をはみ出させるために必要 */
}

/* 写真を左上に浮かせて配置 */
.profile-photo-area {
    float: left; /* テキストを右側に回り込ませる */
    width: 240px; /* サイズをさらに一回り絞って品良く */
    margin-right: 40px;
    margin-bottom: 20px;
    margin-top: -80px; /* ★ここがポイント：カードの上枠から少しはみ出させる */
    position: relative;
    z-index: 10;
}

.profile-photo-area img {
    width: 100%;
    height: auto;
    border: 8px solid #fff; /* 白い縁取りで「置いた写真」のような立体感 */
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* プロフィール本文 */
.profile-summary {
    overflow: visible; /* 回り込みを継続 */
}

/* メッセージエリア：写真の下に回り込むように設定 */
.profile-message-area {
    clear: none; /* 回り込みを止めない */
    border-top: 1px solid #eee;
    padding-top: 25px;
    margin-top: 20px;
    font-style: italic; /* メッセージ性を出すために少しだけ変化を */
}

/* 最後に回り込みを解除するおまじない（clearfix） */
.lawyer-profile-card::after {
    content: "";
    display: block;
    clear: both;
}

/* スマホ対応：スマホでは真っ直ぐ並べる */
@media (max-width: 768px) {
    .profile-photo-area {
        float: none;
        margin: -70px auto 20px; /* スマホでも中央で少し浮かせる */
        width: 180px;
    }
    .lawyer-profile-card.with-photo {
        padding: 60px 25px 25px;
        text-align: center;
    }
    .summary-details ul {
        text-align: left; /* 箇条書きは左寄せ */
    }
}
/* 写真の横に想いと経歴を配置する設定 */
.lawyer-profile-card.with-photo {
    display: block; 
    position: relative;
    background: #fff;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.profile-photo-area {
    float: left;
    width: 240px; 
    margin-right: 40px;
    margin-bottom: 20px;
    margin-top: -80px; /* 写真を少し浮かせる */
}

.profile-message-box {
    margin: 15px 0 25px 0;
    padding: 15px 20px;
    background-color: #fcfaf7; /* 背景のグレージュに合わせた淡い色 */
    border-left: 3px solid #b8944f; /* 金のアクセント線 */
}

.profile-message-box p {
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 500;
    margin: 0;
    color: #333;
}
/* お問い合わせボタンを「動く金」に */
.nav a[href="#contact"], 
.btn-contact {
    background-color: #1a365d !important; /* 先生のネイビー */
    color: #fff !important;
    padding: 10px 25px !important;
    border-radius: 2px;
    border: 1px solid #b8944f; /* 金の縁取り */
    transition: all 0.4s ease;
}

.nav a[href="#contact"]:hover {
    background-color: #b8944f !important; /* 重厚な金に変わる */
    box-shadow: 0 4px 15px rgba(184, 148, 79, 0.4);
    transform: translateY(-2px);
}
/* --- 対応フロー：間延びと重なりを解消 --- */

.flow-container {
    max-width: 850px;
    margin: 0 auto;
    padding-top: 30px;
}

.flow-card {
    display: flex; /* 横に並べる */
    align-items: flex-start;
    background: #fff;
    margin-bottom: 30px; /* 項目同士の隙間 */
    padding: 30px;
    border-left: 5px solid #1a365d; /* 先生のネイビーをアクセントに */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

/* 数字の部分 */
.flow-num {
    font-size: 1.8rem;
    font-family: serif;
    color: #b8944f; /* 金色 */
    font-weight: bold;
    margin-right: 30px;
    line-height: 1;
    min-width: 50px;
}

/* テキスト部分 */
.flow-text {
    flex: 1; /* 残りの幅をすべて使う */
}

.flow-text h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #1a365d;
}

.flow-text p {
    margin: 0;
    line-height: 1.7;
    color: #555;
    font-size: 0.95rem;
}

/* スマホでは縦並びにして崩れを防ぐ */
@media (max-width: 600px) {
    .flow-card {
        flex-direction: column;
        padding: 20px;
    }
    .flow-num {
        margin-bottom: 10px;
    }
}
/* --- ヘッダー・ロゴ周りの修正 --- */

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky; /* スクロールしても上についてくる */
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between; /* ロゴは左、ナビは右 */
    align-items: center;
}

/* ロゴエリアの設定 */
.logo-band {
    display: block;
    max-width: 320px; /* ロゴが大きすぎないように制限 */
}

.logo-band a {
    text-decoration: none;
    display: block;
}

.logo-img {
    height: 45px; /* ロゴの高さを指定して表示を確実に */
    width: auto;
    display: block;
}

.logo-sub {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
    white-space: nowrap; /* 改行させない */
    letter-spacing: 0.05em;
}

/* ナビゲーションとの干渉を防ぐ */
.nav {
    display: flex;
    gap: 20px;
}

/* スマホ対応 */
@media (max-width: 992px) {
    .header-inner {
        flex-direction: column; /* スマホでは縦に並べる */
        gap: 15px;
    }
    .logo-band {
        max-width: 280px;
    }
}
/* --- ロゴを強制的に引っ張り出すための設定 --- */

.logo-band {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 100px !important;
    min-height: 20px !important;
}

.logo-img {
    display: inline-block !important;
    height: 50px !important; /* 高さを強制指定 */
    width: auto !important;
    background-color: transparent !important; /* 背景で隠れるのを防ぐ */
    visibility: visible !important;
}

/* 万が一、ロゴが他の要素に重なって隠れている場合を考慮 */
.site-header {
    overflow: visible !important;
}
/* --- スマホ表示の縦長解消セット --- */
@media screen and (max-width: 768px) {
    
    /* 1. 「強み」セクション：余白を詰めてコンパクトに */
    .strength-item {
        padding: 15px !important;
        margin-bottom: 10px !important;
    }
    .strength-item h3 {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
    }

    /* 2. 「採用情報」：項目名(dt)と内容(dd)をスッキリ並べる */
    .recruit-info dl dt {
        float: none !important;
        width: 100% !important;
        background: #f0f0f0; /* 項目名に薄い色をつけて区切りをわかりやすく */
        padding: 5px 10px !important;
        font-size: 0.9rem !important;
    }
    .recruit-info dl dd {
        width: 100% !important;
        margin: 0 0 15px 0 !important;
        padding: 10px !important;
        font-size: 0.9rem !important;
    }

    /* 3. 「アクセス」：地図の高さを抑える */
    .map-container iframe {
        height: 200px !important; /* 地図を小さくしてスクロールしやすく */
    }
    .address-box {
        padding: 10px !important;
        margin-top: 10px !important;
    }
    .address-box p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
}
/* --- スマホ表示の最適化（強み・採用・アクセス） --- */
@media screen and (max-width: 768px) {

    /* 「強み」セクションの調整 */
    #strengths .strength-focus h4 {
        font-size: 1.1rem !important; /* キャッチコピーを少し小さくして行数を減らす */
        line-height: 1.4 !important;
        margin-bottom: 20px !important;
    }

    .grid-2 {
        display: block !important; /* 強制的に1列にする */
    }

    .strength-item {
        padding: 15px !important;
        margin-bottom: 10px !important; /* 項目間のスキマを詰める */
        border: 1px solid #eee; /* 軽い枠線をつけて区切りを明確に */
    }

    .strength-item .num {
        font-size: 1.2rem !important; /* 数字を少し小さく */
        margin-bottom: 5px !important;
    }

    .strength-item h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .strength-item p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    /* 地図の高さ調整（地図地獄の防止） */
    iframe {
        height: 220px !important;
    }
}
/* --- スマホ表示の最適化（強み・採用・アクセス） --- */
@media screen and (max-width: 768px) {

    /* 全体的なコンテナの余白を少し詰める */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 「強み」セクションの調整 */
    .strength-item {
        padding: 15px !important;
        margin-bottom: 15px !important;
        border: 1px solid #eee;
    }

    /* 「採用情報」セクションの調整 */
    .recruit-wrap {
        padding: 0 !important;
    }
    
    .recruit-intro {
        font-size: 0.9rem !important;
        margin-bottom: 25px !important;
        line-height: 1.6 !important;
    }

    /* 横並び(grid-2)をスマホでは解除 */
    .grid-2 {
        display: block !important;
    }

    .recruit-box {
        width: 100% !important;
        margin-bottom: 20px !important; /* ボックス同士の隙間 */
        padding: 15px !important;
        background: #fdfdfd; /* ほんのり背景色をつけて見やすく */
        border-left: 4px solid #003366; /* 弁護士らしい紺色のアクセント線 */
    }

    .recruit-box h4 {
        margin-bottom: 10px !important;
        font-size: 1.1rem !important;
    }

    .recruit-box ul li {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
        list-style-type: none !important; /* ポエム風にならないよう記号を調整 */
        padding-left: 0 !important;
    }

    .recruit-footer {
        margin-top: 20px !important;
        padding: 15px !important;
        background: #f5f5f5;
    }

    /* 地図の高さ調整 */
    iframe {
        height: 220px !important;
    }
}
/* --- スマホ表示の最適化（強み・採用・アクセス）完結版 --- */
@media screen and (max-width: 768px) {

    /* 1. 全体コンテナの微調整 */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .grid-2 {
        display: block !important; /* 横並びを解除 */
    }

    /* 2. 「強み」：コンパクトに */
    .strength-item {
        padding: 15px !important;
        margin-bottom: 15px !important;
        border: 1px solid #eee;
    }

    /* 3. 「採用情報」：枠をつけて見やすく */
    .recruit-box {
        margin-bottom: 20px !important;
        padding: 15px !important;
        background: #fdfdfd;
        border-left: 4px solid #003366;
    }

    /* 4. 「アクセス」：スクロールの邪魔をしない設計 */
    #access .grid-2 {
        display: flex !important;
        flex-direction: column !important; /* 縦に並べる */
    }

    /* 建物の写真を少し小さくして高さを抑える */
    .photo-frame {
        width: 100% !important;
        max-width: 300px !important; /* スマホでは広がりすぎないように */
        margin: 0 auto 15px !important; /* 中央寄せ */
    }

    .address-card {
        text-align: center !important; /* スマホでは中央寄せが見やすい */
        margin-bottom: 20px !important;
    }

    .address-card p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 8px !important;
    }

    /* 地図のエリアをコンパクトに */
    .map-wrap {
        width: 100% !important;
        height: 250px !important; /* 地図の高さを指定 */
        overflow: hidden;
        border-radius: 8px;
    }

    .map-wrap iframe {
        width: 100% !important;
        height: 100% !important; /* 親要素の250pxに合わせる */
    }
}
/* ============================================================
   スマホ表示の最適化（最終まとめ版）
   ============================================================ */
@media screen and (max-width: 768px) {

    /* 全体の横並び設定(grid-2)を解除して縦1列にする */
    .grid-2 {
        display: block !important;
    }

    /* 1. 「強み」：余白を詰める */
    .strength-item {
        padding: 15px !important;
        margin-bottom: 15px !important;
        border: 1px solid #eee;
    }

    /* 2. 「採用情報」：背景とアクセント線で見やすく */
    .recruit-box {
        margin-bottom: 20px !important;
        padding: 15px !important;
        background: #fdfdfd;
        border-left: 4px solid #003366;
    }

    /* 3. 「事務所案内」：写真が細長く潰れるのを防ぐ */
    .photo-card {
        width: 100% !important;
        margin-bottom: 25px !important;
    }
    .photo-frame img {
        width: 100% !important;
        height: auto !important; /* 比率を保って潰れを解消 */
        display: block;
    }

    /* 4. 「アクセス」：地図地獄を防止 */
    .photo-frame {
        max-width: 100% !important;
    }
    .map-wrap {
        height: 250px !important; /* 地図の高さを抑える */
        margin-top: 15px;
    }
    .map-wrap iframe {
        height: 100% !important;
    }
    .address-card {
        text-align: center !important;
    }
}
/* ロゴ画像がスマホの幅を超えないように調整 */
    .logo-img {
        max-width: 100% !important; /* 画面幅に合わせて自動縮小 */
        height: auto !important;     /* 比率を維持 */
        display: block;
    }

    /* ロゴの下のサブテキストも小さくして収める */
    .logo-sub {
        font-size: 0.7rem !important; /* 文字を小さく */
        white-space: nowrap;          /* 改行させたくない場合はこれ */
        overflow: hidden;
        text-overflow: ellipsis;      /* 万が一はみ出たら「...」にする設定 */
        margin-top: 5px;
    }

    /* ヘッダー全体の余白を調整 */
    .site-header .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    /* ============================================================
   スマホ表示の最適化（ロゴ固定・メニュー流れる・縦長解消）
   ============================================================ */
@media screen and (max-width: 768px) {

    /* 1. ヘッダー：事務所名(ロゴ)だけを画面上に固定 */
    .site-header {
        position: sticky !important;
        top: 0;
        z-index: 1000;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 0 !important;
    }

    /* ロゴの大きさをスマホ用にコンパクトにして、表示エリアを確保 */
    .logo-img {
        max-height: 35px !important; /* 高さを抑えるのがポイント */
        width: auto !important;
        margin: 10px auto !important;
        display: block;
    }

    .logo-sub {
        display: none !important; /* スマホではサブテキストを隠して高さを節約 */
    }

    /* 2. メニュー：ロゴの下に配置し、スクロールすると消えるようにする */
    .nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important; /* 横に指ではじけるようにする */
        -webkit-overflow-scrolling: touch;
        background: #f8f8f8;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        padding: 8px 0 !important;
    }

    .nav a {
        flex: 0 0 auto !important;
        padding: 5px 12px !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        color: #333 !important;
        text-decoration: none;
    }

    /* 3. 各セクションの縦長・潰れ解消（これまでのまとめ） */
    .grid-2 {
        display: block !important;
    }

    /* 強み */
    .strength-item {
        padding: 15px !important;
        margin-bottom: 15px !important;
        border: 1px solid #eee;
    }

    /* 採用 */
    .recruit-box {
        margin-bottom: 20px !important;
        padding: 15px !important;
        border-left: 4px solid #003366;
        background: #fdfdfd;
    }

    /* 事務所写真：細長く潰れるのを防ぐ */
    .photo-card {
        margin-bottom: 25px !important;
    }
    .photo-frame img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* アクセス：地図地獄を防止 */
    .map-wrap {
        height: 230px !important;
        margin-top: 15px;
    }
    .map-wrap iframe {
        height: 100% !important;
    }
    .address-card {
        text-align: center !important;
        font-size: 0.85rem !important;
    }
}
/* 弁護士紹介の詳細設定 */
.profile-block {
    margin-bottom: 25px;
}
.profile-block h4 {
    border-bottom: 2px solid #003366;
    display: inline-block;
    margin-bottom: 10px;
}
.profile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.scroll-content {
    height: 200px; /* ここで高さを制限して、はみ出た分をスクロールにします */
    overflow-y: scroll;
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #eee;
    font-size: 0.85rem;
}
.scroll-content table {
    width: 100%;
}
.scroll-content th {
    width: 30%;
    text-align: left;
    vertical-align: top;
    padding-bottom: 5px;
}

/* スマホ用の調整 */
@media screen and (max-width: 768px) {
    .profile-details {
        display: block;
    }
    .detail-box {
        margin-bottom: 20px;
    }
}
/* 弁護士名とプロフィールの装飾 */
.lawyer-name-area {
    margin-bottom: 30px;
    border-left: 5px solid #003366;
    padding-left: 20px;
}
.lawyer-name {
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em;
    color: #333;
    margin: 0 !important;
}
.lawyer-name-en {
    display: block;
    font-size: 1.1rem;
    color: #888;
    margin-top: 5px;
}
.profile-block h4 {
    border-bottom: 2px solid #003366;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.profile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.scroll-content {
    height: 250px;
    overflow-y: scroll;
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #eee;
    font-size: 0.85rem;
    line-height: 1.6;
}
.scroll-content th {
    width: 35%;
    text-align: left;
    vertical-align: top;
    padding-bottom: 8px;
}

/* スマホ表示の最終微調整 */
@media screen and (max-width: 768px) {
    .lawyer-name { font-size: 1.8rem !important; }
    .profile-details { display: block; }
    .detail-box { margin-bottom: 20px; }
    .scroll-content { height: 200px; }
}
.detail-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.detail-list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0; /* 項目ごとの区切り線 */
    padding-bottom: 5px;
}

.detail-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: #003366;
    font-weight: bold;
}
/* --- 弁護士紹介：2カラム×2段レイアウト --- */

.lawyer-name-card {
    border-bottom: 2px solid #003366;
    margin-bottom: 30px;
    padding-bottom: 15px;
}
.lawyer-name {
    font-size: 2.6rem !important;
    font-weight: bold;
    letter-spacing: 0.15em;
    margin: 0 !important;
}
.lawyer-name small {
    font-size: 1.1rem; color: #888; font-weight: normal; margin-left: 15px;
}

/* 2カラム設定 */
.lawyer-row {
    display: flex;
    gap: 50px;
}
.lawyer-col {
    flex: 1;
}

/* 見出し */
.profile-h4, .data-h4 {
    font-size: 1.1rem;
    color: #003366;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #003366;
    font-weight: bold;
}

/* 取扱ケースリスト */
.case-list {
    list-style: none; padding: 0;
}
.case-list li {
    padding: 6px 0; line-height: 1.6; border-bottom: 1px solid #f5f5f5;
}
.case-list li::before {
    content: "■"; color: #003366; margin-right: 10px; font-size: 0.8rem;
}

/* スクロールボックス */
.scroll-wrapper {
    height: 300px; /* 全ての情報を漏れなく入れるための高さ */
    overflow-y: auto;
    background: #f9fafb;
    border: 1px solid #eee;
    padding: 20px;
    font-size: 0.88rem;
}

/* 略歴テーブル */
.history-table { width: 100%; border-collapse: collapse; }
.history-table th { text-align: left; width: 30%; color: #666; vertical-align: top; padding-bottom: 10px; }
.history-table td { padding-bottom: 10px; }

/* 著書セミナーリスト */
.achievement-list { list-style: disc; padding-left: 1.5em; margin-bottom: 20px; }
.achievement-list li { margin-bottom: 8px; line-height: 1.5; }
.list-cat { font-weight: bold; color: #003366; margin-bottom: 10px; }

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .lawyer-row { display: block; }
    .lawyer-col { margin-bottom: 30px; }
    .lawyer-name { font-size: 1.8rem !important; }
}
/* 専門分野リストの調整 */
.specialty-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specialty-list li {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.8;
    color: #333;
    padding: 5px 0;
    border-bottom: 1px dotted #ccc; /* 項目間に薄い点線を入れて読みやすく */
}

.specialty-list li:last-child {
    border-bottom: none;
}
/* 著書・セミナーリストの文字組調整 */
.achievement-list li {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee; /* 項目ごとの区切り */
    list-style: none !important; /* 点を消してスッキリ */
}

.achievement-list li span {
    display: block; /* 日付を独立した行にする */
    font-size: 0.75rem;
    color: #003366; /* 事務所カラーにする */
    font-weight: bold;
    margin-bottom: 3px;
}
/* その他の職務経験のデザイン */
.other-exp-list {
    list-style: none;
    padding: 0;
}
.other-exp-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.other-exp-list li span {
    display: inline-block;
    width: 85px;
    color: #003366;
    font-weight: bold;
    font-size: 0.85rem;
}

/* 右側のスクロール枠を少しだけ広く調整 */
.scroll-wrapper {
    background: #fcfcfc;
    border: 1px solid #eee;
    padding: 15px;
    overflow-y: auto;
}
/* 実績セクションを横に並べる設定 */
.achievement-flex {
    display: flex;
    gap: 40px;
}
.achievement-col {
    flex: 1;
}

/* スマホでは著書・セミナーも縦に戻す */
@media screen and (max-width: 768px) {
    .achievement-flex {
        display: block;
    }
}
/* ページ全体の横揺れ・はみ出しを防止 */
html, body {
    overflow-x: hidden;
    width: 100%;
}
@media screen and (max-width: 768px) {
    /* ナビゲーション全体の調整 */
    .nav {
        display: flex;
        flex-wrap: wrap;       /* 画面幅に合わせて自動で折り返す */
        justify-content: center; /* 中央に寄せる */
        gap: 10px;            /* メニュー同士の隙間 */
        padding: 10px 0;
    }

    .nav a {
        font-size: 13px;      /* 文字を少し小さくして収まりやすく */
        padding: 5px 8px;     /* クリックしやすい余白 */
        border: 1px solid #eee; /* 境目をわかりやすく（お好みで） */
        border-radius: 4px;
        background: #fff;
        white-space: nowrap;  /* 単語の途中で改行させない */
    }

    /* ヘッダー全体の高さを自動調整 */
    .site-header {
        height: auto !important;
        padding-bottom: 10px;
    }
}
@media screen and (max-width: 768px) {
    /* 1. ヘッダーの固定を解除し、中身を縦に並べる */
    .header-inner {
        display: block !important; /* 横並びを強制解除 */
        text-align: center;
        padding: 10px;
    }

    /* 2. メニュー（nav）の箱を整える */
    .nav {
        display: flex !important;
        flex-wrap: wrap !important; /* 入りきらない分は下に回る */
        justify-content: center !important; /* 中央寄せ */
        gap: 6px !important; /* ボタン同士の隙間 */
        margin-top: 15px !important;
        width: 100% !important;
    }

    /* 3. メニュー1つ1つのボタンを画面幅に収める */
    .nav a {
        flex: 0 1 calc(33.333% - 10px); /* 3列で並べる（端数は隙間分） */
        font-size: 11px !important;    /* 小さくして収める */
        padding: 8px 2px !important;   /* 上下余白 */
        background: #f8f9fa;           /* 薄いグレーのボタンに */
        border: 1px solid #ddd;        /* 枠線 */
        border-radius: 4px;
        text-align: center;
        color: #333 !important;
        text-decoration: none;
        box-sizing: border-box;
    }

    /* 4. ロゴの下のサブテキストを調整 */
    .logo-sub {
        display: block;
        font-size: 11px;
        margin-top: 5px;
        white-space: normal;
    }
}
/* ============================================================
   【修正専用】スマホ・他画面での崩れを強制的に直すコード
   ============================================================ */

/* 1. 画面の横揺れ・はみ出しを物理的に止める */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
}

/* 2. 画像が枠を突き破るのを防ぐ */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* 3. スマホ表示（画面幅768px以下）の時の強制ルール */
@media screen and (max-width: 768px) {
    
    /* 横並びを解除して縦に並べる（重なり防止） */
    .grid-2, .grid-3, .flex, [class*="col-"], [class*="grid-"] {
        display: block !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none !important;
    }

    /* プロフィール写真の重なりを解消 */
    .profile-photo-area, 
    .lawyer-profile-card img {
        margin-top: 0 !important; /* はみ出しを一旦リセット */
        float: none !important;
        display: block !important;
        margin: 0 auto 20px !important; /* 中央に配置 */
        width: 200px !important;
    }

    /* 弁護士紹介カードの余白を確保 */
    .lawyer-profile-card {
        padding: 20px !important;
        display: block !important;
    }

    /* 地図が大きすぎるのを防ぐ */
    iframe {
        width: 100% !important;
        height: 250px !important;
    }

    /* ヘッダーのロゴを収める */
    .site-header .container {
        padding: 0 10px !important;
    }
}