@charset "utf-8";


/*Font Awesomeの読み込み
---------------------------------------------------------------------------*/
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

/*Google Fontsの読み込み
---------------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@100..900&display=swap');

/*slick.cssの読み込み
---------------------------------------------------------------------------*/
@import url("https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css");

/*テンプレート専用cssファイルの読み込み
---------------------------------------------------------------------------*/
@import url("slide.css");
@import url("inview.css");


/*CSSカスタムプロパティ（サイト全体を一括管理する為の設定）
---------------------------------------------------------------------------*/
:root {

--primary-color: #4ba3fc;/*テンプレートのメインまたはアクセントとなる色*/
--primary-inverse-color: #fff;/*primary-colorの対として使う色*/

--global-space: 8vw;/*サイト内の余白の一括管理用。画面幅100%＝100vwです。*/
}


/*animation1のキーフレーム設定（開閉ブロックのアニメーションに使用）
---------------------------------------------------------------------------*/
@keyframes animation1 {
0% {left: -200px;}
100% {left: 0px;}
}


/*opa1のキーフレーム設定（汎用的）
---------------------------------------------------------------------------*/
@keyframes opa1 {
0% {opacity: 0;}
100% {opacity: 1;}
}


/*全体の設定
---------------------------------------------------------------------------*/
body * {box-sizing: border-box;}

body {
margin: 0;padding:0;
font-family: "M PLUS 1", "ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;/*フォント種類*/
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
-webkit-text-size-adjust: none;
background: #fff;/*背景色*/
color: #333;/*文字色*/
line-height: 2;/*行間*/
animation: opa1 0.2s 0.5s both;/*0.5秒待機後、0.2秒かけてフェードイン表示*/
}

/*リセット*/
figure {margin: 0;}
dd {margin: 0;}
nav,ul,li,ol {margin: 0;padding: 0;}
nav ul {list-style: none;}
input {font-size: 1rem;}
section li {margin-left: 1rem;}

/*table全般の設定*/
table {border-collapse:collapse;}

/*画像全般の設定*/
img {border: none;max-width: 100%;height: auto;vertical-align: middle;}

/*videoタグ*/
video {max-width: 100%;}

/*iframeタグ*/
iframe {width: 100%;}

/*sectionが続く場合*/
section + section {
margin-top: 2vw;/*sectionの上に空けるスペース*/
}


/*文字サイズの設定。
もしデフォルトを「大」にしたい場合は、js/fontSizeChanger.jsの中のコメント箇所を読んで下さい。
---------------------------------------------------------------------------*/
/*「大」ボタンを押した時の文字サイズ*/
html.f-large {
font-size: 24px;
}

/*「小」ボタンを押した時の文字サイズ*/
html.f-small {
font-size: 17px;
}


/*リンク（全般）設定
---------------------------------------------------------------------------*/
a {
color: #333;/*リンクテキストの色*/
transition: 0.3s;/*マウスオン時の移り変わるまでの時間設定。0.3秒。*/
}
a:hover {
color: var(--primary-color);/*文字色。css冒頭で指定しているprimary-colorを読み込みます*/
filter: brightness(1.2);/*マウスオン時に少し明るくする*/
}


/*container（フッター以外を囲むブロック）
---------------------------------------------------------------------------*/
#container {
padding: 0 var(--global-space);/*上下、左右へのcontainer内の余白。左右の余白はcss冒頭で指定しているglobal-spaceを読み込みます*/
}


/*contents（mainを囲むブロック）
---------------------------------------------------------------------------*/
#contents {
padding: 1vw 0 5vw;/*上、左右、下へのcontents内の余白。画面幅100%＝100vwです。*/
}

/*トップページのコンテンツ*/
.home #contents {
padding-top: calc(2vw);/*スライドショー上のボタンが画像下に移動するので重ならないよう適当にpxを指定しています*/
}

/*ヘッダー（ロゴや電話番号が入っている最上段のブロック）
---------------------------------------------------------------------------*/
/*ヘッダーブロック*/
header {
    display: flex;/*ヘッダー内にあるボックスを横並びにする*/
    justify-content: space-between;
    align-items: center;
position: relative;/*文字サイズブロックを絶対配置する為に必要な指定*/
}

