/**
 * 田岡歯科 採用サイト 共通スタイル
 * レスポンシブ対応（Figmaデザイン準拠）
 */

@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600;700&display=swap");

/* ========================================
   CSS Variables（Figmaデザイントークン）
   ======================================== */
:root {
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-border: #ddd;
  /* Figma: header/surface, nav, button */
  --surface-header: #ffffff;
  --nav-text: #878079;
  --nav-border-active: #878079;
  --btn-primary-bg: #607d8b;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: #878079;
  --footer-bg: #e0eff3;
  --footer-text: #878079;
  --footer-accent: #607d8b;
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-jp: "Noto Serif JP", "Noto Serif", var(--font-sans);
  --container-max: 1280px;
  --container-padding: 24px;
  --header-height: 100px;
  --header-pt: 0;
  --header-pb: 0;
  --breakpoint-sp: 768px;
  --breakpoint-tb: 1024px;
}

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* ========================================
   Layout
   ======================================== */
.l-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* アンカーリンク時：対象セクションがヘッダー直下に表示されるよう余白を付与 */
#stable,
#reward,
#career,
#independent,
#private,
#commute {
  scroll-margin-top: var(--header-height);
}

/* ========================================
   Header（Figmaデザイン準拠）
   ======================================== */
.l-header {
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 0;
  height: var(--header-height);
  background: var(--surface-header);
  padding: var(--header-pt) var(--container-padding) var(--header-pb);
}

.l-header__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  max-width: var(--container-max);
  margin: 0 auto;
  min-height: 36px;
}

/* SP用：ロゴ＋ハンバーガーをまとめるバー（PCではハンバーガー非表示） */
.l-header__sp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 10px;
}

.l-header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 12px 6px;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--btn-primary-bg);
}

.l-header__menu-btn-inner {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 8px 0;
}

.l-header__menu-btn-inner::before,
.l-header__menu-btn-inner::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.l-header__menu-btn-inner::before {
  top: -8px;
}

.l-header__menu-btn-inner::after {
  top: 8px;
}

/* ロゴエリア：画像のみ */
.l-header__logo {
  margin: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.l-header__logo a {
  display: block;
}

.l-header__logo a:hover {
  opacity: 0.85;
}

.l-header__logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* ナビゲーション：一段目＝CTA（右寄せ横並び）、二段目＝6リンク（右寄せ横並び） */
.l-header__nav-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  flex: 1;
  min-width: 0;
}

.l-header__nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.l-header__nav-row--cta {
  gap: 16px;
}

.l-header__nav-row--links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-header__nav-row--links li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.l-header__nav-row--links a {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--nav-text);
  padding: 4px 0;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}

.l-header__nav-row--links a:hover,
.l-header__nav-row--links a.is-current {
  border-bottom-color: var(--nav-border-active);
}

/* PC・タブレット：ドロワー用の「トップに戻る」は非表示 */
@media (min-width: 769px) {
  .l-header__nav-row--links ul li:first-child {
    display: none;
  }
}

/* CTAボタン：グローバルナビの右上（右端）に配置 */
.l-header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 8px 12px;
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  background: var(--btn-primary-bg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.c-btn:hover {
  opacity: 0.9;
}

/* ヘッダー・レスポンシブ */
@media (max-width: 1024px) {
  .l-header__inner {
    flex-wrap: wrap;
    justify-content: center;
  }
  .l-header__nav-wrap {
    order: 3;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
  }
  .l-header__nav-row {
    flex-wrap: wrap;
    justify-content: center;
  }
  .l-header__nav-row--links ul {
    justify-content: center;
  }
  .l-header__cta {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-pt: 0;
    --header-pb: 0;
    --container-padding: 16px;
  }
  .l-header {
    height: auto;
    padding: 0;
  }
  .l-header__inner.l-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-width: none;
  }
  .l-header__nav-wrap {
    order: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
  }
  .l-header__nav-row--cta {
    display: flex;
    gap: 1px;
    width: 100%;
  }
  .l-header__cta {
    display: flex;
    flex: 1 1 0;
    gap: 1px;
    min-width: 0;
    margin: 0;
  }
  .l-header__cta .c-btn {
    flex: 1 0 0;
    min-width: 0;
    padding: 8px;
    font-size: 14px;
  }
  .l-header__drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--surface-header);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 102;
    overflow-y: auto;
    padding: 24px 20px;
    pointer-events: none;
  }
  body.is-menu-open .l-header__drawer {
    transform: translateX(0);
    pointer-events: auto;
  }
  .l-header__drawer .l-header__nav-row--links {
    display: block;
  }
  .l-header__drawer .l-header__nav-row--links ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .l-header__drawer .l-header__nav-row--links li {
    border-bottom: 1px solid var(--color-border);
  }
  .l-header__drawer .l-header__nav-row--links a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
  }
  .l-header__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 101;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  body.is-menu-open .l-header__overlay {
    opacity: 1;
    pointer-events: auto;
  }
  .l-header__sp-bar {
    order: 1;
    padding: 8px 20px;
    width: 100%;
    background: var(--surface-header);
  }
  .l-header__logo {
    justify-content: flex-start;
  }
  .l-header__menu-btn {
    display: flex;
  }
  .l-header__nav a {
    font-size: 12px;
  }
  .c-btn {
    min-width: 0;
    font-size: 14px;
    padding: 8px;
  }
}

/* ========================================
   Main
   ======================================== */
.l-main {
  margin: 0;
  min-height: calc(100vh - var(--header-height) - 120px);
  padding: 0;
}

@media (max-width: 768px) {
  .l-main {
    padding: 0;
  }
}

/* ========================================
   Top Page MV（Figma node 153:1497）
   ======================================== */
.p-mv {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
  background: #e8eef2;
}

.p-mv__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.p-mv__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding: 0 40px 0 0;
}

@media (min-width: 1025px) {
  .p-mv__content {
    padding-right: 80px;
  }
}

.p-mv__headline {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 100px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--btn-primary-bg);
  text-align: justify;
}

.p-mv__headline span {
  display: block;
}

.p-mv__tags {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.p-mv__tags-row {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.p-mv__tag {
  flex: 1 1 0;
  min-width: 140px;
  padding: 16px;
  background: #fff;
  border: 1px solid #d1d9de;
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #3b505f;
  text-align: center;
}

.p-mv__lead {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #3b505f;
  text-align: justify;
}

.p-mv__visual {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  width: 584px;
  max-width: 100%;
  height: 620px;
}

.p-mv__vertical-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  flex-shrink: 0;
  width: 64px;
  height: 260px;
  padding: 16px 0;
  background: var(--btn-primary-bg);
}

.p-mv__vertical-text span {
  display: block;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.1em;
}

.p-mv__img-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--color-border);
}

