@charset "UTF-8";

/* =========================================================
   株式会社 中山不動産 — 共通スタイル
   ========================================================= */

:root {
  --black: #000;
  --white: #fff;
  --bg-gray: #eff0f5;
  --line: #dedede;
  --line-strong: #ccc;

  /* 図版のアクセント色 */
  --accent: #b3424a;
  --accent-soft: #c7878d;
  --text: #000;
  --muted: #6b6b6b;

  --header-h: 100px;
  --header-h-sp: 64px;
  --inner: 1200px;
  --pad-x: 40px;
  --pad-x-sp: 24px;

  --mincho: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro",
    "MS PMincho", "MS P明朝", serif;
  --gothic: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic",
    YuGothic, Meiryo, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--mincho);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease),
    background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- layout helpers ---------- */
.inner {
  width: 100%;
  max-width: var(--inner);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* キーボード操作でフォーカスしたときだけ現れる「本文へスキップ」リンク */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  padding: 14px 28px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.1em;
  transform: translate(-50%, -110%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* 画面には出さないが、検索エンジンとスクリーンリーダーには読ませたい文言 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pc-only {
  display: block;
}
.sp-only {
  display: none;
}
br.sp {
  display: none;
}
br.pc {
  display: inline;
}

/* ---------- buttons ---------- */
.buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.btn,
.buttons-row > a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 240px;
  padding: 16px 24px;
  border: 1px solid var(--black);
  font-size: 15px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  background: transparent;
}

.btn::after,
.buttons-row > a::after {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.btn:hover,
.buttons-row > a:hover {
  background: var(--black);
  color: var(--white);
}

.btn:hover::after,
.buttons-row > a:hover::after {
  transform: translateX(6px);
}

.btn--fill {
  background: var(--black);
  color: var(--white);
}
.btn--fill:hover {
  background: var(--white);
  color: var(--black);
}

/* =========================================================
   header
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--pad-x);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: height 0.3s var(--ease), border-color 0.3s var(--ease);
}

.header.is-scrolled {
  height: 72px;
  border-bottom-color: var(--line);
}

.header-language-ui-box {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.logo-link {
  display: block;
}

.logo {
  font-family: var(--mincho);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  white-space: nowrap;
}

.logo small {
  display: block;
  margin-top: 6px;
  font-family: var(--gothic);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--muted);
}

/* language switch */
.language-ui {
  position: relative;
  font-family: var(--gothic);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.language-ui > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  cursor: pointer;
}

.language-ui > a::after,
.global-navi .arrow::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.language-sub-list {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 72px;
  padding: 8px 0;
  background: var(--white);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.3s var(--ease);
}

.language-ui:hover .language-sub-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-sub-list a {
  display: block;
  padding: 6px 14px;
}
.language-sub-list a:hover {
  background: var(--bg-gray);
}

/* global nav */
.global-navi {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.global-navi > li {
  position: relative;
}

.global-navi > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  white-space: nowrap;
  cursor: pointer;
}

.global-navi > li > a:hover {
  opacity: 0.55;
}

.global-navi > li.is-current > a::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 1px;
  background: currentColor;
}

.global-navi .sub-list {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 8px 0;
  background: var(--white);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.3s var(--ease);
}

.global-navi > li:hover .sub-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.global-navi > li:hover .arrow::after {
  transform: translateY(1px) rotate(225deg);
}

.global-navi .sub-list a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
}
.global-navi .sub-list a:hover {
  background: var(--bg-gray);
}

.global-navi > li.invert > a {
  background: var(--black);
  color: var(--white);
  padding: 14px 26px;
  margin-left: 12px;
}
.global-navi > li.invert > a:hover {
  opacity: 1;
  background: #333;
}

/* hamburger */
.menu-button {
  display: none;
  align-items: center;
  gap: 10px;
  font-family: var(--gothic);
  font-size: 11px;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.menu-button .bars {
  position: relative;
  display: block;
  width: 24px;
  height: 12px;
}
.menu-button .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--black);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-button .bars span:nth-child(1) {
  top: 0;
}
.menu-button .bars span:nth-child(2) {
  bottom: 0;
}

body.is-drawer-open .menu-button .bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(20deg);
}
body.is-drawer-open .menu-button .bars span:nth-child(2) {
  transform: translateY(-5.5px) rotate(-20deg);
}

/* drawer */
.drawer {
  position: fixed;
  inset: var(--header-h-sp) 0 0 0;
  z-index: 99;
  background: var(--white);
  overflow-y: auto;
  padding: 24px var(--pad-x-sp) 80px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.35s var(--ease);
}

