@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&display=swap');

/* Variables */
:root {
  /* color */
  --color-theme1: #163470;
  /* background */
  --color-background: #fffdfb;
  --color-on-background: #333333;
  /* primary */
  --color-primary: var(--color-theme1);
  --color-primary-light: #516ea8;
  --color-primary-pale: #839dd1;
  --color-primary-super-pale: #ebf2ff;
  --color-primary-dark: #0a1935;
  --color-on-primary: #ffffff;
  /* secondary */
  --color-secondary: #96610A;
  --color-secondary-light: #cb9c4e;
  --color-secondary-dark: #573908;
  /* 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", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", YuGothic, "Meiryo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-family-en-title: var(--font-family);
  --line-height-tight: 1.5;
  --line-height-base: 1.625;
  --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: 80px;
  --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;
  /* WP 管理バー（ログイン時は body.admin-bar で上書き） */
  --lu-admin-bar-height: 0px;
}

body.admin-bar {
  --lu-admin-bar-height: var(--wp-admin--admin-bar--height, 32px);
}

/* 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;
}

html:has(body.admin-bar) {
  scroll-padding-top: calc(var(--header-height) + var(--wp-admin--admin-bar--height, 32px) + 1rem);
}
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;
}
body.shadow {
  overflow: hidden;
}

/* Shadow */
#shadow {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.shadow #shadow {
  opacity: 1;
  pointer-events: auto;
}

/* 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.25rem, 3vw, 1.75rem);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-normal);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
}
h2 .en {
  display: block;
  margin-top: 1rem;
  color: var(--color-secondary);
  font-size: .75em;
  letter-spacing: var(--letter-spacing-wider);
}
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-primary);
  margin-bottom: 1rem;
}
h4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
  font-weight: 500;
  color: var(--color-primary-light);
  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: .75rem;
}
p + h2,
p + h3,
p + h4,
p + h5 {
  margin-top: 2rem;
}
a {
  letter-spacing: var(--letter-spacing-wide);
}
.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;
}

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

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

/* Margin */
.margin-top-0 {
  margin-top: 0;
}
.margin-bottom-0 {
  margin-bottom: 0;
}
.margin-top-sm {
  margin-top: var(--spacing-sm);
}
.margin-bottom-sm {
  margin-bottom: var(--spacing-sm);
}
.margin-top-md {
  margin-top: var(--spacing-md);
}
.margin-bottom-md {
  margin-bottom: var(--spacing-md);
}
.margin-top-lg {
  margin-top: var(--spacing-lg);
}
.margin-bottom-lg {
  margin-bottom: var(--spacing-lg);
}
.margin-top-xl {
  margin-top: var(--spacing-xl);
}
.margin-bottom-xl {
  margin-bottom: var(--spacing-xl);
}
.margin-top-2xl {
  margin-top: var(--spacing-2xl);
}
.margin-bottom-2xl {
  margin-bottom: var(--spacing-2xl);
}

/* 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 {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--font-size-base);
  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;
  overflow: visible;
  background-color: var(--color-white);
  border: 2px solid var(--color-primary);
  padding: 0.75rem 2rem;
  padding-right: 4rem;
  color: var(--color-primary);
  transition: all 0.5s;
}
.button a::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -1rem;
  width: 4rem;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.5s;
}
.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;
}

/* 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-primary);
  text-decoration: underline;
  transition: all 0.5s;
}
.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-gray);
}

 /* History */
.history dl {
  display: flex;
}
.history dl + dl {
  margin-top: .5rem;
}
.history dl dt {
  width: 100%;
  max-width: 9.5rem;
  font-size: .875rem;
  font-weight: bold;
  color: var(--color-primary);
  padding: .5rem;
  border-bottom: 2px solid var(--color-primary);
}
.history dl dd {
  width: 100%;
  padding: .5rem;
  font-size: .875rem;
  border-bottom: 2px solid var(--color-gray-400);
}

