@charset "UTF-8";
/*
Theme Name: LEGALUS
Author: LEGALUS
Author URI: https://legalus.jp/
Version: 1.0
*/

/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;900&display=swap');

/* Variables */
:root {
  /* color */
  --color-theme: #2C3E50;
  /* background */
  --color-background: var(--color-theme);
  --color-on-background: #ffffff;
  /* primary */
  --color-primary-50:  #EDF2F7;
  --color-primary-100: #D6E0EA;
  --color-primary-200: #B8C9D8;
  --color-primary-300: #8FA9C0;
  --color-primary-400: var(--color-theme);
  --color-primary-500: #253544;
  --color-primary-600: #1F2C38;
  --color-primary-700: #19242E;
  --color-primary-800: #131C23;
  --color-primary-900: #0D1318;
  --color-primary: var(--color-primary-400);
  --color-on-primary: #ffffff;
  --color-primary-darker: var(--color-primary-500);
  --color-on-primary-darker: var(--color-on-primary);
  --color-primary-dark: var(--color-primary-600);
  --color-on-primary-dark: var(--color-on-primary);
  --color-primary-light: var(--color-primary-200);
  --color-primary-pale: var(--color-primary-100);
  --color-on-primary-pale: var(--color-primary-darker);
  --color-primary-super-pale: var(--color-primary-50);
  /* secondary */
  --color-secondary: #CC8D3A;
  --color-secondary-darker: #8F5F1F;
  --color-secondary-dark: #A86F28;
  --color-secondary-light: #D9A45C;
  --color-secondary-pale: #EBCB9B;
  --color-secondary-super-pale: #F7E8D2;
  /* gray scale */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  /* other color */
  --color-white: #ffffff;
  --color-black: #333333;
  --color-gray: var(--color-gray-500);
  /* semantic colors */
  --color-error: #dc2626;
  --color-error-light: #fee2e2;
  --color-error-dark: #991b1b;
  --color-success: #16a34a;
  --color-success-light: #dcfce7;
  --color-warning: #ea580c;
  --color-warning-light: #ffedd5;
  --color-info: #0284c7;
  --color-info-light: #e0f2fe;
  /* typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 16px;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-default: var(--font-size-base);
  --font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", "MS PGothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-en-title: var(--font-family);
  --line-height-tight: 1.5;
  --line-height-base: 2;
  --line-height-loose: 2;
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 0.1em;
  /* spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  /* size */
  --header-height: 60px;
  --max-content-width: 1280px;
  --drawer-menu-width: 300px;
  /* breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  /* round */
  --round-large: 10px;
  --round-medium: 6px;
  --round-small: 4px;
  /* others */
  --opacity-hover: 0.75;
  --opacity-disabled: 0.5;
  /* shadow system */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-default: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  --box-shadow-default: var(--shadow-default);
  --box-shadow-hover: var(--shadow-md);
  --box-shadow-active: var(--shadow-lg);
  --scroll-margin: 10px;
  /** parts */
  --bottom-float-show: 28px;
}

/* html, body */
html {
  font-size: var(--font-size-default);
  font-family: var(--font-family);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: var(--letter-spacing-wide);
  overflow-x: clip;
}
body {
  font-size: var(--font-size-base);
  letter-spacing: var(--letter-spacing-normal);
  line-height: var(--line-height-base);
  color: var(--color-on-background);
  font-weight: 400;
  color: var(--color-on-background);
  overflow-x: clip;
}

/* Shawodw */
#shadow {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 99;
}
body.shadow {
  overflow: hidden;
}
body.shadow #shadow {
  display: block;
}

/* DOM */
main {
  overflow: hidden;
  padding-top: var(--header-height);
}
main#top-main {
  padding-bottom: 0;
}
section {
  position: relative;
  padding: 3rem 0;
}
/* Wrapper */
.wrapper {
  padding: 0 1rem;
}
section .wrapper .content + .content {
  margin-top: 1.5rem;
}

/* Object */
h1 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-normal);
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 1.25rem;
}
h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-normal);
  font-weight: 600;
  color: var(--color-secondary-light);
  margin-bottom: 1rem;
}
h4 {
  font-size: clamp(1.05rem, 2vw, 1.125rem);
  line-height: var(--line-height-tight);
  font-weight: 500;
  color: var(--color-secondary-dark);
  margin-bottom: 0.875rem;
}
h5 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-tight);
  font-weight: 500;
  color: var(--color-primary-light);
  margin-bottom: 0.75rem;
}
p {
  line-height: var(--line-height-base);
}
p + p {
  margin-top: 1rem;
}
.lead-desc {
  margin-top: 1rem;
}
/* text-align */
.t-align-center {
  text-align: center;
}
.t-align-left {
  text-align: left;
}
.t-align-right {
  text-align: right;
}
.t-align-justify {
  text-align: justify;
}
a {
  color: var(--color-white);
}

/* Image */
.images {
  margin-top: 1rem;
}
.images img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* Iframe */
iframe {
  vertical-align: bottom;
}

/* Button */
.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}
.buttons .button {
  flex: 0 1 auto;
}

/* Button Base */
.button a,
.services-list-button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: clamp(.875rem, 2vw, 1rem);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  background-color: var(--color-secondary-light);
  color: var(--color-primary);
  padding: 0.75rem 2rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.button a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
}
.services-list-button a {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
}
.button a:active,
.services-list-button a:active {
  transform: translateY(0);
}
.button a:focus-visible,
.services-list-button a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.button a:disabled,
.services-list-button a:disabled {
  opacity: var(--opacity-disabled);
  cursor: not-allowed;
  pointer-events: none;
}

/* header */
header {
  display: flex;
  position: fixed;
  flex-wrap: nowrap;
  align-items: center;
  z-index: 100000;
  left: 0;
  top: 0;
  font-size: 0;
  height: var(--header-height);
  width: 100%;
  padding: .5rem 1rem;
  border: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  background-color: var(--color-white);
  box-shadow: var(--box-shadow-default);
}
header .header-logo a img {
  max-height: clamp(24px, 2vw, 40px);
  height: calc(var(--header-height) - 1rem);
  width: auto;
}
header .global-menu,
header .global-block-menu {
  display: none;
}
header #hamburger {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--header-height);
  height:var(--header-height);
  cursor: pointer;
  z-index: 999999;
}
header #hamburger span{
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 13px;
  height: 3px;
  background-color: var(--color-primary);
  width: 50%;
}
header #hamburger span:first-child {
  top:25px;
}
header #hamburger span:last-child {
  top:32px;
}
header #hamburger.open span:first-child {
  top: 20px;
  left: 16px;
  transform: translateY(6px) rotate(-45deg);
  width: 35%;
  background-color: var(--color-on-background);
}
header #hamburger.open span:last-child {
  top: 32px;
  left: 16px;
  transform: translateY(-6px) rotate(45deg);
  width: 35%;
  background-color: var(--color-on-background);
}

