@charset "utf-8";

body, html
{
  font-family: "Noto Sans JP", "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  /* 淡めのグラデーション */
  background: linear-gradient(135deg, #eaf6fc 0%, #fdfefe 100%);
  color: var(--main-color);
}


/* style.css */
.main {
  position: relative;
  width: 100%;
  height: 670px;
  background-image: url("../images/main.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

/* 背景画像の上に半透明の黒を重ねて文字を読みやすくする */
.main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /*background-color: rgba(0, 0, 0, 0.4); /* 黒の透明度40% */
  /* 中央が最も濃く、上下に向かって薄くなるグラデーション */
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.ys-main-copy {
  position: relative;
  z-index: 2;
  padding: 20px;
  /* アニメーションの初期状態：透明で少し下に配置 */
  opacity: 0;
  transform: translateY(20px);
  /* 1秒かけてプロパティが変化するように設定 */
  transition: opacity 1s ease-out, transform 1s ease-out;
}
/* このクラスが付与されるとアニメーションが開始される */
.ys-main-copy.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.main-catchphrase {
  font-family: "Noto Serif JP", serif;
  font-size: 5.0rem;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 2px 3px 12px rgba(0, 0, 0, 0.8);
  margin: 0 0 1rem 0;
}

.sub-text {
  font-size: 1.8rem; 
  font-weight: 500;
  letter-spacing: 0.05em; /* 少し文字間隔を広げる */
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
  margin: 0;
}

:root{
  /* サイト共通の変数 */
  --ys-green: #3aa655;
  --ys-orange: #ef8a20;
  --ys-text: #333;
  --ys-muted: #666;
  --ys-line: #eaecef;
  --ys-container: 1200px;
  
  /* メインの配色 */
  --main-color: #2c3e50;
  --accent-color: #3498db;
  --bg-light: #f8f9fa;
}

*,*::before,*::after{box-sizing:border-box}

a{color:var(--accent-color);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}
.container{max-width:1080px;margin-inline:auto;padding:24px}

/* ヘッダー */
.ys-sr{ position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); }

.ys-header{ position:sticky; top:0; z-index:1000; background:#fff; box-shadow:0 2px 10px rgba(0,0,0,.04); border-bottom:4px solid var(--ys-green); }
.ys-container{ width:min(92%, var(--ys-container)); margin:0 auto; }

.ys-top{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:20px; }
.ys-logo{
  position: relative; /* ロゴ画像の位置を調整するための基準点 */
  width: 300px; /* ロゴの横幅に合わせて調整してください */
  height: 60px; /* ヘッダーの高さに影響する部分 */
}
.ys-logo img{
  position: absolute;
  top: 50%; /* 上下中央に配置 */
  transform: translateY(-50%); /* 上下中央に配置するための調整 */
  height: 175px; /* 表示したい画像の高さ */
}
/* スマホではロゴを小さくする */
@media (max-width: 768px) {
  .ys-top { padding: 8px 0; } /* ヘッダー上下の余白を狭くする */
  .ys-logo {
    height: 44px; /* ヘッダーの高さを制御 */
    width: 240px; /* ロゴの表示領域を広げる */
  }
  .ys-logo img { height: 90px;} /* ロゴ画像の高さを維持し、横幅を指定 */
}

@media (max-width: 768px) {
  /* スマホ表示時のヘッダー右側をコンパクトにする */
  .ys-right { gap: 8px; }
  .ys-tel {
    padding: 6px 8px;
    border-radius: 8px;
  }
  .ys-tel-number { font-size: 14px; }
  .ys-tel-icon svg { width: 14px; height: 14px; }
  .ys-cta {
    padding: 5px 9px; /* 余白を小さくする */
    font-size: 10px; /* 文字サイズを小さくする */
  }
}
@media (max-width: 820px) {
  /* スマホではヘッダー上部の電話・お問い合わせを非表示 */
  .ys-right .ys-tel { display: none; } /* 電話番号のみ非表示にする */
  /* スマホではナビ内の電話・お問い合わせを表示 */
  .ys-nav-sp-item { display: flex; flex-direction: column; gap: 12px; } /* お問い合わせボタンはHTMLから削除 */
}

.ys-right{ display:grid; grid-auto-flow:column; align-items:center; gap:16px; }
.ys-tel{ display:inline-flex; align-items:center; gap:10px; background:var(--ys-green); color:#fff; text-decoration:none; font-weight:800; padding:10px 14px; border-radius:10px; }
.ys-tel-number{ letter-spacing:.5px; font-size:18px; }
.ys-cta{ display:inline-block; background:var(--ys-orange); color:#fff; text-decoration:none; font-weight:700; padding:12px 18px; border-radius:999px; box-shadow:0 6px 14px rgba(239,138,32,.25); transition:transform .08s ease, opacity .2s ease; }
.ys-cta:hover{ transform:translateY(-1px); opacity:.95; }
.ys-menu-toggle{ display:none; border:0; background:transparent; padding:6px; cursor:pointer; }
.ys-bar{ display:block; width:24px; height:2px; background:var(--ys-text); margin:5px 0; }
.ys-nav{ border-top:1px solid var(--ys-line); background:#fff; }
.ys-nav > .ys-container{ position:relative; }
.ys-nav ul{ display:flex; gap:36px; align-items:center; list-style:none; padding:12px 0; margin:0; flex-wrap:wrap; }
.ys-nav a{ color: #000; text-decoration:none; font-weight:700; font-size: 16px; display:inline-flex; align-items:center; gap:8px; padding:6px 0; position:relative; }

/* ▼（オレンジ） */
.ys-nav .has-sub > a::after{ content:"▾"; font-size:14px; color:var(--ys-orange); transform:translateY(-1px); }
/* ---- 現在ページ（active） ---- */
.ys-nav li.active > a {
  color: var(--ys-orange);      /* オレンジで強調 */
  font-weight: 800;             /* 太字 */
}

/* ---- アクティブ下線（現在ページ） ---- */
.ys-nav li.active > a::before{
content:"";
  position:absolute;
  left:0; right:0; bottom:-10px;
  height:3px;
  background:var(--ys-orange);
  border-radius:2px;
}
/* ホバー時の下線（PC） */
@media (hover:hover){
  .ys-nav > .ys-container > ul > li:hover > a::before{
    content:""; position:absolute; left:0; right:0; bottom:-10px; height:3px; background:rgba(239,138,32,.5); border-radius:2px;
  }
}

/* ---- ドロップダウン ---- */
.ys-nav .has-sub{ position:relative; }
.ys-nav .sub-menu{
  position:absolute; left:0; top:100%;
  background:#fff; border:1px solid var(--ys-line); border-radius:10px;
  box-shadow:0 12px 24px rgba(0,0,0,.08);
  padding:8px; list-style:none; min-width:200px; display:none;
}
.ys-nav .sub-menu li a{
  display:block; padding:10px 12px; font-weight:600; color:var(--ys-text);
  border-radius:8px;
}
.ys-nav .sub-menu li a:hover{ background:#f9f9fb; }

/* PC: hover/focusで展開 */
@media (hover:hover){
  .ys-nav .has-sub:hover > .sub-menu,
  .ys-nav .has-sub:focus-within > .sub-menu{ display:block; }
}

/* サブメニュートグル（モバイルで矢印タップ可能に） */
.sub-toggle{
  display:none; position:absolute; right:-16px; top:50%; transform:translateY(-50%);
  width:28px; height:28px; border:0; background:transparent; cursor:pointer;
}
.sub-toggle::after{
  content:"▾"; color:var(--ys-orange); font-size:16px;
}

/* ヘッダー レスポンシブ */
@media (max-width:1024px){
  .ys-tel-number{ font-size:16px; }
  .ys-right{ gap:12px; }
}

@media (max-width:820px){
  .ys-hours{ display:none; }
  .ys-menu-toggle{ display:inline-block; }
  .ys-nav{ display:none; }
  .ys-nav.open{ display:block; }

  /* モバイルレイアウト */
  .ys-nav ul{ flex-direction:column; align-items:flex-start; gap:0; padding:6px 0; }
  .ys-nav li{ width:100%; position:relative; }
  .ys-nav a{ width:100%; padding:6px 0; border-top:1px solid var(--ys-line); }
  .ys-nav li:first-child a{ border-top:0; }
  .ys-nav li.active > a::before{ bottom:0; left:0; width:100px; right:auto; } /* モバイルは下線短めでもOK */

  /* モバイル：サブメニューはブロックで下に展開 */
  .ys-nav .sub-menu{
    position:static; border:0; border-radius:0; box-shadow:none;
    padding:0; display:none; width:100%;
  }
  .ys-nav .sub-menu li a{ padding:6px 0 6px 16px; font-weight:600; }

  .ys-nav .has-sub .sub-toggle{ display:block; right:0; }
  .ys-nav .has-sub.sub-open > .sub-menu{ display:block; }
}

/* スマホ用メニュー項目 */
.ys-nav-sp-item {
  /* この項目は不要になったため、常に非表示にします */
  display: none; /* PCでは非表示 */
  width: 100%;
  padding: 16px 0;
  margin-top: 8px;
  border-top: 1px solid var(--ys-line);
}
.ys-nav-tel, .ys-nav-cta {
  width: 100%;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
}
.ys-nav-tel {
  background-color: var(--ys-green);
  color: #fff;
}
.ys-nav-cta {
  background-color: var(--ys-orange);
  color: #fff;
}

/*ご挨拶*/
.greeting {
  padding: 80px 20px;
  /*text-align: center;*/
}

.greeting-container {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  /* アニメーションを適用できるように */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.3s ease;
}

.greeting-title {
  font-family: "Noto Serif JP", serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1f2d3d; /* 濃いめで信頼感のある色 */
  margin-bottom: 30px;
  position: relative;
  text-align: center;
}

.greeting-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: #1f2d3d; /* 見出しと統一 */
  margin: 16px auto 0;
  opacity: 0.6;
}

.greeting-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.greeting-image {
  flex: 1 1 250px;
  display: flex;
  justify-content: center;
}

.greeting-image img {
  width: 300px; /* サイズを大きくする */
  height: 300px; /* サイズを大きくする */
  border-radius: 50%; /* 丸くする */
  object-fit: cover;
  border: 6px solid #fff; /* 白い縁取りを追加 */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* 影を加えて立体感を出す */
  filter: brightness(1.2); /* 画像を20%明るくする */
}

.greeting-text {
  flex: 2 1 400px;
}

.greeting-text p {
  margin-bottom: 1.2em; /* greeting-text内のpタグに限定 */
}

/* マウスが触れたときの動き */
.greeting-container:hover {
  transform: scale(1.05); /* 少し大きくなる */
  box-shadow: 0 12px 35px rgba(0,0,0,0.12); /* 影を強調して浮く感じに */
}

.signature {
  margin-top: 30px;
  text-align: right;
  font-size: 1.2rem;
  font-weight: bold;
}

/*弁護士紹介*/
.profile-section {
  position: relative;
  padding: 80px 10%;
  background: #fff;
  overflow: hidden;
}

.profile-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.profile-text {
  flex: 1;
  z-index: 2;
   /* アニメーションを適用できるように */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.3s ease;
}
.profile-text:hover {
  transform: translateY(-10px); /* 少し上に移動 */
  box-shadow: 0 15px 40px rgba(44, 62, 80, 0.15); /* 影を強調 */
}

.section-title {
  font-size: 2rem;
  color: #002d62; /* 濃い青系で落ち着いた印象 */
  margin-bottom: 20px;
  border-left: 4px solid #002d62;
  padding-left: 10px;
}

.profile-text p {
  line-height: 1.8;
  font-size: 1rem;
  color: var(--ys-text);
  margin-bottom: 30px;
}

.lawyer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #0b2f4a;              /* 濃い青 */
  text-decoration: none;
  border-bottom: 1px solid #0b2f4a;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.lawyer-link:hover {
  color: #005bbb;             /* ホバー時は少し明るい青 */
  border-color: #005bbb;
}

.circle-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid #0b2f4a;
  border-radius: 50%;
  font-size: 14px;
  transition: all 0.3s ease;
}

.lawyer-link:hover .circle-icon {
  background: #0b2f4a;
  color: #fff;
  border-color: #0b2f4a;
}

.profile-image {
  flex: 1.2; /* テキスト部分より画像の幅を少し広くする */
  z-index: 2;
  position: relative; /* 画像を重ねるための基準点 */
  aspect-ratio: 4 / 3; /* 画像の比率を維持 */
  min-width: 300px;
  filter: brightness(1.2);
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px; /* 少し角を丸めて柔らかさ */
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  opacity: 0; /* 基本は非表示 */
  transition: opacity 1.2s ease-in-out; /* 1.2秒かけてフェード */
}

.slide-image.active {
  opacity: 1; /* activeクラスが付いたら表示 */
}

/* 背景の大きな文字 */
.background-text {
  position: absolute;
  top: 20px;
  left: 5%;
  font-size: 8rem;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.05);
  z-index: 1;
  pointer-events: none;
}


/* 業務内容セクション */
.services-section {
  background-color: var(--bg-light); /* 薄い背景色 */
  padding: 80px 20px;
}

.section-title-center {
  text-align: center;
  font-size: 2.2rem;
  font-family: "Noto Serif JP", serif;
  color: var(--main-color);
  margin-bottom: 20; /* 下線との距離を詰めるためリセット */
  letter-spacing: 0.08em; /* 文字間隔を広げて上品に */
  position: relative; /* 下線のための基準点 */
  padding-bottom: 20px; /* 下線とのスペースを確保 */
}

.section-title-center::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 140px; /* 下線の幅 */
  height: 2px; /* 下線の太さ */
  background-color: var(--accent-color); /* アクセントカラーを使用 */
  opacity: 0.7;
}

.section-title-center,
.main-catchphrase,
.member-name {
  /* 日本語の単語の途中で改行されるのを防ぎ、文節で改行されやすくする */
  word-break: keep-all;
}

.section-subtitle {
  text-align: center;
  color: var(--ys-muted);
  max-width: 600px;
  margin: 0 auto 50px auto;
  font-size: 1rem;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  padding: 35px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(44, 62, 80, 0.12);
}

.service-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #eaf6fc; /* 淡い青 */
  margin-bottom: 20px;
}

.service-icon svg {
  width: 36px;
  height: 36px;
  color: var(--accent-color);
}

.service-card h3 {
  font-size: 1.4rem;
  color: var(--main-color);
  margin-bottom: 15px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ys-muted);
  text-align: left; /* 説明文は左揃え */
  margin-bottom: 0;
}

/* 所在地・アクセスセクション */
.access-section {
  padding: 80px 20px;
  background-color: #fff; /* 白背景でクリーンに */
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

@media (max-width: 900px) {
  .access-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.access-map {
  aspect-ratio: 4 / 3;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(44, 62, 80, 0.1);
  border: 1px solid #e5e7eb;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.access-info .info-block {
  margin-bottom: 35px;
}
.access-info .info-block:last-of-type {
  margin-bottom: 0;
}

.access-info h3 {
  font-size: 1.5rem;
  font-family: "Noto Serif JP", serif;
  color: var(--main-color);
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ys-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.info-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent-color);
  margin-top: 3px;
  flex-shrink: 0;
}

.access-buttons {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid #d1d5db;
  background-color: #fff;
  color: var(--main-color);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-access:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border-color: #adb5bd;
}

.btn-access svg {
  width: 18px;
  height: 18px;
}

.access-routes {
  list-style-type: disc;
  padding-left: 1.2em;
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* アクセス詳細ページ */
.access-detail-page {
  background-color: var(--bg-light);
  padding: 60px 20px 80px;
}

/* アクセス詳細ページ タブ */
.access-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ys-muted);
  position: relative;
  transition: color 0.3s ease;
}

.tab-btn:hover {
  color: var(--main-color);
}

.tab-btn.active {
  color: var(--accent-color);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px; /* border-bottomと重なるように */
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* タイムラインのスタイル調整 */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0 0 0 20px;
  position: relative;
  max-width: 800px; /* 中央に寄せる */
}

.timeline.hidden {
  display: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px; /* ドットの中央に合わせる */
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: #e5e7eb;
  border-radius: 2px;
}

.tl-item {
  position: relative;
  margin-bottom: 40px;
}
.tl-item:last-child {
  margin-bottom: 0;
}

.dot {
  position: absolute;
  left: 0;
  top: 8px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent-color);
  border: 3px solid var(--bg-light);
}

