* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Hiragino Mincho ProN",
    "Yu Mincho",
    serif;

  color: #222;
  line-height: 1.9;
  background: #fff;
}

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

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 120px 0;
}

.section h2 {
  margin-top: 16px;
  margin-bottom: 36px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 0.04em;
  color: #183153;
  line-height: 1.5;
}


.bg-light {
  background: #f8f7f3;
}

/* header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #e5e5e5;

  backdrop-filter: blur(10px);
}

.header-inner {
  height: 80px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #183153;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  transition: 0.3s;
}

.nav a:hover {
  color: #8c6b3f;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #183153;
  transition: .3s;
}

.nav-toggle span:nth-child(1) {
  top: 4px;
}

.nav-toggle span:nth-child(2) {
  top: 14px;
}

.nav-toggle span:nth-child(3) {
  top: 24px;
}

.nav-toggle.active span:nth-child(1) {
  top: 14px;
  transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  top: 14px;
  transform: rotate(-45deg);
}

/* hero */
.hero {
  position: relative;
  margin-top: 80px;
  min-height: 100vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  opacity: 0;
  transform: scale(1.06);

  transition:
    opacity 1.8s ease,
    transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 45, 0.55);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-subtitle,
.section-subtitle {
  color: #b59a6b;
  letter-spacing: 0.2em;
  font-size: 13px;
  font-weight: bold;
}

.hero h1 {
  margin-top: 20px;
  color: #fff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.4;
}

.hero-text {
  margin-top: 28px;
  color: rgba(255,255,255,0.9);
  max-width: 640px;
  font-size: 18px;
}

.hero-buttons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 16px 28px;
  transition: 0.3s;
}

.btn-primary {
  background: #8c6b3f;
  color: #fff;
}

.btn-primary:hover {
  background: #735630;
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.8);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

/* typography */
h2 {
  margin-top: 16px;
  margin-bottom: 36px;
  font-size: clamp(32px, 4vw, 48px);
  color: #183153;
  line-height: 1.5;
}

h3 {
  margin-bottom: 14px;
  color: #183153;
}

/* about page */
.about-page {
  padding-top: 140px;
}

.center-title {
  text-align: center;
  color: #69b3c4;
  font-size: 30px;
  margin-bottom: 36px;
}

.greeting-text {
  font-size: 15px;
  line-height: 2.1;
  margin-bottom: 90px;
}

.lawyer-name {
  text-align: right;
  margin-top: 28px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 90px;
}

.philosophy-card {
  position: relative;
  min-height: 115px;
  border: 1px solid #8fc7d2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  overflow: hidden;
}

.philosophy-card span {
  position: absolute;
  color: rgba(105, 179, 196, 0.18);
  font-size: 72px;
  font-weight: bold;
}

.philosophy-card p {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.7;
}

.office-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 70px;
  background: #fff;
}

.office-table th,
.office-table td {
  border: 1px solid #e5e5e5;
  padding: 18px 24px;
  text-align: left;
}

.office-table th {
  width: 180px;
  color: #69b3c4;
  background: #fafafa;
  text-align: center;
}

.office-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 90px;
}

.office-photo-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-access-map {
  height: 420px;
  overflow: hidden;
}

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

@media (max-width: 768px) {
  .philosophy-grid,
  .office-photo-grid {
    grid-template-columns: 1fr;
  }

  .office-table th,
  .office-table td {
    display: block;
    width: 100%;
  }

  .about-access-map {
    height: 320px;
  }
}




/* service */
.service-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  position: relative;
  background: #fcfcfb;
  padding: 44px 42px;
  border: 1px solid #e7e3dc;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.05),
    0 2px 8px rgba(0,0,0,0.03);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #8c6b3f;
}

.service-card h3 {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 600;
  color: #183153;
}

.service-card p {
  color: #555;
  line-height: 2;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #d8c7ab;
  box-shadow:
    0 18px 45px rgba(0,0,0,0.08),
    0 6px 16px rgba(0,0,0,0.05);
}

.service-list {
  list-style: none;
  margin-top: 18px;
  padding: 0;
}

.service-list li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 10px;
  line-height: 1.9;
  color: #555;
}

.service-list li::before {
  content: "○";
  position: absolute;
  left: 0;
  top: 0.2em;
  font-size: 0.7em;
  color: #555;
}


/* =========================
page hero
========================= */
.page-hero {
  position: relative;
  margin-top: 80px;
  height: 460px;
  overflow: hidden;
}

.page-hero-service {
  background:
    linear-gradient(
      rgba(20, 30, 40, 0.28),
      rgba(20, 30, 40, 0.28)
    ),
    url("../img/bg-service.png")
    center center / cover no-repeat;
}