/* Drawer Menu */
#drawer-menu {
  position: fixed;
  top: 0;
  width: 320px;
  right: 0;
  transform: translateX(100%);
  height: calc(var(--stable-vh, 1vh) * 100);
  background-color: var(--color-background);
  z-index: 99999;
  transition: transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
#drawer-menu ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  min-height: auto;
  flex: 0 1 auto;
}
#drawer-menu ul li {
  list-style: none;
}
#drawer-menu ul li a {
  text-decoration: none;
  display: block;
  font-weight: bold;
  color: var(--color-on-background);
  font-size: 1rem;
  padding: .5rem;
  transition: all .2s;
  line-height: normal;
}
#drawer-menu ul li a .ja {
  display: block;
}
#drawer-menu ul li a .en {
  color: var(--color-secondary-dark);
  font-size: .75em;
}
#drawer-menu.show {
  transform: translateX(0);
}

/* #mv */
#mv {
  position: relative;
  width: 100%;
}
#mv .mv-img img {
  width: 100%;
  height: 50%;
  max-height: 65svh;
  object-fit: cover;
  object-position: center;
  vertical-align: bottom;
}
#mv .mv-lead-text {
  margin-top: 2rem;
  text-align: center;
}
#mv .mv-lead-text p {
  font-size: clamp(.875rem, 4vw, 1.25rem);
  line-height: 2;
  color: var(--color-on-background);
  margin: 0;
}

/* #for-customer */
#for-customer .wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
#for-customer .customer-images {
  margin-top: 2rem;
}

/* Services Select Buttons */
.services-select-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}
.services-select-button {
  flex: 0 1 auto;
}
.services-select-button a {
  display: block;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.services-select-button a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.services-select-button a img {
  display: block;
  width: 100%;
  height: auto;
}

/* Select Button */
#select-button {
  background: var(--color-background) !important;
}

/* wave divider */
.wave-divider {
  position: relative;
  width: 100%;
  height: 150px;
}
.wave-divider.top {
  scale: 1 -1;
}
.page-wave-divider {
  margin-top: -9rem;
}
#wave-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* #greeting */
#greeting .greet-name {
  text-align: right;
  font-size: 1.2em;
  margin-top: 2rem;
}
#greeting .greet-name small {
  font-size: 0.75em;
  color: var(--color-gray);
}
.greeting-images {
  position: relative;
  margin: 3rem auto;
}
.greeting-images img {
  display: block;
}
.greeting-images img:nth-child(1) {
  width: 60%;
  margin-left: auto;
}
.greeting-images img:nth-child(2) {
  width: 50%;
  margin: -6rem auto 0 0;
}

.greeting-lead {
  margin: 2rem auto;
}
.greeting-lead p:not(:first-child) {
  font-size: .875em;
}

/* #for-customer */
.for-customer-block {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0;
  min-height: calc(var(--stable-vh, 1vh) * 100);
  overflow: hidden;
  background-image: url(./assets/images/top/customer-businesses.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.for-customer-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--color-background) 0%, rgba(44, 62, 80, 0) 18%, rgba(44, 62, 80, 0) 82%, var(--color-background) 100%);
  pointer-events: none;
}
.for-customer-block:last-child {
  background-image: url(./assets/images/top/customer-private-clients.webp);
}
.for-customer-block .wrapper {
  position: relative;
  z-index: 1;
}
.for-customer-block h2 {
  color: var(--color-white);
}
.for-customer-block .list li {
  border-color: var(--color-white);
}

/* Philosophy */
.philosophy-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.philosophy-content .philosophy-item {
  padding: 1rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  color: var(--color-primary);
}
.philosophy-content .philosophy-item h3 {
  color: var(--color-secondary);
}

/* .service-list */
.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.service-list li {
  position: relative;
  padding: var(--spacing-md);
  background-color: var(--color-on-primary);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.service-list li h3 {
  margin: 0 auto 1rem;
}
.service-list li .service-contents {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem auto;
}
.service-list li .service-contents span {
  background-color: var(--color-secondary-pale);
  padding: .25rem .5rem;
}
.service-list li .button {
  text-align: right;
}

.page-section .service-list li {
  background-color: var(--color-primary-super-pale);
}

/* #news */
#news .news-list .news-content {
  margin-bottom: 1.5rem;
}
#news .news-list .news-content a {
  color: var(--color-secondary);
  text-decoration: none;
}
#news .news-list .news-content a dl {
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--color-primary-light);
}
#news .news-list .news-content a dt {
  display: inline-block;
  font-size: .75rem;
  background-color: var(--color-on-background);
  color: var(--color-primary);
  padding: .25rem .5rem;
}
#news .news-list .news-content a dd {
  margin: .5rem 0 0 1rem;
}

/* 固定ページ */
#page-header {
  position: relative;
  background-image: url(./assets/images/common/page-bg.webp);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  width: 100%;
  padding-top: var(--header-height);
  height: calc(var(--header-height) + 1rem + 280px);
  margin: 0;
}
#page-header .wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
#page-header .wrapper h1 {
  color: var(--color-primary-darker);
  text-align: center;
  line-height: 1;
}
#page-header .wrapper h1 .ja {
  font-size: 1.5rem;
  display: block;
  letter-spacing: .2em;
  font-weight: bold;
  margin-bottom: 0;
}
#page-header .wrapper h1 .en {
  font-size: .5em;
  color: var(--color-secondary);
  letter-spacing: .2em;
}
.page-section {
  padding: 1rem 0 2rem;
}
.page-section + #cta {
  margin-top: 3rem;
}
.page-section .wrapper h2,
.page-section .wrapper h3,
.page-section .wrapper h4,
.page-section .wrapper h5,
.page-section .wrapper h6 {
  margin-bottom: 1rem;
}
.page-section .wrapper h2 {
  border-left: 8px solid var(--color-secondary);
  padding-left: .5rem;
}
.page-section .wrapper h2.lawyer-title {
  border: none;
  justify-content: center;
}
.page-section .medium-block {
  margin-top: 3rem;
}
.page-section .small-block {
  margin-top: 2rem;
}
.page-section .block:not(:first-child) {
  margin-top: 4rem;
}
.page-section .table-block {
  margin: 2rem auto;
  overflow: auto;
}
.page-section .note {
  padding: 2rem;
  background-color: var(--color-secondary-pale);
  color: var(--color-primary-dark);
}
.page-section .note.small {
  font-size: 0.875rem;
}
.page-section .note a {
  color: var(--color-secondary-darker);
}

/* office gallery */
.page-section .office-gallery-box {
  position: relative;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
}