.step {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 24px 30px;
  margin-left: 30px; /* ドットとのスペース */
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
   /* アニメーションを適用できるように */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-10px); /* 少し上に移動 */
  box-shadow: 0 15px 40px rgba(44, 62, 80, 0.15); /* 影を強調 */
}

.step h3 {
  margin: 0 0 16px;
  font-size: 1.3rem;
  color: var(--main-color);
}

.snap img {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  width: 100%; /* コンテナの幅いっぱいに表示 */
  height: 400px; /* 高さを固定して横長の見た目に */
  object-fit: cover; /* 画像の比率を保ったままトリミング */
  /*object-position: top; /* 画像の上部を表示するように調整 */
}

.snap figcaption {
  color: var(--ys-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  text-align: left;
}

.hidden { display: none !important; }

/* ============================================= */
/* 弁護士紹介ページ (lawyer.html) のスタイル */
/* ============================================= */
.lawyer-page {
  background-color: var(--bg-light); /* 薄いグレーの背景色 */
  padding-top: 60px;
  padding-bottom: 80px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.member-name {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 2px solid #6ba539; /* 緑のライン */
  display: inline-block;
  padding-bottom: 5px;
}

.furigana {
  font-size: 18px;
  color: #6ba539;
  margin-left: 8px;
}

.profile-wrapper {
  /* display: flex; は不要になるので削除 */
  margin-bottom: 40px;
}

.profile-text {
  width: 100%; /* 横幅いっぱいに広げる */
  z-index: 2;
  background: #fff; /* カードの背景色 */
  padding: 30px 40px; /* カードの内側の余白 */
  border-radius: 12px; /* カードの角を丸くする */
  box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* カードの影 */
  margin-top: 0; /* 上の余白をリセット */
}

.profile-photo {
  width: 100%;
  margin-bottom: 30px; /* 写真と挨拶の間の余白 */
  text-align: center; /* 中央寄せ */
}

.profile-photo img {
  width: 100%; /* コンテナの幅いっぱいに表示 */
  height: 350px; /* 高さを固定して横長に見せる */
  border-radius: 12px; /* 角を丸くする */
  box-shadow: 0 15px 40px rgba(0, 45, 98, 0.2); /* 強調された影 */
  object-fit: cover; /* 画像がコンテナに収まるようにトリミング */
  object-position: center 20%; /* 顔が中央に来るように上部を優先して表示 */
  filter: brightness(1.2);
}

/* lawyer.html の .section-title の定義を修正 */
.member-profile .section-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 0 10px;
  color: #333;
  border-left: 6px solid #6ba539;
  padding-left: 10px;
}
.career ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top:1px solid #ccc;
}