.page-hero-flow {
  background:
    linear-gradient(
      rgba(20, 30, 40, 0.28),
      rgba(20, 30, 40, 0.28)
    ),
    url("../img/bg-flow.png")
    center center / cover no-repeat;
}

.page-hero-fee {
  background:
    linear-gradient(
      rgba(20, 30, 40, 0.28),
      rgba(20, 30, 40, 0.28)
    ),
    url("../img/bg-fee.png")
    center center / cover no-repeat;
}

.page-hero-contact {
  background:
    linear-gradient(
      rgba(20, 30, 40, 0.28),
      rgba(20, 30, 40, 0.28)
    ),
    url("../img/bg-contact.png")
    center center / cover no-repeat;
}

.flow-page {
  background: #f8f7f3;
  padding-top: 70px;
}

.page-hero-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.page-hero-content h1 {
  color: #fff;
  font-size: clamp(40px, 5vw, 72px);
  text-shadow:
    0 3px 10px rgba(0,0,0,0.25);
}

.service-page {
  background: #f8f7f3;
  padding-top: 70px;
}

@media (max-width: 768px) {
  .page-hero {
    height: 300px;
  }

  .page-hero-content h1 {
    font-size: 42px;
  }
}






/* flow */
.flow-vertical {
  max-width: 980px;
  margin: 70px auto 0;
}

.flow-card {
  display: grid;
  grid-template-columns: 90px 180px 1fr;
  align-items: center;
  gap: 34px;
  padding: 38px 46px;
  background: #fff;
  border: 1px solid #e8e3dc;
  border-radius: 12px;

  box-shadow:
    0 18px 45px rgba(0,0,0,0.08),
    0 4px 14px rgba(0,0,0,0.04);
}

.flow-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;

  background: #183153;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
  font-weight: bold;
}

.flow-image {
  display: flex;
  align-items: center;
  justify-content: center;

  border-right: 1px solid #ddd;
  padding-right: 32px;
}

.flow-image img {
  width: 120px;
  height: 90px;
  object-fit: contain;
}

.flow-content {
  padding-right: 20px;
}

.flow-content h3 {
  font-size: 28px;
  color: #183153;
  margin-bottom: 12px;
}

.flow-content p {
  color: #444;
  line-height: 2;
}

.flow-arrow {
  text-align: center;
  margin: 22px 0;
}

.flow-arrow img {
  width: 84px;
  height: auto;
  margin: 0 auto;

  filter:
    drop-shadow(0 6px 12px rgba(0,0,0,0.08));
}

@media (max-width: 768px) {
  .flow-vertical {
    margin-top: 50px;
  }

  .flow-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding:
      46px
      28px;
    text-align: center;
    border-radius: 4px;
  }

  .flow-number {
    margin: 0 auto;
    width: 86px;
    height: 86px;
    font-size: 34px;
  }

  .flow-image {
    border-right: none;
    padding-right: 0;
  }

  .flow-image img {
    width: 180px;
    height: auto;
  }

  .flow-content h3 {
    font-size: 40px;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  .flow-content p {
    font-size: 24px;
    line-height: 2;
  }

  .flow-arrow {
    margin: 28px 0;
  }

  .flow-arrow img {
    width: 74px;
  }
}




/* contact page */
.contact-page {
  background: #183153;
  color: #fff;
}

.contact-heading {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.contact-page h2 {
  color: #fff;
}

.contact-heading p {
  line-height: 2;
}

.contact-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px;
  background: rgba(255,255,255,0.08);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.16),
    0 4px 16px rgba(0,0,0,0.08);
}

.contact-info {
  padding: 10px 20px;
}

.contact-info-only {
  text-align: center;
}

.contact-note {
  margin-top: 36px;
  font-size: 16px;
  line-height: 2;
  color: rgba(255,255,255,0.9);
}