/* Gallery Navigation */
.page-section .office-gallery-box .office-gallery-nav {
  order: 2;
  display: flex;
  justify-content: center;
  gap: 3rem;
}
.page-section .office-gallery-box .office-gallery-swiper {
  order: 1;
}
.page-section .office-gallery-box .swiper.office-gallery-swiper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}
.page-section .office-gallery-box .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-section .office-gallery-box .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.page-section .office-gallery-box .swiper-pagination {
  margin-top: 1rem;
}
.page-section .office-gallery-box .swiper-pagination-bullet {
  background: var(--color-primary-300);
  opacity: 0.6;
}
.page-section .office-gallery-box .swiper-pagination-bullet-active {
  background: var(--color-secondary);
  opacity: 1;
}
.page-section .office-gallery-box .office-gallery-nav .swiper-button-prev,
.page-section .office-gallery-box .office-gallery-nav .swiper-button-next {
  pointer-events: auto;
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: none;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-secondary);
  border-radius: 50%;
  color: var(--color-white);
}
.page-section .office-gallery-box .office-gallery-nav .swiper-button-prev::after,
.page-section .office-gallery-box .office-gallery-nav .swiper-button-next::after {
  font-size: 0.875rem;
  font-weight: bold;
  color: var(--color-white);
}

/* Breadcrumb */
.breadcrumbs {
  font-size: 0;
  padding: 1rem;
}
.breadcrumbs.block {
  padding-bottom: 0;
}
.breadcrumbs.block + .block {
  padding-top: 0;
}
.breadcrumbs ol {
  list-style: none;
}
.breadcrumbs ol li {
  display: inline-block;
  vertical-align: middle;
}
.breadcrumbs ol li a {
  display: inline-block;
  text-decoration: none;
  color: var(--color-secondary);
  text-decoration: underline;
}
.breadcrumbs ol li:after {
  content: '>';
  padding: 0 0.8rem;
}
.breadcrumbs ol li:last-child:after {
  content: '';
  padding: 0;
}
.breadcrumbs ol li:after,
.breadcrumbs ol li span {
  font-size: 1rem;
  color: var(--color-secondary);
}

 /* History */
.history dl {
  padding: .25rem;
  display: flex;
}
.history dl + dl {
  margin-top: .5rem;
}
.history dl dt {
  width: 45%;
  max-width: 20rem;
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-secondary);
  padding: .5rem;
  border-bottom: 2px solid var(--color-secondary);
}
.history dl dd {
  width: 100%;
  padding: .5rem;
  border-bottom: 2px solid var(--color-secondary-pale);
}

/* Info Desc */
.info-desc {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.info-desc + .info-desc {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-gray-200);
}
.info-desc-lead {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  font-size: 0.875rem;
}
.info-desc-lead .date {
  color: var(--color-secondary-pale);
}
.info-desc-lead .info-type {
  color: var(--color-secondary);
}
.info-title {
  color: var(--color-on-background);
  font-weight: bold;
}
.info-genre {
  color: var(--color-secondary-pale);
  font-size: 0.875rem;
}

/* list */
.list {
  margin-left: 1.25rem;
}
.list li {
  border-bottom: 1px solid var(--color-primary);
  padding: .25rem .25rem .5rem .25rem;
  font-size: 0.875em;
}
.list li:last-child {
  border: none;
}
.list li + li {
  margin-top: .75rem;
}
.list li a {
  color: var(--color-secondary-light);
}
.list li .list {
  margin-top: .75rem;
}
.list li .list li {
  list-style: circle;
}

/* table */
.table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  background-color: var(--color-white);
}
.table thead tr th {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary-dark);
  font-weight: 600;
}
.table tr th,
.table tr td {
  text-align: left;
  vertical-align: top;
  padding: 0.875rem 1rem;
  font-size: 0.875em;
  border: 1px solid var(--color-primary-pale);
}
.table tbody tr th {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}
.table:has([rowspan]) tbody td {
  background-color: var(--color-white);
  color: var(--color-primary-dark);
}
.table:not(:has([rowspan])) tbody tr:nth-child(even) td {
  background-color: var(--color-primary-super-pale);
  color: var(--color-primary-dark);
}
.table:not(:has([rowspan])) tbody tr:nth-child(odd) td {
  background-color: var(--color-white);
  color: var(--color-primary);
}
.table:has(colgroup) {
  table-layout: fixed;
}

/* fee-table */
.fee-table {
  background-color: var(--color-white);
}
.fee-table tr th,
.fee-table tr td {
  border: 1px solid var(--color-primary-light);
}
.fee-table tbody tr:nth-child(odd) {
  background-color: var(--color-white);
}

/* TOC */
.page-section .block.toc {
  padding: 1.5rem;
  border: 1px solid var(--color-primary-light);
  background-color: var(--color-primary-super-pale);
  box-shadow: var(--shadow-sm);
}
.toc-nav ul{
  list-style: none;
  padding: 0;
}
.toc-nav li {
  margin: .5rem 0;
}
.toc-nav li a {
  display: block;
  padding-left: 1rem;
  line-height: 1.8;
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
}
.toc-nav li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background-color: var(--color-secondary);
}

/* content-data */
.content-data dl {
  display: flex;
  flex-wrap: wrap;
  margin: 1rem auto;
}
.content-data dl dt {
  width: 100%;
  padding: .5rem;
  font-weight: bold;
  color: var(--color-primary-darker);
  border-bottom: 2px solid var(--color-primary);
}
.content-data dl dd {
  width: 100%;
  padding: .5rem;
}

/* FAQ */
#faq {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-background);
}
#faq .faq-content {
  margin-top: 2rem;
}
#faq .faq-content dl {
  margin: 0;
  border-bottom: 1px solid var(--color-gray-200);
}
#faq .faq-content dl:first-child {
  border-top: 1px solid var(--color-gray-200);
}
#faq .faq-content dt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}
#faq .faq-content dt span {
  flex: 1;
  font-weight: bold;
  font-size: 1rem;
  color: var(--color-secondary-light);
}
#faq .faq-content dt .toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  position: relative;
  flex-shrink: 0;
  margin-left: 1rem;
}
#faq .faq-content dt .toggle-icon::before,
#faq .faq-content dt .toggle-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-secondary);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
#faq .faq-content dt .toggle-icon::before {
  width: 1.5rem;
  height: 3px;
  transform: rotate(0deg);
}
#faq .faq-content dt .toggle-icon::after {
  width: 3px;
  height: 1.5rem;
  transform: rotate(0deg);
  opacity: 1;
}
#faq .faq-content dt.active .toggle-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
#faq .faq-content dd {
  margin: 0;
  padding: 0 1rem;
  height: 0;
  overflow: hidden;
  opacity: 0;
}
#faq .faq-content dd .answer {
  padding: 0 0 1.5rem 0;
}
#faq .faq-content dd .answer p {
  margin: 0.75rem 0;
  line-height: 1.8;
  color: var(--color-on-background);
}
#faq .faq-content dd .answer p:first-child {
  margin-top: 0;
}
#faq .faq-content dd .answer p:last-child {
  margin-bottom: 0;
}

/* Lawyers Page */
.lawyer-list ul li {
  list-style: none;
}
.lawyer-list ul li + li {
  margin-top: 1rem;
}
.lawyer-list ul li a {
  display: block;
  text-decoration: none;
  color: var(--color-primary);
  padding: var(--spacing-lg);
  border: 1px solid var(--color-gray-200);
  position: relative;
  overflow: hidden;
  background-color: var(--color-white);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.lawyer-list ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.lawyer-list ul li a .lawyer-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}