/*ロゴ画像*/
#logo {margin: 0; padding: 0 0 0 100px; /* top right bottom left */}
#logo img {
display: block;
width: 300px;/*ロゴ画像の幅*/
}

/*画面幅900px以下の追加指定*/
@media screen and (max-width:900px) {

/*ヘッダーブロック*/
header {
flex-direction: column;/*ヘッダー内にあるボックスを縦並びにする*/
}

/*ロゴ画像*/
#logo img {
margin-top: 20px;/*ロゴの上に空けるスペース*/
}


}/*追加指定ここまで*/


/*画面幅400px以下の追加指定*/
@media screen and (max-width:400px) {

/*ロゴ画像*/
#logo img {
width: 200px;/*ロゴ画像の幅*/
}

}/*追加指定ここまで*/


/*メニューブロック初期設定
---------------------------------------------------------------------------*/
#menubar {opacity: 0;line-height: 1.5;}
#menubar ul {list-style: none;margin: 0;padding: 0;}

.large-screen #menubar {opacity: 1;}

.small-screen #menubar.display-none {display: none;}
.small-screen #menubar.display-block {display: block;opacity: 1;}

/*3本バーをデフォルトで非表示*/
#menubar_hdr.display-none {display: none;}

/*ドロップダウンをデフォルトで非表示*/
.ddmenu_parent ul {display: none;}

/*ddmenuを指定しているメニューに矢印アイコンをつける設定*/
a.ddmenu::before {
font-family: "Font Awesome 5 Free";
content: "\f078";/*使いたいアイコン名（Font Awesome）をここで指定*/
font-weight: bold;/*この手の設定がないとアイコンが出ない場合があります*/
font-size: 0.7rem;/*文字サイズを70%に*/
padding-right: 0.5rem;/*右側に空ける余白。0.5文字分。*/
}


/*大きな端末、小さな端末共通のメニューブロック設定
---------------------------------------------------------------------------*/
/*メニュー１個あたりの設定*/
#menubar a {
display: block;text-decoration: none;
}

/*小文字の英語部分*/
#menubar span {
display: block;
font-size: 0.7em;/*文字サイズを親要素の70%に*/
letter-spacing: 0.1em;/*文字間隔を少しだけ広くとる*/
opacity: 0.6;/*透明度。色が60%出た状態。*/
}


/*大きな端末用のメニューブロック設定
---------------------------------------------------------------------------*/
/*メニューブロックを囲むボックス*/
.large-screen #menubar {
    position: sticky;/*画面の上部にメニューが固定される*/
    top: 0;
    z-index: 2;
    transition: opacity 0.3s;
}

/*メニューブロック全体の設定*/
.large-screen #menubar > nav > ul {
display: flex;/*横並びにする*/
justify-content: space-between;
align-items: center;
}

/*メニュー１個あたりの設定*/
.large-screen #menubar li {
flex: 1;/*個々のメニューを均等にし、幅いっぱいまで使う設定*/
position: relative;/*ドロップダウンの幅となる基準を作っておく*/
text-align: center;/*テキストをセンタリング*/
}

/*リンク（a要素）の設定*/
.large-screen #menubar li a {
flex: 1;
background: #8E7CC3;/*背景色*/
color: var(--primary-inverse-color);/*文字色。css冒頭で指定しているprimary-inverse-colorを読み込みます*/
padding: 0.8rem 0;/*上下、左右の余白*/
}

/*マウスオン時に明るくする*/
.large-screen #menubar li a:hover {
filter: brightness(1.2);
}

/*文字サイズ「大」の場合のメニューブロックを囲むボックス*/
html.f-large .large-screen #menubar {
position: relative;/*メニューが２段になる為、stickyを外してスクロールさせるようにする。固定させたままがいいならこの１行を削除する。*/
}

/*文字サイズ「大」の場合のメニューブロック全体の設定*/
html.f-large .large-screen #menubar > nav > ul {
flex-wrap: wrap;/*メニューを２段にする為、改行を許可する*/
}

/*文字サイズ「大」の場合のメニュー１個あたりの設定*/
html.f-large .large-screen #menubar > nav > ul > li {
flex: auto;
width: 33.33%;/*メニュー幅。３列なので33.33%*/
}