.p-mv__img-wrap img {
  position: absolute;
  top: 0;
  left: -22%;
  width: 178.81%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

/* MV レスポンシブ */
@media (max-width: 1024px) {
  .p-mv {
    min-height: auto;
    padding: 0 0 40px;
  }
  .p-mv__inner {
    flex-direction: column;
    gap: 32px;
  }
  .p-mv__content {
    padding-right: 0;
    order: 1;
  }
  .p-mv__headline {
    font-size: 56px;
    text-align: center;
  }
  .p-mv__tags-row {
    justify-content: center;
  }
  .p-mv__tag {
    flex: 0 1 auto;
  }
  .p-mv__visual {
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    height: auto;
    min-height: 400px;
    order: 2;
  }
  .p-mv__vertical-text {
    flex-direction: row;
    width: 100%;
    height: 64px;
    padding: 12px;
  }
  .p-mv__vertical-text span {
    font-size: 24px;
    letter-spacing: 0;
  }
  .p-mv__img-wrap {
    height: 400px;
  }
}

/* MV スマホ（Figma 153:1502 準拠） */
@media (max-width: 768px) {
  .p-mv {
    padding: 0 0 40px;
  }
  .p-mv__inner {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  .p-mv__content {
    width: 100%;
    padding: 0 20px;
    align-items: center;
    gap: 24px;
  }
  .p-mv__headline {
    font-size: 56px;
    text-align: center;
    width: 100%;
  }
  .p-mv__tags {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: stretch;
  }
  .p-mv__tags-row {
    flex-direction: column;
    gap: 16px;
    justify-content: stretch;
    order: 0;
  }
  .p-mv__tags-row:first-child {
    order: 2;
  }
  .p-mv__tags-row:last-child {
    order: 1;
  }
  .p-mv__tag {
    width: 100%;
    min-width: 0;
    flex: none;
    padding: 16px;
    font-size: 20px;
    color: var(--btn-primary-bg);
  }
  .p-mv__lead {
    font-size: 16px;
    color: var(--footer-text);
    width: 100%;
    text-align: justify;
  }
  /* スマホ：ヘッダー直下に画像＋歯科医師募集、その下にテキスト（Figma 153:1520, 153:1519） */
  .p-mv__content {
    order: 2;
  }
  .p-mv__visual {
    display: flex;
    flex-direction: row;
    order: 1;
    width: 100%;
    max-width: 100%;
    height: 320px;
    min-height: 320px;
  }
  .p-mv__vertical-text {
    flex-direction: column;
    width: 56px;
    height: 100%;
    padding: 16px 0;
    font-size: 32px;
    justify-content: space-evenly;
  }
  .p-mv__vertical-text span {
    font-size: 32px;
    line-height: 1.5;
  }
  .p-mv__img-wrap {
    flex: 1;
    min-width: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
  }
  .p-mv__img-wrap img {
    position: absolute;
    top: 0;
    left: -22.1%;
    width: 178.81%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
  }
}

/* ========================================
   Breadcrumb（Figma 146:2170）
   ======================================== */
.p-breadcrumb {
  background: #fff;
  padding: 24px var(--container-padding);
}

@media (min-width: 769px) {
  .p-breadcrumb {
    padding: 24px 80px;
  }
}

.p-breadcrumb__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 1120px;
  margin: 0 auto;
}

.p-breadcrumb__link {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-decoration: none;
  padding: 4px 0;
}

.p-breadcrumb__link:hover {
  opacity: 0.8;
}

/* ページ用パンくず：Top > 現在（Figma 122:1110） */
.p-breadcrumb--page .p-breadcrumb__inner {
  gap: 16px;
}

.p-breadcrumb--page .p-breadcrumb__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--btn-primary-bg);
}

.p-breadcrumb__sep {
  width: 0;
  height: 16px;
  border-left: 1px solid var(--footer-text);
  flex-shrink: 0;
}

.p-breadcrumb__current {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  padding: 4px 0;
}

@media (max-width: 768px) {
  .p-breadcrumb {
    padding: 24px 20px;
  }
}

/* ========================================
   Message Page ストーリー（Figma 137:1352）
   ======================================== */
.p-message-story {
  background: #f7f7f7;
  padding: 80px 0;
}

.p-message-story__inner {
  max-width: 1282px;
  margin: 0 auto;
  padding: 0 80px;
}

.p-message-story__box {
  position: relative;
  background: #fff;
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.05), 0 16px 32px rgba(12, 12, 13, 0.1);
}

.p-message-story__line {
  position: absolute;
  left: 160px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--footer-text);
  opacity: 0.3;
}

.p-message-story__item {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.p-message-story__badge-wrap {
  padding-left: 20px;
}

.p-message-story__badge {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-primary-bg);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.p-message-story__row {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.p-message-story__media {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-message-story__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 300 / 200;
  overflow: hidden;
}

.p-message-story__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-message-story__caption {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: right;
}

.p-message-story__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-message-story__title {
  margin: 0 0 13px;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg);
}

.p-message-story__text {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: justify;
}

.p-message-story__text p {
  margin: 0 0 0.5em;
}

.p-message-story__text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .p-message-story__inner {
    padding: 0 var(--container-padding);
  }
  .p-message-story__box {
    padding: 40px 24px;
    gap: 60px;
  }
  .p-message-story__line {
    left: 24px;
  }
  .p-message-story__row {
    flex-direction: column;
    gap: 24px;
  }
  .p-message-story__badge-wrap {
    padding-left: 0;
  }
}

/* スマホ（Figma 161:4558） */
@media (max-width: 768px) {
  .p-message-story {
    padding: 40px 0;
  }
  .p-message-story__inner {
    padding: 0 20px;
  }
  .p-message-story__box {
    padding: 40px 20px;
    gap: 40px;
  }
  .p-message-story__line {
    left: 32px;
    width: 1px;
  }
  .p-message-story__item {
    gap: 24px;
  }
  .p-message-story__badge-wrap {
    padding-left: 0;
    flex-shrink: 0;
  }
  .p-message-story__badge {
    width: 80px;
    height: 80px;
    font-size: 20px;
  }
  .p-message-story__row {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
  .p-message-story__media {
    width: 100%;
  }
  .p-message-story__body {
    padding-left: 40px;
    width: 100%;
    box-sizing: border-box;
  }
  .p-message-story__title {
    font-size: 20px;
    margin-bottom: 13px;
  }
  .p-message-story__text {
    font-size: 16px;
    text-align: justify;
  }
  .p-message-story__caption {
    font-size: 16px;
    text-align: right;
  }
}

/* ========================================
   Message Page 募集に至った背景と目的（Figma 146:1815）
   ======================================== */
.p-message-aim {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding:80px 0;
}

.p-message-aim__heading {
  margin: 0;
  width: 640px;
  max-width: 100%;
  padding: 16px 40px;
  background: var(--btn-primary-bg);
  color: #fff;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.p-message-aim__inner {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1280px;
  padding: 0 var(--container-padding);
  min-height: 480px;
}

.p-message-aim__body {
  flex: 1 0 0;
  min-width: 0;
  max-width: 560px;
}

.p-message-aim__text {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: justify;
}

.p-message-aim__text p {
  margin: 0 0 0.5em;
}

.p-message-aim__text p:last-child {
  margin-bottom: 0;
}

.p-message-aim__visual {
  position: relative;
  flex-shrink: 0;
  width: 480px;
  height: 338px;
  overflow: visible;
}

.p-message-aim__accent {
  position: absolute;
  left: 56px;
  top: 56px;
  width: 424px;
  height: 282px;
  background: #ebf2f5;
  z-index: 0;
}

.p-message-aim__img-wrap {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 424px;
  height: 282px;
  overflow: hidden;
}

.p-message-aim__img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .p-message-aim__inner {
    flex-direction: column;
    align-items: center;
    min-height: 0;
    gap: 40px;
  }
  .p-message-aim__body {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .p-message-aim {
    gap: 40px;
    padding-bottom: 40px;
    padding-left: 30px;
    padding-right: 30px;
  }
  .p-message-aim__heading {
    padding: 16px 20px;
    font-size: 24px;
  }
  .p-message-aim__inner {
    padding: 0;
    gap: 24px;
    flex-direction: column;
    align-items: center;
  }
  /* 見出しの直下に画像を表示 */
  .p-message-aim__body {
    order: 2;
  }
  .p-message-aim__visual {
    order: 1;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 480 / 338;
    position: relative;
    flex-shrink: 0;
    overflow: visible;
  }
  /* PC版と同じデザイン：アクセント（右下にオフセット）＋画像 */
  .p-message-aim__accent {
    left: 11.67%;
    top: 16.57%;
    width: 88.33%;
    height: 83.43%;
    right: auto;
    bottom: auto;
  }
  .p-message-aim__img-wrap {
    position: absolute;
    left: 0;
    top: 0;
    width: 88.33%;
    height: 83.43%;
  }
  .p-message-aim__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ========================================
   Message Page Profile（Figma 146:1816）
   ======================================== */
.p-message-profile {
  background: #fff;
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-message-profile__box {
  width: 100%;
  max-width: 1280px;
  background: #f7f7f7;
  padding: 0px 80px 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  border-radius: 8px;
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.05), 0 16px 32px rgba(12, 12, 13, 0.1);
}

/* 下向き半円：文字がすっぽり入る形で背景（正円の下半分） */
.p-message-profile__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 auto;
  padding-top: 20px;
  width: 360px;
  height: 200px;
  max-width: 90%;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  border-radius: 0 0 200px 200px;
  background: #fff;
  position: relative;
  bottom: 10px;
}

.p-message-profile__en {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg);
  text-align: center;
}