.explanation-box {
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.explanation-box dl {
  display: flex;
  gap: 1rem;
}
.explanation-box dl dt {
  flex-grow: 1;
  min-width: 5rem;
  font-weight: bold;
  color: var(--color-primary);
}

/* TOC */
.toc-nav ul{
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.toc-nav li {
  margin: .5rem 0;
}
.toc-nav li a {
  color: var(--color-primary);
}

/* 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;
}

/* columns list */
.columns-list {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.columns-list li {
  width: 100%;
  list-style: none;
  border-top: 1px solid var(--color-gray-300);
}
.columns-list li:last-child {
  border-bottom: 1px solid var(--color-gray-300);
}
.columns-list li a {
  text-decoration: none;
  display: block;
  color: var(--color-on-background);
  transition: all 0.5s;
  padding: .5rem;
}
.columns-list li a .post-thumbnail {
  overflow: hidden;
}
.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;
  background-color: var(--color-secondary);
  border-radius: 100px;
  line-height: 1;
  padding: 0.5rem 0.825rem;
  text-decoration: none;
  color: var(--color-white);
  margin: 0.4rem;
  margin-left: 0;
}

/* 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;
}

/* Table */
.table {
  width: 100%;
}
.table th {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
}
.table th,
.table td {
  padding: .5rem;
  font-size: .75em;
  text-align: left;
  vertical-align: middle;
}
.table td {
  border-bottom: 1px solid var(--color-gray-400);
}
.table td[rowspan="2"] {
  text-align: center;
}

/* Note */
.note {
  font-size: .875em;
  color: var(--color-primary);
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-gray-400);
  background-color: var(--color-gray-100);
}

/* list */
.list {
  padding-left: 1.5rem;
}
.list li {
  border-bottom: 1px solid var(--color-gray-200);
  padding: .25rem .25rem .5rem .25rem;
}
.list li:last-child {
  border-bottom: none;
}
.list li + li {
  margin-top: .75rem;
}
.list li a {
  color: var(--color-primary);
}
.list li .list {
  margin-top: .75rem;
}
.list li .list li {
  list-style: circle;
}
.list.grid-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.list.grid-list li {
  margin: 0;
  border: none;
}
.list .list-item-etc {
  list-style: none;
}

/* Nav Pagenation */
nav.pagination {
  display: block;
}
nav.pagination .nav-links {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  margin-top: 3rem;
}
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-primary-darker);
  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-primary-dark);
  color: var(--color-white);
  box-shadow: none;
}
nav.pagination .nav-links span.dots {
  box-shadow: none;
}

/* DOM */
main {
  padding-top: var(--header-height);
  /* overflow: hidden があると .sticky-grid 内の position: sticky が効かなくなるため付けない */
}
section {
  position: relative;
  padding: 3rem 0;
}
section.primary-section {
  background-color: var(--color-primary);
  color: var(--color-white);
}
section.secondary-section {
  background-color: var(--color-secondary);
  color: var(--color-white);
}
section.primary-section *:not(a),
section.secondary-section *:not(a) {
  color: var(--color-white);
}

/* Wrapper */
.wrapper {
  padding: 0 1rem;
}
section .wrapper .content + .content {
  margin-top: 1.5rem;
}
/* Contents */
section .contents {
  margin-top: 3rem;
  width: 100%;
}

/* 固定ページ */
#page-header {
  position: relative;
  background-image: url(./assets/images/common/page-bg.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 100%;
  height: calc(var(--header-height) + 1rem + 280px);
  margin: 0;
}
#page-header .page-header-bg::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  display: block;
  background-color: rgba(161, 161, 161, 0.8);
  background-image: radial-gradient(var(--color-black) 20%, transparent 0), radial-gradient(var(--color-black) 20%, transparent 0);
  background-position: 0 0, 10px 10px;
  background-size: 2px 2px;
}
#page-header .wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
#page-header .wrapper h1 {
  color: var(--color-primary-dark);
  text-align: center;
  line-height: .8;
}
#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-primary);
  letter-spacing: .1em;
}
.page-section {
  padding: 3rem 0 4rem;
}
.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: 10px solid var(--color-primary);
  padding-left: .5rem;
}
.page-section .wrapper h2.lawyer-title {
  border: none;
  justify-content: center;
  padding-top: 2rem;
}
.page-section .small-contents {
  padding-top: 1rem;
}
.page-section .contents {
  width: 100%;
  padding-top: 3rem;
}
.page-section .contents:first-child {
  padding-top: 0;
}
.page-section .table-contents {
  overflow: auto;
}
.page-section .note {
  padding: 1rem;
  margin-top: 2rem;
  background-color: var(--color-primary-super-pale);
}