/*大きな端末用のメニューブロックが画面上部に到達した場合（fixed）
---------------------------------------------------------------------------*/
/*文字色*/
.large-screen #menubar.fixed a {
    opacity: 0.8;/*透明度。色を80%だけ出す。*/
}

/*マウスオン時*/
.large-screen #menubar.fixed a:hover {
opacity: 1;/*透明度。色を100%出す。*/
}

/*メニューの上下の余白を狭くする*/
.large-screen #menubar.fixed2 li a {
padding-top: 0.4rem;/*上の余白*/
padding-bottom: 0.4rem;/*下の余白*/
}


/*大きな端末、小さな端末、共通のドロップダウンメニュー設定
---------------------------------------------------------------------------*/
/*ドロップダウンブロック*/
.large-screen #menubar ul ul,
.small-screen #menubar ul ul {
animation: opa1 0.5s 0.1s both;/*0.1秒待機後、0.5秒かけてフェードイン表示*/
}


/*大きな端末用のドロップダウンメニュー
---------------------------------------------------------------------------*/
/*ドロップダウンメニューブロック全体*/
.large-screen #menubar ul ul {
position: absolute;z-index: 2;
width: 100%;
top: 100%;
left: 0px;
}

/*ドロップダウンメニュー1個あたりの上下、左右への余白。*/
.large-screen #menubar ul ul a {
padding: 0.6rem 1rem !important;
}


/*小さな端末用の開閉ブロック
---------------------------------------------------------------------------
.small-screen #menubar {height: 0px;}*/

/*メニューブロック設定*/
.small-screen #menubar.display-block {
position: fixed;overflow: auto;z-index: 100;
left: 0px;top: 0px;
width: 100%;
height: 100%;
padding-top: 90px;/*上に空ける余白。ハンバーガーアイコンと重ならない為の指定ですのでお好みで変更OK。*/
background: #8E7CC3;
animation: animation1 0.2s both;/*animation1を実行する。0.2sは0.2秒の事。*/
color: var(--primary-inverse-color);/*文字色。css冒頭で指定しているprimary-inverse-colorを読み込みます*/
}

/*メニュー１個あたりの設定*/
.small-screen #menubar li {
border: 1px solid #fff;/*枠線の幅、線種、色*/
margin: 1rem;/*メニューの外側に空けるスペース*/
border-radius: 5px;/*角を丸くする指定*/
}
.small-screen #menubar a {
color: inherit;
padding: 1rem 3rem;/*メニュー内の余白。上下、左右へ。*/
}
.small-screen #menubar li li a {
background: #fff;
color: var(--primary-color);/*文字色。css冒頭で指定しているprimary-colorを読み込みます*/
}


/*３本バー（ハンバーガー）アイコン設定
---------------------------------------------------------------------------*/
/*３本バーを囲むブロック*/
#menubar_hdr {
animation: opa1 0.3s 0.5s both;
position: fixed;z-index: 101;
cursor: pointer;
top: 1vw;/*上からの配置場所*/
right: 1vw;/*右からの配置場所*/
width: 40px;/*幅*/
height: 40px;/*高さ*/
padding: 10px;/*ブロック内の余白*/
display: flex;
justify-content: center;
align-items: center;
transition: transform 0.5s;
background: rgba(0,0,0,0.6);/*背景色*/
}

/*以下は変更不要*/
#menubar_hdr div {
position: relative;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}

/*バーの設定*/
#menubar_hdr div span {
display: block;
width: 100%;
height: 2px;/*線の太さ*/
background-color: #fff;/*線の色*/
border-radius: 2px;/*コーナーを少しだけ丸く*/
transition: all 0.5s ease-in-out;
position: absolute;
}

/*以下変更不要*/
#menubar_hdr div span:nth-child(1) {top: 0;}
#menubar_hdr div span:nth-child(2) {top: 50%;transform: translateY(-50%);}
#menubar_hdr div span:nth-child(3) {bottom: 0;}
#menubar_hdr.ham div span:nth-child(1) {top: 50%;transform: translateY(-50%) rotate(45deg);}
#menubar_hdr.ham div span:nth-child(2) {opacity: 0;}
#menubar_hdr.ham div span:nth-child(3) {top: 50%;transform: translateY(-50%) rotate(-45deg);}


