/* リセットに近い簡易設定 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f7f7f7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* 共通レイアウト */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

section {
  padding: 60px 0;
}

h2.section-title {
  font-size: 1.8rem;
  margin-bottom: 24px;
  border-left: 4px solid #1a4b8c;
  padding-left: 12px;
  font-weight: 600;
  position: relative;
  letter-spacing: 0.02em;
}

/* ヘッダー */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffffdd;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo span.jp {
  font-size: 0.9rem;
}

.logo span.en {
  font-size: 0.65rem;
  color: #666;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  font-size: 0.9rem;
  position: relative;
  transition: color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #1a4b8c;
  transition: width 0.3s ease-out;
}

nav a:hover {
  color: #1a4b8c;
}

nav a:hover::after {
  width: 100%;
}

.header-contact-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #1a4b8c;
  font-size: 0.85rem;
  background-color: #1a4b8c;
  color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.header-contact-btn:hover {
  background-color: #fff;
  color: #1a4b8c;
  box-shadow: 0 2px 8px rgba(26,75,140,0.2);
}

/* ハンバーガーメニュー（スマホ用） */
.hamburger {
  display: none;
  width: 26px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: #333;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 12px 0 16px;
}

.mobile-nav a {
  font-size: 0.95rem;
}

.mobile-nav-open {
  display: flex;
}

.hamburger-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger-active span:nth-child(2) {
  opacity: 0;
}
.hamburger-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ヒーロー */
.hero {
  background: linear-gradient(135deg, #12294a, #1a4b8c);
  color: #fff;
  padding: 80px 0 70px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-copy {
  flex: 1 1 320px;
}

.hero-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 2.1rem;
  margin-bottom: 18px;
  font-weight: 600;
}

.hero-lead {
  font-size: 0.98rem;
  margin-bottom: 28px;
  opacity: 0.95;
}

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

.hero-btn-main,
.hero-btn-sub {
  padding: 10px 22px;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid #fff;
  background-color: #fff;
  color: #1a4b8c;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.hero-btn-main:hover,
.hero-btn-sub:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-btn-sub {
  background-color: transparent;
  color: #fff;
}

.hero-btn-sub:hover {
  background-color: rgba(255,255,255,0.2);
}

.hero-meta {
  margin-top: 16px;
  font-size: 0.8rem;
  opacity: 0.8;
}

.hero-visual {
  flex: 1 1 280px;
  min-width: 260px;
  display: flex;
  justify-content: center;
}

.hero-card {
  background-color: #ffffff10;
  border-radius: 16px;
  padding: 18px 18px 14px;
  backdrop-filter: blur(6px);
  border: 1px solid #ffffff33;
  max-width: 360px;
  width: 100%;
}

.hero-card-title {
  font-size: 0.95rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.hero-card-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.hero-card-meta {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* 事務所概要 */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: flex-start;
}

.about-text p {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.about-list {
  margin-top: 12px;
  font-size: 0.92rem;
}

.about-list li {
  margin-bottom: 6px;
  padding-left: 1em;
  position: relative;
}

.about-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.9rem;
}

.about-table th,
.about-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}

.about-table th {
  width: 32%;
  background-color: #f3f6fb;
  font-weight: 500;
  text-align: left;
}

.about-table tr:last-child th,
.about-table tr:last-child td {
  border-bottom: none;
}

/* 取扱分野 */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.area-card {
  background-color: #fff;
  border-radius: 14px;
  padding: 16px 16px 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid #f0f0f0;
}

.area-card:hover {
  box-shadow: 0 8px 16px rgba(26,75,140,0.1);
  transform: translateY(-4px);
}

.area-card-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: #1a4b8c;
}

.area-card ul {
  margin-top: 4px;
  font-size: 0.86rem;
}

.area-card li {
  margin-bottom: 3px;
}

/* 弁護士紹介 */
.lawyers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lawyer-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid #f0f0f0;
}

.lawyer-card:hover {
  box-shadow: 0 8px 16px rgba(26,75,140,0.1);
  transform: translateY(-4px);
}

.lawyer-img-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 6px;
}

.lawyer-name {
  font-weight: 600;
  font-size: 1rem;
}

.lawyer-name-en {
  font-size: 0.8rem;
  color: #666;
}

.lawyer-meta {
  font-size: 0.8rem;
  color: #555;
}

.lawyer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.lawyer-tag {
  font-size: 0.75rem;
  padding: 3px 7px;
  border-radius: 999px;
  background-color: #eef3fb;
  color: #1a4b8c;
}

/* ニュース */
.news-section {
  background-color: #f9fafb;
}

.news-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.news-featured {
  display: flex;
}