.p-message-profile__ja-wrap {
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid var(--footer-text);
  width: 95%;
}

.p-message-profile__ja {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: center;
}

.p-message-profile__inner {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1280px;
  padding: 0;
}

.p-message-profile__left {
  flex: 1 0 0;
  min-width: 0;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-message-profile__visual {
  position: relative;
  width: 440px;
  height: 311px;
  flex-shrink: 0;
  overflow: visible;
}

.p-message-profile__accent {
  position: absolute;
  left: 52px;
  top: 52px;
  width: 388px;
  height: 259px;
  background: #ebf2f5;
  z-index: 0;
}

.p-message-profile__img-wrap {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 388px;
  height: 259px;
  overflow: hidden;
}

.p-message-profile__img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-message-profile__name {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg);
  text-align: justify;
}

.p-message-profile__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-message-profile__block-title {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--btn-primary-bg);
}

.p-message-profile__block-body,
.p-message-profile__list {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: justify;
}

.p-message-profile__block-body p {
  margin: 0 0 0.25em;
}

.p-message-profile__block-body p:last-child {
  margin-bottom: 0;
}

.p-message-profile__list {
  padding-left: 24px;
  list-style: disc;
}

.p-message-profile__list li {
  margin-bottom: 0.25em;
}

.p-message-profile__list li:last-child {
  margin-bottom: 0;
}

.p-message-profile__right {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 1024px) {
  .p-message-profile {
    padding: 40px var(--container-padding);
  }
  .p-message-profile__box {
    padding: 40px 24px;
    gap: 60px;
  }
  .p-message-profile__inner {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .p-message-profile__left {
    max-width: 100%;
    width: 100%;
  }
  .p-message-profile__visual {
    width: 100%;
    max-width: 440px;
    height: auto;
    aspect-ratio: 388 / 259;
  }
  .p-message-profile__accent {
    left: 26px;
    top: 26px;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
  }
  .p-message-profile__img-wrap {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 768px) {
  .p-message-profile {
    padding: 24px 20px 40px;
  }
  .p-message-profile__box {
    padding: 0px 20px 40px 20px;
    gap: 40px;
    border-radius: 4px;
  }
  .p-message-profile__en {
    font-size: 24px;
  }
  .p-message-profile__ja {
    font-size: 20px;
  }
  .p-message-profile__name {
    font-size: 24px;
  }
  .p-message-profile__block-title,
  .p-message-profile__block-body,
  .p-message-profile__list {
    font-size: 14px;
  }
}

/* ========================================
   Feature Page MV（Figma 122:1105）
   ======================================== */
.p-feature-mv {
  background: #fff;
  padding: 0 80px 0 0;
}

.p-feature-mv__inner {
  display: flex;
  gap: 80px;
  align-items: center;
  justify-content: flex-end;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 80px;
  min-height: 480px;
}

.p-feature-mv__content {
  flex-shrink: 0;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-feature-mv__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-feature-mv__en {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg);
}

.p-feature-mv__ja-wrap {
  padding-top: 16px;
  border-top: 1px solid var(--footer-text);
}

.p-feature-mv__ja {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--footer-text);
}

.p-feature-mv__lead {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: justify;
}

.p-feature-mv__visual {
  flex: 1 0 0;
  min-width: 0;
}

.p-feature-mv__img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 720px;
  height: 480px;
  overflow: visible;
}

.p-feature-mv__img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

/* アクセントは画像の左下に重ね、手前に表示（画像は背面） */
.p-feature-mv__accent {
  position: absolute;
  left: -20px;
  bottom: -20px;
  z-index: 1;
  width: 197px;
  height: 176px;
  background: #ebf2f5;
}

@media (max-width: 1024px) {
  .p-feature-mv__inner {
    flex-direction: column;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    align-items: stretch;
  }
  .p-feature-mv {
    padding: 0;
  }
  .p-feature-mv__content {
    width: 100%;
    max-width: 360px;
  }
  .p-feature-mv__visual {
    flex: none;
    flex-direction: column;
    align-items: center;
  }
  .p-feature-mv__img-wrap {
    width: 100%;
    max-width: 720px;
    height: auto;
    aspect-ratio: 720 / 480;
  }
  .p-feature-mv__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Feature Page MV スマホ（Figma 155:2595） */
@media (max-width: 768px) {
  .p-feature-mv {
    padding: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .p-feature-mv__inner {
    padding: 0;
    gap: 0;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .p-feature-mv__content {
    order: 2;
    padding: 40px 20px;
    gap: 16px;
  }
  .p-feature-mv__head {
    gap: 8px;
  }
  .p-feature-mv__en {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--btn-primary-bg);
  }
  .p-feature-mv__ja-wrap {
    padding-top: 16px;
    padding-bottom: 16px;
    border-top: 1px solid var(--footer-text);
  }
  .p-feature-mv__ja {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--footer-text);
  }
  .p-feature-mv__lead {
    font-size: 16px;
    line-height: 1.5;
    color: var(--footer-text);
    text-align: justify;
  }
  .p-feature-mv__visual {
    order: 1;
    position: relative;
    width: 100%;
    flex: none;
  }
  .p-feature-mv__img-wrap {
    position: relative;
    width: 100%;
    height: 237px;
    overflow: visible;
  }
  .p-feature-mv__img-wrap img {
    position: absolute;
    left: 20px;
    top: 0;
    width: calc(100% - 20px);
    max-width: 355px;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .p-feature-mv__accent {
    position: absolute;
    left: 0;
    top: 170px;
    width: 97px;
    height: 87px;
    background: #ebf2f5;
    bottom: auto;
  }
}

/* ========================================
   Feature Page：section-page 内の番号・タイトル・ボックスのみ
   （レイアウトは .p-section-page を流用）
   ======================================== */
.p-feature-section__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.p-feature-section__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ebf2f5;
  border-radius: 50%;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--btn-primary-bg);
}