/*mainブロック
---------------------------------------------------------------------------*/
/*h2見出し*/
main h2 {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 0 2rem;/*h2の外側にとるスペース。上、左右、下への順番。*/
font-size: 1.2rem;/*文字サイズ*/
position: relative;/*ulineを配置する為に必要な指定*/
font-weight: normal;/*デフォルトの太字を標準に*/
border-bottom: 3px solid #ddd;/*薄い色の線の幅、線種、色*/
letter-spacing: 0.1em;/*文字間隔を少しだけ広くする*/
}

/*h2のアクセントラインの設定*/
main h2 .uline {
display: inline-block;position: relative;
padding: 1rem;/*h2内の余白。上下、左右への順番。*/
bottom: -3px;/*濃い線を薄い線に重ねる為の指定。枠線の幅と合わせます。*/
border-bottom: 3px solid var(--primary-color);/*濃い色の線の幅、線種、varは色の事でcss冒頭で指定しているprimary-colorを読み込みます*/
}

/*右側の装飾文字の設定*/
main h2 .small {
display: block;
font-size: 0.6em;/*文字サイズを親要素の60%に*/
opacity: 0.5;/*透明度。色が50%出た状態。*/
}

/*h2のテキストをセンタリングする場合*/
main h2.c {
display: block;
border: none;/*下線を非表示に*/
text-align: center;/*テキストをセンタリング*/
font-size: 2rem;/*文字サイズを２倍に*/
}

/*h3見出し*/
main h3 {
font-size: 1.3rem;/*文字サイズ*/
letter-spacing: 0.1em;/*文字間隔を少しだけ広くする*/
font-weight: normal;/*デフォルトの太字を標準に*/
}


/*フッター設定
---------------------------------------------------------------------------*/
small {font-size: 100%;}
footer {
margin-bottom: 0; /* フッターの下部マージンをゼロに */
padding-bottom: 0; /* フッターの下部パディングをゼロに */
font-size: 0.7rem;/*文字サイズ*/
background: #8E7CC3;/*背景色*/
color: #fff;/*文字色*/
text-align: center;/*内容をセンタリング*/
padding: 1rem;/*ボックス内の余白*/
}

/*リンクテキスト*/
footer a {color: inherit;text-decoration: none;}

/*著作部分*/
footer .pr {display: block;}


/*フッター内にあるソーシャルメディアのアイコン
---------------------------------------------------------------------------*/
ul.icons {
list-style: none;
margin: 0;padding: 0;
display: flex;
align-self: center;
gap: 1rem;/*アイコン同士のマージン的な要素。１文字分。*/
}
.icons i {
font-size: 40px;/*アイコンサイズ*/
}


/*PAGE TOP（↑）設定
---------------------------------------------------------------------------*/
.pagetop-show {display: block;}

/*ボタンの設定*/
.pagetop a {
display: block;text-decoration: none;text-align: center;z-index: 99;
position: fixed;/*スクロールに追従しない(固定で表示)為の設定*/
right: 20px;/*右からの配置場所指定*/
bottom: 20px;/*下からの配置場所指定*/
color: #fff;/*文字色*/
font-size: 1.5rem;/*文字サイズ*/
background: rgba(0,0,0,0.2);/*背景色。0,0,0は黒の事で0.2は色が20%出た状態。*/
width: 60px;/*幅*/
line-height: 60px;/*高さ*/
border-radius: 50%;/*円形にする*/
}