/* Header */
header {
  width: 100%;
  height:var(--header-height);
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  position: fixed;
  top: var(--lu-admin-bar-height);
  right: 0;
  z-index: 99999;
}
header .header-logo {
  margin-top: 0;
  flex-grow: 1;
  padding-left: var(--spacing-xs);
}
header .header-logo img {
  max-width: clamp(160px, 20vw, 200px);
  width: 100%;
}
header .hamburger-menu {
  position: relative;
  display: block;
  width: var(--header-height);
  height:var(--header-height);
  cursor: pointer;
  z-index: 99999;
}
header .hamburger-menu span{
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 18px;
  height: 3px;
  background-color: var(--color-primary);
  width: 50%;
}
header .hamburger-menu span:first-child {
  top: 32px;
}
header .hamburger-menu span:last-child {
  top: 40px;
}
header .hamburger-menu.open span:first-child {
  top: 29px;
  left: 28px;
  transform: translateY(6px) rotate(-45deg);
  width: 35%;
}
header .hamburger-menu.open span:last-child {
  top: 42px;
  left: 28px;
  transform: translateY(-6px) rotate(45deg);
  width: 35%;
}
header .global-menu {
  display: none;
}

/* Drawer Menu */
#drawer-menu {
  position: fixed;
  top: var(--lu-admin-bar-height);
  width: 320px;
  right: -320px;
  height: calc(var(--stable-vh, 1vh) * 100 - var(--lu-admin-bar-height));
  background-color: rgb(255 255 255 / 90%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background-color: #1634707d;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
  backdrop-filter: blur(8px);
}
#drawer-menu ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  min-height: 100%;
  flex: 0 1 auto;
}
#drawer-menu ul li {
  list-style: none;
}
#drawer-menu ul li a {
  position: relative;
  text-decoration: none;
  display: block;
  font-weight: bold;
  color: var(--color-white);
  font-size: 1rem;
  transition: all .2s;
  line-height: normal;
}
#drawer-menu ul li a::after {
  position: absolute;
  left: 0;
  content: '';
  width: 100%;
  height: 1px;
  background: var(--color-secondary);
  bottom: -10px;
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform 0.5s;
}

#drawer-menu ul li a .ja {
  display: block;
}
#drawer-menu ul li a .en {
  color: var(--color-secondary);
  font-size: .75em;
}
#drawer-menu.show {
  right: 0;
}

/* MV */
#mv {
  position: relative;
  padding: 0;
}
#mv .images {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  justify-items: stretch;
}
#mv .images > img {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: auto;
  display: block;
  z-index: 0;
}
#mv .mv-logo {
  box-sizing: border-box;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  width: min(70vw, 420px);
  max-width: calc(100% - 2rem);
  margin: 0;
  z-index: 2;
  opacity: 0;
  animation: mv-logo-fade-in 0.9s ease 0.7s forwards;
  pointer-events: none;
}
#mv .mv-logo img {
  width: 100%;
  height: auto;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  #mv .mv-logo {
    opacity: 1;
    animation: none;
  }
}

/* Main Visual */
#main-visual {
  position: relative;
  padding: 0;
  min-height: calc(var(--stable-vh, 1vh) * 100 - var(--header-height) - var(--lu-admin-bar-height));
}
#main-visual .main-visual-image {
  position: relative;
  margin-top: 0;
  line-height: 0;
  font-size: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: calc(var(--stable-vh, 1vh) * 100 - var(--header-height) - var(--lu-admin-bar-height));
}
#main-visual .main-visual-image::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  display: block;
  background-color: rgba(161, 161, 161, 0.2);
  background-image: radial-gradient(var(--color-white) 20%, transparent 0), radial-gradient(var(--color-white) 20%, transparent 0);
  background-position: 0 0, 10px 10px;
  background-size: 2px 2px;
}
#main-visual .main-visual-image img {
  display: block;
  height: calc(var(--stable-vh, 1vh) * 50);
  width: 100%;
  object-fit: cover;
  margin: 0;
}
#main-visual .main-visual-image img:first-child {
  clip-path: polygon(100% 0, 0 0, 0 100%);
  margin-bottom: -1px;
}
#main-visual .main-visual-image img:last-child {
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
}
#main-visual .main-visual-contents {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#main-visual .main-visual-contents h1 {
  font-size: 4.6vw;
  line-height: var(--line-height-loose);
  letter-spacing: var(--letter-spacing-tight);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0;
  text-align: center;
}
#main-visual .main-visual-contents h1 span {
  display: inline-block;
}
#main-visual .main-visual-contents p {
  font-size: clamp(1rem, 4vw, 2rem);
}