.p-feature-section__title-wrap {
  flex: 1 0 0;
  min-width: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--footer-text);
}

.p-feature-section__title {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--footer-text);
}

.p-feature-section__subhead {
  margin: 0 0 0.5em;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg, #607d8b);
}

.p-feature-section__text {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: justify;
}

.p-feature-section__text p {
  margin: 0 0 0.5em;
}

.p-feature-section__text p:last-child {
  margin-bottom: 0;
}

.p-feature-section__box-title {
  margin: 0 0 0.5em !important;
  font-weight: 600;
}

.p-feature-section__box {
  padding: 16px;
  border: 1px solid var(--footer-text);
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: justify;
}

.p-feature-section__box p {
  margin: 0 0 0.5em;
}

.p-feature-section__box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .p-feature-section__num {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
  .p-feature-section__title {
    font-size: 24px;
  }
  .p-feature-section__subhead {
    font-size: 24px;
  }
  .p-feature-section__text {
    font-size: 14px;
  }
  .p-feature-section__box {
    font-size: 14px;
  }
}

/* ========================================
   Section Trouble（Figma 146:2456）
   ======================================== */
.p-trouble {
  padding: 80px var(--container-padding);
}

.p-trouble__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.p-trouble__box {
  width: 100%;
  padding: 80px var(--container-padding);
  background: #ebf2f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.p-trouble__head {
  margin: 0;
  max-width: 640px;
  width: 100%;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg);
  text-align: center;
}

.p-trouble__grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.p-trouble__row {
  display: flex;
  gap: 24px;
  align-items: stretch;
  justify-content: center;
}

.p-trouble__item {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fff;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: center;
}

.p-trouble__arrow {
  line-height: 0;
  margin-top: 0;
}

.p-trouble__arrow img {
  display: block;
  width: 120px;
  height: 60px;
  aspect-ratio: 2 / 1;
  object-fit: contain;
}

.p-trouble__catch {
  margin: 10px 0 0;
  padding-bottom: 8px;
  border-bottom: 6px solid #ded8a8;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg);
  text-align: center;
}

@media (max-width: 768px) {
  .p-trouble {
    padding: 40px 20px;
  }
  .p-trouble__box {
    padding: 40px 20px;
    gap: 24px;
  }
  .p-trouble__head {
    font-size: 24px;
  }
  .p-trouble__grid {
    gap: 16px;
  }
  .p-trouble__row {
    flex-direction: column;
    gap: 16px;
  }
  .p-trouble__item {
    flex: none;
    width: 100%;
  }
  .p-trouble__catch {
    font-size: 24px;
  }
}

/* ========================================
   Section Page（Figma 117:989）
   ======================================== */
.p-section-page {
  background: #f7f7f7;
  padding: 80px var(--container-padding);
}

.p-section-page__inner {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.p-section-page__card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 650px;
}

.p-section-page__card--reverse {
  flex-direction: row-reverse;
}

.p-section-page__card--reverse .p-section-page__visual {
  justify-content: flex-end;
}

.p-section-page__card--reverse .p-section-page__img-wrap {
  right: 50px;
  left: auto;
}

/* 画像＋薄青背景：白カードの上に重なる（z-index で前面に） */
.p-section-page__visual {
  position: relative;
  z-index: 2;
  flex: 0 0 420px;
  width: 420px;
  height: 480px;
  display: flex;
  align-items: center;
}

.p-section-page__img-bg {
  position: absolute;
  width: 400px;
  height: 380px;
  background: #ebf2f5;
  left:-30px;
  top: 50%;
  transform: translateY(-50%);
}

.p-section-page__visual--right .p-section-page__img-bg {
  left: auto;
  right: 0px;
}

.p-section-page__img-wrap {
  position: relative;
  z-index: 1;
  width: 400px;
  height: 267px;
  overflow: hidden;
}

.p-section-page__visual--left .p-section-page__img-wrap {
  margin-left: auto;
}

.p-section-page__visual--right .p-section-page__img-wrap {
  margin-right: auto;
}

.p-section-page__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 高知ページ 1枚目：2枚の画像を重ねて表示（Figma 94:1054） */
.p-section-page__img-wrap--double {
  position: relative;
  width: 400px;
  height: 400px;
}

.p-section-page__img-wrap--double .p-section-page__img-item {
  position: absolute;
  width: 300px;
  height: 200px;
  overflow: hidden;
}

.p-section-page__img-wrap--double .p-section-page__img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-section-page__visual--left .p-section-page__img-wrap--double .p-section-page__img-item--top {
  top: 0;
  right: 0;
  z-index: 2;
}

.p-section-page__visual--left .p-section-page__img-wrap--double .p-section-page__img-item--bottom {
  bottom: 0;
  right: 0;
  z-index: 1;
}

/* 右側ビジュアル用：2枚の画像を重ねる（Figma 119:1070 働き方・暮らし方） */
.p-section-page__visual--right .p-section-page__img-wrap--double .p-section-page__img-item--top {
  bottom: 160px;
  left: 160px;
  z-index: 2;
}

.p-section-page__visual--right .p-section-page__img-wrap--double .p-section-page__img-item--bottom {
  bottom: 0;
  left: 0;
  z-index: 1;
}

/* 白カード：左を100pxずらしてビジュアルの下に入れ、上から画像が重なるように */
.p-section-page__body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: -400px;
  padding: 50px 50px 50px calc(300px + 150px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.05), 0 16px 32px rgba(12, 12, 13, 0.1);
}

.p-section-page__card--reverse .p-section-page__body {
  margin-left: -30px;
  margin-right: -350px;
  padding: 50px calc(100px + 350px) 50px 50px;
  max-width: none;
}

.p-section-page__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-section-page__en {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg);
}

.p-section-page__ja-wrap {
  padding-top: 16px;
  border-top: 1px solid var(--footer-text);
}

.p-section-page__ja {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--footer-text);
}

.p-section-page__title {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg);
}

.p-section-page__title--two-line {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.p-section-page__title--two-line .p-section-page__title-line {
  display: block;
}

.p-section-page__text {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: justify;
}

.p-section-page__text p {
  margin: 0 0 0.5em;
}

.p-section-page__text p:last-child {
  margin-bottom: 0;
}

.p-section-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 160px;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}

.p-section-page__btn:hover {
  color: #fff;
}

.p-section-page__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.p-section-page__btn-icon svg {
  width: 8px;
  height: 16px;
  display: block;
}

