/* ===========================
   はやぶさ法律事務所 LP
   テーマ：信頼感・安心感・現代的
=========================== */

:root {
  --navy: #1a2e4a;
  --navy-dark: #0f1e30;
  --navy-mid: #243d5c;
  --gold: #b8902a;
  --gold-light: #d4af70;
  --gold-pale: #fdf6e3;
  --white: #ffffff;
  --gray: #f5f5f0;
  --gray-mid: #e8e8e2;
  --text: #2c2c2c;
  --text-mid: #555555;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(26,46,74,0.10);
  --shadow-lg: 0 8px 40px rgba(26,46,74,0.15);
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.header.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 12px 0;
}

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

.header__logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}

.logo__en {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  font-weight: 500;
}

.logo__ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color var(--transition);
  letter-spacing: 0.03em;
}

.header__nav a:hover { color: var(--gold-light); }

.btn-header {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: background var(--transition) !important;
}

.btn-header:hover { background: var(--gold-light) !important; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  background: var(--navy-dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(184,144,42,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(26,46,74,0.8) 0%, transparent 60%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.015) 40px,
    rgba(255,255,255,0.015) 41px
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero__tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  border: 1px solid rgba(212,175,112,0.4);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.hero__title span {
  color: var(--gold-light);
}

.hero__desc {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin-bottom: 40px;
  line-height: 1.9;
}

.hero__btns {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-tel {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--navy-dark) !important;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-tel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn-tel__icon { font-size: 20px; }

.btn-tel small {
  display: block;
  font-size: 10px;
  color: var(--text-mid);
  letter-spacing: 0.05em;
}

.btn-tel strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: 0.05em;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.hero__note {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
}

.hero__badges {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 14px 20px;
  min-width: 220px;
  backdrop-filter: blur(4px);
}

.badge__icon { font-size: 24px; }

.badge__text strong {
  display: block;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.badge__text span {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { opacity: 1; transform: scaleY(1) translateY(0); }
  100% { opacity: 0; transform: scaleY(0.3) translateY(20px); }
}

/* ===== Section common ===== */
section { padding: 96px 0; }

.sec-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.sec-label.center { text-align: center; }
.sec-label.light { color: var(--gold-light); }

.sec-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.5;
  margin-bottom: 20px;
}

.sec-title.center { text-align: center; }
.sec-title.light { color: var(--white); }

.sec-desc {
  color: var(--text-mid);
  font-size: 15px;
  margin-bottom: 48px;
  line-height: 1.9;
}

.sec-desc.center { text-align: center; }
.sec-desc.light { color: rgba(255,255,255,0.65); }

/* ===== Fade-in animation ===== */
.fade-in, .fade-in-delay {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-delay { transition-delay: 0.2s; }

.fade-in.visible, .fade-in-delay.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== About ===== */
.about { background: var(--gray); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__text p {
  color: var(--text-mid);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.9;
}

.about__info {
  margin-top: 32px;
  border-top: 1px solid var(--gray-mid);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  gap: 16px;
  font-size: 14px;
  align-items: flex-start;
}

.info-label {
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  min-width: 72px;
  padding-top: 2px;
}

/* ===== Services ===== */
.services { background: var(--white); }

.services__tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  flex: 1;
  padding: 14px 24px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
}

.tab-btn.active {
  background: var(--navy);
  color: var(--white);
}

.services__content { display: block; }
.services__content.hidden { display: none; }

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

.svc-card {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.svc-card__icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.svc-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.svc-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.svc-card li {
  font-size: 13px;
  color: var(--text-mid);
  padding-left: 14px;
  position: relative;
  line-height: 1.6;
}

.svc-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 11px;
  top: 3px;
}

.services__retainer {
  margin-top: 48px;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 32px 40px;
}

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

.retainer__icon { font-size: 36px; }

.retainer__text h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.retainer__text p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  flex: 1;
}

.retainer__text { flex: 1; }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--gold-light);
  color: var(--gold-light);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.btn-outline:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* ===== Lawyers ===== */
.lawyers { background: var(--gray); }

.lawyers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.lawyer-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 160px 1fr;
}

.lawyer-card__photo {
  background: var(--navy);
}

.lawyer-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.lawyer-photo-placeholder span {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
}

.lawyer-card__info {
  padding: 28px 24px;
}

.lawyer-card__role {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.lawyer-card__name {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.name-en {
  font-size: 12px;
  color: var(--text-mid);
  font-weight: 400;
  letter-spacing: 0.1em;
  font-family: 'Noto Sans JP', sans-serif;
}

.lawyer-card__desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ===== Flow ===== */
.flow { background: var(--white); }

.flow__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 56px;
}

.flow-step {
  flex: 1;
  text-align: center;
  padding: 0 12px;
}

.flow-step__num {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.flow-step__icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 72px;
  height: 72px;
  background: var(--navy);
  border-radius: 50%;
  margin: 0 auto 16px;
}

.flow-step h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.flow-step p {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.7;
}

.flow__arrow {
  color: var(--gold);
  font-size: 20px;
  padding-top: 28px;
  flex-shrink: 0;
  opacity: 0.5;
}

/* ===== Contact ===== */
.contact {
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(184,144,42,0.12) 0%, transparent 70%);
}

.contact > .container { position: relative; z-index: 1; }

.contact__tel {
  text-align: center;
  margin-bottom: 32px;
}

.tel-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  text-decoration: none;
  padding: 18px 40px;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transition: transform var(--transition);
  margin-bottom: 16px;
}

.tel-btn:hover { transform: translateY(-2px); }

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

.tel-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: 0.05em;
}

.tel-note {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  line-height: 1.7;
}

.contact__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact__divider::before,
.contact__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.contact__divider span {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

.contact__form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}

.req {
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  transition: border-color var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-group select option { background: var(--navy-dark); color: var(--white); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-light);
  background: rgba(255,255,255,0.1);
}

.btn-submit {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 18px;
  border-radius: var(--radius);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.05em;
}

.btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  background: #080f1a;
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer__logo .logo__en {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.footer__logo .logo__ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__info p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__nav a:hover { color: var(--gold-light); }

.footer__copy {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  width: 100%;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__badges {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .badge { min-width: calc(50% - 8px); }

  .about__inner { grid-template-columns: 1fr; }

  .svc-grid { grid-template-columns: 1fr 1fr; }

  .lawyers__grid { grid-template-columns: 1fr; }

  .flow__steps {
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .flow__arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }

  .retainer__inner { flex-direction: column; text-align: center; }

  .form-row.two-col { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .header__nav { display: none; }

  .hero__title { font-size: 28px; }

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

  .svc-grid { grid-template-columns: 1fr; }

  .lawyer-card { grid-template-columns: 1fr; }

  .lawyer-card__photo { min-height: 120px; }

  .lawyer-photo-placeholder span { writing-mode: horizontal-tb; }

  .badge { min-width: 100%; }
}