/* News Ticker */
#news {
  padding: 0;
  background-color: var(--color-background);
  color: var(--color-primary);
}
#main-visual #news.news-in-fv {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}
.news-ticker {
  display: flex;
  align-items: center;
  align-items: stretch;
  overflow: hidden;
}
.news-ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary-dark);
  font-weight: 700;
  letter-spacing: var(--letter-spacing-wider);
}
.news-ticker-label-text {
  font-size: var(--font-size-sm);
}
.news-ticker-label a {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  transition: opacity var(--opacity-hover);
}
.news-ticker-track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 2rem, black calc(100% - 2rem), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 2rem, black calc(100% - 2rem), transparent);
}
.news-ticker.news-ticker--static .news-ticker-track {
  mask-image: none;
  -webkit-mask-image: none;
}
.news-ticker-wrapper {
  display: flex;
  align-items: center;
  width: max-content;
}
.news-ticker.news-ticker--static .news-ticker-wrapper {
  width: 100%;
}
.news-ticker-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 0.75rem 1.5rem;
  flex-shrink: 0;
}
.news-ticker.news-ticker--static .news-ticker-content {
  width: 100%;
  gap: 0;
}
.news-ticker-content .news-item {
  flex-shrink: 0;
}
.news-ticker-content .news-item a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
  transition: opacity var(--opacity-hover);
  white-space: nowrap;
  transition: all 0.5s;
}
.news-ticker-content .news-item dl {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  gap: 0;
  margin: 0;
}
.news-ticker-content .news-item dt {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-secondary-dark);
  margin: 0;
}
.news-ticker-content .news-item dd {
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Introduction */
#news + #introduction,
#main-visual + #introduction {
  margin-top: 0;
  padding-top: 0;
}
#introduction {
  position: relative;
  margin: 0;
  padding: 0;
  height: calc(var(--stable-vh, 1vh) * 100);
  max-height: calc(var(--stable-vh, 1vh) * 100);
  overflow: hidden;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
#introduction .droplet-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
#introduction .droplet-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}
#introduction .droplet-ring--outer {
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.35);
}
#introduction .wrapper {
  padding: 1rem;
  height: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#introduction .worries-h2 {
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin: 0;
  line-height: var(--line-height-loose);
  font-size: clamp(0.75rem, calc(var(--stable-vh, 1vh) * 2.5), 2rem);
  max-height: 100%;
  overflow: hidden;
}
#introduction .worries-h2 > span {
  display: block;
  margin: 0;
}
#introduction .worries-h2 > span:last-child {
  text-align: end;
  margin-right: 1rem;
}
#introduction .worries-h2 .char {
  display: inline-block;
  opacity: 0;
  color: var(--color-white);
}

/* Worries */
#worries .worries-list {
  padding: 1rem;
  background-color: var(--color-white);
  border-radius: var(--round-medium);
  box-shadow: var(--box-shadow-default);
  backdrop-filter: blur(10px);
  display: flex;
  gap: 1.25rem;
  flex-direction: column;
  align-items: flex-start;
}
#worries .worries-list li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
#worries .worries-list li i[class|="lf21"] {
  color: var(--color-secondary);
}

/* Strength */
#strength .strength-contents {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
#strength .strength-item dl {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
#strength .strength-item dl dt {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
}
#strength .strength-item dl dd {
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-primary-dark);
}

/* Mission */
#mission {
  background-image: url(./assets/images/top/mission-bg.webp);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
#mission .mission-formula {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 2rem auto;
}
#mission .mission-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1.15;
  background-color: var(--color-white);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-gray-300);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  padding: 1rem;
  box-sizing: border-box;
}
#mission .mission-item-en {
  font-size: var(--font-size-sm);
  font-family: var(--font-family-en-title);
  color: var(--color-primary-dark);
}
#mission .mission-item-ja {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-primary);
}
#mission .mission-item:last-child .mission-item-ja {
  font-size: var(--font-size-xl);
}
#mission .mission-operator {
  position: relative;
  width: 24px;
  height: 24px;
  margin: 0.75rem 0;
  flex-shrink: 0;
  transform: rotate(90deg);
}
#mission .mission-operator--multiply::before,
#mission .mission-operator--multiply::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 24px;
  background-color: var(--color-white);
  transform-origin: center center;
}
#mission .mission-operator--multiply::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
#mission .mission-operator--multiply::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
#mission .mission-operator--equals::before,
#mission .mission-operator--equals::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transform: translateX(-50%);
}
#mission .mission-operator--equals::before {
  top: 30%;
}
#mission .mission-operator--equals::after {
  bottom: 30%;
}