@media (max-width: 1024px) {
  .p-section-page__card {
    flex-direction: column;
    min-height: auto;
    gap: 0;
  }
  .p-section-page__card--reverse {
    flex-direction: column;
  }
  .p-section-page__visual {
    flex: none;
    width: 100%;
    max-width: 560px;
    height: 360px;
  }
  .p-section-page__img-bg {
    width: 100%;
    max-width: 360px;
    height: 360px;
  }
  .p-section-page__img-wrap {
    width: 100%;
    max-width: 460px;
    height: 260px;
  }
  .p-section-page__img-wrap--double {
    height: 400px;
    max-width: 400px;
  }
  .p-section-page__body {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 40px 24px;
  }
}

/* スマホ：Figma 153:1553 / 153:1862 準拠（白カード・上に青バー＋画像・下にテキスト） */
@media (max-width: 768px) {
  .p-section-page {
    padding: 40px 20px;
    background: #f7f7f7;
  }
  .p-section-page__inner {
    gap: 40px;
  }
  .p-section-page__card {
    gap: 0;
    width: 100%;
    max-width: 335px;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 4px 4px rgba(12, 12, 13, 0.05), 0 16px 32px rgba(12, 12, 13, 0.1);
    overflow: hidden;
  }
  .p-section-page__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: none;
    height: auto;
    order: 1;
  }
  /* 高知ページ：最初の2枚のカードはスマホ時のみ画像エリアに背景色（Figma 155:2885） */
  .p-section-page__inner .p-section-page__card:nth-child(1) .p-section-page__visual,
  .p-section-page__inner .p-section-page__card:nth-child(2) .p-section-page__visual {
    background: #ebf2f5;
    flex: 0 0 0;
  }
  .p-section-page__img-bg {
    width: 100%;
    max-width: none;
    height: 40px;
    position: relative;
    left: 0;
    top: auto;
    transform: none;
    flex-shrink: 0;
    background: #ebf2f5;
  }
  .p-section-page__visual--right .p-section-page__img-bg {
    left: auto;
    right: auto;
  }
  .p-section-page__img-wrap {
    width: 100%;
    max-width: none;
    height: 223px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    right:0px !important;
    overflow: hidden;
  }
  .p-section-page__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  /* 高知1枚目：2枚組をスマホで縦並びに */
  .p-section-page__img-wrap--double {
    width: 100%;
    max-width: none;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .p-section-page__img-wrap--double .p-section-page__img-item {
    position: relative;
    width: 100%;
    height: 200px;
    right: auto;
    bottom: auto;
    top: auto;
  }
  .p-section-page__body {
    order: 2;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 40px 20px !important;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    background: #fff;
  }
  .p-section-page__card--reverse .p-section-page__body {
    margin-right: 0 !important;
    padding: 40px 20px !important;
  }
  .p-section-page__body .p-section-page__head,
  .p-section-page__body .p-section-page__title,
  .p-section-page__body .p-section-page__text {
    width: 100%;
    max-width: 100%;
  }
  .p-section-page__head {
    gap: 8px;
    align-items: flex-start;
  }
  .p-section-page__en {
    font-family: var(--font-jp);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--btn-primary-bg);
    text-align: left;
  }
  .p-section-page__ja-wrap {
    padding-top: 16px;
    border-top: 1px solid var(--footer-text);
  }
  .p-section-page__ja {
    font-family: var(--font-jp);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--footer-text);
    text-align: left;
  }
  .p-section-page__title {
    font-family: var(--font-jp);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--btn-primary-bg);
    text-align: left;
  }
  .p-section-page__text {
    font-family: var(--font-jp);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--footer-text);
    text-align: justify;
  }
}

/* ========================================
   Kochi Page カードセクション（Figma 94:1050）
   ======================================== */
.p-kochi-cards {
  background: #f7f7f7;
  padding: 80px 0;
}

.p-kochi-cards__inner {
  max-width: 1282px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* カード1・3: 左余白80px、ボックスは右・上下80px（Figma 94:1054） */
.p-kochi-card {
  position: relative;
  background: #fff;
  min-height: 690px;
  padding-left: 80px;
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.05), 0 16px 32px rgba(12, 12, 13, 0.1);
}

.p-kochi-card--reverse {
  padding-left: 0;
  padding-right: 80px;
}

.p-kochi-card__box {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  max-width: 1280px;
  padding: 80px 80px 80px 0;
  display: flex;
  gap: 80px;
  align-items: flex-start;
  box-sizing: border-box;
}

.p-kochi-card--reverse .p-kochi-card__box {
  padding: 80px 0 80px 80px;
}

.p-kochi-card__visual {
  position: relative;
  flex-shrink: 0;
  width: 560px;
  height: 480px;
}

.p-kochi-card__accent {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 480px;
  height: 400px;
  background: #ebf2f5;
}

.p-kochi-card__imgs {
  position: absolute;
  bottom: 0;
  width: 460px;
  height: 361px;
}

.p-kochi-card__imgs--right {
  right: 0;
}

.p-kochi-card__imgs--left {
  left: 0;
}

.p-kochi-card__img-wrap {
  position: absolute;
  width: 300px;
  height: 200px;
  overflow: hidden;
}

.p-kochi-card__imgs--right .p-kochi-card__img-wrap:last-child {
  right: 0;
  bottom: 0.5px;
}

.p-kochi-card__imgs--right .p-kochi-card__img-wrap--overlap {
  right: 160px;
  bottom: 160.5px;
}

.p-kochi-card__imgs--left .p-kochi-card__img-wrap:last-child {
  left: 0;
  bottom: 0.5px;
}

.p-kochi-card__imgs--left .p-kochi-card__img-wrap--overlap {
  left: 160px;
  bottom: 160.5px;
}

.p-kochi-card__img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* カード3: 1枚画像・正方形アクセント */
.p-kochi-card__visual--single {
  width: 560px;
  height: 480px;
}

.p-kochi-card__accent--square {
  width: 480px;
  height: 480px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
}

.p-kochi-card__img-single {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  height: 306px;
  overflow: hidden;
}

.p-kochi-card__img-single img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-kochi-card__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.p-kochi-card__title {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg);
}

.p-kochi-card__text {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: justify;
}

.p-kochi-card__text p {
  margin: 0 0 0.5em;
}

.p-kochi-card__text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .p-kochi-cards__inner {
    padding: 0 var(--container-padding);
  }
  .p-kochi-card {
    min-height: 0;
    padding: 40px 24px;
  }
  .p-kochi-card__box {
    position: static;
    transform: none;
    flex-direction: column;
    padding: 0;
    gap: 40px;
  }
  .p-kochi-card--reverse .p-kochi-card__box {
    flex-direction: column;
  }
  .p-kochi-card__visual,
  .p-kochi-card__visual--single {
    width: 100%;
    max-width: 560px;
    height: 400px;
  }
  .p-kochi-card__accent {
    width: 100%;
    max-width: 480px;
    height: 333px;
  }
  .p-kochi-card__accent--square {
    width: 100%;
    max-width: 480px;
    height: 480px;
    top: 50%;
    transform: translateY(-50%);
  }
  .p-kochi-card__imgs {
    width: 100%;
    max-width: 460px;
  }
  .p-kochi-card__img-single {
    width: 100%;
    max-width: 460px;
  }
}