.contact-label {
  margin-bottom: 24px;
  color: #c8aa72;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.contact-tel,
.contact-fax {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.5;
  font-weight: bold;
}

.contact-fax {
  margin-top: 12px;
}

.contact-time {
  margin-top: 28px;
  font-size: 15px;
}

/* responsive */
@media (max-width: 768px) {
  .contact-panel {
    grid-template-columns: 1fr;
    padding: 38px 26px;
    gap: 34px;
  }

  .contact-info {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    padding-bottom: 34px;
  }

  .contact-info {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }

  .contact-tel,
  .contact-fax {
    font-size: 28px;
  }
}




/* fee */
.fee-lead {
  max-width: 700px;
}

.fee-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.fee-card {
  background: #fff;
  padding: 40px;
  border: 1px solid #ececec;
}

.fee-price {
  margin: 20px 0;
  font-size: 24px;
  font-weight: bold;
  color: #8c6b3f;
}

.fee-list {
  margin: 20px 0 20px 20px;
}

.fee-table-wrapper {
  margin-top: 70px;
}

.fee-table-title {
  margin-bottom: 24px;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.fee-table th,
.fee-table td {
  padding: 20px;
  border: 1px solid #e5e5e5;
  text-align: center;
}

.fee-table th {
  background: #183153;
  color: #fff;
}

.fee-note {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

.fee-bottom {
  margin-top: 60px;
  padding: 40px;
  background: #fff;
  border-left: 4px solid #8c6b3f;
}

/* responsive */
@media (max-width: 768px) {
  .fee-grid {
    grid-template-columns: 1fr;
  }

  .fee-table {
    font-size: 14px;
  }

  .fee-table th,
  .fee-table td {
    padding: 14px 10px;
  }
}



.fee-intro {
  margin-bottom: 80px;
}

.fee-simple-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-top: 30px;
  margin-bottom: 28px;
}

.fee-simple-table th,
.fee-simple-table td {
  border: 1px solid #ddd;
  padding: 20px 24px;
  text-align: left;
  vertical-align: middle;
}

.fee-simple-table th {
  width: 180px;
  color: #69b3c4;
  background: #fafafa;
  text-align: center;
  font-weight: 700;
}

.fee-simple-table td {
  color: #222;
  font-weight: 600;
}

.fee-intro .center-title {
  color: #69b3c4;
  text-align: center;
  margin-bottom: 30px;
}

.fee-intro .fee-description {
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 16px;
  color: #333;
  line-height: 2;
}

@media (max-width: 768px) {
  .fee-simple-table th,
  .fee-simple-table td {
    display: block;
    width: 100%;
    padding: 16px;
  }

  .fee-simple-table th {
    text-align: left;
  }
}


.fee-section-title {
  margin-top: 70px;
  padding-bottom: 18px;

  border-bottom: 1px solid #d8d8d8;
}

.fee-section-title h3 {
  margin: 0;
  font-weight: 700;
  color: #183153;
}

.fee-description {
  margin-top: 28px;
  margin-bottom: 60px;

  font-size: 18px;
  line-height: 2;

  color: #444;
}





/* footer */
.footer {
  padding: 50px 0;
  background: #102030;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

.footer-logo {
  margin-bottom: 10px;
  font-size: 22px;
}

.copyright {
  margin-top: 20px;
  font-size: 13px;
}



/* fade animation */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* responsive */
@media (max-width: 768px) {
  .section {
    padding: 90px 0;
  }

  .nav-toggle {
    display: block;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #183153;
    cursor: pointer;
  }

  /* .nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    display: none;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid #eee;
  } */

  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #183153;
    display: none;
    flex-direction: column;
    padding: 0;
  }

  .nav a {
    color: #fff;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    font-size: 16px;
    font-weight: 500;
  }

  .nav a:hover {
    background: rgba(255,255,255,.08);
  }

  .nav.active {
    display: flex;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
  }

  .grid-2,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }

  .flow-item {
    flex-direction: column;
    gap: 12px;
  }

  .contact-box {
    padding: 36px 24px;
  }

  .tel {
    font-size: 28px;
  }
}

/* access */
/* .access-info {
  background: #fff;
  padding: 40px;
  border: 1px solid #ececec;
}

.access-info h3 {
  margin-bottom: 24px;
}

.access-map {
  min-height: 420px;
  overflow: hidden;
}

.access-map iframe {
  width: 100%;
  height: 100%;
}*/

/* responsive */
/* @media (max-width: 768px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
  .access-map {
    min-height: 320px;
  }
} */

/* =========================
mobile fine tuning
========================= */
@media (max-width: 768px) {

  /* header */
  .logo {
    font-size: 18px;
    line-height: 1.4;
  }

  /* footer */
  .footer-logo {
    font-size: 18px;
  }

  .footer p:not(.footer-logo):not(.copyright) {
    font-size: 13px;
    line-height: 1.8;
  }

  .copyright {
    font-size: 12px;
  }

  /* flow page */
  .flow-vertical {
    margin-top: 44px;
  }

  .flow-card {
    gap: 22px;
    padding: 34px 22px;
  }

  .flow-number {
    width: 74px;
    height: 74px;
    font-size: 30px;
  }

  .flow-image img {
    width: 140px;
    height: auto;
  }

  .flow-content {
    padding-right: 0;
  }

  .flow-content h3 {
    font-size: 30px;
    line-height: 1.4;
    margin-bottom: 14px;
  }

  .flow-content p {
    font-size: 17px;
    line-height: 1.9;
  }

  .flow-arrow {
    margin: 22px 0;
  }

  .flow-arrow img {
    width: 58px;
  }
}