/* Lawyers */
#lawyers {
  display: flex;
  align-items: center;
  justify-content: center;
}
#lawyers .section-bg {
  position: relative;
}
#lawyers::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  display: block;
  background-color: rgba(54, 54, 54, 0.9);
  background-image: radial-gradient(var(--color-primary) 20%, transparent 0), radial-gradient(var(--color-primary) 20%, transparent 0);
  background-position: 0 0, 10px 10px;
  background-size: 4px 4px;
}
#lawyers .section-bg + .wrapper {
  position: relative;
  z-index: 1;
}

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

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

/* Post Header */
.post-header {
  background-color: var(--color-primary);
  padding: 2rem 0;
}
.post-header *,
.post-header .breadcrumbs ol li a,
.post-header .breadcrumbs ol li:after,
.post-header .breadcrumbs ol li span {
  color: var(--color-white);
}
.post-header p.time-tag {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-top: 2rem;
  letter-spacing: 2px;
}
.post-header h2 {
  margin: 1rem auto 0;
}

/* 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-on-background);
  padding: 0.75rem;
  background-color: var(--color-white);
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  transition: all 0.2s ease;
}
.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-sm);
  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-primary-dark);
  margin-bottom: var(--spacing-xs);
  line-height: var(--line-height-tight);
}
.form-block label.title .required {
  color: var(--color-error);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

/* 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-on-background);
  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: var(--font-size-sm);
  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;
  background-color: var(--color-primary-super-pale);
  border: 2px solid var(--color-primary-pale);
  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;
  color: var(--color-on-background);
}
.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-primary);
  color: var(--color-on-primary);
  border: 2px solid var(--color-primary);
}
.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/cta-bg.webp);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
  min-height: calc(var(--stable-vh, 1vh) * 100);
  display: flex;
  align-items: center;
  justify-content: center;
}
#cta .cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px);
}
#cta .wrapper {
  position: relative;
  z-index: 1;
}
#cta .cta-desc {
  position: relative;
  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 {
  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;
  max-width: 560px;
  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-white);
  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);
}

/* News Archive */
#news-archive .news-list .news-content {
  margin-bottom: 1.5rem;
}
#news-archive .news-list .news-content a {
  position: relative;
  display: block;
  color: var(--color-primary-dark);
  text-decoration: none;
}
#news-archive .news-list .news-content a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-secondary);
  transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
#news-archive .news-list .news-content a dl {
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--color-primary-light);
}
#news-archive .news-list .news-content a dt {
  display: inline-block;
  font-size: .75rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: .25rem .5rem;
  letter-spacing: 2px;
}
#news-archive .news-list .news-content a dd {
  margin: .5rem 0 0 1rem;
}

/* 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-sm);
  border: 1px solid var(--color-gray-200);
  position: relative;
  overflow: hidden;
  background-color: var(--color-white);
  word-wrap: break-word;
  overflow-wrap: break-word;
  transition: all 0.5s;
}
.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: .5rem;
}
.lawyer-list ul li a .lawyer-box .post {
  padding-right: 1rem;
  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;
}

/* Service Page */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.services-list li {
  list-style: none;
  padding: .25rem .75rem;
  font-size: .875rem;
  background-color: var(--color-secondary-light);
  color: var(--color-white);
  border-radius: var(--round-medium);
}

/* Lawyer Page Person */
.page-section .wrapper:has(.lawyer-images) {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: 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-gray-500);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}
.lawyer-title .name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  margin: 0;
}
.lawyer-title .name ruby {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--color-primary-dark);
}
.lawyer-title .name-en {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 0.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);
}

/* Author Box */
.author-box {
  margin-top: 3rem;
}
.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 {
  border-radius: 50%;
  width: 100%;
}
.author-info .author-desc {
  width: auto;
}
.author-info .author-desc .desc {
  margin-top: .5rem;
  font-size: 0.875rem;
}