.lawyer-list ul li a .lawyer-box .post {
  min-width: 5rem;
  font-size: .75rem;
}
.lawyer-list ul li a .lawyer-box .name {
  margin: 0;
}
.lawyer-list ul li a .lawyer-box .name ruby {
  font-size: 1.25rem;
}
.lawyer-list ul li a .lawyer-box .name .name-en {
  display: block;
  font-size: .75em;
  color: var(--color-primary);
}

/* Lawyer Page Person */
.page-section .wrapper:has(.lawyer-images) {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}
.lawyer-images {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.lawyer-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}
.lawyer-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 1rem;
  border: none;
  width: 100%;
  text-align: center;
}
.lawyer-title .post {
  font-size: 0.8125rem;
  color: var(--color-on-background);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 0;
  letter-spacing: 1em;
  margin-bottom: .5rem;
}
.lawyer-title .name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  margin: 0;
}
.lawyer-title .name ruby {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--color-secondary-dark);
  letter-spacing: .125em;
}
.lawyer-title .name-en {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-secondary-pale);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 0.125rem;
}

/* Flow Content */
.flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.flow:before {
  content: '';
  width: 2px;
  height: calc(100% - 3rem);
  position: absolute;
  left: 1.125rem;
  top: 2rem;
  background-color: var(--color-secondary);
  z-index: -1;
}
.flow dl {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.flow dl dt {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--color-secondary);
  color: var(--color-on-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  border-radius: 50%;
}
.flow dl dd {
  margin-top: .125rem;
}

/* Recruit Page */
.recruit-info dl dt {
  font-weight: bold;
  font-size: 1.125rem;
  color: var(--color-primary-dark);
  margin-bottom: .5rem;
}
.recruit-info dl dd {
  padding: .5rem .5rem .5rem 1.5rem;
  border: 2px solid var(--color-primary);
  background-color: var(--color-primary-super-pale);
}

/* Nav Pagenation */
nav.pagination {
  display: block;
  margin: 1rem 0 2rem 0;
}
nav.pagination .nav-links {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
}
nav.pagination .nav-links .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  overflow: hidden;
  margin: 0 0.25rem;
  color: var(--color-on-background);
  transition: all .2s;
}
nav.pagination .nav-links a.page-numbers.prev,
nav.pagination .nav-links a.page-numbers.next {
  font-weight: bold;
}
nav.pagination .nav-links .page-numbers:first-child {
  margin-left: 0;
}
nav.pagination .nav-links .page-numbers:last-child {
  margin-right: 0;
}
nav.pagination .nav-links span.current {
  background-color: var(--color-secondary);
  box-shadow: none;
}
nav.pagination .nav-links span.dots {
  box-shadow: none;
}

/* columns list */
.columns-list {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}
.columns-list li {
  width: calc(50% - .5rem);
  list-style: none;
}
.columns-list li a {
  text-decoration: none;
  display: block;
  background-color: var(--color-white);
  color: var(--color-secondary);
  padding: 1rem;
  border: 1px solid var(--color-gray-300);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.columns-list li a .post-thumbnail {
  overflow: hidden;
  border: 1px solid var(--color-primary);
}
.columns-list li a .post-thumbnail img {
  transition: transform 0.5s;
}
.columns-list li a .post-item .post-desc {
  margin-top: .5rem;
}
.columns-list li a .post-item .post-desc p.day {
  font-size: .75em;
  color: var(--color-gray);
}
.columns-list li a .post-item .post-desc .post-ttl {
  margin-top: 0;
}
.category-tags > span {
  display: inline-block;
  vertical-align: middle;
  font-size: .75rem;
  line-height: 1;
  padding: 0.5rem 0.825rem;
  text-decoration: none;
  color: var(--color-white);
  margin: 0.4rem;
  margin-left: 0;
  background: var(--color-secondary);
}

/* Float Msgbox */
.lu-float-msgbox {
  position: fixed;
  z-index: 9999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--box-shadow-default);
  border-radius: var(--round-large);
}
.lu-float-msgbox {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  border: solid 1px var(--color-white);
  font-size: 1rem;
  color: var(--color-white);
  white-space: pre-wrap;
  max-width: 80vw;
  min-width: 280px;
  opacity: 0;
  transition: opacity .5s ease;
}

/* Swiper */
.swiper {
  margin-bottom: 2rem;
}
.swiper .swiper-wrapper {
  flex-wrap: nowrap !important;
  gap: 0 !important;
  justify-content: flex-start;
}
.swiper .swiper-nav-wrapper {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}
.swiper .swiper-pagination {
  position: static;
}
.swiper .swiper-button-next,
.swiper .swiper-button-prev {
  position: static;
  width: 2rem;
  height: 2rem;
  margin-top: 0;
}
.swiper .swiper-button-next:after,
.swiper .swiper-button-prev:after{
  font-size: 1rem;
  font-weight: bold;
}

/* News Single */
.time-tag {
  display: inline;
  font-size: .75rem;
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  padding: .25rem .5rem;
}
.post-contents {
  margin-top: 1rem;
}

/* Columns Single Page */
main.columns-main {
  overflow: visible;
}
main.columns-main .post-last-updated {
  font-size: var(--font-size-sm);
  color: var(--color-secondary);
  margin: 1rem 0;
}