.career li {
  display: flex; /* Flexboxを適用 */
  align-items: flex-start; /* 上揃え */
  font-size: 16px;
  padding:10px 0;
  border-bottom:1px solid #ccc;
}

.lawyer-page .career li {
  padding: 15px 0;
}

@media (max-width: 768px) {
  .lawyer-page .career li {
    /* スマートフォンでも横並びを維持し、余白を調整 */
    flex-direction: row;
    gap: 12px;
    padding: 12px 0;
  }
  .lawyer-page .career-date {
    flex: 0 0 100px; /* 年月部分の幅を少し狭くする */
    font-size: 0.9em;
  }
}

.career-date {
  flex: 0 0 140px; /* 年月部分の幅を140pxで固定 */
  color: #666; /* 少し薄い色にする */
}
.career-event {
  flex: 1; /* 残りの幅を文章部分が使う */
}

/* フッター */
footer{background:#0f172a;color:#e2e8f0}
footer .container{padding-block:28px}
.small{font-size:.9rem;color:#94a3b8}

/* ============================================= */
/* お問い合わせページ (contact.html) のスタイル */
/* ============================================= */

.contact-page {
  background-color: #fff; /* 背景を白に設定 */
  padding: 60px 0 80px;
}

.title {
  text-align: center;
}

/*電話番号ボックスの詳細*/
.phone-box {
  background-color: #A7F1FF;
  color: #333; /* 背景が明るいので文字は濃い色に */
  text-align: center;
  padding: 20px;
  margin: 40px auto;
  max-width: 700px;
  border-radius: 10px;
}

.phone-number {
  font-size: 25px;
  font-weight: 600;
  margin: 0;
}

.reception-time {
  font-size: 15px;
  margin: 10px 0 0;
}
.announcement{
  font-weight: bold;
}

@media (max-width: 768px) {
  .phone-box {
    padding: 30px 15px;
  }
  .phone-number {
    font-size: 28px;
  }
  .reception-time {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .phone-box {
    padding: 25px 10px;
  }
  .phone-number {
    font-size: 24px;
  }
  .reception-time {
    font-size: 13px;
  }
}

.form-container {
  max-width: 750px;
  margin: 50px auto; 
  background: #fff;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-container h1{
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.heading-line {
  width: 180px;
  height: 3px;
  background-color: #2ecc71;
  margin:0 auto 20px auto;
  border-radius: 2px;
}

.form-container p {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.form-container label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-container input, .form-container textarea, .form-container select {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-container textarea {
  resize: vertical;
}

.form-container button {
  width: 100%;
  padding: 12px;
  background: #2ecc71;
  color: #fff;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.required {
  color: red;

}

/* ============================================= */
/* レスポンシブ対応 (スマートフォン向け) */
/* ============================================= */
@media (max-width: 768px) {

  /* 基本の文字サイズと行間を調整 */
  body {
    font-size: 14px;
    line-height: 1.7;
  }

  /* --- ヒーローセクション --- */
  .main {
    height: 450px; /* 高さをスマホ向けに調整 */
    padding: 0 15px;
  }
  .main-catchphrase {
    font-size: 2.0rem; /* 文字サイズを少し調整 */
    line-height: 1.5;
  }
  .sub-text {
    font-size: 1rem; /* 文字サイズを調整 */
  }

  /* --- ご挨拶セクション --- */
  .greeting {
    padding: 60px 15px;
  }
  .greeting-container {
    padding: 30px 25px;
  }
  .greeting-title {
    font-size: 1.8rem;
  }
  .greeting-content {
    gap: 30px;
  }
  .greeting-image img {
    width: 220px; /* スマホでは少し小さくしてバランス調整 */
    height: 220px;
  }

  /* --- 弁護士紹介セクション --- */
  .profile-section {
    padding: 60px 20px;
  }
  .profile-container {
    flex-direction: column; /* テキストが上、画像が下になるように並び替え */
    gap: 30px;
  }
  .background-text {
    font-size: 5rem; /* 背景文字を小さく */
    top: 40px;
  }
  .profile-image {
    aspect-ratio: 16 / 10; /* 画像の比率を横長に変更 */
    width: 100%; /* コンテナの幅いっぱいに広げる */
  }

  /* --- 業務内容セクション --- */
  .services-section {
    padding: 60px 20px;
  }
  .section-title-center {
    font-size: 1.8rem;
  }
  .section-subtitle {
    padding: 0 10px;
    margin-bottom: 40px;
  }

  /* --- アクセスセクション --- */
  .access-section {
    padding: 60px 20px;
  }
  .access-grid {
    grid-template-columns: 1fr;
  }

  /* --- 弁護士紹介ページ --- */
  .lawyer-page {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  /* --- アクセス詳細ページの画像 --- */
  .snap img {
    height: auto; /* 高さを自動に設定し、画像の比率を保つ */
  }

  /* --- 静的ページ（プライバシーポリシーなど） --- */
  .static-page {
    padding: 40px 20px 60px;
  }
  .policy-content {
    margin-top: 30px;
  }
  .policy-title {
    font-size: 1.1rem;
  }
}

/* ============================================= */
/* レスポンシブ対応 (幅の狭いスマートフォン向け) */
/* ============================================= */
@media (max-width: 375px) {
  .main-catchphrase {
    font-size: 1.8rem; /* さらに文字サイズを小さく */
  }
  .section-title-center {
    font-size: 1.6rem;
  }
  .member-name {
    font-size: 22px; /* 弁護士紹介ページの名前 */
  }
}

/* ============================================= */
/* Coming Soon ページ のスタイル */
/* ============================================= */

.coming-soon-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 220px); /* ヘッダーとフッターの高さを考慮 */
  text-align: center;
  padding: 40px 20px;
}

.coming-soon-title {
  font-family: "Noto Serif JP", serif;
  font-size: 2.8rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.coming-soon-page p {
  font-size: 1.1rem;
  color: var(--ys-muted);
  margin-bottom: 2.5rem;
}

.btn-back {
  display: inline-block;
  background: var(--ys-green);
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.3s;
}
.btn-back:hover {
  opacity: 0.85;
}

/* ============================================= */
/* サンクスページ (thanks.html) のスタイル */
/* ============================================= */

.thanks-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px); /* ヘッダーとフッターの高さを考慮 */
  text-align: center;
  padding: 40px 20px;
  background-color: #fff;
}

.thanks-icon {
  color: var(--ys-green);
  margin-bottom: 1.5rem;
}

.thanks-icon svg {
  width: 80px;
  height: 80px;
  stroke-width: 1;
}

.thanks-title {
  font-family: "Noto Serif JP", serif;
  font-size: 2.2rem;
  color: var(--main-color);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.thanks-page p {
  font-size: 1rem;
  color: var(--ys-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.sp-only { display: none; }
@media (max-width: 768px) { .sp-only { display: block; } .thanks-title { font-size: 1.8rem; } }

/* ============================================= */
/* 静的ページ (プライバシーポリシーなど) のスタイル */
/* ============================================= */

.static-page {
  background-color: #fff; /* 背景を白に変更 */
  padding: 60px 20px 80px;
}

.policy-content {
  max-width: 800px;
  margin: 40px auto 0;
  line-height: 1.8;
}

.policy-content > p {
  margin-bottom: 50px; /* 導入文と最初のセクションの間の余白を調整 */
}

.policy-section {
  /* カードスタイルを削除 */
  padding: 30px 0;
  border-bottom: 1px solid var(--ys-line); /* 下線で区切る */
  margin-bottom: 0;
}
.policy-section:last-of-type {
  border-bottom: none; /* 最後の項目は下線を消す */
}

/* 駐車場案内ページ */
.parking-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.parking-details ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-top: 1em;
}

@media (max-width: 768px) {
  .parking-info-grid {
    grid-template-columns: 1fr;
  }
}

.policy-title {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: "Noto Serif JP", serif;
  color: #002d62; /* 濃い青系で落ち着いた印象 */
  margin-top: 0;
  margin-bottom: 20px;
  border-left: 4px solid #002d62;
  padding-left: 10px;
}

.policy-content ul {
  list-style-type: disc;
  padding-left: 1.5em; /* インデントを調整 */
  margin: 1em 0 0;
  /* 背景色と角丸を削除 */
}
