@charset "UTF-8";

/* ============================================================
   レゾネイト法律事務所 - 共通スタイルシート
   ============================================================ */

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

/* デザイントークン */
:root {
  --blue: #2A7EBF;
  --blue-dark: #1F6299;
  --blue-light: #E8F4FC;
  --navy: #1A3A5C;
  --navy-dark: #112744;
  --text: #1e2a35;
  --text-soft: #3a4a5c;
  --muted: #607080;
  --border: #D0E8F5;
  --border-soft: #E8EEF3;
  --bg: #F7FBFE;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(26, 58, 92, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 58, 92, 0.06);
  --shadow-lg: 0 8px 24px rgba(26, 58, 92, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --content-width: 1080px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ============================================================
   ヘッダー / ナビゲーション
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
}

.logo a {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo a:hover {
  color: var(--blue);
}

.logo-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--blue);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--blue);
}

/* ============================================================
   ヒーロー / ページヘッダー
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #EAF5FC 0%, #F7FBFE 60%, #FFFFFF 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(42, 126, 191, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.hero .lead {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ページヘッダー（下層ページ用） */
.page-header {
  background: linear-gradient(135deg, #EAF5FC 0%, #F7FBFE 80%);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}

.page-header .sec-tag {
  margin-bottom: 0.6rem;
}

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.page-header .sub {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 26px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
}

.btn-arrow {
  width: 14px;
  height: 14px;
}

/* ============================================================
   セクション共通
   ============================================================ */
.section {
  padding: 4rem 1.5rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.section-narrow {
  max-width: 880px;
}

.section-bg {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-bg .section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.sec-header {
  text-align: left;
  margin-bottom: 2rem;
}

.sec-header.center {
  text-align: center;
}

.sec-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.sec-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.sec-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.sec-link {
  margin-top: 1rem;
  text-align: right;
}

.sec-link a {
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sec-link a:hover {
  color: var(--blue-dark);
}

/* ============================================================
   お知らせ
   ============================================================ */
.news-list {
  border-top: 1px solid var(--border-soft);
}

.news-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: flex-start;
  transition: background var(--transition);
}

.news-item:hover {
  background: var(--bg);
}

.news-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 4px;
  min-width: 84px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.news-badge {
  font-size: 11px;
  background: var(--blue-light);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  white-space: nowrap;
  margin-top: 3px;
  font-weight: 500;
}

.news-text {
  font-size: 14px;
  color: var(--text);
  flex: 1;
  line-height: 1.7;
}

.news-empty {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ============================================================
   業務内容（カード）
   ============================================================ */
.pa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.pa-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  background: var(--white);
  transition: all var(--transition);
}

.pa-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pa-card h3 {
  font-size: 15px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
}

.pa-icon {
  width: 32px;
  height: 32px;
  background: var(--blue-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.pa-icon svg {
  width: 16px;
  height: 16px;
}

.pa-card .pa-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.8;
}

.pa-card ul {
  padding: 0;
}

.pa-card ul li {
  font-size: 13px;
  color: var(--text-soft);
  padding: 7px 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.6;
}

.pa-card ul li:last-child {
  border-bottom: none;
}

.pa-card ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ============================================================
   弁護士紹介
   ============================================================ */
.atty-wrap {
  display: grid;
  gap: 1.6rem;
}

.atty-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* 写真付きの場合のレイアウト */
.atty-card.has-photo {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: stretch;
}

.atty-photo {
  position: relative;
  background: var(--blue-light);
  overflow: hidden;
  min-height: 100%;
}

.atty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.atty-info {
  padding: 1.8rem;
}

.atty-info h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.atty-info .role {
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.atty-info .bio {
  font-size: 13.5px;
  color: var(--text-soft);
  margin-bottom: 1rem;
  line-height: 1.85;
}

.tags {
  margin-bottom: 1.2rem;
}

.tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11px;
  padding: 4px 11px;
  border-radius: 20px;
  margin: 2px 4px 2px 0;
  border: 1px solid var(--border);
  font-weight: 500;
}

.career-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  margin-top: 0.6rem;
}

.career-table td {
  padding: 7px 0;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

.career-table td:first-child {
  color: var(--muted);
  width: 90px;
  font-variant-numeric: tabular-nums;
}

.career-table tr:last-child td {
  border-bottom: none;
}

details.atty-details {
  margin-top: 1.4rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 1rem;
}

details.atty-details summary {
  font-size: 13px;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

details.atty-details summary::-webkit-details-marker {
  display: none;
}

details.atty-details summary::before {
  content: "▶";
  font-size: 9px;
  transition: transform var(--transition);
}

details.atty-details[open] summary::before {
  transform: rotate(90deg);
}

.details-body {
  margin-top: 1rem;
}

.details-body h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin: 1rem 0 0.4rem;
  letter-spacing: 0.04em;
}

.details-body h4:first-child {
  margin-top: 0;
}

.details-body ul {
  padding: 0;
}

.details-body ul li {
  font-size: 12.5px;
  color: var(--text-soft);
  padding: 3px 0 3px 14px;
  position: relative;
  line-height: 1.85;
}

.details-body ul li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* ============================================================
   アクセス・お問い合わせ
   ============================================================ */
.access-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: start;
}

.info-row {
  display: flex;
  gap: 14px;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}

.info-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.info-icon svg {
  width: 16px;
  height: 16px;
}

.info-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.info-val {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
}

.info-val a {
  color: var(--blue);
}

.info-val a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  display: block;
}

.map-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.7rem;
  line-height: 1.85;
}

/* 地図タブ */
.map-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-soft);
}