body.is-drawer-open .drawer {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drawer > ul > li {
  border-bottom: 1px solid var(--line);
}

.drawer > ul > li > a,
.drawer .drawer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 4px;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-align: left;
}

.drawer .drawer-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.drawer li.is-open .drawer-toggle::after {
  transform: translateY(2px) rotate(225deg);
}

.drawer .sub-list {
  display: none;
  padding: 0 4px 16px;
}
.drawer li.is-open .sub-list {
  display: block;
}
.drawer .sub-list a {
  display: block;
  padding: 12px 0 12px 16px;
  font-size: 15px;
  color: var(--muted);
  border-left: 1px solid var(--line);
}

.drawer-foot {
  margin-top: 32px;
}
.drawer-foot .btn {
  width: 100%;
}
.drawer-lang {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  font-family: var(--gothic);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.drawer-lang .is-active {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   main visual (top page)
   ========================================================= */
.main {
  padding-top: var(--header-h);
}

/* 背景は白一枚。画像・グラデーション・装飾は置かない。 */
.mainvisual {
  position: relative;
  height: 680px;
  overflow: hidden;
}

.mainvisual .bg {
  position: absolute;
  inset: 0;
  background: var(--white);
}

.mainvisual .slide {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  max-width: var(--inner);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.slide-item,
.slide .last {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  top: 50%;
  transform: translateY(-46%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.slide-item.active,
.slide .last.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
}

.slide-item .ttl {
  font-size: 20px;
  letter-spacing: 0.16em;
  margin-bottom: 28px;
}

.slide-item .ttl span {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--black);
}

.slide-item .body,
.slide .last .body {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.6;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.slide .last .buttons-row {
  margin-top: 48px;
}

/* progress bar */
.progress-bar {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 56px;
  width: 100%;
  max-width: var(--inner);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  gap: 40px;
}

.progress {
  flex: 1;
  max-width: 220px;
}

.progress .bar {
  position: relative;
  display: block;
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}

.progress .bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--black);
}

.progress.is-active .bar::after {
  animation: progress-fill var(--slide-duration, 5s) linear forwards;
}

.progress.is-done .bar::after {
  width: 100%;
}

@keyframes progress-fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.progress .text {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.progress.is-active .text,
.progress.is-done .text {
  color: var(--black);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: var(--pad-x);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--gothic);
  font-size: 10px;
  letter-spacing: 0.24em;
  writing-mode: vertical-rl;
  color: var(--muted);
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 64px;
  background: var(--line-strong);
  overflow: hidden;
  position: relative;
}

/* =========================================================
   sections
   ========================================================= */
.section {
  padding-block: 120px;
}

.section--gray {
  background: var(--bg-gray);
}

.section-title {
  font-size: 30px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  font-weight: 500;
}

.section-title .en {
  display: block;
  margin-top: 10px;
  font-family: var(--gothic);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
}

/* ---------- news ---------- */
.news h3 {
  font-size: 30px;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 40px;
}

.news ul {
  border-top: 1px solid var(--line);
}

.news li {
  border-bottom: 1px solid var(--line);
}

.news li > a {
  display: grid;
  grid-template-columns: 150px 120px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 26px 8px;
}

.news li > a:hover {
  background: rgba(0, 0, 0, 0.03);
}

.news time {
  font-family: var(--gothic);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.news .category {
  display: inline-block;
  padding: 3px 0;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
}

.news .text {
  font-size: 16px;
  line-height: 1.8;
}

.news li > a:hover .text {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news .buttons-row {
  justify-content: flex-end;
}

/* ---------- contents-list ---------- */
.contents-list .row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  padding-block: 80px;
  border-top: 1px solid var(--line);
}

.contents-list .row:last-child {
  border-bottom: 1px solid var(--line);
}

.contents-list h3 {
  font-size: 30px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  font-weight: 500;
}

.contents-list .text {
  font-size: 16px;
  line-height: 2.1;
}

/* ---------- property pickup cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.card {
  display: block;
  background: var(--white);
}

.card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg-gray);
  overflow: hidden;
}

.card .thumb img,
.card .thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .thumb img,
.card:hover .thumb svg {
  transform: scale(1.05);
}

.card .meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  font-family: var(--gothic);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.card .tag {
  border: 1px solid var(--line-strong);
  padding: 2px 10px;
}

.card h4 {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.card .price {
  margin-top: 10px;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.card .price small {
  font-size: 13px;
  color: var(--muted);
  margin-left: 6px;
}

/* =========================================================
   下層ページ共通
   ========================================================= */
.page-head {
  padding-block: 100px 72px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.page-head .en {
  display: block;
  margin-top: 16px;
  font-family: var(--gothic);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 20px;
  font-family: var(--gothic);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 12px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.lead {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.9;
  letter-spacing: 0.08em;
}

.prose p + p {
  margin-top: 1.8em;
}

.prose h3 {
  margin-top: 3em;
  margin-bottom: 1em;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.prose .sign {
  margin-top: 3em;
  text-align: right;
  font-size: 18px;
  letter-spacing: 0.1em;
}

.prose .sign small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

/* definition table */
.table-profile th,
.table-profile td {
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.table-profile th {
  width: 220px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.table-profile tr:first-child th,
.table-profile tr:first-child td {
  border-top: 1px solid var(--line);
}

/* numbered service list */
.numbered {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 56px;
}

.numbered > li .num {
  font-family: var(--gothic);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.numbered > li h3 {
  margin-top: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.numbered > li p {
  margin-top: 20px;
  line-height: 2.1;
}

/* =========================================================
   サービスページ（刀 /service/ のレイアウト）
   中央揃えの見出し → アンカーボタン3つ → 事業ごとの
   「見出し＋リード文＋図版＋ボタン」を罫線で区切って縦に並べる
   ========================================================= */
.page-head--center {
  padding-block: 100px 0;
  border-bottom: 0;
  text-align: center;
}

.page-head--center h1 {
  font-size: 36px;
}

.service-section {
  background: var(--bg-gray);
  padding-block: 100px 0;
}

/* 刀と同じく、内側は余白なしのちょうど 1000px */
.service-inner {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
}

.service-catch {
  margin-bottom: 55px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: center;
}

/* 事業へのアンカーボタン */
.anchor-box {
  display: flex;
  justify-content: space-between;
  padding-bottom: 100px;
  border-bottom: 2px solid var(--black);
}

/* 刀と同じく幅は 300px 固定。余白は space-between が振り分ける */
.anchor-box a {
  position: relative;
  display: flex;
  flex: 0 0 300px;
  align-items: center;
  justify-content: center;
  min-height: 75px;
  padding: 12px 16px 22px;
  border: 1px solid var(--black);
  background: transparent;
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-align: center;
}

.anchor-box a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.anchor-box a:hover {
  background: var(--black);
  color: var(--white);
}

.anchor-box a:hover::after {
  transform: translateX(-50%) translateY(3px) rotate(45deg);
}

/* 事業ごとのブロック */
.service-detail + .service-detail {
  margin-top: 50px;
  border-top: 2px solid var(--black);
}

.service-detail h4 {
  padding-top: 100px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.service-detail .lead-c {
  margin: 28px 0 50px;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.05em;
  text-align: center;
}

/* 図版。狭い画面では図版だけ横スクロールさせる */
.service-figure {
  overflow-x: auto;
}

.service-figure img,
.service-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

/* 図版の下に補足文とワイドボタンを置くブロック（刀の figure2-box 相当） */
.figure2-box {
  padding-bottom: 70px;
}

.figure2-box p {
  font-size: 18px;
  line-height: 46px;
  letter-spacing: 0.02em;
  text-align: center;
}

.figure-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 685px;
  max-width: 100%;
  min-height: 85px;
  margin: 16px auto 0;
  padding: 16px 24px;
  background: var(--black);
  color: var(--white);
  font-size: 18px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
}

.figure-link::after {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.figure-link:hover {
  background: #333;
}

.figure-link:hover::after {
  transform: translateX(6px);
}

/* 図版の横スクロールを促す注記。狭い画面でだけ出す */
.service-figure-note {
  display: none;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  text-align: center;
}

.detail-button-box {
  display: flex;
  justify-content: center;
  gap: 55px;
  padding-block: 50px 0;
}

.service-detail-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 400px;
  max-width: 100%;
  min-height: 85px;
  padding: 16px 24px;
  background: var(--black);
  color: var(--white);
  font-size: 18px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
}

.service-detail-button::after {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.service-detail-button:hover {
  background: #333;
}

.service-detail-button:hover::after {
  transform: translateX(6px);
}

/* member list */
.members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
}

.member .photo {
  aspect-ratio: 3 / 4;
  background: var(--bg-gray);
  overflow: hidden;
}

.member .photo img,
.member .photo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member .role {
  margin-top: 20px;
  font-family: var(--gothic);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.member h3 {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.member p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 2;
  color: #333;
}

/* form */
.form {
  display: grid;
  gap: 32px;
  max-width: 840px;
}

.form-row {
  display: grid;
  gap: 12px;
}

.form-row > label {
  font-size: 14px;
  letter-spacing: 0.12em;
}

.form-row .req {
  margin-left: 10px;
  padding: 2px 8px;
  background: var(--black);
  color: var(--white);
  font-family: var(--gothic);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--black);
}

.form textarea {
  min-height: 200px;
  resize: vertical;
}

.form .agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.form .agree a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}

/* contact strip */
.contact-strip {
  background: var(--black);
  color: var(--white);
  padding-block: 96px;
  text-align: center;
}

.contact-strip h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.contact-strip p {
  margin-top: 20px;
  color: #c9c9c9;
  font-size: 15px;
}

.contact-strip .buttons-row {
  justify-content: center;
}

.contact-strip .buttons-row > a {
  border-color: var(--white);
}

.contact-strip .buttons-row > a:hover {
  background: var(--white);
  color: var(--black);
}

.contact-strip .tel {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--gothic);
  font-size: 28px;
  letter-spacing: 0.1em;
}

.contact-strip .tel small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #c9c9c9;
  margin-top: 8px;
}

/* =========================================================
   footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 56px;
}

.footer .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer .copy {
  font-family: var(--gothic);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.footer-links a:hover {
  opacity: 0.55;
}

.footer-sns {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--gothic);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer-sns a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--black);
}

.footer-sns a:hover {
  background: var(--black);
  color: var(--white);
}

/* =========================================================
   scroll reveal
   ========================================================= */
/* JS が有効なときだけ初期状態を隠す。
   JS の読み込みに失敗しても本文が消えないようにするための保険。 */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   responsive
   ========================================================= */
@media screen and (max-width: 1100px) {
  .global-navi,
  .header-language-ui-box .language-ui {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  :root {
    --header-h: var(--header-h-sp);
  }

  .header {
    height: var(--header-h-sp);
    padding-inline: var(--pad-x-sp);
  }

  .header.is-scrolled {
    height: var(--header-h-sp);
  }

  .logo {
    font-size: 18px;
  }
}

/* 1000px + 左右の余白を確保できなくなったら、内側にも余白を付ける */
@media screen and (max-width: 1080px) {
  .service-inner {
    padding-inline: var(--pad-x);
  }
}

@media screen and (max-width: 900px) {
  .cards,
  .members {
    grid-template-columns: repeat(2, 1fr);
  }

  .contents-list .row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 56px;
  }

  .numbered {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .anchor-box {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 56px;
  }

  .anchor-box a {
    flex: 0 0 auto;
  }

  .detail-button-box {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --pad-x: var(--pad-x-sp);
  }

  body {
    font-size: 15px;
  }

  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }
  br.sp {
    display: inline;
  }
  br.pc {
    display: none;
  }

  .section {
    padding-block: 72px;
  }

  .mainvisual {
    height: 520px;
  }

  .slide-item .ttl {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .progress-bar {
    bottom: 40px;
    gap: 12px;
  }

  .progress .text {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .scroll-cue {
    display: none;
  }

  .buttons-row {
    gap: 12px;
    margin-top: 32px;
  }

  .btn,
  .buttons-row > a {
    min-width: 100%;
    padding: 15px 20px;
    font-size: 14px;
  }

  .news h3,
  .contents-list h3,
  .section-title {
    font-size: 24px;
  }

  .news li > a {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 4px;
  }

  .news .category {
    justify-self: start;
    padding-inline: 12px;
  }

  .news .buttons-row {
    justify-content: stretch;
  }

  .cards,
  .members {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-head {
    padding-block: 56px 40px;
  }

  .page-head--center {
    padding-block: 56px 0;
  }

  .page-head--center h1 {
    font-size: 28px;
  }

  .service-section {
    padding-block: 56px 0;
  }

  .service-catch {
    margin-bottom: 32px;
    font-size: 22px;
  }

  .service-detail h4 {
    padding-top: 56px;
    font-size: 24px;
  }

  .service-detail .lead-c {
    margin: 20px 0 32px;
    font-size: 15px;
    line-height: 1.9;
    text-align: left;
  }

  .service-figure img,
  .service-figure svg {
    width: 720px;
    max-width: none;
  }

  .service-figure-note {
    display: block;
  }

  .figure2-box {
    padding-bottom: 40px;
  }

  .figure2-box p {
    font-size: 15px;
    line-height: 2;
    text-align: left;
  }

  .figure-link {
    width: 100%;
    min-height: 64px;
    font-size: 15px;
  }

  .detail-button-box {
    padding-block: 32px 0;
  }

  .service-detail-button {
    width: 100%;
    min-height: 64px;
    font-size: 15px;
  }

  .table-profile th,
  .table-profile td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
  }

  .table-profile th {
    padding-top: 24px;
    font-size: 13px;
  }

  .table-profile td {
    padding: 6px 0 24px;
    border-bottom: 1px solid var(--line);
  }

  .table-profile tr:first-child th {
    border-top: 0;
  }

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

  .footer-links {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .contact-strip {
    padding-block: 64px;
  }
}