/* Column Contents */
.column-contents {
  line-height: var(--line-height-base);
  margin-top: 2rem;
}
.column-contents h2,
.column-contents h3,
.column-contents h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Sidebar Layout */
.page-section .wrapper.sidebar-layout {
  display: block;
  padding-top: 0;
}
.wrapper.sidebar-layout .post-main {
  width: 100%;
}
.wrapper.sidebar-layout .post-main .images {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.wrapper.sidebar-layout .sidebar {
  width: 100%;
  margin-top: 2rem;
}
.wrapper.sidebar-layout .sidebar .wrapper {
  padding: 1.5rem;
  writing-mode: horizontal-tb;
  direction: ltr;
  margin: 0;
}
.wrapper.sidebar-layout .sidebar .wrapper ul,
.wrapper.sidebar-layout .sidebar .wrapper ol {
  list-style: none;
  padding-left: 0;
}
.wrapper.sidebar-layout .sidebar .wrapper li {
  list-style: none;
}
.wrapper.sidebar-layout .sidebar .wrapper li::before,
.wrapper.sidebar-layout .sidebar .wrapper li::after {
  content: none;
}

/* Section Style */
.section-style {
  margin-bottom: 1.5rem;
}
.section-style h2 {
  font-size: var(--font-size-xl);
  margin-bottom: 1rem;
  border-left: 4px solid var(--color-primary);
  padding-left: 0.75rem;
}

/* Post List */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-list li {
  margin-bottom: 0.75rem;
}
.post-list li a {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: var(--color-secondary);
  padding: 0.75rem;
  background-color: var(--color-white);
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.post-list li a .bg-img {
  margin-right: 0.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.post-list-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  min-width: 0;
}
.post-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.post-item-last-updated {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  margin-bottom: 0.25rem;
}
.post-item-title {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Sitemap Section */
.sitemap-section .list li {
  border: none;
}

/* Category List */
.category-list li a {
  padding: 0.5rem 0.75rem;
}

/* Services List Button */
.services-list-button {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Sitemap Page */
.sitemap-list li {
  list-style: none;
}
.sitemap-list li + li {
  margin-top: 1rem;
}
.sitemap-list li:before {
  content: '';
  display: inline-block;
  width: .5rem;
  height: .5rem;
  background-color: var(--color-primary);
  border-radius: 50%;
  margin-right: .5rem;
}
.sitemap-list li a {
  color: var(--color-primary);
  text-decoration: none;
}
.sitemap-list li .sitemap-child-list {
  margin-left: 1rem;
}
.sitemap-list li .sitemap-child-list li {
  margin-top: .5rem;
}
.sitemap-list li .sitemap-child-list li::before {
  content: '-';
  width: 0;
  height: 0;
  padding-right: .25rem;
  color: var(--color-primary);
}

/* Contact Form */
.content.form {
  margin-top: 2rem;
}

/* Form Error */
.error-info {
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: var(--color-error-light);
  border: 2px solid var(--color-error);
}
.error-info p {
  color: var(--color-error);
  margin: 0;
  font-weight: bold;
}

/* Form */
#contact-form {
  margin-top: 1.5rem;
}
.form-block {
  margin-bottom: 1.5rem;
}
.form-block:last-child {
  margin-bottom: 0;
}

/* Form Label */
.form-block label.title {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 600;
  font-size: var(--font-size-base);
  color: var(--color-secondary-light);
  margin-bottom: var(--spacing-xs);
  line-height: var(--line-height-tight);
}
.form-block label.title .required {
  background-color: var(--color-error);
  color: var(--color-white);
  font-size: .825em;
  font-weight: 700;
  padding: .115em .25em;
  border-radius: 4px;
  margin-left: .325rem;
}

/* Form Input */
.form-block input:not([type="submit"]):not([type="button"]):not([type="reset"]),
.form-block select,
.form-block textarea {
  width: 100%;
  padding: .5rem .75rem;
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  color: var(--color-primary);
  background-color: var(--color-white);
  border: 2px solid var(--color-gray-300);
  transition: all 0.2s ease;
  box-sizing: border-box;
  appearance: none;
}
.form-block input::placeholder,
.form-block textarea::placeholder {
  color: var(--color-gray-400);
  opacity: 1;
}
.form-block input:not([type="submit"]):not([type="button"]):not([type="reset"]):focus,
.form-block select:focus,
.form-block textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-super-pale);
  background-color: var(--color-white);
}
.form-block input:not([type="submit"]):not([type="button"]):not([type="reset"]).error,
.form-block select.error,
.form-block textarea.error {
  border-color: var(--color-error);
  background-color: var(--color-error-light);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.form-block input:not([type="submit"]):not([type="button"]):not([type="reset"]).error:focus,
.form-block select.error:focus,
.form-block textarea.error:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}
.form-block input:not([type="submit"]):not([type="button"]):not([type="reset"]).success,
.form-block select.success,
.form-block textarea.success {
  border-color: var(--color-success);
  background-color: var(--color-success-light);
}
.form-block .error-message {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--color-error);
  font-weight: 500;
}
.form-block input:not([type="submit"]):not([type="button"]):not([type="reset"]):disabled,
.form-block select:disabled,
.form-block textarea:disabled {
  background-color: var(--color-gray-100);
  color: var(--color-gray-500);
  cursor: not-allowed;
  opacity: var(--opacity-disabled);
}
.form-block textarea {
  min-height: 8rem;
  resize: vertical;
}
.form-block select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231d7ebf' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* Form Note */
.form-block .note {
  margin-top: var(--spacing-xs);
  font-size: .825em;
  color: var(--color-gray-600);
  background-color: var(--color-gray-100);
  line-height: var(--line-height-base);
  padding: 0.5rem 0.75rem;
}

/* Form Confirm (確認画面) */
.form-block .form-input-value {
  padding: 0.75rem;
  margin-top: 0.5rem;
  color: var(--color-on-background);
  line-height: 1.6;
  word-break: break-word;
}

/* Form Bottom Block */
.form-bottom-block {
  margin-bottom: 1.5rem;
}
.form-bottom-block .note {
  padding: 1rem;
  background-color: var(--color-primary-super-pale);
  font-size: 0.875rem;
  line-height: 1.6;
}
.form-bottom-block .note a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Form Button - .buttonに統一 */
.button[data-action="edit"] a {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.button[data-action="edit"] a:focus {
  background-color: var(--color-primary-super-pale);
}
.button[data-action="send"] a,
.button[data-action="confirm"] a {
  background-color: var(--color-secondary);
  color: var(--color-on-primary);
  border: 2px solid var(--color-secondary);
}
.button[data-action="send"] a:focus,
.button[data-action="confirm"] a:focus {
  background-color: var(--color-primary-darker);
  border-color: var(--color-primary-darker);
}
.button .icon-align-right {
  margin-left: auto;
}

/* CTA */
#cta {
  position: relative;
  background-image: url(./assets/images/common/contact-bg.webp);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: calc(var(--stable-vh, 1vh) * 100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
#cta h2 {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  border: none;
  margin-bottom: 3rem;
}
#cta:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
#cta .cta-desc {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding-bottom: 5rem;
}
#cta .cta-desc::after {
  position: absolute;
  content: "";
  display: block;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 3rem;
  background: var(--color-white);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}
#cta .cta-buttons {
  position: relative;
  z-index: 2;
  margin: 3rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  align-items: stretch;
}
#cta .cta-buttons .button {
  flex: 1;
  min-width: 280px;
  display: flex;
}
#cta .cta-buttons .button a {
  width: 100%;
  background-color: var(--color-white);
  color: var(--color-primary);
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0.875rem 1rem;
  box-sizing: border-box;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
#cta .cta-buttons .button a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(29, 126, 191, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
#cta .cta-buttons .button a p,
#cta .cta-buttons .button a span {
  position: relative;
  z-index: 1;
}
#cta .cta-buttons .button a p {
  margin: 0;
  padding: 0;
  line-height: 1.3;
}
#cta .cta-buttons .button a p:first-child {
  font-size: 1.0625rem;
  font-weight: 700;
}
#cta .cta-buttons .button a p small {
  font-size: 1em;
  font-weight: 700;
}
#cta .cta-buttons .button a .tel-time {
  font-size: 0.6875rem;
  color: var(--color-gray-600);
  font-weight: 400;
  letter-spacing: 0.02em;
}
#cta .cta-buttons .button a span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}
#cta .cta-buttons .button a span i {
  font-size: 1.0625rem;
}
#cta .cta-buttons .button:last-child a {
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-white);
}
#cta .cta-buttons .button:last-child a::before {
  background: rgba(255, 255, 255, 0.2);
}
#cta .cta-buttons .button a:active {
  transform: translateY(-1px) scale(1);
}

