@charset "UTF-8";
/* ============================================
   濱川法律事務所 リニューアル 共通スタイル
   規約: CSS variables + BEM / スペーシングは4の倍数
   デザイン: Figma「26.07.18_濱川法律事務所」PC 1280px
   ============================================ */

:root {
  /* color（Figma paint styles と対応） */
  --color-primary: #0c3264;        /* color/primary 濃紺 */
  --color-primary-light: #295288;  /* color/primary-light 中紺 */
  --color-bg-blue: #e6ebf4;        /* color/bg-blue 薄青背景 */
  --color-gold: #b38d56;           /* color/gold */
  --color-accent: #ef5739;         /* color/accent CTA橙赤 */
  --color-white: #ffffff;
  --color-text: var(--color-primary);

  /* font */
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-number: "Zen Antique", serif;

  /* layout */
  --width-content: 1200px;
  --width-page: 1280px; /* カンプ基準幅。ヘッダー/CTAはこの幅で中央寄せ */
  --header-height: 128px;

  /* effect */
  --shadow-header: 0 3px 20px rgba(0, 0, 0, 0.07);
}

/* ---------- reset（最小限） ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-white);
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  color: #fff;
  background: #0c3264;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:where([id]) {
  scroll-margin-top: 16px;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.l-container {
  max-width: var(--width-content);
  margin-inline: auto;
}

/* ============================================
   site-header ／ ヘッダー（Figma 1:421）
   ============================================ */
.site-header {
  height: var(--header-height);
  background: var(--color-white);
  box-shadow: var(--shadow-header);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
}

.site-header__inner {
  height: 100%;
  max-width: var(--width-page);
  margin-inline: auto;
  padding: 0 24px 0 16px;
  display: flex;
  flex-direction: column;
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
}

.site-header__logo {
  display: block;
}

.site-header__logo img {
  width: 213px;
  height: 49px;
  object-fit: contain;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 電話ブロック */
.header-tel {
  text-align: left;
}

.header-tel__number {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-number);
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-primary);
  text-decoration: none;
}

.header-tel__number .icon {
  width: 20px;
  height: 20px;
}

.header-tel__hours {
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  margin-top: 4px;
}

/* お問い合わせボタン（ヘッダー） */
.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 184px;
  min-height: 48px;
  padding: 8px 16px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border-radius: 5px;
  transition: opacity 0.2s;
}

.btn-contact:hover {
  opacity: 0.85;
}

.btn-contact .icon {
  width: 18px;
  height: 14px;
}

/* グローバルナビ */
.global-nav {
  margin-top: auto;
  padding-bottom: 16px;
}

.global-nav__list {
  display: flex;
  justify-content: center;
  gap: 32px; /* 料金一覧追加で10項目。追加ページカンプのヘッダー(gap32)に合わせ40から変更 */
}

.global-nav__link {
  position: relative;
  display: inline-block;
  height: 1.4em;
  overflow: hidden;
  text-decoration: none;
  padding: 0;
  font-size: 16px;
}

.global-nav__link-inner {
  display: block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.global-nav__link-text {
  display: block;
  height: 1.4em;
  line-height: 1.4em;
  color: var(--color-primary);
  white-space: nowrap;
}

.global-nav__link-text--hover {
  color: var(--color-accent);
}

.global-nav__link:hover .global-nav__link-inner {
  transform: translateY(-1.4em);
}

@media (prefers-reduced-motion: reduce) {
  .global-nav__link-inner {
    transition: none;
  }
}

.menu-toggle,
.mobile-contact-bar {
  display: none;
}

/* ============================================
   cta-contact ／ お問い合わせCTAセクション（Figma 1:417）
   ============================================ */
.cta-contact {
  position: relative;
}

.cta-contact__bg {
  position: absolute;
  inset: 0 0 306px 0;
  overflow: hidden;
}

.cta-contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-contact__band {
  position: absolute;
  inset: 584px 0 0 0;
  background: var(--color-primary-light);
}

.cta-contact__inner {
  position: relative;
  max-width: var(--width-page);
  margin-inline: auto;
  padding: 356px 116px 76px;
}

.cta-contact__card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 0 92px 64px;
  text-align: center;
  position: relative;
}

/* 見出し（英字ウォーターマーク＋和文） */
.section-heading {
  position: relative;
  padding-top: 120px;
  margin: 0;
}