@media (max-width: 768px) {
  .p-kochi-cards {
    padding: 40px 0;
  }
  .p-kochi-cards__inner {
    padding: 0 20px;
    gap: 40px;
  }
  .p-kochi-card__title {
    font-size: 24px;
  }
  .p-kochi-card__text {
    font-size: 14px;
  }
}

/* ========================================
   Section Kochi（Figma 146:2408）
   ======================================== */
.p-kochi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding-bottom: 80px;
}

.p-kochi__hero {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
  background: #ebf2f5;
}

.p-kochi__hero img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.p-kochi__hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ebf2f5;
  font-family: var(--font-jp);
  font-size: 14px;
  color: var(--footer-text);
  opacity: 0.7;
}

.p-kochi__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 640px;
  padding: 0 var(--container-padding);
}

.p-kochi__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 360px;
}

.p-kochi__en {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg);
  text-align: center;
}

.p-kochi__ja-wrap {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--footer-text);
}

.p-kochi__ja {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: center;
}

.p-kochi__title {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg);
  text-align: center;
}

.p-kochi__text {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: justify;
}

.p-kochi__text p {
  margin: 0 0 0.5em;
}

.p-kochi__text p:last-child {
  margin-bottom: 0;
}

.p-kochi__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 160px;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}

.p-kochi__btn:hover {
  color: #fff;
}

.p-kochi__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.p-kochi__btn-icon svg {
  width: 8px;
  height: 16px;
  display: block;
}

@media (max-width: 768px) {
  .p-kochi {
    gap: 40px;
    padding-bottom: 40px;
  }
  .p-kochi__hero {
    height: 240px;
  }
  .p-kochi__content {
    padding: 0 20px;
  }
  .p-kochi__en {
    font-size: 32px;
  }
  .p-kochi__ja {
    font-size: 20px;
  }
  .p-kochi__title {
    font-size: 24px;
  }
  .p-kochi__text {
    font-size: 14px;
  }
}

/* ========================================
   Footer（Figmaデザイン準拠）
   ======================================== */
.l-footer {
  background: var(--footer-bg);
  padding: 80px var(--container-padding) 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.l-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  max-width: 1120px;
}

/* 左ブロック：ロゴ・歯科医師募集・住所・SNS（Figma: gap 16px → 40px） */
.l-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 332px;
  flex-shrink: 0;
}

.l-footer__logo-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 280px;
}

.l-footer__logo-row {
  display: flex;
  align-items: center;
}

.l-footer__logo-link {
  display: block;
  flex-shrink: 0;
}

.l-footer__logo-link img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.l-footer__logo-link:hover {
  opacity: 0.85;
}

.l-footer__recruit-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
}

.l-footer__info {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
}

.l-footer__info p {
  margin: 0 0 0.5em;
}

.l-footer__info p:last-child {
  margin-bottom: 0;
}

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

.l-footer__sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.l-footer__sns a:hover {
  opacity: 0.9;
}

.l-footer__sns img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* 中央・右：ナビ＋ボタン */
.l-footer__nav-area {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.l-footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

/* 右側ナビ：全て左揃え・同じ文字色で統一 */
.l-footer__nav-col a {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
  padding: 4px 0;
  text-align: left;
}

.l-footer__nav-col a:hover {
  color: var(--btn-secondary-bg);
}

.l-footer__nav-col .l-footer__nav-sub {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.l-footer__nav-col .l-footer__nav-sub a {
  font-weight: 600;
  color: #333;
  text-align: left;
}

.l-footer__nav-col .l-footer__nav-sub a:hover {
  color: var(--btn-secondary-bg);
}

.l-footer__nav-col--menu .l-footer__nav-sub a {
  color: #333;
}

/* 2列目：min-width 200px、5リンクとボタン群の間は gap 24px（Figma） */
.l-footer__nav-col--menu {
  min-width: 200px;
}

.l-footer__nav-col--menu .l-footer__buttons {
  margin-top: 16px;
}

.l-footer__buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 200px;
}

.l-footer__buttons .c-btn {
  width: 100%;
  min-width: unset;
  justify-content: center;
  color: #fff !important;
}

.l-footer__buttons .c-btn--secondary {
  background: var(--btn-secondary-bg);
  color: #fff;
}

.l-footer__buttons .c-btn--secondary:hover {
  opacity: 0.9;
}

/* コピーライト（スクリーンショット：ダークグレー） */
.l-footer__copy {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  text-align: center;
  margin: 0;
}

/* フッター・レスポンシブ */
@media (max-width: 1024px) {
  .l-footer {
    padding: 48px var(--container-padding) 32px;
    gap: 32px;
  }
  .l-footer__inner {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }
  .l-footer__brand {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }
  .l-footer__logo-row {
    justify-content: center;
  }
  .l-footer__info {
    text-align: center;
  }
  .l-footer__nav-area {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }
  .l-footer__buttons {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* フッター・スマホ（Figma footer_sp 153:2235 準拠） */
@media (max-width: 768px) {
  .l-footer {
    background: #ebf2f5;
    padding: 40px 20px 24px;
    gap: 24px;
    align-items: stretch;
  }
  .l-footer__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    max-width: none;
  }
  .l-footer__brand {
    gap: 24px;
    max-width: none;
    align-items: stretch;
    text-align: left;
  }
  .l-footer__logo-link img {
    height: 55px;
    max-width: 100%;
}
  .l-footer__logo-block {
    flex-direction: column;
    gap: 16px;
    max-width: none;
  }
  .l-footer__logo-row {
    justify-content: flex-start;
  }
  .l-footer__recruit-label {
    border-color: var(--footer-accent);
    color: var(--footer-accent);
    width: 100%;
    box-sizing: border-box;
  }
  .l-footer__info {
    text-align: left;
    color: var(--footer-text);
  }
  .l-footer__sns {
    justify-content: flex-start;
  }
  .l-footer__nav-area {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .l-footer__nav-col:not(.l-footer__nav-col--menu) {
    display: none;
  }
  .l-footer__nav-col--menu {
    min-width: 0;
    width: 100%;
  }
  .l-footer__nav-col--menu > a,
  .l-footer__nav-col--menu .l-footer__nav-sub {
    display: none;
  }
  .l-footer__nav-col--menu .l-footer__buttons {
    margin-top: 0;
    max-width: none;
    gap: 8px;
  }
  .l-footer__buttons .c-btn {
    padding: 8px;
    font-size: 14px;
  }
  .l-footer__copy {
    color: var(--footer-text);
  }
}

/* ========================================
   Page Title (共通)
   ======================================== */
.p-page-title {
  margin: 0 0 32px;
  font-size: 1.75rem;
  font-weight: bold;
  text-align: center;
}

@media (max-width: 768px) {
  .p-page-title {
    font-size: 1.375rem;
    margin-bottom: 24px;
  }
}

/* ========================================
   About Page：セクション見出し・付加価値2枚画像・診療メニューグリッド
   ======================================== */
.p-about-section__title {
  margin: 0 0 0.5em;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg, #607d8b);
}

.p-about-value__imgs {
  position: relative;
  width: 480px;
  height: 400px;
  flex-shrink: 0;
}

.p-about-value__img-wrap {
  position: absolute;
  overflow: hidden;
  left: 0;
  bottom: 0;
}

.p-about-value__img-wrap--sub {
  left: 0;
  bottom: 0;
  z-index: 1;
}

.p-about-value__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-section-page__card--reverse .p-about-value__imgs {
  margin-right: auto;
  margin-left: 0;
}

.p-section-page__card--value .p-section-page__visual {
  flex: 0 0 560px;
  width: 560px;
  height: 480px;
  align-items: flex-end;
  justify-content: flex-end;
}

.p-section-page__card--value .p-section-page__img-bg {
  display: block;
  width: 480px;
  height: 400px;
  top: auto;
  bottom: 0;
  left: auto;
  right: 0;
  transform: none;
}

.p-about-menu {
  background: #f7f7f7;
  padding: 80px var(--container-padding);
}

.p-about-menu__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.p-about-menu__head {
  text-align: center;
  max-width: 640px;
}

.p-about-menu__title {
  margin: 0 0 16px;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg, #607d8b);
}

.p-about-menu__subtitle {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--footer-text);
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--footer-text);
}

.p-about-menu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 100%;
}