.cta-bg {
  display: none;
}

.select-buttons {
  display: flex;
  gap: 1rem;
}
.select-buttons .select-button {
  flex: 1;
  text-align: center;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-primary);
  border-radius: var(--round-small);
  background-color: var(--color-primary-super-pale);
  color: var(--color-primary);
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Author Box */
.author-box {
  margin-top: 2rem;
}
.author-info {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
}
.author-info .author-images {
  max-width: clamp(80px, 20%, 140px);
}
.author-info .author-images img {
  width: 100%;
}
.author-info .author-desc {
  width: auto;
}
.author-info .author-desc .desc {
  margin-top: .5rem;
}

/* sns share */
.sns-share-box {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  font-size: 0;
  background-color: var(--color-secondary-light);
  border-radius: var(--round-medium);
  margin: 0.5rem auto;
}
.sns-share-box span {
  display: inline-block;
  vertical-align: middle;
}
.sns-share-box span.bg-img {
  width: 1.6rem;
  height: 1.6rem;
}
.sns-share-box span.sns-title {
  font-size: 1rem;
  color: var(--color-on-background);
  margin-left: 0.5rem;
  display: none;
}
.sns-share-box > a {
  display: inline-block;
  border-style: solid;
  border-width: 1px;
  border-radius: 50%;
  background-color: var(--color-white);
  padding: 0 .8rem;
  cursor: pointer;
  white-space: nowrap;
  margin: 0.5rem;
  text-decoration: none;
}
.sns-share-box a i[class|="lf21"] {
  font-size: 1.5rem;
}
.sns-share-box a.sns-twitter {
  border-color: rgb(0, 0, 0);
}
.sns-share-box a.sns-facebook {
  border-color: rgb(23,120,242);
}
.sns-share-box a.sns-hatena {
  border-color: rgb(5,163,222);
}
.sns-share-box a.sns-line {
  border-color: rgb(6,199,85);
}
.sns-share-box a.sns-copy {
  border-color: rgb(115,115,115);
}
.sns-share-box a.sns-copy i[class|="lf21"] {
  color: var(--color-gray-500);
}

.fee-rules h2 {
  text-align: center;
  border: none !important;
}
.fee-rules h3.subh3 {
  text-align: center;
}

/* 404 */
#not-found {
  padding-top: var(--header-height);
  text-align: center;
}
#not-found .wrapper {
  margin: 3rem auto;
}
#not-found .wrapper p {
  margin: 1rem auto;
}

/* footer */
footer {
  position: relative;
  background: var(--color-primary);
  padding-top: 3rem;
  color: var(--color-on-primary);
}
footer .footer-information {
  position: relative;
}
footer .footer-information .footer-logo {
  position: relative;
  width: 260px;
  margin: auto;
  z-index: 1;
}
footer .footer-information .footer-logo a img {
  width: 100%;
}
footer .footer-information .footer-address {
  margin-top: 2rem;
  font-size: .875rem;
}
footer .footer-information .footer-address p {
  margin: .5rem 0;
}
footer .footer-menu-list {
  position: relative;
}
footer .footer-menu {
  margin: 2rem auto;
}
footer .footer-menu ul {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0;
}
footer .footer-menu ul li {
  list-style-type: none;
}
footer .footer-menu ul li a {
  font-weight: bold;
  text-decoration: none;
  display: block;
  color: var(--color-on-primary);
  border-bottom: 1px solid var(--color-on-primary);
  padding: .5rem;
}
footer .footer-sub-menu ul {
  display: flex;
  gap: 1rem;
}
footer .footer-sub-menu ul li {
  list-style: none;
}
footer .footer-sub-menu ul li a {
  text-decoration: none;
  font-size: .75em;
  color: var(--color-on-primary);
}
footer .footer-fish {
  margin: 3rem auto 1rem;
  text-align: center;
}
footer .footer-fish img {
  width: 100%;
  max-width: 60px;
}
footer .copyright {
  position: relative;
  padding: 2rem .5rem;
  text-align: center;
}
footer .copyright p {
  font-size: .75em;
  color: var(--color-on-primary);
}