.map-tab {
  background: none;
  border: none;
  padding: 9px 18px;
  font-size: 13px;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.map-tab:hover {
  color: var(--blue);
}

.map-tab.is-active {
  color: var(--blue);
  font-weight: 600;
}

.map-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
}

.map-panel {
  display: none;
}

.map-panel.is-active {
  display: block;
}

/* 簡易地図画像 */
.simple-map {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 1rem;
  text-align: center;
}

.simple-map img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ============================================================
   プライバシーポリシー
   ============================================================ */
.legal-content {
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-soft);
}

.legal-content h2 {
  font-size: 1rem;
  color: var(--navy);
  margin: 2rem 0 0.6rem;
  font-weight: 700;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border-soft);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li, .legal-content ol li {
  list-style: disc;
  margin-bottom: 0.4rem;
  padding-left: 0.4rem;
}

.legal-content ol li {
  list-style: decimal;
}

.legal-meta {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   404
   ============================================================ */
.error-wrap {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.02em;
}

.error-msg {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.error-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 2rem;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand .footer-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}

.footer-brand p {
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: var(--content-width);
  margin: 2.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 1rem;
    height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-soft);
    padding: 0.5rem 0;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: var(--shadow-md);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 1.5rem;
    border-bottom: 1px solid var(--border-soft);
    font-size: 14px;
  }

  .nav-links a.is-active::after {
    display: none;
  }

  .nav-links a.is-active {
    background: var(--blue-light);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .hero {
    padding: 3.5rem 1rem 3rem;
  }

  .page-header {
    padding: 2.5rem 1rem 2rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section-bg .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .access-wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* スマホでは写真を上、情報を下に */
  .atty-card.has-photo {
    grid-template-columns: 1fr;
  }

  .atty-photo {
    height: 280px;
  }

  .atty-photo img {
    object-position: center 20%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .news-item {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .news-date {
    min-width: 0;
    padding-top: 0;
  }

  .news-text {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .pa-card {
    padding: 1.3rem;
  }

  .atty-info {
    padding: 1.4rem;
  }
}

/* ============================================================
   アクセシビリティ
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  z-index: 200;
}

.skip-link:focus {
  top: 0;
}