.p-about-menu__card {
  background: #fff;
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.05), 0 16px 32px rgba(12, 12, 13, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.p-about-menu__img-wrap {
  aspect-ratio: 300 / 200;
  overflow: hidden;
  flex-shrink: 0;
}

.p-about-menu__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-about-menu__body {
  padding: 40px;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  margin-top: -28px;
  gap: 24px;
  flex: 1;
}

.p-about-menu__card-title {
  margin: 0;
  padding: 8px;
  background: var(--btn-primary-bg, #607d8b);
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  text-align: center;
}

.p-about-menu__card-lead {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg, #607d8b);
}

.p-about-menu__card-text {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: justify;
}

.p-about-menu__card-text p {
  margin: 0 0 0.5em;
}

.p-about-menu__card-text p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Flow Page：採用の流れ 4ステップ
   ======================================== */
.p-flow {
  background: #f7f7f7;
  padding: 80px var(--container-padding);
}

.p-flow__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.p-flow__box {
  background: #fff;
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.05), 0 16px 32px rgba(12, 12, 13, 0.1);
  padding: 50px 56px 50px 0px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.p-flow__item {
  display: flex;
  align-items: center;
  gap: 80px;
}

.p-flow__content {
  flex: 1 1 auto;
  min-width: 0;
}

.p-flow__head {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--btn-primary-bg, #607d8b);
  color: #fff;
  padding: 16px 40px;
  width: fit-content;
  margin-bottom: 24px;
}

.p-flow__num {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.5;
}

.p-flow__label {
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
}

.p-flow__title {
  margin: 0 0 13px;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg, #607d8b);
  padding-left: 50px;
}

.p-flow__text {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: justify;
  padding-left: 50px;
}

.p-flow__text p {
  margin: 0 0 0.5em;
}

.p-flow__text p:last-child {
  margin-bottom: 0;
}

.p-flow__visual {
  position: relative;
  flex-shrink: 0;
  width: 424px;
  height: 282px;
}

.p-flow__img-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #ebf2f5;
  top: 56px;
  left: 56px;
  z-index: 0;
}

.p-flow__visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================
   Contact Page：お問合せ
   ======================================== */
.p-contact {
  padding: 80px var(--container-padding);
  background: #f7f7f7;
}

.p-contact__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.p-contact__box {
  background: #fff;
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.05), 0 16px 32px rgba(12, 12, 13, 0.1);
  padding: 50px 56px;
}

.p-contact__text {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.8;
  color: var(--footer-text);
  margin: 0 0 32px;
}

.p-contact__text p {
  margin: 0 0 0.5em;
}

.p-contact__text p:last-child {
  margin-bottom: 0;
}

.p-contact__info {
  margin-bottom: 32px;
}

.p-contact__info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 24px;
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.6;
  color: var(--footer-text);
}

.p-contact__info-list dt {
  font-weight: 600;
  color: var(--btn-primary-bg, #607d8b);
  grid-column: 1;
}

.p-contact__info-list dd {
  margin: 0;
  grid-column: 2;
}

@media (max-width: 768px) {
  .p-contact__info-list {
    grid-template-columns: 1fr;
  }

  .p-contact__info-list dt {
    grid-column: 1;
  }

  .p-contact__info-list dd {
    grid-column: 1;
  }
}

.p-contact__btn-wrap {
  margin-top: 8px;
}

.p-contact__form-area {
  background: #fff;
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.05), 0 16px 32px rgba(12, 12, 13, 0.1);
  padding: 40px 56px;
}

.p-contact__form-title {
  margin: 0 0 16px;
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 600;
  color: var(--btn-primary-bg, #607d8b);
}

.p-contact__form-note {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.8;
  color: var(--footer-text);
}

.p-contact__form-note a {
  color: var(--btn-primary-bg, #607d8b);
  font-weight: 600;
}

@media (max-width: 768px) {
  .p-contact {
    padding: 40px 20px;
  }

  .p-contact__box,
  .p-contact__form-area {
    padding: 40px 20px;
  }
}

/* ========================================
   Recruit Page：募集要項
   ======================================== */
.p-recruit {
  padding: 80px var(--container-padding);
  background: #f7f7f7;
}

.p-recruit__inner {
  max-width: 800px;
  margin: 0 auto;
}

.p-recruit__box {
  background: #fff;
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.05), 0 16px 32px rgba(12, 12, 13, 0.1);
  padding: 50px 56px;
}

.p-recruit__lead {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.8;
  color: var(--footer-text);
  margin: 0 0 40px;
}

.p-recruit__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.6;
  color: var(--footer-text);
}

.p-recruit__table th,
.p-recruit__table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
  text-align: left;
  vertical-align: top;
}

.p-recruit__table th {
  width: 28%;
  font-weight: 600;
  color: var(--btn-primary-bg, #607d8b);
  background: rgba(96, 125, 139, 0.06);
}

.p-recruit__table tr:last-child th,
.p-recruit__table tr:last-child td {
  border-bottom: none;
}

.p-recruit__btn-wrap {
  margin-top: 40px;
  text-align: center;
}

@media (max-width: 768px) {
  .p-recruit {
    padding: 40px 20px;
  }

  .p-recruit__box {
    padding: 40px 20px;
  }

  .p-recruit__table th,
  .p-recruit__table td {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
  }

  .p-recruit__table th {
    background: rgba(96, 125, 139, 0.08);
    padding-top: 16px;
  }

  .p-recruit__table td {
    padding-bottom: 16px;
  }
}

/* ========================================
   Philosophy Page：理念・行動指針・求める人物像・INTERVIEW
   ======================================== */
.p-philosophy-concept {
  padding: 80px var(--container-padding);
  background: #fff;
}

.p-philosophy-concept__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.p-philosophy-concept__title {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg, #607d8b);
  text-align: center;
}

.p-philosophy-concept__img-wrap {
  width: 100%;
}

.p-philosophy-concept__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.p-philosophy-guidelines {
  padding: 80px var(--container-padding);
  background: #fff;
}

.p-philosophy-guidelines__inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.p-philosophy-guidelines__title {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg, #607d8b);
  text-align: center;
}

.p-philosophy-guidelines__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-philosophy-guidelines__item {
  border-top: 1px solid var(--footer-text);
  padding-top: 16px;
}

.p-philosophy-guidelines__item-title {
  margin: 0 0 16px;
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg, #607d8b);
}

.p-philosophy-guidelines__item-text {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: justify;
}

.p-philosophy-profile {
  padding: 80px var(--container-padding);
  background: #f7f7f7;
}

.p-philosophy-profile__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.p-philosophy-profile__title {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg, #607d8b);
  text-align: center;
}

.p-philosophy-profile__subtitle {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--footer-text);
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: center;
}