.section-heading__en {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 96px;
  line-height: 1.6;
  opacity: 0.1;
  color: var(--color-primary);
  pointer-events: none;
  white-space: nowrap;
}

.section-heading__ja {
  position: relative;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.36;
  color: var(--color-primary);
}

.cta-contact__message {
  margin-top: 44px;
  font-size: 16px;
  line-height: 1.5;
}

.cta-contact__buttons {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* 電話ボタン（枠線） */
.btn-tel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 424px;
  min-height: 92px;
  border: 1px solid var(--color-primary);
  border-radius: 5px;
  text-decoration: none;
  color: var(--color-primary);
  background: var(--color-white);
}

.btn-tel__number {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-number);
  font-size: 32px;
  line-height: 1.2;
}

.btn-tel__number .icon {
  width: 24px;
  height: 24px;
}

.btn-tel__hours {
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  margin-top: 4px;
}

.btn-tel .icon--angle {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* お問い合わせボタン（大） */
.btn-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 424px;
  min-height: 92px;
  background: var(--color-accent);
  border-radius: 5px;
  color: var(--color-white);
  font-weight: 500;
  font-size: 20px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-cta:hover {
  opacity: 0.85;
}

.btn-cta .icon--envelope {
  width: 22px;
  height: 16px;
}

.btn-cta .icon--angle {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 14px;
}

/* ============================================
   site-footer ／ フッター（Figma 1:416）
   ============================================ */
.site-footer {
  background: var(--color-white);
  padding: 48px 40px 92px;
}

.site-footer__main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.site-footer__logo img {
  width: 272px;
  height: 62px;
  object-fit: contain;
}

.site-footer__address {
  margin-top: 20px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer__tel {
  margin-top: 8px;
  font-size: 14px;
}

.footer-nav {
  display: flex;
  gap: 80px;
}

.footer-nav__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-nav__link {
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-primary);
  text-decoration: none;
}

.footer-nav__link:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-footer__bottom {
  margin-top: 124px;
  padding-top: 20px;
  border-top: 1px solid var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer__copyright {
  font-size: 14px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-legal__divider {
  width: 1px;
  height: 20px;
  background: var(--color-primary);
}

.footer-legal__link {
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: none;
}

.footer-legal__link:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ============================================
   faq-row ／ FAQ行（トップ・下層共用）
   ============================================ */
.faq-row {
  display: flex;
  align-items: center;
  gap: 52px;
  min-height: 84px;
  padding: 16px 40px;
  background: var(--color-white);
  border-radius: 5px;
}

.faq-row__q {
  font-weight: 500;
  font-size: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.faq-row__text {
  font-weight: 500;
  font-size: 18px;
  color: var(--color-primary);
  flex: 1;
}

.faq-row__toggle {
  position: relative;
  width: 34px;
  height: 34px;
  background: var(--color-primary);
  flex-shrink: 0;
}

.faq-row__toggle::before,
.faq-row__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-white);
  width: 16px;
  height: 2px;
}

.faq-row__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-row[role="button"] {
  cursor: pointer;
}

.faq-row[role="button"]:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 3px;
}

.faq-row.is-open {
  flex-wrap: wrap;
}

.faq-row.is-open .faq-row__toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-row__answer {
  flex-basis: 100%;
  margin: 0 0 8px 78px;
  color: var(--color-primary);
  font-size: 16px;
  line-height: 30px;
}

/* ---------- icon 共通 ---------- */
.icon {
  display: inline-block;
}

/* ---------- ページトップへ戻るボタン ---------- */
.page-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 8;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--color-primary-light);
  border-radius: 50%;
  background: var(--color-primary-light);
  box-shadow: 0 3px 12px rgba(12, 50, 100, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.page-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.page-top img {
  width: 8px;
  height: 14px;
  transform: rotate(-90deg);
}

.page-top:hover {
  background: var(--color-primary);
}

.page-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page-top {
    transition: none;
  }
}

/* ============================================
   Tablet 共通パーツ（768px〜1279px）
   PCナビを無理に圧縮せず、SPと同じ開閉メニューを使用する
   ============================================ */