/* to Top */
a.to-top-button {
  display: block;
  position: fixed;
  right: -60px;
  z-index: 9999;
  transition-property: right, bottom;
  transition-timing-function: ease;
  transition-duration: .3s;
  cursor: pointer;
  text-decoration: none;
  width: 3rem;
  height: 3rem;
  background: var(--color-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all .5s;
  box-shadow: var(--box-shadow-default);
}
a.to-top-button.show {
  right: 32px;
}
a.to-top-button span {
  color: var(--color-on-primary);
  font-size: .65rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Swiper Customization */
.swiper-pagination-bullet-active {
  background: var(--color-secondary) !important;
}
.swiper-button-next, .swiper-button-prev {
  color: var(--color-secondary) !important;
}

/* For Tablet */
@media screen and (min-width:768px) {

  /* #mv */
  #mv .mv-circle {
    min-width: 1050px;
    min-height: 1050px;
    max-width: 1050px;
    max-height: 1050px;
  }

  /* #greeting */
  #greeting .flex .images img {
    min-width: 300px;
  }
  #greeting .greeting-images {
    max-height: 620px;
    overflow: hidden;
  }
  #greeting .greeting-contet {
    width: 90%;
  }

  /* Philosophy */
  .philosophy-content {
    grid-template-columns: 1fr 1fr;
  }

  /* .service-list */
  .service-list {
    grid-template-columns: 1fr 1fr;
  }

  /* Services Select Buttons */
  .services-select-buttons {
    gap: 1rem;
  }
  .services-select-button {
    flex: 1;
    max-width: 500px;
  }

  /* section common */
  section {
    padding: 4rem 0;
  }
  .wrapper {
    max-width: 700px;
    width: 100%;
    padding: 0 var(--spacing-md);
    margin: 0 auto;
  }

  /* Page */
  .page-section {
    padding: 1.5rem 0;
  }

  /* Breadcrumb */
  .breadcrumbs.block {
    padding: var(--spacing-sm) 0 0;
    max-width: 700px;
    width: 100%;
    margin: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  /* Lawyers */
  .lawyer-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }
  .lawyer-list ul li {
    width: calc(50% - 1rem);
  }
  .lawyer-list ul li + li {
    margin: 0;
  }

  /* map-section */
  .map-section .wrapper {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
  }
  .map-section .wrapper .images {
    margin-top: 0;
    width: 60%;
  }

  /* office gallery */
  .page-section .office-gallery-box {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  /* CTA */
  #cta {
    min-height: calc(var(--stable-vh, 1vh) * 100);
    background-attachment: fixed;
  }
  #cta .cta-buttons {
    flex-wrap: nowrap;
    max-width: min(var(--max-content-width), 90%);
    margin-left: auto;
    margin-right: auto;
  }
  #cta .cta-buttons .button {
    min-width: auto;
    max-width: 480px;
  }

  /* Sidebar Layout */
  .wrapper.sidebar-layout .post-main {
    width: 100%;
  }
  .wrapper.sidebar-layout .sidebar {
    width: 100%;
  }

  /* Lawyer Page Person */
  .page-section .wrapper:has(.lawyer-images) {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    text-align: left;
    justify-content: center;
  }
  .lawyer-images {
    flex-shrink: 0;
    width: 50%;
    margin: 0;
  }
  .lawyer-title {
    flex: 0 1 auto;
    align-items: flex-start;
    text-align: left;
    padding-top: 0;
    gap: 0.25rem;
  }
  .lawyer-title .post {
    margin-bottom: 0;
  }
  .lawyer-title .name {
    align-items: flex-start;
    gap: 0.125rem;
    margin-bottom: 0;
  }
  .lawyer-title .name ruby {
    font-size: 1.75rem;
    line-height: 1.5;
  }
  .lawyer-title .name-en {
    margin-top: 0.125rem;
  }

  /* footer */
  footer .footer-information {
    padding: 0;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
  footer .footer-menu {
    padding: 1rem 0;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
  footer .footer-sub-menu {
    padding: 0 0 1rem 0;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
}

/* WP login */
body.admin-bar header,
body.admin-bar header #hamburger {
  top: 32px;
}

/* For PC */
@media screen and (min-width:1025px) {
  :root {
    /* font */
    --font-size-default: 16px;
    --header-height: 80px;
  }

  html {
    font-size: clamp(1.125rem, 1.8vw, 1.25rem);
  }
  body {
    font-size: 1em;
  }

  #cta {
    background-attachment: fixed;
  }

  main:has(.sticky-section) {
    overflow: visible;
  }

  h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  }
  h2 {
    font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  }
  h3 {
    font-size: clamp(1.125rem, 1.25vw, 1.25rem);
  }
  h4 {
    font-size: clamp(1.025rem, 1.125vw, 1.125rem);
  }
  /* 文字サイズ変更によるはみ出し防止 */
  table {
    table-layout: fixed;
    width: 100%;
  }
  td,
  th {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  /* 長いテキストが含まれる可能性のある要素 */
  p,
  li,
  dd,
  .content,
  .desc {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  a:hover {
    opacity: .5;
  }

  /* Button */
  .button a::before {
    transition: width 0.6s ease, height 0.6s ease;
  }
  .button a:hover {
    background-color: var(--color-secondary-darker);
    color: var(--color-white);
    transform: translateY(-1px);
    opacity: .85;
  }
  .button a:hover::before {
    width: 380px;
    height: 380px;
  }
  .services-list-button a {
    transition: all 0.2s ease;
  }
  .services-list-button a:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
  }
  #cta .cta-buttons .button a:hover {
    transform: translateY(-3px) scale(1.02);
    background-color: var(--color-secondary-pale);
  }
  #cta .cta-buttons .button a:hover::before {
    width: 600px;
    height: 600px;
  }
  #cta .cta-buttons .button:last-child a:hover {
    background-color: var(--color-secondary-darker);
    border-color: var(--color-white);
  }

  /* header */
  header {
    padding: 1rem;
  }
  header .header-logo {
    flex-grow: 1;
  }
  header .header-logo a {
    transition: all .2s;
  }
  header .header-logo a:hover {
    opacity: .5;
  }
  header .global-menu,
  header .global-block-menu {
    display: block;
    margin-right: 1rem;
  }
  header .global-block-menu {
    margin-right: calc(var(--header-height) - 1rem);
  }
  header .global-menu ul,
  header .global-block-menu ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
  }
  header .global-block-menu ul {
    gap: .5rem;
  }
  header .global-menu ul li,
  header .global-block-menu ul li {
    list-style: none;
  }
  header .global-menu li a,
  header .global-block-menu li a {
    position: relative;
    font-size: clamp(.25rem, .75vw, 1rem);
    text-decoration: none;
    color: var(--color-primary);
    display: block;
  }
  header .global-block-menu ul li a {
    padding: .425rem .75rem;
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    font-weight: bold;
    transition: all .2s;
  }
  header .global-block-menu ul li:last-child a {
    background-color: var(--color-secondary);
    color: var(--color-white);
  }
  header .global-block-menu ul li a:hover {
    opacity: .8;
    transform: translateY(-2px);
  }
  header .global-menu li a:before {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background-color: var(--color-primary);
    transition: all .5s;
    transform: rotateY(90deg);
  }
  header .global-menu li a:hover:before {
    transform: rotateY(0deg);
  }
  header .global-menu li a span.en {
    display: block;
    text-align: center;
    font-size: .75em;
  }
  header #hamburger {
    top: auto;
  }

  /* Drawer Menu */
  #drawer-menu ul li a {
    font-size: clamp(.875rem, 1vw, 1rem);
    position: relative;
    transition: all .2s;
    overflow: hidden;
  }
  #drawer-menu ul li a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: var(--color-primary);
    transition: all .2s;
    transform: translateX(-100%);
  }
  #drawer-menu ul li a:hover:before {
    transform: translateX(0);
  }

  /* #hamburger */
  header #hamburger span {
    left: 20px;
  }
  header #hamburger span:first-child {
    top: 35px;
  }
  header #hamburger span:last-child {
    top: 45px;
  }
  header #hamburger.open span:first-child {
    top: 33px;
    left: 22px;
  }
  header #hamburger.open span:last-child {
    top: 45px;
    left: 22px;
  }

  /* #mv */
  #mv {
    max-width: 2400px;
    margin: 0 auto;
    height: calc(var(--stable-vh, 1vh) * 100);
    max-height: 1260px;
    overflow: visible;
  }
  #mv .mv-content {
    max-width: 100%;
  }
  #mv .mv-lead-text {
    margin-top: 3rem;
  }
  #mv .mv-lead-text p {
    font-size: clamp(1rem, 2vw, 1.125rem);
  }
  #mv .mv-lead-text p strong {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
  }
  #mv .mv-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    text-align: left;
    order: 1;
    flex: none;
  }
  #mv .mv-text-main {
    font-size: clamp(3rem, 15vw, 6rem);
  }
  #mv .mv-circle {
    width: min(50vw, 700px);
    height: min(50vw, 700px);
    order: 2;
    flex: 0 0 auto;
  }
  #mv .mv-circle-inner {
    width: 86%;
    height: 86%;
  }
  #mv .mv-circle-inner img.pc {
    display: block;
  }
  #mv .mv-circle-inner img.sp {
    display: none;
  }
  #mv .fish:first-child {
    left: 14vw;
  }
  #mv .fish:nth-child(2) {
    right: 12vw;
  }

  /* section common */
  .wrapper {
    max-width: min(var(--max-content-width), 90%);
    width: 100%;
    padding: 0 var(--spacing-md);
  }
  .page-section .wrapper {
    max-width: min(var(--max-content-width), 85%);
  }

  /* for-customer */

  /* FAQ */
  #faq .faq-content dt span {
    font-size: 1.125rem;
  }
  #faq .faq-content dd .answer {
    padding: 0 0 2rem 0;
  }
  #faq .faq-content dd .answer p {
    font-size: 1rem;
  }

  /* #greeting */
  #greeting {
    overflow: hidden;
  }
  #greeting .greeting-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #greeting .greeting-flex .wrapper {
    width: 50%;
    padding: 3rem 2rem 0 11%;
  }
  #greeting .greeting-contet {
    width: 100%;
  }
  #greeting .greeting-contet .buttons {
    justify-content: flex-start;
  }
  #greeting .greeting-images {
    max-height: 100%;
    width: 40%;
    margin: 0
  }
  .greeting-images.pc-greeting-images {
    display: block;
  }
  .greeting-images.sp-greeting-images {
    display: none;
  }

  /* Columns */
  .columns-list {
    gap: 2rem;
  }
  .columns-list li {
    width: calc(33.333% - 1.35rem);
  }
  .columns-list li a {
    transition: all .5s;
  }
  .columns-list li a:hover {
    opacity: .6;
  }

  /* News */
  #news .news-list .news-content a {
    transition: ease .2s;
  }
  #news .news-list .news-content a:hover {
    opacity: .75;
  }
  #news .news-list .news-content a dl {
    padding-bottom: 1rem;
  }

  /* Page */
  #page-header {
    height: 480px;
  }

  /* Breadcrumb */
  .breadcrumbs.block {
    max-width: min(var(--max-content-width), 85%);
    width: 100%;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
  }

  /* Lawyers */
  .lawyer-list ul li {
    width: calc(33.33333% - 1.35rem);
  }
  .lawyer-list ul li a .lawyer-box .name .name-en {
    font-size: .65em;
  }
  .lawyer-list ul li a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .lawyer-list ul li a::before {
    transition: transform 0.3s ease;
  }
  .lawyer-list ul li a:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
  }
  .lawyer-list ul li a:hover::before {
    transform: scaleX(1);
  }
  .lawyer-list ul li a:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  /* Sticky Section */
  .sticky-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    max-width: min(var(--max-content-width), 90%);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
  }
  .sticky-section .info-lead-wrapper {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    align-self: flex-start;
    flex: 0 0 auto;
    width: 30%;
    max-width: 400px;
    height: fit-content;
  }
  .sticky-section .info-wrapper {
    flex: 1;
    min-width: 0;
  }
  .sticky-section .info-wrapper .page-section .wrapper {
    margin: 0;
    padding: 0;
    max-width: 100%;
  }

  /* Page Wave Divider */
  .page-wave-divider {
    margin-top: -7rem;
  }

  /* Access */
  .map-section .wrapper .images {
    width: 70%;
  }

  /* TOC */
  .toc-nav li a:hover {
    color: var(--color-secondary-darker);
    text-decoration: underline;
  }

  /* Lawyer Page Person */
  .page-section .wrapper:has(.lawyer-images) {
    flex-direction: column;
    margin: 0;
    padding: 0;
    gap: 1rem;
  }
  .lawyer-images {
    width: 100%;
  }
  .lawyer-title {
    padding-top: 0;
    max-width: none;
    gap: 0.25rem;
  }
  .lawyer-title .post {
    font-size: 0.875rem;
    margin-bottom: 0;
  }
  .lawyer-title .name {
    gap: 0.125rem;
    margin-bottom: 0;
  }
  .lawyer-title .name ruby {
    font-size: 1.825rem;
    line-height: 1.5;
  }
  .lawyer-title .name-en {
    font-size: 0.875rem;
    margin-top: 0.125rem;
  }

  /* Sidebar Layout */
  .page-section .wrapper.sidebar-layout {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0;
    max-width: min(var(--max-content-width), 90%);
    margin: 0 auto;
  }
  .wrapper.sidebar-layout .post-main {
    flex: 1;
    min-width: 0;
  }
  .wrapper.sidebar-layout .sidebar {
    position: relative;
    min-width: 340px;
    max-width: 400px;
    margin-top: 0;
  }
  .wrapper.sidebar-layout .sidebar .wrapper {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }
  .wrapper.sidebar-layout .sidebar .post-list-item {
    flex-direction: column;
  }
  .wrapper.sidebar-layout .sidebar .post-list li a {
    transition: all 0.2s ease;
  }
  .wrapper.sidebar-layout .sidebar .post-list li a:hover {
    background-color: var(--color-primary-super-pale);
  }
  .wrapper.sidebar-layout .sidebar .post-list li a .post-item-title {
    font-size: var(--font-size-sm);
  }

  .services-select-button a:hover {
    opacity: 0.9;
  }
  .services-select-button a:active {
    transform: translateY(0);
  }

  /* Pagination */
  nav.pagination .nav-links a.page-numbers:hover {
    background-color: var(--color-primary-pale);
  }

  /* Contact Form */
  .form-block input:not([type="submit"]):not([type="button"]):not([type="reset"]):hover:not(:disabled):not(:focus),
  .form-block select:hover:not(:disabled):not(:focus),
  .form-block textarea:hover:not(:disabled):not(:focus) {
    border-color: var(--color-gray-400);
  }
  .form-bottom-block .note a:hover {
    opacity: var(--opacity-hover);
  }
  .button[data-action="edit"] a:hover {
    background-color: var(--color-primary-super-pale);
  }
  .button[data-action="send"] a:hover,
  .button[data-action="confirm"] a:hover {
    background-color: var(--color-secondary-darker);
    border-color: var(--color-secondary-darker);
  }

  /* footer */
  footer .footer-information {
    margin: 0 auto 3rem 0;
  }
  footer .footer-information .footer-logo {
    width: 240px;
    margin: 0;
  }
  footer .footer-information .footer-logo a {
    transition: all .2s;
  }
  footer .footer-information .footer-logo a:hover,
  footer .footer-sub-menu ul li a:hover {
    opacity: .5;
  }
  footer .footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  footer .footer-information {
    width: fit-content;
  }
  footer .footer-menu-list {
    width: 55%;
  }
  footer .footer-menu,
  footer .footer-sub-menu {
    width: auto;
  }
  footer .footer-sub-menu ul {
    justify-content: flex-end;
  }

  a.to-top-button:hover {
    background-color: var(--color-secondary-darker);
    transform: scale(1.05);
  }
}

/* Animation */
@keyframes scrolldown {
  0% {
      bottom: 10px;
  }
  50% {
      bottom: 5px;
  }
  100% {
      bottom: 10px;
  }
}
@keyframes scrollbar {
  0% {
      height: 0;
      top: 10px;
      opacity: 0;
  }
  50% {
      height: 15px;
      opacity: 1;
  }
  100% {
      height: 0;
      top: 30px;
      opacity: 0;
  }
}
@keyframes mv-text-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 var(--round-medium) 0;
}
.skip-link:focus {
  top: 0;
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--round-small);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #005a9c;
    --color-on-background: #000000;
    --box-shadow-default: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  /* Button */
  .button a {
    border-width: 3px;
  }
}