/*その他
---------------------------------------------------------------------------*/
.clearfix::after {content: "";display: block;clear: both;}
.color-check, .color-check a {color: #ff0000 !important;}
.l {text-align: left !important;}
.c {text-align: center !important;}
.r {text-align: right !important;}
.ws {width: 95%;display: block;}
.wl {width: 95%;display: block;}
.mb0 {margin-bottom: 0px !important;}
.mb30 {margin-bottom: 30px !important;}
.look {display: inline-block;padding: 0px 10px;background: #eee;color: #333;border: 1px solid #ccc; border-radius: 3px;margin: 5px 0; word-break: break-all;}
.small {font-size: 0.75em;}
.large {font-size: 2em; letter-spacing: 0.1em;}
.pc {display: none;}
.dn {display: none !important;}
.block {display: block !important;}

/*画面幅900px以上の追加指定*/
@media screen and (min-width:900px) {

.ws {width: 48%;display: inline;}
.sh {display: none;}
.pc {display: block;}

}/*追加指定ここまで*/

---------------------------------------------------------------------------*/
/*画像を囲むブロック*/
/* --- 基本のスタイル（トップもサブも、PCもスマホも表示） --- */
.mainimg {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  display: block; /* 基本は出す */
}

.mainimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- サブページ（.subpage）かつ PC（画面幅701px以上）の時だけ消す --- */
@media screen and (min-width: 701px) {
  .subpage .mainimg {
    display: none;
  }
}

/* --- スマホ時の設定（既存のものをそのまま活用） --- */
@media screen and (max-width: 700px) {
  .mainimg {
    height: 180px;
    /* スマホ（700px以下）では .subpage であっても消さない */
  }
}

/*お問い合わせ画像三種
---------------------------------------------------------------------------*/
.top-contact {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-top: 5px;
margin-bottom: 5px;
flex-wrap: wrap;
}

.contact-btn {
display: block;
width: 200px;
}

.contact-btn img {
  width: 100%;
  height: auto;
  max-width: 200px; /* 最大幅を設定して画像がそれ以上大きくならないようにする */
  display: block;
}


/*画面幅900px以上の追加指定*/
@media screen and (min-width:900px) {

.ws {width: 30%;display: inline;}
.sh {display: none;}
.pc {display: block;}

}/*追加指定ここまで*/


@media screen and (max-width: 700px) {
  body, html {
    overflow-x: hidden; /* 横スクロールを防ぐ */
  }
  #container, #footer-contents, #footermenu {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0; /* 右側の余白を排除 */
  }
}

@media screen and (max-width: 700px) {
#logo {
display: none;
}
}
/*相談方法
---------------------------------------------------------------------------*/
/* 全体的な見出し */
.section-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  border-left: 5px solid #6a5acd; /* ラベンダー色をアクセントに */
  padding-left: 10px;
}

/* 各セクションの枠 */
.consultation-method {
  margin-bottom: 2em;
  background-color: #fcfcfc;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 10px;
}

.consultation-method h4 {
  margin-top: 0;
  color: #444;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 10px;
}

/* 電話やり取りのコンテナ */
.phone-call-script {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

/* 共通のチャットスタイル */
.chat-item {
  max-width: 95%;
  padding: 12px 15px;
  border-radius: 10px;
  position: relative;
}

.chat-item p {
  margin: 0;
  line-height: 1.5;
}

.chat-item .label {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 4px;
}

/* 事務所側のスタイル（左寄せ） */
.office {
  align-self: flex-start;
  background-color: #f0f0f0;
  color: #333;
}

.office .label {
  color: #666;
}

/* 相談者側のスタイル（右寄せ・青系） */
.client {
  align-self: flex-end;
  background-color: #e3f2fd;
  border: 1px solid #bbdefb;
  font-weight: bold;
}

.client .label {
  color: #1976d2;
}

/* 弁護士（左寄せ） */
.law {
  align-self: flex-start;
  background-color: #c3ceeb;
  color: #333;
}

.law .label {
  color: #666;
}

/* 注釈（※）のスタイル */
.note {
  margin-top: 10px !important;
  font-size: 0.9em;
  color: #666;
  font-weight: normal;
}

.note span {
  color: #ff0000;
  font-weight: bold;
}

/* 相談料の強調エリア */
.consultation-fee {
  background-color: #fff3f3;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ffcdd2;
  color: #333;
}

.consultation-fee span {
  color: #ff0000;
  font-weight: bold;
}
/* 1. 記事全体の幅を制限し、中央に寄せる */
.post {
  max-width: 1200px; /* 読みやすい横幅に制限 */
  margin: 0 auto;   /* 左右の余白を自動にして中央配置 */
  padding: 20px;
}

/* 2. セクションタイトルも幅を合わせる */
.section-title {
  max-width: 800px;
  margin: 0 auto 20px auto;
  font-size: 1.2rem;
  font-weight: bold;
  border-left: 5px solid #6a5acd;
  padding-left: 10px;
}

/* 3. チャットアイテムの最大幅を少しタイトにする */
.chat-item {
  max-width: 70%; /* 85%から70%に下げるとPCでも「対話」っぽく見えます */
  padding: 12px 15px;
  border-radius: 10px;
  position: relative;
}

/* スマホ用の調整（画面が狭いときは幅を広く使う） */
@media (max-width: 600px) {
  .chat-item {
    max-width: 90%;
  }
}

/* プロフィールページ全体のコンテナ */
.lawyer-profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  line-height: 1.8;
  color: #333;
  font-family: sans-serif;
}