.news-large-item {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-left: 4px solid #1a4b8c;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.news-large-item:hover {
  box-shadow: 0 8px 16px rgba(26,75,140,0.12);
  transform: translateY(-2px);
}

.news-large-item .news-date {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
}

.news-large-item .news-label {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
  background-color: #e3edf9;
  color: #1a4b8c;
  margin-bottom: 10px;
  width: fit-content;
}

.news-large-item .news-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-large-item .news-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

.news-list {
  background-color: #fff;
  border-radius: 16px;
  padding: 16px 16px 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  font-size: 0.9rem;
}

.news-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  width: 90px;
  font-size: 0.8rem;
  color: #666;
  flex-shrink: 0;
}

.news-label {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 999px;
  background-color: #e3edf9;
  color: #1a4b8c;
  margin-right: 0;
  flex-shrink: 0;
}

.news-title {
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
}

.news-link-row {
  text-align: center;
  margin-top: 20px;
}

.news-viewmore {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid #1a4b8c;
  color: #1a4b8c;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.news-viewmore:hover {
  background-color: #1a4b8c;
  color: #fff;
}

/* アクセス */
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr);
  gap: 24px;
}

.map-placeholder {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.access-text p {
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.access-text dl {
  font-size: 0.9rem;
}

.access-text dt {
  font-weight: 600;
  margin-top: 8px;
}

.access-text dd {
  margin-left: 0;
  margin-top: 2px;
}

/* グローバルネットワーク */
#global {
  background-color: #f9fafb;
}

.global-intro {
  text-align: center;
  margin-bottom: 24px;
}

.global-intro p {
  font-size: 0.95rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

.global-network {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.network-region {
  background-color: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.network-region:hover {
  box-shadow: 0 4px 12px rgba(26,75,140,0.08);
  transform: translateY(-2px);
}

.network-region h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a4b8c;
  margin-bottom: 12px;
}

.network-offices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.office {
  font-size: 0.9rem;
  padding: 6px 0;
  color: #555;
  border-bottom: 1px solid #eee;
}

.office:last-child {
  border-bottom: none;
}

.global-note {
  text-align: center;
  background-color: #eef3fb;
  border-radius: 12px;
  padding: 14px;
}

.global-note p {
  font-size: 0.9rem;
  color: #1a4b8c;
}

/* セミナー・イベント */
#insights {
  background-color: #fff;
}

.seminars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.seminar-card {
  background-color: #f9fafb;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.seminar-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.seminar-date {
  font-size: 0.8rem;
  color: #1a4b8c;
  font-weight: 600;
}

.seminar-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
}

.seminar-meta {
  font-size: 0.8rem;
  color: #666;
}

.seminar-desc {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  flex: 1;
}

.seminar-cta {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: #e3edf9;
  color: #1a4b8c;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: center;
}

.seminar-cta:hover {
  background-color: #1a4b8c;
  color: #fff;
}

.insights-link-row {
  text-align: center;
}

.insights-viewmore {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid #1a4b8c;
  color: #1a4b8c;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.insights-viewmore:hover {
  background-color: #1a4b8c;
  color: #fff;
}

/* お問い合わせ */
.contact-wrapper {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.contact-intro {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.contact-form-row {
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.contact-form-row label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.required {
  color: #c0392b;
  font-size: 0.8rem;
  margin-left: 4px;
}

.contact-form-row input,
.contact-form-row textarea,
.contact-form-row select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-row input:focus,
.contact-form-row textarea:focus,
.contact-form-row select:focus {
  outline: none;
  border-color: #1a4b8c;
  box-shadow: 0 0 0 3px rgba(26,75,140,0.1);
}

.contact-form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-note {
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
}

.contact-submit-row {
  text-align: center;
  margin-top: 8px;
}

.contact-submit-btn {
  padding: 10px 40px;
  border-radius: 999px;
  border: none;
  background-color: #1a4b8c;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  font-weight: 500;
}

.contact-submit-btn:hover {
  background-color: #163c6d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26,75,140,0.3);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

/* フッター */
footer {
  margin-top: 40px;
  background: linear-gradient(135deg, #1a2342, #2a3a5a);
  color: #d1d5db;
  font-size: 0.8rem;
  padding: 28px 0 20px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: #fff;
}

.footer-copy {
  text-align: right;
  margin-top: 8px;
  color: #9ca3af;
}

/* レスポンシブ */
@media (max-width: 960px) {
  .about-grid,
  .areas-grid,
  .lawyers-grid,
  .access-grid,
  .global-network,
  .news-container,
  .seminars-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .areas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lawyers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .global-network {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .seminars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .hero {
    padding: 72px 0 50px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .areas-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .lawyers-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .seminars-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .global-network {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    text-align: left;
  }
}