.p-philosophy-profile__card {
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.05), 0 16px 32px rgba(12, 12, 13, 0.1);
  padding: 50px 50px 50px 0px;
  width: 100%;
}

.p-philosophy-profile__visual {
  position: relative;
  flex-shrink: 0;
  width: 520px;
  height: 520px;
}

.p-philosophy-profile__img-bg {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}

.p-philosophy-profile__visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.p-philosophy-profile__body {
  flex: 1 1 auto;
  min-width: 0;
}

.p-philosophy-profile__body-title {
  margin: 0 0 13px;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg, #607d8b);
}

.p-philosophy-profile__body-text {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--footer-text);
  text-align: justify;
}

.p-philosophy-profile__body-text p {
  margin: 0 0 0.5em;
}

.p-philosophy-profile__body-text p:last-child {
  margin-bottom: 0;
}

.p-philosophy-interview {
  padding: 80px var(--container-padding);
  background: #fff;
}

.p-philosophy-interview__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.p-philosophy-interview__title {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--btn-primary-bg, #607d8b);
  text-align: center;
}

/* レスポンシブ動画ラッパー（16:9を維持） */
.p-philosophy-interview__video-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 = 9/16 */
  overflow: hidden;
}

.p-philosophy-interview__video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* Flow スマホ版（Figma 156:3568 / 156:3570）：画像→番号ラベルバー（画像に重ね）→タイトル・本文のカード並び */
@media (max-width: 768px) {
  .p-flow {
    padding: 40px 20px;
  }
  .p-flow__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 335px;
    margin-left: auto;
    margin-right: auto;
  }
  .p-flow__box {
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 40px;
    width: 100%;
    max-width: 335px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .p-flow__item {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 335px;
    background: #fff;
    box-shadow: 0 4px 4px rgba(12, 12, 13, 0.05), 0 16px 32px rgba(12, 12, 13, 0.1);
    padding-bottom: 24px;
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
  }
  .p-flow__item .p-flow__visual {
    order: 1;
  }
  .p-flow__item .p-flow__content {
    order: 2;
  }
  .p-flow__visual {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: none;
    display: flex;
    flex-direction: column;
    margin-bottom: -24px;
  }
  .p-flow__img-bg {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 40px;
    flex-shrink: 0;
  }
  .p-flow__visual img {
    width: 100%;
    height: 223px;
    object-fit: cover;
    display: block;
  }
  .p-flow__content {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 40px;
  }
  .p-flow__head {
    width: calc(100% - 40px);
    margin: 0 20px -24px 20px;
    padding: 8px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
  }
  .p-flow__num {
    font-size: 32px;
  }
  .p-flow__label {
    font-size: 20px;
  }
  .p-flow__title {
    font-size: 20px;
    padding: 40px 20px 0;
    margin-bottom: 13px;
    color: var(--btn-primary-bg, #607d8b);
  }
  .p-flow__text {
    padding: 0 20px 0;
    font-size: 16px;
  }
  .p-flow__text p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }
  /* Philosophy スマホ版（Figma 155:3396 行動指針〜）：医院理念・行動指針・求める人物像・INTERVIEW */
  .p-philosophy-concept {
    padding: 40px 20px;
  }
  .p-philosophy-concept__inner {
    gap: 40px;
  }
  .p-philosophy-concept__title {
    font-size: 24px;
  }
  .p-philosophy-guidelines {
    padding: 40px 20px;
  }
  .p-philosophy-guidelines__inner {
    gap: 40px;
  }
  .p-philosophy-guidelines__title {
    font-size: 24px;
  }
  .p-philosophy-guidelines__list {
    gap: 24px;
  }
  .p-philosophy-guidelines__item {
    border-top: none;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .p-philosophy-guidelines__item-title {
    margin: 0;
    font-size: 20px;
  }
  .p-philosophy-guidelines__item-text {
    border-top: 1px solid var(--footer-text);
    padding-top: 16px;
    text-align: justify;
  }
  .p-philosophy-profile {
    padding: 40px 20px;
  }
  .p-philosophy-profile__inner {
    gap: 40px;
  }
  .p-philosophy-profile__title {
    font-size: 24px;
  }
  .p-philosophy-profile__subtitle {
    font-size: 20px;
    padding-top: 12px;
  }
  .p-philosophy-profile__card {
    flex-direction: column;
    padding: 40px 20px;
  }
  .p-philosophy-profile__visual {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1;
  }
  .p-philosophy-profile__body-title {
    font-size: 24px;
  }
  .p-philosophy-interview {
    padding: 40px 20px;
  }
  .p-philosophy-interview__inner {
    gap: 40px;
  }
  .p-philosophy-interview__title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .p-about-section__title {
    font-size: 24px;
  }
  /* 付加価値の高い歯科医療カード スマホ版（Figma 156:3824） */
  .p-section-page__card--value .p-section-page__visual {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    order: 1;
    align-items: stretch;
  }
  .p-section-page__card--value .p-section-page__img-bg {
    display: block;
    width: 100%;
    height: 40px;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    flex-shrink: 0;
    background: #ebf2f5;
  }
  .p-section-page__card--value .p-about-value__imgs {
    width: 100%;
    max-width: 335px;
    height: 300px;
    margin: 0 auto;
    flex-shrink: 0;
  }
  .p-section-page__card--value .p-about-value__img-wrap,
  .p-section-page__card--value .p-about-value__img-wrap--sub {
    position: relative;
    width: 100%;
    height: 300px;
    left: auto;
    bottom: auto;
    transform: none;
  }
  .p-section-page__card--value .p-about-value__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .p-section-page__card--value .p-section-page__body {
    order: 2;
    padding: 40px 20px !important;
  }
  .p-section-page__card--value .p-about-section__title {
    font-size: 20px;
  }
  .p-about-menu {
    padding: 40px 20px;
  }
  .p-about-menu__inner {
    gap: 40px;
  }
  .p-about-menu__title {
    font-size: 24px;
  }
  .p-about-menu__subtitle {
    font-size: 20px;
  }
  .p-about-menu__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  /* 診療メニューカード スマホ版（Figma 156:4102）：画像→見出しバー（画像に重ね）→本文 */
  .p-about-menu__img-wrap {
    margin-bottom: -24px;
  }
  .p-about-menu__body {
    padding: 40px 20px 24px;
    margin-top: -36px;
  }
  .p-about-menu__card-title {
    font-size: 20px;
    width: calc(100% - 40px);
    margin: 0 20px;
    padding: 8px 20px;
    box-sizing: border-box;
  }
  .p-about-menu__card-lead {
    font-size: 18px;
  }
  .p-about-menu__card-text {
    font-size: 14px;
  }
}

/* ========================================
   Responsive breakpoints
   ======================================== */
@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
    --header-height: 56px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --container-padding: 24px;
  }
}