@media (min-width: 768px) and (max-width: 1279px) {
  :root {
    --header-height: 64px;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  .site-header {
    height: 64px;
  }

  .site-header__inner {
    max-width: none;
    padding: 0 0 0 16px;
    display: block;
  }

  .site-header__top {
    height: 64px;
    padding: 0;
  }

  .site-header__logo img {
    width: 177px;
    height: 40px;
  }

  .site-header__actions {
    display: none;
  }

  .menu-toggle {
    align-self: stretch;
    width: 64px;
    height: 64px;
    margin-left: auto;
    padding: 0 16px;
    border: 0;
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
  }

  .menu-toggle:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: -4px;
  }

  .menu-toggle__line {
    display: block;
    width: 33px;
    height: 1px;
    background: var(--color-white);
    transition: transform 0.2s ease;
  }

  .site-header.is-menu-open .menu-toggle__line:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .site-header.is-menu-open .menu-toggle__line:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .global-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    height: calc(100vh - 64px);
    margin: 0;
    padding: 24px clamp(32px, 8vw, 96px) 40px;
    overflow-y: auto;
    background: var(--color-white);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-header.is-menu-open .global-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .global-nav__list {
    display: block;
  }

  .global-nav__list li + li {
    border-top: 1px solid var(--color-bg-blue);
  }

  .global-nav__link {
    display: block;
    min-height: 52px;
    padding: 14px 8px;
    line-height: 24px;
    text-align: center;
  }

  .global-nav__link-text--hover {
    display: none;
  }

  .cta-contact__inner {
    padding-right: 40px;
    padding-left: 40px;
  }

  .cta-contact__card {
    padding-right: 40px;
    padding-left: 40px;
  }

  .cta-contact__buttons {
    align-items: stretch;
  }

  .btn-tel,
  .btn-cta {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
  }

  .btn-tel__number {
    font-size: clamp(24px, 3.2vw, 32px);
  }

  .site-footer {
    padding-right: 32px;
    padding-left: 32px;
  }

  .site-footer__main {
    gap: 32px;
  }

  .site-footer__logo img {
    width: 232px;
    height: auto;
  }

  .footer-nav {
    gap: clamp(24px, 5vw, 64px);
  }

  .site-footer__bottom {
    margin-top: 72px;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .cta-contact__inner {
    padding-right: 32px;
    padding-left: 32px;
  }

  .cta-contact__card {
    padding-right: 32px;
    padding-left: 32px;
  }

  .cta-contact__buttons {
    flex-direction: column;
  }

  .btn-tel,
  .btn-cta {
    width: 100%;
  }

  .site-footer__main {
    display: block;
  }

  .footer-nav {
    margin-top: 40px;
    justify-content: space-between;
  }
}

/* ============================================
   SP 共通パーツ（Figma sp_top 1:21000 / 375px）
   PC を変えないためモバイル幅だけで上書きする
   ============================================ */
@media (max-width: 767px) {
  html:has(.mobile-contact-bar) {
    --header-height: 64px;
  }

  /* sp_top のあるページだけへ適用し、未着手の下層SPを途中状態にしない */
  body:has(.mobile-contact-bar) {
  & {
    --header-height: 64px;
  }

  & {
    font-size: 16px;
    padding-bottom: 83px;
  }

  &.is-menu-open {
    overflow: hidden;
  }

  .site-header {
    height: 64px;
  }

  .site-header__inner {
    max-width: none;
    padding: 0 0 0 8px;
    display: block;
  }

  .site-header__top {
    height: 64px;
    padding: 0;
  }

  .site-header__logo img {
    width: 177px;
    height: 40px;
  }

  .site-header__actions {
    display: none;
  }

  .menu-toggle {
    align-self: stretch;
    width: 64px;
    height: 64px;
    margin-left: auto;
    padding: 0 16px;
    border: 0;
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
  }

  .menu-toggle:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: -4px;
  }

  .menu-toggle__line {
    display: block;
    width: 33px;
    height: 1px;
    background: var(--color-white);
    transition: transform 0.2s ease;
  }

  .site-header.is-menu-open .menu-toggle__line:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .site-header.is-menu-open .menu-toggle__line:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .global-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    margin: 0;
    padding: 24px 16px 40px;
    overflow-y: auto;
    background: var(--color-white);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-header.is-menu-open .global-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .global-nav__list {
    display: block;
  }

  .global-nav__list li + li {
    border-top: 1px solid var(--color-bg-blue);
  }

  .global-nav__link {
    display: block;
    min-height: 52px;
    padding: 14px 8px;
    line-height: 24px;
    text-align: center;
  }

  .mobile-contact-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9;
    height: 83px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  /* 固定化前と同じ位置から本文を始め、Figmaのセクション座標を維持する */
  .mobile-contact-bar + .intro {
    margin-top: 35px;
  }

  .mobile-contact-bar__tel,
  .mobile-contact-bar__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    text-decoration: none;
  }

  .mobile-contact-bar__tel {
    flex-direction: column;
    background: var(--color-bg-blue);
  }

  .mobile-contact-bar__number {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-number);
    font-size: 21px;
    line-height: 25px;
  }

  .mobile-contact-bar__number .icon {
    width: 20px;
    height: 20px;
  }

  .mobile-contact-bar__hours {
    font-size: 10px;
    line-height: 18px;
    letter-spacing: 0.03em;
  }

  .mobile-contact-bar__contact {
    gap: 8px;
    background: var(--color-accent);
    color: var(--color-white);
    font-weight: 500;
    font-size: 16px;
  }

  .mobile-contact-bar__contact .icon {
    width: 18px;
    height: 14px;
  }

  .page-top {
    right: 16px;
    bottom: 99px;
  }

  .cta-contact {
    min-height: 845px;
  }

  .cta-contact__bg {
    inset: 0 0 auto;
    height: 401px;
  }

  .cta-contact__bg img {
    width: 876px;
    max-width: none;
    height: 411px;
    transform: translate(-22px, -10px);
    object-fit: cover;
    object-position: center;
  }

  .cta-contact__band {
    inset: 401px 0 0;
  }

  .cta-contact__inner {
    max-width: none;
    padding: 276px 30px 72px;
  }

  .cta-contact__card {
    min-height: 497px;
    padding: 0 22px 38px;
  }

  .section-heading {
    padding-top: 72px;
  }

  .section-heading__en {
    top: -14px;
    font-size: 60px;
    line-height: 95px;
    opacity: 0.23;
  }

  .section-heading__ja {
    font-size: 30px;
    line-height: 49px;
  }

  .cta-contact__message {
    width: 254px;
    margin: 18px auto 0;
    font-size: 16px;
    line-height: 24px;
  }

  .cta-contact__buttons {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .btn-tel,
  .btn-cta {
    width: 100%;
    min-height: 69px;
  }

  .btn-tel__number {
    gap: 8px;
    font-size: 26px;
  }

  .btn-tel__number .icon {
    width: 22px;
    height: 22px;
  }

  .btn-tel__hours {
    margin-top: 0;
  }

  .btn-cta {
    gap: 8px;
    font-size: 16px;
  }

  .btn-tel .icon--angle,
  .btn-cta .icon--angle {
    right: 18px;
  }

  .site-footer {
    padding: 28px 16px 32px;
  }

  .site-footer__main {
    display: block;
  }

  .site-footer__info {
    padding: 0 36px;
  }

  .site-footer__logo img {
    width: 231px;
    height: 53px;
  }

  .site-footer__address,
  .site-footer__tel {
    font-size: 14px;
    line-height: 22px;
  }

  .site-footer__address {
    margin-top: 12px;
  }

  .site-footer__tel {
    margin-top: 0;
    white-space: nowrap;
  }

  .footer-nav {
    margin-top: 28px;
    padding: 28px 0 44px;
    border-top: 1px solid var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    display: block;
  }

  .footer-nav__col {
    gap: 0;
  }

  .footer-nav__link {
    display: block;
    min-height: 44px;
    padding: 8px;
    font-size: 16px;
    line-height: 28px;
    text-align: center;
  }

  .site-footer__bottom {
    margin-top: 10px;
    padding-top: 0;
    border-top: 0;
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
  }

  .site-footer__copyright,
  .footer-legal__link {
    font-size: 14px;
  }

  .footer-legal {
    gap: 18px;
  }
  }
}


@media (max-width: 767px) {
  .global-nav__link {
    height: auto;
    overflow: visible;
  }
  .global-nav__link-inner {
    transform: none !important;
    transition: none;
  }
  .global-nav__link-text--hover {
    display: none;
  }
}