/* News Page */
.news-single-page .page-section {
  background-color: var(--color-gray-200);
}
.news-single-page .contents.post-contents {
  background-color: var(--color-white);
  padding: 2rem;
}
.news-single-page #cta {
  margin-top: 0;
}

/* Columns Single Page */
.columns-single-page .page-section {
  background-color: var(--color-gray-200);
}
.columns-single-page .contents.column-contents {
  background-color: var(--color-white);
  padding: 2rem;
}
.columns-single-page #cta {
  margin-top: 0;
}
.columns-single-page .sidebar .sidebar-empty {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  line-height: var(--line-height-tight);
}

/* 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-primary-pale);
  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 .6rem;
  cursor: pointer;
  white-space: nowrap;
  margin: 0.5rem;
  text-decoration: none;
}
.sns-share-box a i[class|="lf21"] {
  font-size: 1.25rem;
}
.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);
}

/* 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;
  padding: 3rem 0;
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}
footer .footer-logo {
  margin: 0 auto 2rem;
}
footer .footer-logo a {
  transition: all 0.5s;
}
footer .footer-logo img {
  max-width: clamp(240px, 10vw, 340px);
  width: 100%;
}
footer .footer-address p +p {
  margin-top: 1rem;
}
footer .footer-menu {
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: .5rem;
}
footer .footer-menu li {
  list-style-type: none;
}
footer .footer-menu li a {
  position: relative;
  font-weight: bold;
  text-decoration: none;
  display: block;
  color: var(--color-on-primary);
  border-bottom: 1px solid var(--color-on-primary);
  padding-bottom: .5rem;
  transition: all 0.5s;
  padding: 0.5rem;
}
/* .c-article::after 風：白線の上にセカンダリー線が重なり、1本の線として色替わり */
footer .footer-menu li a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-secondary-light);
  transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
footer .copyright p {
  font-size: .75rem;
}

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

/* For Tablet */
@media screen and (min-width:768px) {
  /* Variables */
  :root {
    --font-size-base: 17px;
  }

  /* DOM */
  section {
    padding: 5rem 0;
  }

  /* Wrapper */
  .wrapper {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
  }

  /* Explanation Box */
  .explanation-box dl dd {
    width: 100%;
  }

  /* Breadcrumbs */
  .breadcrumbs.block {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
  }

  /* News */
  .news-ticker-content .news-item dl {
    flex-direction: row;
    gap: 1rem;
    font-size: 1.25rem;
  }

  /* Mission */
  #mission .mission-formula {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  #mission .mission-operator {
    transform: rotate(0deg);
  }

  /* Lawyer */
  #lawyers {
    min-height: auto;
  }

  /* CTA */
  #cta {
    min-height: auto;
  }
}