/* メインの見出し */
.lawyer-main-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
  border-left: 6px solid #6a5acd; /* ラベンダー色 */
  padding-left: 15px;
  margin-bottom: 30px;
}

/* 各ブロックの余白 */
.profile-box {
  margin-bottom: 40px;
}

/* 中見出し */
.profile-sub-title {
  font-size: 1.1rem;
  color: #444;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

/* 略歴のリスト */
.history-step {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.history-step li {
  margin-bottom: 10px;
  padding-left: 1.5em;
  position: relative;
}
.history-step li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: #6a5acd;
  font-size: 0.8em;
}

/* 実績データ（期間と内容） */
.data-table dl {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid #f0f0f0;
}
.data-table dt {
  width: 200px;
  padding: 12px 10px;
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  font-weight: normal;
  color: #666;
}
.data-table dd {
  width: calc(100% - 200px);
  margin: 0;
  padding: 12px 10px;
  border-bottom: 1px solid #f0f0f0;
}

/* 通常のリスト */
.simple-list {
  list-style: none;
  padding-left: 5px;
}
.simple-list li {
  margin-bottom: 8px;
}
.simple-list li::before {
  content: "・";
  margin-right: 5px;
}

/* ボタンリンク */
.quick-nav {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.nav-button {
  display: inline-block;
  padding: 8px 18px;
  background-color: #fff;
  border: 1px solid #6a5acd;
  color: #6a5acd;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: 0.3s;
}
.nav-button:hover {
  background-color: #6a5acd;
  color: #fff;
}

/* テキストリンク */
.link-text {
  color: #0066cc;
  text-decoration: none;
}
.link-text:hover {
  text-decoration: underline;
}

/* スマホ用の表示（横幅が狭い時） */
@media (max-width: 600px) {
  .data-table dt {
    width: 100%;
    padding-bottom: 0;
    border-bottom: none;
  }
  .data-table dd {
    width: 100%;
    padding-top: 5px;
  }
  .quick-nav {
    flex-direction: column;
  }
}
/* --- プロフィール部分のベース --- */
.profile-flex-container {
  display: flex;
  flex-direction: column; /* スマホでは縦並び（写真が上） */
  gap: 20px;
  align-items: center;
}

.profile-image {
  width: 100%;
  max-width: 400px; /* 写真が大きくなりすぎないよう調整 */
}

.profile-image img {
  width: 100%;
  height: auto;
  border-radius: 4px; /* お好みで。少し角を丸くすると柔らかい印象になります */
  display: block;
}

.profile-text {
  width: 100%;
}

/* --- PC用の設定（701px以上） --- */
@media screen and (min-width: 701px) {
  .profile-flex-container {
    display: flex; /* 横並びの開始 */
    flex-direction: row; 
    align-items: flex-start;
    gap: 40px;
  }

  .profile-image {
    flex: 0 0 400px; /* 写真の幅を固定 */
  }

  .profile-text {
    flex: 1; /* ★ここがポイント：右側のテキストエリアを可能な限り広げる */
    display: flex;
    flex-direction: column; /* 経歴とボタンを縦に並べる */
  }

  .quick-nav {
    display: flex; /* ★ボタン同士は横並びを維持 */
    flex-direction: row;
    justify-content: flex-start; /* 左寄せ */
    width: 100%; /* 幅を確保して、リストの下に落ちるようにする */
  }
}

/* 既存の quick-nav スタイル（念のため確認） */
.quick-nav {
  display: flex;
  gap: 10px;
  margin-top: 20px; /* ここで「移転」の文字との間隔を作っています */
}
/* 相談ページ用の追加スタイル */
.consult-text {
  margin-bottom: 15px;
  line-height: 1.6;
}

.contact-area {
  background-color: #f9f9f9;
  padding: 15px;
  border-left: 4px solid #6a5acd;
  margin-bottom: 20px;
}

.contact-area p {
  margin: 5px 0;
}

.contact-area strong {
  font-size: 1.1rem;
  color: #333;
}

.highlight {
  color: #d9534f; /* 注意を引くための赤系 */
  font-weight: bold;
  font-size: 0.9rem;
}

/* 既存のdata-tableを流用しつつ調整 */
.data-table dl {
  margin-bottom: 15px;
}
/* --- 事務所写真のレイアウト --- */
.office-images {
  display: flex;
  flex-direction: column; /* スマホでは上下並び */
  gap: 15px; /* 写真同士の間隔 */
}

.photo {
  width: 80%;
}

.photo img {
  width: 80%;
  height: auto;
  display: block;
  border-radius: 4px; /* 他の画像と統一感を出します */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* 軽く影をつけると上品に見えます */
}

/* --- PC用の設定（701px以上） --- */
@media screen and (min-width: 701px) {
  .office-images {
    flex-direction: row; /* 横並びにする */
  }
  
  .photo {
    flex: 1; /* 2枚の写真を同じ幅で並べる */
  }
}

/* 費用ページ用スタイル */
.fee-intro {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

.fee-sub-label {
  font-weight: bold;
  border-left: 4px solid #6a5acd;
  padding-left: 10px;
  margin: 20px 0 10px 0;
  color: #333;
}

.fee-text {
  line-height: 1.7;
  margin-bottom: 10px;
}

/* 注釈のスタイル（赤文字を卒業して上品に） */
.fee-notes {
  margin-top: 15px;
  padding-left: 0;
  list-style: none;
  font-size: 0.85rem;
  color: #d9534f; /* 落ち着いた赤 */
}

/* テーブルのスタイル */
.scroll-table {
  overflow-x: auto; /* スマホで表がはみ出したら横スクロール可能に */
  margin-bottom: 15px;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 500px; /* スマホで潰れすぎないよう最小幅を確保 */
}

.fee-table th, .fee-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.fee-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.fee-table tr:nth-child(even) {
  background-color: #fafafa;
}

/* 地図をスマホで見た時に幅いっぱいにしつつ比率を保つ */
.map-container {
  position: relative;
  padding-bottom: 75%; /* 4:3の比率 */
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

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

/* 所在地などの重要な注意書き */
.highlight-box {
  display: block;
  margin-top: 10px;
  padding: 10px;
  background-color: #fff0f0;
  border: 1px solid #d9534f;
  color: #d9534f;
  font-weight: bold;
  border-radius: 4px;
}

/* 連絡先リンクの調整 */
.data-table dd a {
  color: #6a5acd;
  text-decoration: underline;
}

.data-table dd a:hover {
  text-decoration: none;
}
/* --- スマホ表示の視認性向上 --- */
@media screen and (max-width: 700px) {
  body {
    font-size: 17px; /* 基本サイズを1pxアップ */
  }
  
  /* 表の文字が小さくなりすぎないように調整 */
  .data-table dt, 
  .data-table dd,
  .fee-table {
    font-size: 16px !important;
  }

  /* 事務所案内の注釈なども読みやすく */
  .highlight-box, 
  .fee-notes {
    font-size: 15px;
  }
}
/* --- 新着情報（News）のスタイル --- */
.news-container {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 30px;
}

.news-list {
  margin: 0;
}

.news-item {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px dashed #eee;
  line-height: 1.5;
}

.news-item:last-child {
  border-bottom: none; /* 最後の一件は線を消す */
}

.news-item dt {
  flex: 0 0 140px; /* 日付の幅を固定 */
  color: #6a5acd; /* ラベンダー色 */
  font-weight: bold;
  font-size: 0.95rem;
}

.news-item dd {
  flex: 1;
  margin: 0;
  color: #333;
}

/* スマホ用の表示（画面幅600px以下） */
@media screen and (max-width: 600px) {
  .news-item {
    flex-direction: column; /* 日付と内容を縦に並べる */
    gap: 5px;
  }
  
  .news-item dt {
    flex: auto;
    font-size: 0.85rem;
  }
  
  .news-item dd {
    font-size: 1rem;
  }
}