
/* Header */
.site-header{
  position: sticky; 
  top:0; 
  z-index:1000;
  display:flex; 
  align-items:center; 
  justify-content:space-between;
  padding:0.9rem 1.25rem; 
  background:#fff; 
  border-bottom:1px solid #eee;
}

.brand img{ 
  display:block; 
}

/* nav */
.site-nav{ 
  display:flex; 
  gap:1.2rem; 
  align-items:center;
}

.site-nav a{ 
  text-decoration:none; 
  color:#223; 
  font-weight:600; 
}

.site-nav a:hover{ 
  color:#2A5CAA; 
}

.site-nav a.btn-nav {
  color: #fff;
  background: #2A5CAA;
}
.site-nav a.btn-nav:hover {
  color: #fff;
  background: #C6A15B;
}

.btn-nav {
  padding: 0.5em 1.2em;
  border-radius: 999px;
  background: #2A5CAA;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-nav:hover {
  background: #C6A15B;
  transform: translateY(-2px);
}

/* mobile */
.nav-toggle{ display:none; background:transparent; border:0; width:40px; height:36px; }
.nav-toggle span{ display:block; height:2px; background:#223; margin:7px 0; transition:.3s; }
@media (max-width: 768px){
  .nav-toggle{ display:block; }
  .site-nav{
    position:fixed; inset:64px 0 auto 0; background:#fff;
    display:none; flex-direction:column; gap:0; border-top:1px solid #eee;
  }
  .site-nav a{ padding:1rem 1.25rem; width:100%; border-bottom:1px solid #f2f2f2; }
  .site-nav.open{ display:flex; }
}




/* HERO */

.hero {
  position: relative;
  height: 100vh;
  background: url('../img/hero_bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

/* 背景オーバーレイ（暗めの青フィルター） */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 50, 90, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.hero .tagline {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero .it {
  font-size: 1rem;
  opacity: 0.85;
}

.btn-primary {
  display: inline-block;
  background-color: #2A5CAA;
  color: #fff;
  padding: 0.9em 2em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background-color: #C6A15B;
}


/* PRACTICE */

.practice-areas {
  background: #fafafa;
  text-align: center;
  padding: 6rem 2rem;
}

.practice-areas h2 {
  font-size: 1.8rem;
  color: var(--ruri-blue);
  margin-bottom: 3rem;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ← 2列固定に */
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.practice-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.practice-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.25));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.practice-card:hover::after {
  opacity: 1;
}

.practice-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.05);
}

.practice-card h3 {
  font-size: 1.1rem;
  margin: 1.2rem 0 0.6rem;
  color: var(--ruri-blue);
}

.practice-card h3 span {
  font-size: 0.9rem;
  color: #666;
  display: block;
  font-weight: 500;
}

.practice-card p {
  font-size: 0.9rem;
  color: #333;
  padding: 0 1.2rem 1.5rem;
  line-height: 1.6;
}

/* PRACTICE MOBILE */

@media (max-width: 768px) {
  .practice-grid {
    grid-template-columns: 1fr; /* モバイルでは1列 */
    gap: 2rem;
  }
}


/* ABOUT */

.about-section {
  position: relative;
  background: url('../img/about_bg.jpg') no-repeat center center/cover;
  color: #fff;
  padding: 8rem 2rem;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* 背景を少し暗くして文字を読みやすく */
  z-index: 0;
}

.about-overlay {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.about-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-gallery {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.about-gallery img {
  width: 100%;
  border-radius: 0.8rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.about-gallery img:hover {
  transform: scale(1.03);
}


/* ATTORNEYS SECTION */
.attorney-section {
  background: #f9f9f9;
  text-align: center;
  padding: 6rem 2rem;
}

.attorney-section h2 {
  font-size: 2rem;
  color: #2A5CAA;
  margin-bottom: 3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.attorney-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.attorney-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attorney-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.attorney-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 1.2rem;
}

.attorney-card h3 {
  font-size: 1.2rem;
  color: #2A5CAA;
  margin-bottom: 0.3rem;
}

.attorney-card .role {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.attorney-card .desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}


/* CASE STUDIES SECTION */
.case-studies {
  background: #fff;
  text-align: center;
  padding: 6rem 2rem;
}

.case-studies h2 {
  font-size: 2.2rem;
  color: #2A5CAA;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.case-studies .section-lead {
  color: #555;
  font-size: 1rem;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* ARTICLES GRID */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.article-card {
  background: #f9f9f9;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.article-card h3 {
  font-size: 1.2rem;
  color: #2A5CAA;
  margin: 1rem 1rem 0.3rem;
  text-align: left;
}

.article-card .sub {
  font-size: 0.9rem;
  color: #666;
  margin: 0 1rem 0.8rem;
  text-align: left;
}

.article-card .excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  margin: 0 1rem 1.2rem;
  text-align: left;
}

.btn-read {
  display: inline-block;
  margin: 0 1rem 1.5rem;
  padding: 0.5em 1.2em;
  background: #2A5CAA;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.btn-read:hover {
  background: #234c90;
}

/* CASE LIST */
.case-list-block {
  background: #f9f9f9;
  border-top: 1px solid #eee;
  padding: 3.5rem 2rem;
}

.case-list-block h3 {
  font-size: 1.6rem;
  color: #2A5CAA;
  margin-bottom: 2rem;
  font-weight: 700;
}

.case-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

.case-list li {
  background: #fff;
  margin-bottom: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: 0.8rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  line-height: 1.6;
}

.case-list strong {
  color: #2A5CAA;
}


/* CONTACT SECTION */
.contact-section {
  background: #f9f9f9;
  text-align: center;
  padding: 6rem 2rem;
  border-top: 1px solid #eee;
}

.contact-section h2 {
  font-size: 2rem;
  color: #2A5CAA;
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact-lead {
  color: #555;
  font-size: 1rem;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #333;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #2A5CAA;
  outline: none;
}

.btn-primary {
  display: inline-block;
  padding: 0.8em 2em;
  background: #2A5CAA;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #234c90;
}


/* OFFICE INFO SECTION */
.office-info {
  background: #fff;
  padding: 5rem 2rem;
  border-top: 1px solid #eee;
}

.office-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.office-details h3 {
  font-size: 1.5rem;
  color: #2A5CAA;
  margin-bottom: 0.8rem;
}

.office-details p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 0.8rem;
}

.office-details .hours {
  font-size: 0.95rem;
  color: #555;
  margin-top: 1rem;
}

.office-map iframe {
  width: 100%;
  height: 280px;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .office-info {
    padding: 4rem 1.5rem;
  }
  .office-map iframe {
    height: 240px;
  }
}




/* FOOTER
--------------------------------------- */
footer {
  background: #f8f8f8;  /* 完全な白より、少しトーン落とすと上品 */
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0,0,0,0.05); /* 境界を軽く */
}

footer p {
  color: #444;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

footer small {
  opacity: 0.8;
}