/* For Desktop */
@media screen and (min-width:1025px) {
  /* Variables */
  :root {
    --font-size-base: 18px;
  }

  /* Breadcrumbs */
  .breadcrumbs.block {
    max-width: 1980px;
    margin: 0 auto;
  }

  /* List */
  .list.grid-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  /* Table */
  .table th,
  .table td {
    padding: 1rem;
    font-size: 1rem;
  }

  /* DOM */
  section {
    padding: 7rem 0;
  }

  /* Wrapper */
  .wrapper {
    max-width: 1980px;
  }

  /* Page Section */
  .page-section .wrapper h2.lawyer-title {
    margin-bottom: 0;
  }

  /* Header */
  header .header-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  header .global-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    z-index: 9999;
    background-color: transparent;
  }
  header .global-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  header .global-menu ul li a {
    position: relative;
    display: block;
    padding: 0.25rem 0;
    font-size: var(--font-size-sm);
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.1;
    text-align: center;
  }
  header .global-menu ul li a::after {
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: 1px;
    background: var(--color-primary);
    bottom: -0.1rem;
    transform: scale(0, 1);
    transition: transform 0.5s;
    transform-origin: center top;
  }
  header .global-menu ul li a .ja {
    display: block;
  }
  header .global-menu ul li a .en {
    font-size: 0.7em;
    color: var(--color-primary-pale);
  }

  #mv {
    display: flex;
    flex-direction: column;
    height: calc(var(--stable-vh, 1vh) * 100 - var(--header-height) - var(--lu-admin-bar-height));
    padding: 0;
  }
  #mv .images {
    margin-top: 0;
    flex: 1 1 auto;
    min-height: 0;
  }
  #mv .mv-logo {
    width: min(78vw, 480px);
  }
  #mv .images > img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }
  #mv #news.news-in-fv {
    position: static;
    flex: 0 0 auto;
    width: 100%;
    z-index: 2;
  }

  /* Main Visual */
  #main-visual .main-visual-contents h1 {
    font-size: clamp(2rem, 3vw, 4rem);
  }

  /* Worries */
  #worries {
    text-align: center;
  }
  #worries .worries-list {
    width: fit-content;
    margin: 0 auto;
    padding: 2rem;
  }

  /* Features */
  #features .contents {
    display: flex;
    flex-direction: row-reverse;
    gap: 3rem;
  }
  #features .contents .desc {
    width: 90%;
  }
  #features .contents .images {
    margin-top: 12rem;
  }
  #features h3 {
    text-align: center;
  }

  /* Introduction */
  #introduction .worries-h2 {
    writing-mode: rl-tb;
    font-size: clamp(2rem, calc(var(--stable-vh, 1vh) * 3.5), 3.5rem);
  }

  /* Mission */
  #mission {
    text-align: center;
  }
  #mission .mission-formula {
    margin: 4rem auto;
  }
  #mission .mission-item {
    max-width: 280px;
  }
  #mission .mission-item-ja {
    font-size: var(--font-size-xl);
  }

  /* Philosophy */
  #philosophy .flex-box {
    display: flex;
    flex-direction: row;
    gap: 3rem;
  }
  #philosophy .flex-box .images {
    margin-top: 0;
  }

  /* Lawyer */
  .lawyer-list ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  .lawyer-list ul li {
    margin: 0;
    width: 100%;
  }
  .lawyer-list ul li + li {
    margin: 0;
  }

  /* Columns List */
  .columns-list li {
    margin: 0;
    width: 100%;
  }
  .columns-list li + li {
    margin: 0;
  }
  .columns-list li a .post-item .post-desc {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .columns-list li a .post-item .post-desc .post-ttl {
    flex-grow: 1;
  }

  /* Sidebar Layout */
  .page-section .sidebar-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
  }
  .sidebar-layout .sidebar {
    margin-top: 0;
  }

  /* Page Section */
  .page-section .wrapper h2 {
    margin-bottom: 2.5rem;
  }
  .page-section .contents {
    padding-top: 5rem;
  }

  /*  */
  .access-flex {
    display: grid;
    grid-template-columns: 2.5fr 3fr;
    gap: 3rem;
  }
  .access-flex .images {
    margin-top: 0;
  }

  /* Lawyer Page Sticky Grid */
  .sticky-grid {
    display: grid;
    grid-template-columns: .75fr 2fr;
    gap: 4rem;
    align-items: start;
  }
  .sticky-grid .sticky-lawyer-name {
    position: sticky;
    top: calc(var(--header-height) + var(--lu-admin-bar-height) + 2rem);
    align-self: start;
    height: fit-content;
  }

  /* Footer */
  footer .footer-contents {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
  }
  footer .footer-menu {
    min-width: 620px;
    margin-left: auto;
    margin-right: 0;
  }

  /* Hover Animations */
  #drawer-menu ul li a:hover::after {
    transform: scale(1, 1);
    transform-origin: left top;
  }
  .button a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
  }
  .button a:hover::before {
    background-color: var(--color-primary-pale);
    transform: translateX(1rem);
  }
  header .global-menu ul li a:hover::after {
    transform: scale(1, 1)
  }
  .columns-list li a:hover .post-thumbnail img {
    transform: scale(1.05);
  }
  #cta .cta-buttons .button a:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
  }
  a.to-top-button:hover {
    transform: scale(1.05);
  }
  #news-archive .news-list .news-content a:hover::after {
    width: 100%;
  }
  .news-ticker-content .news-item a:hover,
  footer .footer-logo a:hover,
  .post-list li a:hover,
  .breadcrumbs ol li a:hover {
    opacity: 0.5;
  }
  .columns-list li a:hover {
    transform: translateY(-4px);
  }
  .lawyer-list ul li a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
  }
  footer .footer-menu li a:hover {
    color: var(--color-secondary-light);
  }
  footer .footer-menu li a:hover::after {
    width: 100%;
  }
}

/* Keyframes */
@keyframes mv-logo-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}