@charset "UTF-8";
/**
 * Canvasgate メインスタイル
 * RULES.md / SPEC.md 準拠。
 * 構成: tokens → base → layout → components → utilities → responsive
 */
/* SPEC.md 準拠。ブレイクポイント sp:767 / pc:768 */
:root {
  --font-size-base: 16px;
  --font-ja: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-en: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --color-primary: #282523;
  --color-accent: #e0a780;
  --color-text: #000000;
  --color-sub-text: #ff0000;
  --color-bg: #ffffff;
  --color-border: #474747;
  --color-muted: #f3f3f3;
  --container-width: 1320px;
  --container-padding: 20px;
  --section-space: 170px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --transition-base: 0.24s ease;
}

/* Reset / Base。BEM 接頭辞は layout / components で使用。 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

/* 横スクロール防止（SPで左右に揺れる対策） */
html {
  overflow-x: hidden;
}

html[lang^=en] body,
html[lang^=th] body,
html[lang^=vi] body {
  font-family: var(--font-en);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-family: var(--font-ja);
  font-weight: var(--fw-regular);
  line-height: 1.7;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-base), color var(--transition-base), background-color var(--transition-base);
}

a:hover {
  opacity: 0.8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--fw-medium);
  line-height: 1.3;
}

p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

.is-en {
  font-family: var(--font-en);
}

.is-en .is-bold {
  font-weight: var(--fw-bold);
}

/* WP blocks safe reset */
.wp-site-blocks,
.entry-content,
.wp-block-group,
.wp-block-columns,
.wp-block-column,
.wp-block-cover,
.wp-block-image,
.wp-block-heading,
.wp-block-paragraph {
  margin: 0;
}

.wp-block {
  max-width: none;
}

/* Layout: l-*, site-main, header/footer 骨格 */
.site-main {
  padding: 0 0 100px;
}

.home .site-main {
  padding: 0;
}

/* main 内の h1 共通余白（上 80px / 下 40px） */
.site-main header {
  padding-left: 40px;
}
.site-main header h1 {
  margin-top: 80px;
  margin-bottom: 40px;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--color-text);
  letter-spacing: 0.3rem;
}

.site-main h1 {
  margin-top: 80px;
  margin-bottom: 40px;
  padding: 0 40px 15px;
  letter-spacing: 0.3em;
  border-bottom: 2px solid #7e7e7e;
}

.p-sub-page__title.nobd {
  display: flex;
  align-items: center;
  border-bottom: none;
  padding-left: 0;
}
.p-sub-page__title.nobd span {
  font-size: 16px;
  padding-left: 20px;
}

.int_set .wp-block-image {
  display: flex;
  width: 47%;
  margin-left: 3%;
  align-items: center;
  margin-top: -15px;
  margin-bottom: 50px;
}
.int_set .wp-block-image img {
  width: 50%;
}
.int_set .wp-block-image figcaption {
  width: 50%;
  padding-left: 20px;
}

.int_img figure {
  width: 70%;
  margin: 0 auto;
}

.slug-internship .wp-block-column.voice_bg, .slug-work-culture-program .wp-block-column.voice_bg {
  margin-top: 170px;
  margin-bottom: 0;
}

.slug-work-culture-program .p-hero__bg, .slug-employment-support-for-foreigners .p-hero__bg {
  background-position: center 40%;
}

.txt_r .wp-element-caption {
  position: relative;
  top: -50px;
  /* left: 75px; */
}

.txt_l .wp-element-caption {
  position: relative;
  top: -50px;
  /* right: 75px; */
}

h2.p-sub-page__title {
  margin-top: 170px;
  margin-bottom: 80px;
  padding: 0 40px 15px;
  letter-spacing: 0.3em;
  border-bottom: 2px solid #7e7e7e;
}

h2.p-sub-page__title.bgb {
  font-size: clamp(17px, 4vw, 24px);
  margin-top: 80px;
  margin-bottom: 30px;
  padding: 10px 20px;
  background: #282523;
  letter-spacing: 0.3em;
  font-weight: var(--fw-regular);
  color: #fff;
  position: relative;
  border-bottom: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
h2.p-sub-page__title.bgb::after {
  content: "";
  width: 3px;
  height: 80%;
  position: absolute;
  top: 10%;
  left: 5px;
  background-color: #ff7c3c;
  display: block;
}
h2.p-sub-page__title.bgb span {
  font-size: clamp(20px, 5vw, 30px);
  margin-left: 30px;
}

.box90 {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

iframe {
  border: 1px solid #b9b9b9 !important;
  margin-top: 30px;
}

/* Front page: hero + additional sliders */
.p-front-page {
  overflow: visible;
}

/* vi / th 用「只今準備中です」 */
.p-front-page--coming-soon {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-coming-soon {
  text-align: center;
  padding: 3rem 2rem;
}

.p-coming-soon__text {
  margin: 0 !important;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--color-text);
  font-weight: var(--fw-medium);
}

.slug-home .site-header {
  border-bottom: none;
}

.p-front-hero {
  width: min(100%, var(--container-width));
  margin-inline: auto;
}

.p-front-hero__splide {
  position: relative;
  overflow: visible;
  padding-bottom: 18px;
}
.p-front-hero__splide::after {
  content: "";
  display: block;
  width: 100vw;
  height: 40%;
  position: absolute;
  left: 50%;
  bottom: 0;
  background-color: #282523;
  transform: translateX(-50%);
  z-index: -1;
}

.p-front-hero .splide__track {
  width: 93%;
  margin-left: 7%;
  overflow: hidden;
}

.p-front-hero__slide-link {
  display: block;
}
.p-front-hero__slide-link:hover {
  opacity: 1;
}

.p-front-hero__slide-inner {
  min-height: 0;
}

.p-front-hero__img {
  width: 100%;
  aspect-ratio: 2489/1384;
  height: auto;
  object-fit: cover;
}

.p-front-hero__caption {
  display: none;
}

.p-front-hero__title {
  display: none;
}

.p-front-hero__text {
  display: none;
}

.p-front-hero__splide .splide__arrows {
  display: none !important;
}

.p-front-hero__splide .splide__arrow {
  position: static;
  transform: none;
  width: 48px;
  height: 48px;
  border-radius: 2px;
  background: #f0f0f0;
  border: 1px solid #bcbcbc;
  opacity: 1;
}

.p-front-hero__splide .splide__arrow svg {
  fill: #111;
  width: 14px;
  height: 14px;
}

.p-front-hero__splide .splide__pagination {
  right: auto;
  left: 50%;
  top: auto;
  bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 10px 20px 0;
}

.p-front-hero__splide .splide__pagination__page {
  display: block;
  width: 6px;
  height: 6px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 100%;
  box-shadow: none;
  opacity: 1;
  appearance: none;
  -webkit-appearance: none;
  background: #4f4945;
}

.p-front-hero__splide .splide__pagination__page.is-active {
  background: #96918c;
  transform: scale(1);
}

.p-front-hero__news {
  position: relative;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px 32px;
  padding: 0 10% 22px;
  background: transparent;
  color: #f0efee;
}
.p-front-hero__news::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #282523;
  z-index: -1;
}

.p-front-hero__news-head {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding-right: 20px;
}

.p-front-hero__news-title {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.p-front-hero__news-link {
  position: relative;
  display: inline-flex;
  margin-top: 16px;
  font-size: 13px;
  color: #727171;
  padding-left: 25px;
}

.p-front-hero__news-link::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 3px;
  line-height: 1.1;
  border: 1px solid #727171;
  border-radius: 3px;
  padding: 2px 5px 3px;
  line-height: 1;
}

.p-front-hero__news-list {
  display: grid;
  gap: 8px;
  align-content: center;
}

.p-front-hero__news-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  font-size: 14px;
}

.p-front-hero__news-date {
  flex: 0 0 auto;
  color: #e0a780;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.p-front-hero__news-entry {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #afafaf;
}

.p-front-hero__news-type {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.3;
}

.p-front-hero__news-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.45;
}

.p-front-hero__news-item--empty {
  color: #d8d3ce;
}

/* 代表メッセージ（ヒーロー直下・オレンジ背景・左テキスト右写真） */
.p-front-message {
  background: transparent;
  padding: clamp(40px, 6vw, 75px) 0;
  width: 90%;
  position: relative;
  z-index: 0;
  overflow: visible;
}
.p-front-message::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: -50vw;
  background: linear-gradient(to right, #ec6001, #f18422);
  pointer-events: none;
  z-index: -1;
}
.p-front-message::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - clamp(28px, 4vw, 28px));
  width: 220vw;
  height: clamp(200px, 11vw, 300px);
  background: linear-gradient(90deg, rgba(238, 168, 72, 0.47) 0%, rgba(252, 236, 219, 0.47) 100%);
  transform: translateX(-50%) rotate(-17deg);
  transform-origin: center center;
  pointer-events: none;
  z-index: 1;
}

.p-front-message__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px 48px;
  align-items: center;
  max-width: none;
  margin-inline: 0;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  position: relative;
  z-index: 2;
}

.p-front-message__body {
  min-width: 0;
  width: 80%;
  padding-left: 10%;
}

.p-front-message__title {
  margin: 0 0 1.2em;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.p-front-message__text {
  margin: 0 0 1.5em;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.85;
  letter-spacing: 0.02em;
}
.p-front-message__text p {
  margin: 0 0 1em;
}
.p-front-message__text p:last-child {
  margin-bottom: 0;
  text-align: justify;
}

.p-front-message__signature {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-align: right;
}
.p-front-message__signature strong {
  font-size: 18px;
  font-weight: var(--fw-regular);
}

.p-front-message__image-wrap {
  flex-shrink: 0;
  width: min(250px, 40vw);
  max-width: 100%;
  background: #2a2523;
  position: absolute;
  right: -5%;
}

.p-front-message__image {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  filter: grayscale(100%);
}

@media (max-width: 1200px) {
  .p-front-message__body {
    width: 100%;
    padding-left: 0;
  }
  .p-front-message__image-wrap {
    position: static;
    justify-self: end;
    width: clamp(140px, 22vw, 220px);
  }
}
/* 8枚画像ギャラリー（代表メッセージ直下・横に流れ続けるマーキー・常に4枚表示） */
.p-front-gallery {
  background: #fff;
  padding: clamp(30px, 5vw, 75px) 0;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.p-front-gallery__marquee {
  overflow: hidden;
  width: 100%;
}

.p-front-gallery__track {
  display: flex;
  gap: 5px;
  width: calc(400% + 180px);
  animation: p-front-gallery-flow 80s linear infinite;
}

.p-front-gallery__slide {
  flex: 0 0 6.25%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.p-front-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes p-front-gallery-flow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-front-gallery__track {
    animation: none;
  }
}
/* 「集い」を「学び」の力に（画像上・黒ボタン下・タイトル左にオレンジバー） */
.p-front-gathering {
  background: #fff;
  padding: clamp(40px, 6vw, 80px) 0;
}

.p-front-gathering__inner {
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.p-front-gathering__header {
  padding: 24px 24px 28px 20px;
  max-width: 90%;
  margin: 0 auto;
  margin-bottom: clamp(32px, 4vw, 40px);
  display: flex;
  align-items: center;
  border-radius: 0 4px 4px 0;
  border-left: 2px solid #ff9c43;
}

.p-front-gathering__title {
  padding-left: 0;
  font-size: clamp(18px, 2.8vw, 27px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text);
  width: 40%;
}

.p-front-gathering__lead {
  margin: 0;
  padding-left: 17px;
  font-size: 15px;
  line-height: 1.75;
  color: #595959;
  width: 55%;
}

.p-front-gathering__cards {
  max-width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.p-front-gathering__card {
  min-height: 0;
  background: #fff;
}

/* 画像あり: カード全体がリンク。ボタンは画像の左下にオーバーレイ（ダークグレー・白文字） */
.p-front-gathering__card-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.p-front-gathering__card-link:hover {
  opacity: 0.7;
}

.p-front-gathering__card-link .p-front-gathering__card-image {
  display: block;
}

.p-front-gathering__btn-overlay {
  display: inline-flex;
  align-items: stretch;
  background: #fff;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid #000000;
  border-top: none;
  width: 100%;
}

.p-front-gathering__btn-overlay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 3px 10px;
  background: var(--color-primary);
  color: #ff7c3c;
  font-size: 10px;
  line-height: 1;
}

.p-front-gathering__btn-overlay-label {
  padding: 3px 20px 3px 10px;
}

/* 画像なし: 画像エリアの下にだけボタン表示・ボタンのみリンク */
.p-front-gathering__card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2.5;
  min-height: 0;
  background: #e8e6e3;
}
.p-front-gathering__card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-front-gathering__card-link-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.p-front-gathering__card-link-wrap .c-card-link {
  width: 100%;
  min-height: 56px;
}

/* 3つのボタン: 角丸カード・画像縦短く・ラベルはテキスト部分だけ背景 */
.p-front-gathering__cards--triple {
  max-width: 95%;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  margin-top: 130px;
  position: relative;
  z-index: 0;
}
.p-front-gathering__cards--triple::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220vw;
  height: clamp(200px, 11vw, 300px);
  background: linear-gradient(90deg, rgba(252, 236, 219, 0.47) 0%, rgba(238, 168, 72, 0.47) 100%);
  transform: translate(-50%, -50%) rotate(17deg);
  transform-origin: center center;
  pointer-events: none;
  z-index: -1;
}

.p-front-gathering__card--tile {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #e8e6e3;
}

.p-front-gathering__card--tile:hover {
  opacity: 1;
}
.p-front-gathering__card--tile:hover .p-front-gathering__card-image::after {
  opacity: 0;
}

.p-front-gathering__card--tile .p-front-gathering__card-image {
  display: block;
  position: relative;
  aspect-ratio: 5/3;
  width: 100%;
}

.p-front-gathering__card--tile .p-front-gathering__card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(61, 60, 59, 0.2);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.p-front-gathering__card--tile .p-front-gathering__card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-front-gathering__tile-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: auto;
  width: auto;
  max-width: calc(100% - 24px);
  display: inline-block;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 14px;
  font-weight: var(--fw-medium);
  padding: 0 3px;
}

/* 2つの画像ボタン: 大ブロック2列 */
.p-front-gathering__big-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 130px;
  position: relative;
  z-index: 0;
}
.p-front-gathering__big-row::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - clamp(28px, 4vw, 28px));
  width: 220vw;
  height: clamp(200px, 11vw, 300px);
  background: linear-gradient(90deg, rgba(238, 168, 72, 0.47) 0%, rgba(252, 236, 219, 0.47) 100%);
  transform: translateX(-50%) rotate(-17deg);
  transform-origin: center center;
  pointer-events: none;
  z-index: -1;
}

.p-front-gathering__big-card {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: #282523;
}

.p-front-gathering__big-card:hover {
  opacity: 1;
}
.p-front-gathering__big-card:hover .p-front-gathering__big-card-image::after {
  display: none;
}

.p-front-gathering__big-card-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 5/3;
  background: #e8e6e3;
}
.p-front-gathering__big-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 左ブロック（シリコンバレー）画像上: #3d3c3b 30% */
.p-front-gathering__big-card:not(.p-front-gathering__big-card--orange) .p-front-gathering__big-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(61, 60, 59, 0.3);
  pointer-events: none;
}

/* 右ブロック（日本語）画像上: #d68a25 30% */
.p-front-gathering__big-card--orange .p-front-gathering__big-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(214, 138, 37, 0.3);
  pointer-events: none;
}

.p-front-gathering__big-card-caption {
  margin: 0;
  font-size: 14px;
  color: #fff;
  padding: 20px 20px 0;
  display: block;
}

.p-front-gathering__big-card-label {
  display: block;
  padding: 0 20px 20px;
  color: #fff;
  font-size: 20px;
  font-weight: var(--fw-medium);
}

.p-front-gathering__big-card--orange {
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.p-front-gathering__big-card--orange .p-front-gathering__big-card-image {
  flex-shrink: 0;
}

.p-front-gathering__orange-panel {
  padding: 20px;
  background: linear-gradient(135deg, #fe5c23 0%, #f18422 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  height: 100%;
}

.p-front-gathering__orange-caption {
  margin: 0 0 5px;
  font-size: 14px;
  color: #fff;
  width: 100%;
}

.p-front-gathering__orange-text {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: var(--fw-medium);
  color: #fff;
  line-height: 1.4;
}

.p-front-gathering__orange-text:last-child {
  margin-bottom: 0;
  font-size: 12px;
  background-color: #7f7f7f;
  border-radius: 4px;
  padding: 3px 8px;
  margin-left: 10px;
}

/* Seeds or Needs? (front-voice): phrase slider + image marquee */
.p-front-voice {
  position: relative;
  margin-top: 10px;
  padding: 140px 0 110px;
  background: #282523;
  color: #fff;
  overflow: hidden;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.p-front-voice__phrase-splide {
  position: relative;
}

.p-front-voice__phrase-slide {
  min-height: clamp(230px, 18vw, 360px);
  display: grid;
  align-items: center;
}

.p-front-voice__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-right: clamp(28px, 4vw, 64px);
}

.p-front-voice__eyebrow {
  margin: 0;
  color: #db9645;
  font-family: var(--font-en);
  font-size: clamp(18px, 2.1vw, 33px);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-align: center;
}
.p-front-voice__eyebrow span {
  color: #fff;
}

.p-front-voice__title {
  margin-top: 10px;
  font-family: var(--font-en);
  font-size: clamp(40px, 5.3vw, 84px);
  font-weight: var(--fw-bold);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.p-front-voice__title-accent {
  color: #db9645;
}

.p-front-voice__subtitle {
  margin-top: 10px;
  font-size: clamp(12px, 1.1vw, 16px);
}

.p-front-voice__phrase-splide .splide__arrows {
  display: none !important;
}

.p-front-voice__phrase-splide .splide__pagination {
  position: absolute;
  right: clamp(10px, 1.5vw, 20px);
  top: 50%;
  bottom: auto;
  left: auto;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.p-front-voice__phrase-splide .splide__pagination__page {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  padding: 0;
  display: block;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #5f5954;
  opacity: 1;
  transform: none;
}

.p-front-voice__phrase-splide .splide__pagination__page.is-active {
  background: #b5afa8;
  transform: none;
}

.p-front-voice__image-marquee {
  margin-top: 50px;
  height: 450px;
  margin-inline: auto;
  overflow: hidden;
}

.p-front-voice__image-track {
  display: flex;
  align-items: center;
  height: 100%;
  gap: clamp(12px, 1.4vw, 24px);
  width: max-content;
  animation: p-front-voice-flow-left 72s linear infinite;
}

.p-front-voice__chip {
  flex: 0 0 auto;
  width: clamp(180px, 22vw, 260px);
  height: clamp(110px, 12vw, 160px);
  overflow: hidden;
  background: #151515;
}

.p-front-voice__chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-front-voice__chip--capsule {
  border-radius: 28px;
  height: 80%;
  align-self: flex-end;
}

.p-front-voice__chip--round {
  width: clamp(180px, 22vw, 260px);
  height: clamp(180px, 22vw, 260px);
  border-radius: 50%;
  align-self: flex-start;
}

.p-front-voice__chip--circle {
  border-radius: 28px;
  height: 80%;
  align-self: flex-end;
}
.p-front-voice__chip--square {
  height: 80%;
  align-self: flex-start;
}

.p-front-voice__chip--rect {
  width: clamp(180px, 22vw, 260px);
  height: clamp(180px, 22vw, 260px);
  border-radius: 50%;
  align-self: center;
}

@keyframes p-front-voice-flow-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-front-voice__phrase-splide .splide__list,
  .p-front-voice__image-track {
    animation: none;
  }
}
/* お知らせ / ブログ（post＋news 新着3件・薄いベージュ背景） */
.p-front-news-blog {
  padding: clamp(48px, 7vw, 170px) 0;
  position: relative;
  z-index: 0;
}
.p-front-news-blog::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220vw;
  height: clamp(200px, 11vw, 300px);
  background: linear-gradient(90deg, rgba(252, 236, 219, 0.47) 0%, rgba(238, 168, 72, 0.47) 100%);
  transform: translate(-50%, -50%) rotate(17deg);
  transform-origin: center center;
  pointer-events: none;
  z-index: -1;
}

.p-front-news-blog__inner {
  max-width: 90%;
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.p-front-news-blog__title {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.p-front-news-blog__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-front-news-blog__item {
  margin: 0;
}

.p-front-news-blog__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.p-front-news-blog__thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #e8e6e3;
  border-radius: 8px;
}

.p-front-news-blog__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-front-news-blog__thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #d9d6d2;
}

.p-front-news-blog__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.p-front-news-blog__card-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.p-front-news-blog__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

.p-front-news-blog__all {
  margin: 24px 0 0;
  text-align: right;
}

.p-front-news-blog__all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: opacity 0.2s;
}

.p-front-news-blog__all-link:hover {
  opacity: 0.8;
}

.p-front-news-blog__all-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  background: #f2f2f2;
  border-radius: 3px;
  color: #ff7c3c;
  font-size: 10px;
  line-height: 1;
  border: 1px solid #929292;
  margin-top: 2px;
}

/* お知らせ直下: 画像＋2本バナー（CANVAS日本語学校 / アイユー） */
.p-front-partners {
  background: #eaeaea;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.p-front-partners__hero {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1200/500;
  max-height: 500px;
  background: #e8e6e3;
}

.p-front-partners__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-front-partners__inner {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: clamp(32px, 4vw, 90px) var(--container-padding);
  background-color: #eaeaea;
}

.p-front-partners__banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin-inline: auto;
}

.p-front-partners__banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.p-front-partners__banner-logo {
  display: block;
  text-align: center;
}

.p-front-partners__banner-logo img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.p-front-partners__banner-logo--text {
  font-size: 14px;
  line-height: 1.35;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.p-front-partners__banner-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.p-front-partners__banner-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.p-front-partners__banner-label {
  font-size: 14px;
  color: #555;
}

.p-front-page .p-front-slider {
  position: relative;
  width: min(100%, var(--container-width));
  margin: clamp(30px, 5vw, 56px) auto;
  padding-inline: var(--container-padding);
}

.p-front-page .p-front-slider .splide__track {
  overflow: visible;
}

.p-front-page .p-front-slider .splide__arrow {
  width: 2.4rem;
  height: 2.4rem;
  background: rgba(40, 37, 35, 0.85);
  opacity: 1;
}

.p-front-page .p-front-slider .splide__arrows {
  display: none !important;
}

.p-front-page .p-front-slider .splide__arrow svg {
  fill: #fff;
}

.p-front-page .p-front-slider .splide__arrow:hover {
  opacity: 0.8;
}

.p-front-page .p-front-slider .splide__pagination {
  bottom: -1.6rem;
}

.p-front-page .p-front-slider .splide__pagination__page {
  width: 8px;
  height: 8px;
  margin-inline: 5px;
  background: rgba(40, 37, 35, 0.4);
}

.p-front-page .p-front-slider .splide__pagination__page.is-active {
  background: var(--color-accent);
  transform: scale(1);
}

/* 下層ヒーロー（アイキャッチ＋右オレンジバー。バーは下に伸ばしてパンくずと重なる） */
.p-hero {
  position: relative;
  width: 95%;
  min-height: 350px;
  margin: 0 calc(-1 * var(--container-padding));
  overflow: visible;
}

.p-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.p-hero__bar {
  position: absolute;
  top: 30px;
  right: -7%;
  width: 25%;
  height: 100%;
  background: linear-gradient(to right, #fe5c23, #f18422);
  z-index: -1;
}

.slug-internship .p-hero__bg {
  background-position: center -100px;
}

.slug-locations .p-hero__bg, .slug-business-base .p-hero__bg {
  background-position: center -50px;
}

/* 下層ページタイトル（ヒーロー・パンくず直下） */
.p-sub-page__title {
  font-size: clamp(21px, 4vw, 36px);
  color: var(--color-text);
  letter-spacing: 0.03em;
}

/* 事業展開・企業情報用ヒーロー（パンくず直下＝タイトルブロック＋アイキャッチ画像） */
.p-hero-services {
  position: relative;
  margin-bottom: 100px;
  overflow: visible;
}

.slug-services .site-main header h1, .slug-company .site-main header h1, .slug-company-information .site-main header h1, .slug-business-development .site-main header h1, .slug-about .site-main header h1, .slug-our-services .site-main header h1 {
  border-bottom: none;
}

/* 背景：斜めオレンジグラデーション帯（画面幅100%・右上から左下へ） */
.p-hero-services::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  width: 60vw;
  margin-right: -60vw;
  height: 40%;
  background: linear-gradient(to right, #fcecd9 0%, #f8ddb7 100%);
  transform: rotate(-12deg);
  transform-origin: top center;
  z-index: 0;
  pointer-events: none;
}

.p-hero-services__title-block,
.p-hero-services__image-wrap {
  position: relative;
  z-index: 1;
}

.p-hero-services__title-block {
  margin: 0;
}

.p-hero-services__title {
  margin: 50px 0 40px !important;
  padding-left: 0px !important;
  font-size: clamp(28px, 4vw, 40px);
}

.p-hero-services__image-wrap {
  margin: 0 calc(-1 * var(--container-padding));
  padding: 0 var(--container-padding);
}

.p-hero-services__image {
  display: block;
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-md);
}

.l-container {
  width: min(100%, var(--container-width));
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.l-section {
  padding-block: var(--section-space);
}

.l-inner {
  width: min(100%, 1024px);
  margin-inline: auto;
}

.l-page {
  /* page.php ラッパー。装飾はブロックへ。 */
}

/* Header / Footer base */
.site-header {
  border-bottom: 2px solid #919191;
  position: sticky;
  z-index: 1000;
  background: #fff;
}

.site-footer {
  padding: 70px 0;
  background: var(--color-primary);
  color: #fff;
}

.p-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 94px;
}

.p-header__logo a {
  display: block;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
}

.p-header__logo img {
  width: 210px;
  height: auto;
}

.p-header__panel {
  display: flex;
  align-items: center;
  gap: 46px;
  margin-left: auto;
  order: 2;
}

.p-header__toggle {
  display: block;
  width: 42px;
  height: 42px;
  padding: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  order: 3;
  margin-left: 0;
}

.p-header__drawer {
  display: none;
}

.p-header.is-open .p-header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.p-header.is-open .p-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.p-header.is-open .p-header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  margin-top: 7px;
}

.p-header.is-open .p-header__drawer {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  display: block;
  min-width: 300px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #ece9e6;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.p-header.is-open .p-header__drawer .p-nav .menu {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.p-header.is-open .p-header__drawer .p-nav .menu-item {
  width: 100%;
}

.p-header.is-open .p-header__drawer .p-nav .menu-item a {
  width: 100%;
  min-height: 40px;
}

.p-header.is-open .p-header__drawer .p-nav .sub-menu {
  position: static;
  min-width: 0;
  width: 100%;
  margin: 0 0 8px;
  padding: 0 0 0 12px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.p-header.is-open .p-header__drawer .p-lang {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1ede8;
}

.p-header__toggle-bar {
  display: block;
  width: 100%;
  height: 1px;
  background: #000;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.p-header__toggle-bar + .p-header__toggle-bar {
  margin-top: 5px;
}

.p-nav .menu {
  display: flex;
  align-items: center;
  gap: 46px;
}

.p-nav .menu > .menu-item {
  position: relative;
}

.p-nav .menu-item {
  font-size: 14px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
}

.p-nav .menu-item a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.p-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 240px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #eee7df;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}

.p-nav .sub-menu .menu-item + .menu-item {
  margin-top: 8px;
}

.p-nav .sub-menu .menu-item a {
  min-height: auto;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}

.p-nav .menu > .menu-item:hover > .sub-menu,
.p-nav .menu > .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.p-footer-board {
  display: grid;
  grid-template-columns: 1.1fr 3fr 1.1fr;
  gap: 24px 28px;
  align-items: start;
  padding: 0 34px;
  min-height: 100px;
}

.p-footer-brand {
  position: relative;
  height: 100%;
}
.p-footer-brand .p-footer-brand__sns {
  position: absolute;
  bottom: 0;
  align-items: center;
  line-height: 1;
}
.p-footer-brand .p-footer-brand__sns a img {
  height: 18px;
}
.p-footer-brand .p-footer-brand__sep {
  color: #767573;
  font-size: 18px;
  position: relative;
  top: -2px;
}

.p-footer-brand__logo {
  display: block;
}

.p-footer-brand__logo img {
  width: 122px;
  height: auto;
}

.p-footer-brand__sns {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.p-footer-nav__title {
  margin-bottom: 8px;
  color: #d6d4cf;
  font-size: 12px;
  font-weight: var(--fw-medium);
}

.p-footer-nav__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
}
.p-footer-nav__menu > li:last-child .sub-menu {
  margin-left: 0;
}

.p-footer-nav__menu > .menu-item {
  width: calc(33.333% - 18px);
}

.p-footer-nav__menu > .menu-item > a {
  display: inline-block;
  margin-bottom: 6px;
  color: #d6d4cf;
  font-weight: var(--fw-medium);
}

.p-footer-nav__menu > .menu-item > .sub-menu {
  display: grid;
  gap: 5px;
  margin-left: 20px;
}

.p-footer-nav__menu > .menu-item > .sub-menu a {
  color: #fff;
  line-height: 1.5;
}

.p-footer-nav__menu > .menu-item:not(.menu-item-has-children) > a {
  margin-bottom: 0;
  color: #fff;
  font-size: 11px;
  font-weight: var(--fw-regular);
}

.p-footer-links {
  display: grid;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid #373634;
}

.p-footer-links__item {
  color: #fff;
  line-height: 1.5;
  display: flex;
}
.p-footer-links__item img {
  width: 12px;
  margin-right: 10px;
}

.p-footer-copy {
  display: block;
  margin-top: 36px;
  color: #fff;
  font-size: 10px;
  text-align: center;
}

/* サブメニュー：末尾に → を付ける */
.p-nav .sub-menu .menu-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.p-nav .sub-menu .menu-item > a::after {
  content: "→";
  flex: 0 0 auto;
  line-height: 1;
  transform: translateX(0);
  transition: transform 0.2s ease;
}
.p-nav .sub-menu .menu-item > a:hover::after,
.p-nav .sub-menu .menu-item > a:focus-visible::after {
  transform: translateX(2px);
}

/* Global Nav underline (L → R) */
.p-nav .menu-item > a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding-bottom: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: left bottom;
  transition: background-size 0.25s ease;
}
.p-nav .menu-item > a:hover {
  opacity: 1;
}
.p-nav .menu-item:hover > a,
.p-nav .menu-item:focus-within > a {
  background-size: 100% 1px;
}
.p-nav .current-menu-item > a,
.p-nav .current-menu-ancestor > a {
  background-size: 100% 1px;
}

/* Breadcrumb（パターンA=ヘッダー直下 / パターンB=テンプレでヒーロー直後に呼ぶ） */
.p-breadcrumb-wrap {
  position: relative;
  z-index: 1;
  padding: 12px 0 0;
}

.home .p-breadcrumb-wrap {
  display: none;
}

.p-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.p-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.p-breadcrumb__item:not(:last-child)::after {
  content: "/";
  color: var(--color-border);
  pointer-events: none;
}

.p-breadcrumb__link {
  color: #777;
}

.p-breadcrumb__link:hover {
  opacity: 1;
  color: var(--color-text);
}

.p-breadcrumb__current {
  color: var(--color-text);
  font-weight: var(--fw-medium);
}

/* 会社概要ページ: セクション案内（会社概要 / アクセス） */
.p-profile-nav {
  margin-top: 24px;
  margin-bottom: 40px;
}

.p-profile-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-profile-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-size: 16px;
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.p-profile-nav__link:hover {
  background: var(--color-muted);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.p-profile-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 18px;
  line-height: 1;
  font-weight: var(--fw-regular);
}

/* body の .page-profile（スラッグ profile）か article の .p-page-profile のどちらかで効く */
.page-profile .p-page-sub .entry-content dl,
.page-profile .entry-content dl,
.p-page-profile .entry-content dl {
  margin: 120px auto 70px;
  width: 80%;
  padding: 0;
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 0.25em 3em;
  align-items: baseline;
}

.page-profile .p-page-sub .entry-content dl dt,
.page-profile .entry-content dl dt,
.p-page-profile .entry-content dl dt {
  margin: 0;
  padding: 0.5em 0 0;
  font-size: 1em;
  grid-column: 1;
  border-bottom: 1px solid #c8c8c8;
  height: 100%;
}

.page-profile .p-page-sub .entry-content dl dt:first-child,
.p-page-profile .entry-content dl dt:first-child {
  padding-top: 0;
}

.box_c {
  justify-content: center;
}

.page-profile .p-page-sub .entry-content dl dd,
.page-profile .entry-content dl dd,
.p-page-profile .entry-content dl dd {
  margin: 0;
  padding: 0.5em 0 0.75em;
  border-bottom: 1px solid #c8c8c8;
  font-size: 1em;
  line-height: 1.7;
  grid-column: 2;
}

.slug-internship .p-page-sub {
  padding: 0;
}
.slug-internship .c-bracket-frame {
  margin: 40px auto 50px;
}

/* Single / Archive 最小表示用 */
.p-single__header {
  margin-bottom: 1em;
}

.p-single__date {
  display: block;
  color: var(--color-border);
  font-size: 0.9em;
}

.p-single__title {
  margin-top: 0.25em;
}

.p-single__thumbnail {
  margin-top: 1em;
  margin-bottom: 1.5em;
  overflow: hidden;
}

.p-single__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.p-single__body {
  margin-top: 0;
}

.p-archive__header {
  margin-bottom: 1.5em;
}

.p-archive__title {
  font-size: clamp(24px, 3vw, 32px);
}

.p-archive__items {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-archive__link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.p-archive__link time {
  color: var(--color-border);
  font-size: 0.9em;
}

.p-archive__empty {
  margin: 1em 0;
}

/* 404 */
.p-404 {
  padding: 3rem 0;
  text-align: center;
}

.p-404__title {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 1rem;
}

.p-404__text {
  margin: 0 0 1.5rem;
  color: #555;
}

.p-404__action {
  margin: 0;
}

/* 共通コンポーネント: c-* (Block用), p-lang */
.c-page-hero {
  padding: 72px 0 56px;
  margin-bottom: 56px;
  background: linear-gradient(90deg, #f7f5f3, #ffffff);
  border-bottom: 1px solid #ece9e6;
}

.c-page-hero__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: var(--fw-bold);
}

.c-page-hero__lead {
  margin-top: 14px;
  color: #333;
}

/* セクション見出し（共通） */
.c-section-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: var(--fw-bold);
  letter-spacing: 0.03em;
}

.c-section-title::before {
  content: "";
  width: 8px;
  height: 1.2em;
  background: var(--color-accent);
  border-radius: 2px;
}

.c-section-title__heading {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  line-height: inherit;
}

/* h2 タイプ1: メインセクション見出し（暗いバー・左オレンジ・白文字） */
.c-section-title--bar {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 20px;
  background: var(--color-primary);
  color: #fff;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: var(--fw-bold);
  letter-spacing: 0.03em;
  border: none;
  border-radius: 0;
  gap: 0;
}

.c-section-title--bar::before {
  flex-shrink: 0;
  width: 6px;
  height: 1.4em;
  margin-right: 14px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* h2 タイプ2: 見出し＋右に英語サブタイトル */
.c-section-title--with-sub {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  width: 100%;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: var(--fw-bold);
  letter-spacing: 0.03em;
}

.c-section-title--with-sub::before {
  display: none;
}

.c-section-title--with-sub__sub {
  font-size: 0.5em;
  font-weight: var(--fw-regular);
  color: #777;
  font-family: var(--font-en);
}

/* ページ内リンクボタン（アコーディオン風・左に矢印アイコン） */
.c-bracket-frame {
  position: relative;
  --bracket-color: #ff7c3c;
  --bracket-thickness: 1px;
  --bracket-depth: 1.8rem;
  padding-left: calc(var(--bracket-depth) + 1.6rem);
  padding-right: calc(var(--bracket-depth) + 1.6rem);
  width: 95%;
  margin: 70px auto 0;
}
.c-bracket-frame .is-layout-constrained {
  padding: 20px 0;
}

.c-bracket-frame::before,
.c-bracket-frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--bracket-depth);
  pointer-events: none;
}

.c-bracket-frame::before {
  left: 0;
  border-left: var(--bracket-thickness) solid var(--bracket-color);
  border-top: var(--bracket-thickness) solid var(--bracket-color);
  border-bottom: var(--bracket-thickness) solid var(--bracket-color);
}

.c-bracket-frame::after {
  right: 0;
  border-right: var(--bracket-thickness) solid var(--bracket-color);
  border-top: var(--bracket-thickness) solid var(--bracket-color);
  border-bottom: var(--bracket-thickness) solid var(--bracket-color);
}

.c-bracket-frame p {
  margin-top: 0;
  margin-bottom: 0.5em;
  color: #595959;
  font-size: 18px;
}

.c-bracket-frame p:last-child {
  margin-bottom: 0;
}

/* ギャラリー行（2枚/3枚横並び＋各画像にキャプション） */
.c-gallery-row {
  margin-top: 70px;
}

.c-gallery-row .wp-block-columns {
  gap: 1em;
  margin-bottom: 0;
}

.c-gallery-row figcaption {
  margin-top: 0.5em;
  margin-bottom: 0;
  text-align: center;
  font-size: 0.9em;
  color: var(--color-text);
  line-height: 1.5;
}

.c-gallery-row--3-split .c-gallery-row__captions {
  gap: 1em;
  margin-top: 0.5em;
}

.c-gallery-row--3-split .c-gallery-row__captions .c-gallery-row__caption {
  margin-top: 0;
}

/* 1+2レイアウト用：画像とキャプションを列ごとにまとめ、SPで「画像1+キャプション」「画像2・3+キャプション」になる */
.c-gallery-row--3-split .c-gallery-row__cols {
  gap: 1em;
  margin-bottom: 0;
}

.c-gallery-row--3-split .c-gallery-row__inner {
  gap: 1em;
  margin-bottom: 0;
}

.c-gallery-row--3-split .c-gallery-row__cols .c-gallery-row__caption {
  margin-top: 0.5em;
  margin-bottom: 0;
}

/* Location Box Set（角丸ボックス×2・2×2画像＋左上円ラベル） */
.c-location-box-set {
  gap: 3em;
  margin-bottom: 0;
  margin-top: 80px;
}

.c-location-box {
  position: relative;
  padding: 15px;
  background: #e5e1df;
  border-radius: 8px;
}

.c-location-box__label {
  position: absolute;
  top: -50px;
  left: -20px;
  z-index: 1;
  width: 160px;
  height: 160px;
  margin: 0 !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffce8d;
  color: #000;
  font-size: 28px;
  font-weight: var(--fw-medium);
  line-height: 1.4;
  text-align: center;
}

.c-location-box__grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 0 !important;
}

.c-location-box__grid .wp-block-column {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
}

.c-location-box__grid .wp-block-image,
.c-location-box__grid figure.wp-block-image {
  margin: 0;
  overflow: hidden;
}

/* 列ブロック共通の height:100% を上書きして2×2グリッド用に */
.entry-content .c-location-box .c-location-box__grid .wp-block-image img,
.entry-content .c-location-box .c-location-box__grid figure.wp-block-image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* 参加者の声 1件（〇アイコン＋角丸テキスト。偶数件目は左右反転） */
.c-voice-item {
  margin-bottom: 1.5em;
}

.c-voice-item:last-child {
  margin-bottom: 0;
}

.c-voice-item .wp-block-columns {
  display: flex;
  align-items: flex-start;
  gap: 2em;
  margin: 0;
}

.wp-block-column.voice_bg {
  margin-top: 100px;
  margin-bottom: 170px;
}
.wp-block-column.voice_bg .wp-block-cover {
  overflow: visible;
  padding: 80px 3rem 40px;
}
.wp-block-column.voice_bg .wp-block-cover .wp-block-cover__image-background,
.wp-block-column.voice_bg .wp-block-cover .wp-block-cover__gradient-background,
.wp-block-column.voice_bg .wp-block-cover .wp-block-cover__background {
  left: 50%;
  width: 100vw;
  max-width: none;
  transform: translateX(-50%);
}

.p-sub-page__voice_ttl {
  font-size: 28px;
  font-weight: var(--fw-regular);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 25px;
}
.p-sub-page__voice_ttl span {
  font-size: 18px;
  font-family: var(--font-en);
}

.c-voice-item .wp-block-column:first-child {
  flex: 0 0 auto;
  width: auto;
}

.c-voice-item .wp-block-column.c-voice-item__text {
  flex: 1 1 0;
  min-width: 0;
}

/* 1件目＝アイコン左・2件目＝テキスト左（見出しが先なら 1件目＝2番目＝even＝反転しない、2件目＝3番目＝odd＝反転） */
.c-voice-item:nth-child(odd) .wp-block-columns {
  flex-direction: row-reverse;
}

/* 〇アイコン部分（完全な円・白背景・中に国旗＋ラベル両方） */
.c-voice-item__icon {
  width: 180px;
  height: 180px;
  min-width: 180px;
  min-height: 180px;
  max-width: 180px;
  max-height: 180px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* 縦伸び防止：画像エリアは固定サイズ・アスペクト比維持 */
.c-voice-item__icon .wp-block-image,
.c-voice-item__icon figure {
  margin: 0 auto;
  width: 100px;
  height: auto;
  min-width: 100px;
  max-width: 100px;
  flex-shrink: 0;
}

.entry-content .wp-block-columns .wp-block-column .c-voice-item__icon .wp-block-image,
.entry-content .wp-block-columns .wp-block-column .c-voice-item__icon figure {
  aspect-ratio: auto;
  overflow: visible;
}

.c-voice-item__icon .wp-block-image img,
.c-voice-item__icon figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  vertical-align: top;
}

/* Keep flag images fully visible inside voice icon */
.entry-content .wp-block-columns .wp-block-column .c-voice-item__icon .wp-block-image img,
.entry-content .wp-block-columns .wp-block-column .c-voice-item__icon figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.c-voice-item__icon .c-voice-item__label {
  margin-top: 2px;
  margin-bottom: 0;
  text-align: center;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.2;
  flex-shrink: 0;
  white-space: nowrap;
}

/* 角丸のテキスト文（#fff 60%・角丸25px） */
.c-voice-item__text {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 25px;
  padding: 2em 2.5em;
  min-width: 0;
  text-align: justify;
}

.c-voice-item__text p {
  margin-top: 0;
  margin-bottom: 0.75em;
}

.c-voice-item__text p:last-child {
  margin-bottom: 0;
}

/* 業種紹介 1件（角丸ボックス＋円ラベル｜画像。偶数件目は左右反転・円は左上） */
.c-career-voice {
  margin-top: 70px;
}

.c-career-voice:last-child {
  margin-bottom: 170px;
}

.c-career-voice .wp-block-columns {
  display: flex;
  align-items: center !important;
  gap: 1.5em;
  margin: 0;
}

.c-career-voice:nth-child(even) .wp-block-columns {
  flex-direction: row-reverse;
}

.c-career-voice__col-box {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
}

.c-career-voice__box {
  position: relative;
  width: 95%;
  height: auto;
  aspect-ratio: 3/1;
  min-height: 160px;
  padding: 3.5em 3em 0;
  background: #e8e8e8;
  border-radius: 20px;
  margin: 0;
  box-sizing: border-box;
}

.c-career-voice__label {
  position: absolute;
  top: -100px;
  right: 0;
  z-index: 1;
  width: 140px;
  height: 140px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #272422;
  box-sizing: border-box;
}

.c-career-voice:nth-child(even) .c-career-voice__label {
  left: 0;
  right: auto;
}

/* 円内テキストの下線は文字の下に1本だけ（2行でも下線は1本） */
.c-career-voice__label::after {
  content: "";
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: #b45e33;
}

.c-career-voice__label p {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 22px;
  font-weight: var(--fw-medium);
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.c-career-voice__text {
  color: #595959;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.7;
}

.c-career-voice__col-img {
  flex: 1 1 0;
  min-width: 0;
}

.c-career-voice__col-img .wp-block-image,
.c-career-voice__col-img figure.wp-block-image {
  margin: 0;
  min-height: 200px;
}

.c-career-voice__col-img .wp-block-image img,
.c-career-voice__col-img figure.wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 拠点ボックス（タイトル＋国旗＋住所・1+2画像・地図埋め込み） */
.c-office-box {
  margin-top: 100px;
  margin-bottom: 2em;
  width: 80%;
  margin: 100px auto 30px;
}

.c-office-box__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75em;
  margin: 0 0 1.5em;
  padding-left: 20px;
  border-left: 2px solid #fe5c23;
}

.c-office-box__title-row .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.25em 0.75em;
  align-items: center;
}

.c-office-box__heading {
  margin: 0 !important;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: var(--fw-bold);
  line-height: 1.3;
}

.c-office-box__flag {
  margin: 0 !important;
  margin-top: 2px !important;
  flex-shrink: 0;
}

.c-office-box__flag img {
  width: auto;
  height: 28px;
  display: block;
}

.c-office-box__title-row .c-office-box__address {
  grid-column: 1/-1;
  width: 100%;
  margin: 0.25em 0 0 !important;
  padding-left: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.c-office-box__images {
  display: flex;
  gap: 0.5em;
  margin: 0 0 1.5em !important;
  height: 400px;
  overflow: hidden;
}

.c-office-box__images .wp-block-column {
  margin: 0;
}

.c-office-box__images .wp-block-column:first-child .wp-block-image,
.c-office-box__images .wp-block-column:first-child figure.wp-block-image {
  margin: 0;
  height: 100%;
}

.c-office-box__images .wp-block-column:first-child .wp-block-image img,
.c-office-box__images .wp-block-column:first-child figure.wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
}

.c-office-box__images .wp-block-column:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.c-office-box__images .wp-block-column:last-child .wp-block-image,
.c-office-box__images .wp-block-column:last-child figure.wp-block-image {
  margin: 0;
  flex: 1;
  min-height: 0;
}

.c-office-box__images .wp-block-column:last-child .wp-block-image img,
.c-office-box__images .wp-block-column:last-child figure.wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1;
}

.c-office-box__map {
  margin: 0 !important;
}

.c-office-box__map .wp-block-embed__wrapper {
  aspect-ratio: 16/10;
}

.c-office-box__map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ページ内アンカーボタン */
.c-anchor-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-size: 16px;
  font-weight: var(--fw-medium);
  text-align: left;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.c-anchor-btn:hover {
  background: var(--color-muted);
  border-color: var(--color-primary);
  opacity: 1;
}

.c-anchor-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  border-radius: 2px;
}

.c-anchor-btn__icon::before {
  content: "▼";
  font-size: 10px;
}

/* 汎用ボタン */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: var(--fw-medium);
  text-align: center;
}

.c-btn:hover {
  opacity: 1;
  background: #3a3532;
}

.c-btn--accent {
  background: var(--color-accent);
  color: var(--color-primary);
}

.c-btn--line,
.wp-block-button.c-btn--line .wp-block-button__link {
  border-color: var(--color-primary);
  background: transparent;
  color: var(--color-primary);
}

/* ブログ詳細用: 薄いベージュ枠ボタン（クラスをブロックの「追加のCSSクラス」に指定しても効く） */
.c-btn--outline-light,
.wp-block-button.c-btn--outline-light .wp-block-button__link {
  border-color: #d4cfc4;
  background: #f7f5f3;
  color: var(--color-text);
  border-radius: var(--radius-sm);
}

.c-btn--outline-light:hover,
.wp-block-button.c-btn--outline-light .wp-block-button__link:hover {
  background: #eeebe6;
  border-color: #c4bfb4;
  opacity: 1;
}

/* → 付きテキストリンク（ボタンデザイン2・テキストリンクデザイン。ブロックにクラス指定可） */
.c-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 80px;
  padding: 16px 24px;
  background: #fff;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.c-card-link:hover {
  background: #f5f3f0;
  color: var(--color-primary);
}

.c-card-link__icon {
  color: #555;
  font-size: 18px;
  line-height: 1;
}

.c-card-link:hover .c-card-link__icon {
  color: var(--color-primary);
}

/* カードリンク（黒背景） */
.c-card-link--dark {
  background: var(--color-primary);
  color: #fff;
}

.c-card-link--dark:hover {
  background: #3a3532;
  color: #fff;
}

.c-card-link--dark .c-card-link__icon {
  color: #fff;
}

.c-card-link--dark:hover .c-card-link__icon {
  color: #fff;
}

.c-link-arrow,
.wp-block-button.c-link-arrow .wp-block-button__link {
  background: transparent;
  border: none;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 0;
  min-width: auto;
  padding: 0;
}

.c-link-arrow::before,
.wp-block-button.c-link-arrow .wp-block-button__link::before {
  content: "→ ";
}

.c-link-arrow:hover,
.wp-block-button.c-link-arrow .wp-block-button__link:hover {
  opacity: 0.85;
}

/* ボタンブロックのスタイル選択（編集画面「スタイル」から選べる） */
.wp-block-button.is-style-outline-light .wp-block-button__link {
  border: 1px solid #f7bf87;
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 0.467em 1.333em;
}

.wp-block-button.is-style-outline-light .wp-block-button__link:hover {
  background: #eeebe6;
  border-color: #c4bfb4;
}

/* ボタンスタイル: 枠線（Primary） */
.wp-block-button.is-style-line-primary .wp-block-button__link {
  border: 1px solid #b3b3b3;
  background: transparent;
  color: var(--color-primary);
  border-radius: 0;
  padding: 0.467em 1.333em;
}

.wp-block-button.is-style-line-primary .wp-block-button__link::before {
  content: "→ ";
}

.wp-block-button.is-style-line-primary .wp-block-button__link:hover {
  background: var(--color-muted);
}

/* ボタンスタイル: 矢印テキストリンク */
.wp-block-button.is-style-arrow-link .wp-block-button__link {
  background: transparent;
  border: none;
  border-radius: 0;
  min-width: auto;
  padding: 0;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid #9a9a9a;
}

.wp-block-button.is-style-arrow-link .wp-block-button__link::before {
  content: "→ ";
}

.wp-block-button.is-style-arrow-link .wp-block-button__link:hover {
  opacity: 0.85;
}

/* ページ内リンクボタン（左: 黒＋白▼ / 右: 白＋黒枠）デザイン通り */
.wp-block-button.is-style-section-nav .wp-block-button__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: auto;
  padding: 14px 20px 14px 58px;
  border: 1px solid #6f6f6f;
  border-radius: 0;
  background: #fff;
  color: var(--color-text);
  font-size: 16px;
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
  line-height: 1;
}

.wp-block-button.is-style-section-nav .wp-block-button__link::before {
  content: "ｖ";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #282523;
  color: #ff7c3c;
  font-size: 12px;
  line-height: 1;
}

.wp-block-button.is-style-section-nav .wp-block-button__link:hover {
  background: var(--color-muted);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.wp-block-button.is-style-section-nav .wp-block-button__link:hover::before {
  background: var(--color-primary);
}

/* section-nav：3つ横並び・間20px・1個/2個のときも1つ分の幅は3つのときと同じ */
.wp-block-buttons:has(.is-style-section-nav),
.p-profile-nav .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.wp-block-buttons:has(.is-style-section-nav) .wp-block-button.is-style-section-nav,
.p-profile-nav .wp-block-buttons .wp-block-button {
  width: calc((100% - 40px) / 3); /* 3つ時の1つ分（gap 20px × 2） */
  flex: 0 0 auto;
  min-width: 0;
}

.wp-block-buttons:has(.is-style-section-nav) .wp-block-button.is-style-section-nav .wp-block-button__link,
.p-profile-nav .wp-block-buttons .wp-block-button .wp-block-button__link {
  width: 100%;
  box-sizing: border-box;
}

/* パターン用：.p-profile-nav 内のボタンにも同じ見た目（クラスが保存されない環境用） */
.p-profile-nav .wp-block-button .wp-block-button__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: auto;
  padding: 10px 20px 10px 50px;
  border: 1px solid #6f6f6f;
  border-radius: 0;
  background: #fff;
  color: var(--color-text);
  font-size: 16px;
  font-weight: var(--fw-regular);
  text-decoration: none;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
  line-height: 1;
}

.p-profile-nav .wp-block-button .wp-block-button__link::before {
  content: "ｖ";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #282523;
  color: #ff7c3c;
  font-size: 12px;
  line-height: 1;
}

.p-profile-nav .wp-block-button .wp-block-button__link:hover {
  background: var(--color-muted);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.p-profile-nav .wp-block-button .wp-block-button__link:hover::before {
  background: var(--color-primary);
}

/* 事業展開カード（画像＋#000 30%オーバーレイ＋#282523ラベル＋#ff7c3cの>） */
.c-service-cards.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3em;
  width: 90%;
  margin: 70px auto;
}

.c-service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.c-service-card:hover {
  opacity: 1;
}

.c-service-card__img-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5/2.3;
  overflow: hidden;
  background: #e8e8e8;
}

.c-service-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
}

.c-service-card__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.3;
  pointer-events: none;
}

.c-service-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: #ddd;
}

.c-service-card__label {
  display: flex;
  align-items: stretch;
  font-size: 18px;
  border-bottom: 1px solid #000;
  border-right: 1px solid #000;
}

/* ＞だけ後ろ四角で #282523、記号は #ff7c3c */
.c-service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  background: #282523;
  color: #ff7c3c;
  margin-right: 15px;
}

/* テキスト部分は白背景・黒文字 */
.c-service-card__label-text {
  flex: 1;
  background: #fff;
  color: #282523;
}

.c-service-card:hover .c-service-card__overlay {
  opacity: 0;
}

/* 本文用ボックス（薄いベージュ背景・枠） */
/* 編集画面: グループブロックのスタイル「ボックス」を選ぶと .is-style-box が付く */
.c-box,
.wp-block-group.is-style-box {
  padding: 1.25em 1.5em;
  background: #f9f2e5;
  margin-top: 0.75em;
  margin-bottom: 1em;
}
.c-box p,
.wp-block-group.is-style-box p {
  margin-bottom: 10px;
}

/* 汎用カード */
.c-card {
  overflow: hidden;
  border: 1px solid #e7e2dc;
  border-radius: var(--radius-md);
  background: #fff;
}

.c-card__image img {
  width: 100%;
  height: auto;
}

.c-card__body {
  padding: 18px;
}

.c-card__meta {
  color: #777;
  font-size: 13px;
}

.c-card__title {
  margin-top: 8px;
  font-size: 20px;
  font-weight: var(--fw-bold);
}

.c-card__text {
  margin-top: 8px;
  color: #333;
}

/* Contact CTA（フッター直前に表示・全ページ共通） */
.c-contact-cta {
  background: linear-gradient(to right, #ec6001, #f4a804);
  color: #fff;
  padding: 40px var(--container-padding);
}

.c-contact-cta .l-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 800px;
  font-size: 18px;
  letter-spacing: 0.4rem;
}

.c-contact-cta__inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  position: relative;
}
.c-contact-cta__inner::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 4em;
  background: #fff;
  margin-left: 16px;
  vertical-align: middle;
}

.c-contact-cta__heading {
  margin: 0;
  font-size: 18px;
  font-weight: var(--fw-medium);
}

.c-contact-cta__text {
  margin: 0;
  font-size: 0.9375rem;
}

.c-contact-cta .c-btn {
  background: inherit;
  color: #fff;
  border-color: #fff;
  border-radius: 10px;
}

.c-contact-cta .c-btn:hover {
  background-color: rgba(245, 245, 245, 0.2);
}

/* 言語スイッチ */
.p-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  line-height: 1;
}

.p-lang__icon {
  width: 13px;
}

.p-lang__list {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.p-lang__item {
  color: #9b9b9b;
}

.p-lang__item.is-current {
  font-weight: var(--fw-medium);
  color: #000;
}

.p-lang__sep {
  opacity: 0.6;
}

/* page-blog.php: ブログ・お知らせ統合一覧（post + news 混在・新着順・1リスト＋ページャー） */
.p-blog-page {
  padding-top: 0;
}

.p-blog-page__header {
  margin-bottom: 50px;
  border-bottom: 1px solid #f7b87a;
  padding-left: 0 !important;
  margin-left: 40px;
}

.p-blog-page__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: var(--fw-bold);
  padding-bottom: 40px;
  border-bottom: none !important;
}

.p-blog-page__list-wrap {
  margin-top: 0;
}

.p-blog-page__list {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  width: 80%;
}

/* 1行レイアウト: 日付 【ブログ】/【お知らせ】 タイトル 本文 */
.p-blog-page__item {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  padding: 20px 0;
  border-bottom: 1px dashed #666;
}
.p-blog-page__item p {
  margin-left: 15px;
}

.p-blog-page__meta {
  display: inline-flex;
  align-items: center;
  gap: 0 8px;
  flex-shrink: 0;
  margin: 0;
}

.p-blog-page__date {
  color: #8c8c8c;
  font-size: 14px;
}

.p-blog-page__label {
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--color-primary);
}

.p-blog-page__item-title {
  margin: 0;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: var(--fw-medium);
}

.p-blog-page__item-title-link {
  color: inherit;
  text-decoration: none;
}

.p-blog-page__item-title-link:hover {
  opacity: 0.85;
}

.p-blog-page__excerpt,
.p-blog-page__body {
  flex: 1 1 200px;
  min-width: 0;
  margin: 0;
  color: #333;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: break-word;
}

.p-blog-page__body p + p {
  margin-top: 0.8em;
}

.p-blog-page__empty {
  margin: 24px 0;
  color: #666;
}

/* ページャー */
.p-blog-page__pager {
  margin-top: 32px;
  text-align: center;
}

.p-blog-page__pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 0 4px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.p-blog-page__pager .page-numbers:hover {
  background: var(--color-muted);
  border-color: var(--color-primary);
}

.p-blog-page__pager .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.p-blog-page__pager .page-numbers.dots {
  border: none;
  background: transparent;
}

.p-blog-page__pager .page-numbers.prev,
.p-blog-page__pager .page-numbers.next {
  min-width: auto;
}

/**
 * お問い合わせページ（Contact Form 7）
 * 添付デザイン準拠: H1・説明文・ラベル左・入力右、必須*, プライバシー文言、ボタン。
 */
/* お問い合わせページ全体の背景（body に page-contact は固定ページスラッグで付与） */
/* contact, contact-2, contact-en, contact-th などスラッグが contact で始まるページ */
body[class*=slug-contact] {
  background: #eeede8;
}

.p-contact {
  padding: 0 0 4rem;
}

/* H1：お問い合わせ（オレンジ下線） */
.p-contact__header {
  margin-bottom: 1.5rem;
}

.p-contact__title {
  padding-bottom: 8px;
  display: inline-block;
  width: 100%;
  padding-left: 0 !important;
  position: relative;
  border-bottom: none !important;
}
.p-contact__title::after {
  content: "";
  width: calc(100% + 40px);
  height: 2px;
  display: block;
  background-color: #f4a353;
  position: absolute;
  bottom: -8px;
  left: -40px;
}

.p-contact__lead {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
}

.p-contact__required {
  margin: 0;
  font-size: 14px;
  color: var(--color-text);
}

/* フォームエリア */
.p-contact__form {
  margin: 70px auto 0;
  width: 80%;
}

.p-contact .wpcf7-form {
  max-width: 720px;
  margin: 0 auto;
}

/* プライバシー文言（フォーム直下） */
.p-contact__privacy {
  margin: 1.5rem 0 0;
  font-size: 14px;
  color: var(--color-text);
}

.p-contact__privacy a {
  color: var(--color-primary);
  text-decoration: underline;
}

.p-contact__privacy a:hover {
  opacity: 1;
  color: var(--color-accent);
}

/* 行: ラベル左・入力右・下線 */
.p-contact .wpcf7-form > p {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  margin: 0 0 0;
  padding: 16px 0;
  border-bottom: 1px solid #bcbcbc;
}
.p-contact .wpcf7-form > p:first-of-type {
  border-top: 1px solid #bcbcbc;
}

.p-contact .wpcf7-form > p:first-of-type {
  padding-top: 0;
}

.p-contact .wpcf7-form label {
  flex: 0 0 180px;
  font-size: 14px;
  font-weight: var(--fw-medium);
}

.p-contact .wpcf7-form .wpcf7-form-control-wrap {
  flex: 1;
  min-width: 0;
}

.p-contact .wpcf7-form-control {
  width: 100%;
  max-width: 400px;
  padding: 10px 12px;
  border: 1px solid #e4e4e4;
  background: #fff;
  font-size: 14px;
}

.p-contact .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--color-accent);
}

.p-contact textarea.wpcf7-form-control {
  min-height: 120px;
  resize: vertical;
}

/* お問い合わせ項目（複数選択可）チェックボックス */
.p-contact .wpcf7-list-item {
  display: block;
  margin: 8px 0 0;
}

.p-contact .wpcf7-list-item:first-child {
  margin-top: 0;
}

.p-contact .wpcf7-list-item label {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-regular);
  cursor: pointer;
}

.p-contact .wpcf7-list-item input[type=checkbox],
.p-contact .wpcf7-list-item input[type=radio] {
  margin: 0;
}

/* 必須 * */
.p-contact .wpcf7-form label .required {
  color: var(--color-sub-text);
}

/* 注意・プライバシー文言 */
.p-contact .wpcf7-form .wpcf7-form-control-wrap + br + small,
.p-contact .wpcf7-form p.description {
  flex: 1 1 100%;
  margin: 8px 0 0 180px;
  font-size: 13px;
  color: #555;
}

.c-form__fieldset-inner {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.slug-contact .c-form__fieldset-inner legend {
  display: none;
}

/* 送信ボタン（入力画面: 入力内容を確認する / 確認画面: 送信する） */
.p-contact .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 48px;
  margin-top: 24px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: opacity var(--transition-base), background-color var(--transition-base);
}

.p-contact .wpcf7-submit:hover {
  background: #3a3532;
}

/* 確認画面用オレンジボタン（CF7 で class 指定する場合の例） */
.p-contact .wpcf7-submit.wpcf7-accent {
  background: var(--color-accent);
  color: var(--color-primary);
}

.p-contact .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.p-contact .wpcf7-not-valid-tip {
  font-size: 12px;
  color: var(--color-sub-text);
  margin-top: 4px;
}

/* CF7 カスタムマークアップ（.c-form__*） */
.p-contact .c-form__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid #bcbcbc;
}

.p-contact .c-form__row:first-child {
  border-top: 1px solid #bcbcbc;
  padding-top: 0;
}

.p-contact .c-form__label {
  flex: 0 0 180px;
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: 1.6;
}

.p-contact .c-form__sub {
  display: inline-block;
  font-size: 13px;
  font-weight: var(--fw-regular);
}

.p-contact .c-form__control {
  flex: 1;
  min-width: 0;
}

.p-contact .c-form__control .wpcf7-form-control-wrap {
  display: block;
}

.p-contact .c-form__control .wpcf7-form-control {
  width: 100%;
  max-width: 400px;
  padding: 10px 12px;
  border: 1px solid #e4e4e4;
  background: #fff;
  font-size: 14px;
}

/* checkbox/radio グループは入力ボックス装飾を外す */
.p-contact .c-form__control .wpcf7-form-control.wpcf7-checkbox,
.p-contact .c-form__control .wpcf7-form-control.wpcf7-radio {
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.p-contact .c-form__control textarea.wpcf7-form-control {
  min-height: 120px;
  resize: vertical;
}

.p-contact .c-form__control .wpcf7-checkbox .wpcf7-list-item {
  display: block;
  margin: 8px 0 0;
}

.p-contact .c-form__control .wpcf7-checkbox .wpcf7-list-item:first-child {
  margin-top: 0;
}

.p-contact .c-form__control .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-regular);
  cursor: pointer;
}

.p-contact .c-form__control .wpcf7-list-item input[type=checkbox],
.p-contact .c-form__control .wpcf7-list-item input[type=radio] {
  margin: 0;
}

.p-contact .c-form__privacy {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--color-text);
  width: 100%;
  display: block !important;
  border-top: none !important;
  border-bottom: none !important;
}

.p-contact .c-form__privacy a {
  color: #435762 !important;
  text-decoration: none;
}

.p-contact .c-form__privacy a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.p-contact .c-form__actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.p-contact .c-form__actions .c-form__btn,
.p-contact .c-form__actions .wpcf7-submit.c-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  min-height: 36px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: var(--fw-medium);
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.p-contact .c-form__actions .c-form__btn--confirm {
  background: #d9d9d9;
  color: #222;
}

.p-contact .c-form__actions .c-form__btn--confirm:hover {
  background: #cfcfcf;
}

.p-contact .c-form__actions .c-form__btn--submit,
.p-contact .c-form__actions .wpcf7-submit.c-form__btn--submit {
  background: #f6a133;
  color: #1f1f1f;
}

.p-contact .c-form__actions .c-form__btn--submit:hover,
.p-contact .c-form__actions .wpcf7-submit.c-form__btn--submit:hover {
  background: #ef951f;
  color: #1f1f1f;
}

/**
 * 本文エリア .entry-content 用スタイル
 * ブログ詳細（single post）用の見た目。
 * 他ページの見出しデザインと干渉しないよう、single に限定する。
 */
.p-single__header {
  margin-bottom: 50px;
  border-bottom: 1px solid #f7b87a;
  padding-left: 0 !important;
}

.p-single__date {
  margin-top: 80px;
  font-size: 14px;
  text-align: right;
  color: #666;
}

.single .p-single,
.p-single {
  min-width: 0;
}

.single .p-single__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: var(--fw-bold);
  padding-bottom: 40px;
  border-bottom: none;
}

.p-single__body {
  width: 96%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.p-single__body p {
  font-size: 16px;
  margin-bottom: 50px;
}

.single .p-single__thumbnail {
  width: 96%;
  margin: 1.5rem auto;
}

/* 詳細度を上げ、single の .entry-content に確実に当てる（single-post が付かないケースも拾う） */
.single .entry-content, .single-post .entry-content, .p-single .entry-content, .p-single__body.entry-content {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  /* 長い単語・連続文字で横にはみ出さない（ブログ詳細） */
}
.single .entry-content p, .single .entry-content li, .single .entry-content a, .single .entry-content h2, .single .entry-content h3, .single .entry-content h4, .single .entry-content h5, .single .entry-content h6, .single .entry-content div, .single .entry-content span, .single-post .entry-content p, .single-post .entry-content li, .single-post .entry-content a, .single-post .entry-content h2, .single-post .entry-content h3, .single-post .entry-content h4, .single-post .entry-content h5, .single-post .entry-content h6, .single-post .entry-content div, .single-post .entry-content span, .p-single .entry-content p, .p-single .entry-content li, .p-single .entry-content a, .p-single .entry-content h2, .p-single .entry-content h3, .p-single .entry-content h4, .p-single .entry-content h5, .p-single .entry-content h6, .p-single .entry-content div, .p-single .entry-content span, .p-single__body.entry-content p, .p-single__body.entry-content li, .p-single__body.entry-content a, .p-single__body.entry-content h2, .p-single__body.entry-content h3, .p-single__body.entry-content h4, .p-single__body.entry-content h5, .p-single__body.entry-content h6, .p-single__body.entry-content div, .p-single__body.entry-content span {
  overflow-wrap: break-word;
  word-break: break-word;
}
.single .entry-content, .single-post .entry-content, .p-single .entry-content, .p-single__body.entry-content {
  /* h2: 大きい太字・黒・下に薄いグレー罫線 */
}
.single .entry-content h2:not(.c-section-title__heading),
.single .entry-content h2.wp-block-heading:not(.c-section-title__heading),
.single .entry-content .wp-block-heading.has-heading-level-2:not(.c-section-title__heading), .single-post .entry-content h2:not(.c-section-title__heading),
.single-post .entry-content h2.wp-block-heading:not(.c-section-title__heading),
.single-post .entry-content .wp-block-heading.has-heading-level-2:not(.c-section-title__heading), .p-single .entry-content h2:not(.c-section-title__heading),
.p-single .entry-content h2.wp-block-heading:not(.c-section-title__heading),
.p-single .entry-content .wp-block-heading.has-heading-level-2:not(.c-section-title__heading), .p-single__body.entry-content h2:not(.c-section-title__heading),
.p-single__body.entry-content h2.wp-block-heading:not(.c-section-title__heading),
.p-single__body.entry-content .wp-block-heading.has-heading-level-2:not(.c-section-title__heading) {
  margin-top: 2em !important;
  margin-bottom: 1.5em !important;
  padding-bottom: 0.5em !important;
  border-bottom: 1px solid #e0e0e0 !important;
  font-size: clamp(20px, 2.5vw, 26px) !important;
  font-weight: var(--fw-bold) !important;
  line-height: 1.4 !important;
  letter-spacing: 0.1em;
}
.single .entry-content h2:first-child:not(.c-section-title__heading),
.single .entry-content h2.wp-block-heading:first-child:not(.c-section-title__heading),
.single .entry-content .wp-block-heading.has-heading-level-2:first-child:not(.c-section-title__heading), .single-post .entry-content h2:first-child:not(.c-section-title__heading),
.single-post .entry-content h2.wp-block-heading:first-child:not(.c-section-title__heading),
.single-post .entry-content .wp-block-heading.has-heading-level-2:first-child:not(.c-section-title__heading), .p-single .entry-content h2:first-child:not(.c-section-title__heading),
.p-single .entry-content h2.wp-block-heading:first-child:not(.c-section-title__heading),
.p-single .entry-content .wp-block-heading.has-heading-level-2:first-child:not(.c-section-title__heading), .p-single__body.entry-content h2:first-child:not(.c-section-title__heading),
.p-single__body.entry-content h2.wp-block-heading:first-child:not(.c-section-title__heading),
.p-single__body.entry-content .wp-block-heading.has-heading-level-2:first-child:not(.c-section-title__heading) {
  margin-top: 0 !important;
}
.single .entry-content, .single-post .entry-content, .p-single .entry-content, .p-single__body.entry-content {
  /* .single 内の Section Title パターン（.c-section-title__heading）にも同じ h2〜h5 デザインを当てる */
  /* .wp-block-group.c-section-title まで指定して詳細度を上げ、WPブロック用CSSに負けないようにする */
}
.single .entry-content .wp-block-group.c-section-title h2.c-section-title__heading,
.single .entry-content .c-section-title h2.c-section-title__heading, .single-post .entry-content .wp-block-group.c-section-title h2.c-section-title__heading,
.single-post .entry-content .c-section-title h2.c-section-title__heading, .p-single .entry-content .wp-block-group.c-section-title h2.c-section-title__heading,
.p-single .entry-content .c-section-title h2.c-section-title__heading, .p-single__body.entry-content .wp-block-group.c-section-title h2.c-section-title__heading,
.p-single__body.entry-content .c-section-title h2.c-section-title__heading {
  margin-top: 2em !important;
  margin-bottom: 0.75em !important;
  padding-bottom: 0.5em !important;
  border-bottom: 1px solid #e0e0e0 !important;
  font-size: clamp(20px, 2.5vw, 26px) !important;
  font-weight: var(--fw-bold) !important;
  line-height: 1.4 !important;
}
.single .entry-content .wp-block-group.c-section-title h3.c-section-title__heading,
.single .entry-content .c-section-title h3.c-section-title__heading, .single-post .entry-content .wp-block-group.c-section-title h3.c-section-title__heading,
.single-post .entry-content .c-section-title h3.c-section-title__heading, .p-single .entry-content .wp-block-group.c-section-title h3.c-section-title__heading,
.p-single .entry-content .c-section-title h3.c-section-title__heading, .p-single__body.entry-content .wp-block-group.c-section-title h3.c-section-title__heading,
.p-single__body.entry-content .c-section-title h3.c-section-title__heading {
  margin-top: 1.75em !important;
  margin-bottom: 0.6em !important;
  padding: 6px 0 6px 14px !important;
  border-left: 4px solid var(--color-accent) !important;
  border-bottom: 1px solid #e0e0e0 !important;
  font-size: clamp(18px, 2.2vw, 22px) !important;
  font-weight: var(--fw-bold) !important;
  line-height: 1.4 !important;
}
.single .entry-content .wp-block-group.c-section-title h4.c-section-title__heading,
.single .entry-content .c-section-title h4.c-section-title__heading, .single-post .entry-content .wp-block-group.c-section-title h4.c-section-title__heading,
.single-post .entry-content .c-section-title h4.c-section-title__heading, .p-single .entry-content .wp-block-group.c-section-title h4.c-section-title__heading,
.p-single .entry-content .c-section-title h4.c-section-title__heading, .p-single__body.entry-content .wp-block-group.c-section-title h4.c-section-title__heading,
.p-single__body.entry-content .c-section-title h4.c-section-title__heading {
  margin-top: 1.5em !important;
  margin-bottom: 0.5em !important;
  padding: 8px 16px !important;
  background: #f5f0e8 !important;
  font-size: clamp(16px, 2vw, 20px) !important;
  font-weight: var(--fw-bold) !important;
  line-height: 1.4 !important;
}
.single .entry-content .wp-block-group.c-section-title h5.c-section-title__heading,
.single .entry-content .c-section-title h5.c-section-title__heading, .single-post .entry-content .wp-block-group.c-section-title h5.c-section-title__heading,
.single-post .entry-content .c-section-title h5.c-section-title__heading, .p-single .entry-content .wp-block-group.c-section-title h5.c-section-title__heading,
.p-single .entry-content .c-section-title h5.c-section-title__heading, .p-single__body.entry-content .wp-block-group.c-section-title h5.c-section-title__heading,
.p-single__body.entry-content .c-section-title h5.c-section-title__heading {
  margin-top: 1.25em !important;
  margin-bottom: 0.5em !important;
  font-size: clamp(15px, 1.8vw, 18px) !important;
  font-weight: var(--fw-regular) !important;
  line-height: 1.4 !important;
}
.single .entry-content, .single-post .entry-content, .p-single .entry-content, .p-single__body.entry-content {
  /* h3: 太字・左にオレンジ縦線・下に薄いグレー罫線 */
}
.single .entry-content h3:not(.c-section-title__heading),
.single .entry-content h3.wp-block-heading:not(.c-section-title__heading),
.single .entry-content .wp-block-heading.has-heading-level-3:not(.c-section-title__heading), .single-post .entry-content h3:not(.c-section-title__heading),
.single-post .entry-content h3.wp-block-heading:not(.c-section-title__heading),
.single-post .entry-content .wp-block-heading.has-heading-level-3:not(.c-section-title__heading), .p-single .entry-content h3:not(.c-section-title__heading),
.p-single .entry-content h3.wp-block-heading:not(.c-section-title__heading),
.p-single .entry-content .wp-block-heading.has-heading-level-3:not(.c-section-title__heading), .p-single__body.entry-content h3:not(.c-section-title__heading),
.p-single__body.entry-content h3.wp-block-heading:not(.c-section-title__heading),
.p-single__body.entry-content .wp-block-heading.has-heading-level-3:not(.c-section-title__heading) {
  margin-top: 1.75em !important;
  margin-bottom: 0.6em !important;
  padding: 10px 0 10px 14px !important;
  font-size: clamp(16px, 2vw, 20px) !important;
  font-weight: var(--fw-bold) !important;
  line-height: 1.4 !important;
  background: #f2f2f2;
  position: relative;
  letter-spacing: 0.1em;
}
.single .entry-content h3:not(.c-section-title__heading)::after,
.single .entry-content h3.wp-block-heading:not(.c-section-title__heading)::after,
.single .entry-content .wp-block-heading.has-heading-level-3:not(.c-section-title__heading)::after, .single-post .entry-content h3:not(.c-section-title__heading)::after,
.single-post .entry-content h3.wp-block-heading:not(.c-section-title__heading)::after,
.single-post .entry-content .wp-block-heading.has-heading-level-3:not(.c-section-title__heading)::after, .p-single .entry-content h3:not(.c-section-title__heading)::after,
.p-single .entry-content h3.wp-block-heading:not(.c-section-title__heading)::after,
.p-single .entry-content .wp-block-heading.has-heading-level-3:not(.c-section-title__heading)::after, .p-single__body.entry-content h3:not(.c-section-title__heading)::after,
.p-single__body.entry-content h3.wp-block-heading:not(.c-section-title__heading)::after,
.p-single__body.entry-content .wp-block-heading.has-heading-level-3:not(.c-section-title__heading)::after {
  content: "";
  display: block;
  width: 2px;
  height: 92%;
  background: #ff9c43;
  position: absolute;
  left: 5px;
  top: 4%;
}
.single .entry-content, .single-post .entry-content, .p-single .entry-content, .p-single__body.entry-content {
  /* h4: 薄い黄ベージュ背景のフル幅ボックス */
}
.single .entry-content h4:not(.c-section-title__heading),
.single .entry-content h4.wp-block-heading:not(.c-section-title__heading),
.single .entry-content .wp-block-heading.has-heading-level-4:not(.c-section-title__heading), .single-post .entry-content h4:not(.c-section-title__heading),
.single-post .entry-content h4.wp-block-heading:not(.c-section-title__heading),
.single-post .entry-content .wp-block-heading.has-heading-level-4:not(.c-section-title__heading), .p-single .entry-content h4:not(.c-section-title__heading),
.p-single .entry-content h4.wp-block-heading:not(.c-section-title__heading),
.p-single .entry-content .wp-block-heading.has-heading-level-4:not(.c-section-title__heading), .p-single__body.entry-content h4:not(.c-section-title__heading),
.p-single__body.entry-content h4.wp-block-heading:not(.c-section-title__heading),
.p-single__body.entry-content .wp-block-heading.has-heading-level-4:not(.c-section-title__heading) {
  margin-top: 1.5em !important;
  margin-bottom: 0.5em !important;
  padding: 8px 16px !important;
  background: #f7d48d !important;
  font-size: clamp(16px, 2vw, 20px) !important;
  font-weight: var(--fw-bold) !important;
  line-height: 1.4 !important;
  letter-spacing: 0.1em;
}
.single .entry-content, .single-post .entry-content, .p-single .entry-content, .p-single__body.entry-content {
  /* h5: 最小・通常字重・装飾なし */
}
.single .entry-content h5:not(.c-section-title__heading),
.single .entry-content h5.wp-block-heading:not(.c-section-title__heading),
.single .entry-content .wp-block-heading.has-heading-level-5:not(.c-section-title__heading), .single-post .entry-content h5:not(.c-section-title__heading),
.single-post .entry-content h5.wp-block-heading:not(.c-section-title__heading),
.single-post .entry-content .wp-block-heading.has-heading-level-5:not(.c-section-title__heading), .p-single .entry-content h5:not(.c-section-title__heading),
.p-single .entry-content h5.wp-block-heading:not(.c-section-title__heading),
.p-single .entry-content .wp-block-heading.has-heading-level-5:not(.c-section-title__heading), .p-single__body.entry-content h5:not(.c-section-title__heading),
.p-single__body.entry-content h5.wp-block-heading:not(.c-section-title__heading),
.p-single__body.entry-content .wp-block-heading.has-heading-level-5:not(.c-section-title__heading) {
  margin-top: 1.25em !important;
  margin-bottom: 0.5em !important;
  font-size: clamp(16px, 2vw, 20px) !important;
  font-weight: var(--fw-reguboldlar) !important;
  line-height: 1.4 !important;
  color: #cc5c00;
}
.single .entry-content, .single-post .entry-content, .p-single .entry-content, .p-single__body.entry-content {
  /* リストスタイル ■（オレンジ四角） */
}
.single .entry-content ul:not([class]),
.single .entry-content ul.wp-block-list, .single-post .entry-content ul:not([class]),
.single-post .entry-content ul.wp-block-list, .p-single .entry-content ul:not([class]),
.p-single .entry-content ul.wp-block-list, .p-single__body.entry-content ul:not([class]),
.p-single__body.entry-content ul.wp-block-list {
  list-style: square !important;
  padding-left: 1.5em !important;
  margin-top: 0.75em !important;
  margin-bottom: 1em !important;
  font-size: clamp(14px, 1.6vw, 16px) !important;
}
.single .entry-content ul:not([class]) li::marker,
.single .entry-content ul.wp-block-list li::marker, .single-post .entry-content ul:not([class]) li::marker,
.single-post .entry-content ul.wp-block-list li::marker, .p-single .entry-content ul:not([class]) li::marker,
.p-single .entry-content ul.wp-block-list li::marker, .p-single__body.entry-content ul:not([class]) li::marker,
.p-single__body.entry-content ul.wp-block-list li::marker {
  color: #ff9c43;
}
.single .entry-content ol:not([class]), .single-post .entry-content ol:not([class]), .p-single .entry-content ol:not([class]), .p-single__body.entry-content ol:not([class]) {
  list-style: decimal !important;
  padding-left: 1.5em !important;
  margin-top: 0.75em !important;
  margin-bottom: 1em !important;
}
.single .entry-content li, .single-post .entry-content li, .p-single .entry-content li, .p-single__body.entry-content li {
  margin-bottom: 0.35em;
}
.single .entry-content, .single-post .entry-content, .p-single .entry-content, .p-single__body.entry-content {
  /* 罫線（hr） */
}
.single .entry-content hr,
.single .entry-content .wp-block-separator, .single-post .entry-content hr,
.single-post .entry-content .wp-block-separator, .p-single .entry-content hr,
.p-single .entry-content .wp-block-separator, .p-single__body.entry-content hr,
.p-single__body.entry-content .wp-block-separator {
  border: none !important;
  border-top: 1px dashed #7d7d7d !important;
  margin: 1.5em 0 !important;
}
.single .entry-content, .single-post .entry-content, .p-single .entry-content, .p-single__body.entry-content {
  /* 画像キャプション：画像直下・中央寄せ */
}
.single .entry-content .wp-block-image,
.single .entry-content figure, .single-post .entry-content .wp-block-image,
.single-post .entry-content figure, .p-single .entry-content .wp-block-image,
.p-single .entry-content figure, .p-single__body.entry-content .wp-block-image,
.p-single__body.entry-content figure {
  margin-top: 1em;
  margin-bottom: 1em;
}
.single .entry-content .wp-block-image figcaption,
.single .entry-content figure figcaption, .single-post .entry-content .wp-block-image figcaption,
.single-post .entry-content figure figcaption, .p-single .entry-content .wp-block-image figcaption,
.p-single .entry-content figure figcaption, .p-single__body.entry-content .wp-block-image figcaption,
.p-single__body.entry-content figure figcaption {
  margin-top: 8px !important;
  font-size: 14px !important;
  color: #333 !important;
  text-align: center !important;
}
.single .entry-content, .single-post .entry-content, .p-single .entry-content, .p-single__body.entry-content {
  /* 列ブロック：横並び2つ（画像＋キャプションも列内で有効） */
}
.single .entry-content .wp-block-columns, .single-post .entry-content .wp-block-columns, .p-single .entry-content .wp-block-columns, .p-single__body.entry-content .wp-block-columns {
  margin-top: 1em;
  margin-bottom: 1em;
  gap: 1.5em;
}
.single .entry-content .wp-block-columns .wp-block-column, .single-post .entry-content .wp-block-columns .wp-block-column, .p-single .entry-content .wp-block-columns .wp-block-column, .p-single__body.entry-content .wp-block-columns .wp-block-column {
  margin-bottom: 0;
}
.single .entry-content .wp-block-columns .wp-block-image,
.single .entry-content .wp-block-columns figure, .single-post .entry-content .wp-block-columns .wp-block-image,
.single-post .entry-content .wp-block-columns figure, .p-single .entry-content .wp-block-columns .wp-block-image,
.p-single .entry-content .wp-block-columns figure, .p-single__body.entry-content .wp-block-columns .wp-block-image,
.p-single__body.entry-content .wp-block-columns figure {
  margin-top: 0;
  margin-bottom: 0;
}

/* 単体の画像ブロック内のSVG：高さが0になるのを防ぐ（全 .entry-content） */
.entry-content .wp-block-image img[src$=".svg"],
.entry-content figure.wp-block-image img[src$=".svg"] {
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  display: block;
}

/* SVGで親figureに width:0 が入るケースを補正 */
.entry-content .wp-block-image[style*="width:0"],
.entry-content .wp-block-image[style*="width: 0"],
.entry-content .wp-block-image[style*="width:0px"],
.entry-content .wp-block-image[style*="width: 0px"],
.entry-content figure.wp-block-image[style*="width:0"],
.entry-content figure.wp-block-image[style*="width: 0"] {
  width: auto !important;
}

.entry-content figure.wp-block-image[style*="width:0px"],
.entry-content figure.wp-block-image[style*="width: 0px"] {
  width: auto !important;
}

.entry-content .wp-block-image img[src$=".svg"][style*="width:0"],
.entry-content .wp-block-image img[src$=".svg"][style*="width: 0"],
.entry-content .wp-block-image img[src$=".svg"][style*="width:0px"],
.entry-content .wp-block-image img[src$=".svg"][style*="width: 0px"],
.entry-content .wp-block-image img[src$=".svg"][style*="height:0"],
.entry-content .wp-block-image img[src$=".svg"][style*="height: 0"],
.entry-content .wp-block-image img[src$=".svg"][style*="height:0px"],
.entry-content .wp-block-image img[src$=".svg"][style*="height: 0px"] {
  width: auto !important;
  height: auto !important;
}

.entry-content .wp-block-image.aligncenter img[src$=".svg"][width="0"],
.entry-content .wp-block-image.aligncenter img[src$=".svg"][height="0"],
.entry-content figure.wp-block-image.aligncenter img[src$=".svg"][width="0"],
.entry-content figure.wp-block-image.aligncenter img[src$=".svg"][height="0"] {
  width: auto !important;
  height: auto !important;
}

/* 列ブロック内の画像：横並び2枚の高さを揃える（全 .entry-content） */
.entry-content .wp-block-columns .wp-block-column {
  display: flex;
  flex-direction: column;
}

.entry-content .wp-block-columns .wp-block-column > .wp-block-image,
.entry-content .wp-block-columns .wp-block-column > figure.wp-block-image,
.entry-content .wp-block-columns .wp-block-column .wp-block-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.entry-content .wp-block-columns .wp-block-column > .wp-block-image img,
.entry-content .wp-block-columns .wp-block-column > figure.wp-block-image img,
.entry-content .wp-block-columns .wp-block-column .wp-block-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* SVGは height:100% だと親未確定で0になるので intrinsic で表示 */
.entry-content .wp-block-columns .wp-block-column > .wp-block-image img[src$=".svg"],
.entry-content .wp-block-columns .wp-block-column > figure.wp-block-image img[src$=".svg"],
.entry-content .wp-block-columns .wp-block-column .wp-block-image img[src$=".svg"] {
  height: auto !important;
  object-fit: contain;
}

.entry-content .wp-block-columns .wp-block-column > .wp-block-image figcaption,
.entry-content .wp-block-columns .wp-block-column > figure.wp-block-image figcaption,
.entry-content .wp-block-columns .wp-block-column .wp-block-image figcaption {
  flex-shrink: 0;
}

/* ギャラリー行：画像高さを揃える（img に aspect-ratio で列幅に応じた高さを出し、列幅が同じなので行内で揃う） */
.entry-content .c-gallery-row .wp-block-column .wp-block-image,
.entry-content .c-gallery-row .wp-block-column figure.wp-block-image {
  margin: 0;
}

.entry-content .c-gallery-row .wp-block-column .wp-block-image img,
.entry-content .c-gallery-row .wp-block-column figure.wp-block-image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 5/3;
  object-fit: cover;
  display: block;
  vertical-align: top;
}

.entry-content .c-gallery-row .wp-block-column .wp-block-image img[src$=".svg"],
.entry-content .c-gallery-row .wp-block-column figure.wp-block-image img[src$=".svg"] {
  aspect-ratio: auto;
  object-fit: contain;
}

.entry-content .c-gallery-row .wp-block-column .wp-block-image figcaption,
.entry-content .c-gallery-row .wp-block-column figure.wp-block-image figcaption {
  margin-top: 0.5em;
}

/* Gallery Row (2 columns): keep full image visible without side crop */
.entry-content .c-gallery-row--2 .wp-block-column .wp-block-image img,
.entry-content .c-gallery-row--2 .wp-block-column figure.wp-block-image img {
  object-fit: contain;
  background: #fff;
  aspect-ratio: revert-layer;
}

/* Reusable: two-photo frame + caption box */
.entry-content .c-photo-pair.wp-block-columns {
  --photo-ratio: 4 / 3;
  gap: 40px;
  width: 95%;
  margin: 50px auto 0;
}

.entry-content .c-photo-pair.wp-block-columns .wp-block-column > figure.wp-block-image,
.entry-content .c-photo-pair.wp-block-columns .wp-block-column > .wp-block-image {
  display: block;
  margin: 0;
  aspect-ratio: auto;
  overflow: visible;
}

.entry-content .c-photo-pair.wp-block-columns .wp-block-column > figure.wp-block-image img,
.entry-content .c-photo-pair.wp-block-columns .wp-block-column > .wp-block-image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: var(--photo-ratio);
  object-fit: cover;
  object-position: center;
  padding: 4px;
  border: 1px solid #898989;
  background: #fff;
  box-sizing: border-box;
}

.entry-content .c-photo-pair.wp-block-columns .wp-block-column > figure.wp-block-image figcaption,
.entry-content .c-photo-pair.wp-block-columns .wp-block-column > .wp-block-image figcaption {
  padding: 12px 14px 0;
  margin-bottom: 0;
  background: #fff;
  line-height: 1.5;
  text-align: center !important;
}

/* 企業理念：MISSION セクション（見出し＋本文＋画像） */
.entry-content .c-mission-section {
  position: relative;
  margin-bottom: 0;
  padding-bottom: 2.5em;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .c-mission-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 0;
  height: 0;
  transform: translateX(-50%);
  border-top: 1px dotted #626262;
  width: 50%;
}

/* 最後の MISSION セクション（次が代表挨拶など別ブロック）では罫線を出さない */
.entry-content .c-mission-section:last-child {
  padding-bottom: 0;
}

.entry-content .c-mission-section:last-child::after,
.entry-content .c-mission-section:not(:has(+ .c-mission-section))::after {
  display: none;
}

.entry-content .c-mission-section:not(:has(+ .c-mission-section)) {
  padding-bottom: 0;
}

/* MISSION -1- などの見出し：中央・黒・その下に#ff7c3cの短い線 */
.entry-content .c-mission-section__heading {
  margin-top: 100px;
  margin-bottom: 40px;
  text-align: center;
  font-size: clamp(18px, 2.5vw, 20px);
  color: var(--color-text);
  letter-spacing: 0.05em;
  font-weight: var(--fw-regular);
}

.entry-content .c-mission-section__heading::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 0.35em auto 0;
  background: #ff7c3c;
}

/* MISSION 直下のテキスト：中央揃え（ブロックのラッパーも含む） */
.entry-content .c-mission-section .wp-block-paragraph,
.entry-content .c-mission-section p {
  text-align: center !important;
  margin-bottom: 3.5em;
  line-height: 1.8;
  font-size: clamp(20px, 3vw, 24px);
}

.entry-content .c-mission-section .wp-block-paragraph p {
  text-align: center !important;
}

/* MISSION 内の画像・SVG：横100%にしない。最大幅で中央寄せ */
.entry-content .c-mission-section .wp-block-image,
.entry-content .c-mission-section figure.wp-block-image {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3em;
}

.entry-content .c-mission-section:nth-of-type(3) .wp-block-image,
.entry-content .c-mission-section:nth-of-type(3) figure.wp-block-image {
  width: 630px;
  max-width: 100%;
}

.entry-content .c-mission-section .wp-block-image img,
.entry-content .c-mission-section figure img {
  width: auto !important;
  max-width: 100%;
  height: auto !important;
}

.entry-content .c-mission-section svg {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 代表挨拶セクション（#f7f7f7背景・2カラム・署名・下2枚画像） */
.p-greeting {
  position: relative;
  isolation: isolate;
  padding: 2.5em var(--container-padding);
  padding-bottom: 100px;
  margin-top: 100px;
}
.p-greeting::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #f7f7f7;
  z-index: -1;
}

.slug-philosophy .site-main {
  padding-bottom: 0;
}

.p-greeting__title {
  margin-top: 0;
  margin-bottom: 1.5em;
  text-align: center;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.p-greeting .p-sub-page__title {
  margin-top: 50px;
}

.p-greeting .wp-block-columns:first-of-type {
  margin-bottom: 1.5em;
  width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.has-text-align-right {
  text-align: right !important;
}

.p-greeting .wp-block-columns:first-of-type .wp-block-column p {
  text-align: justify;
  line-height: 1.9;
}

.p-greeting__signature {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-align: right;
}
.p-greeting__signature strong {
  font-size: 18px;
  font-weight: var(--fw-regular);
}

.p-greeting__portrait {
  max-width: 280px;
  margin-left: auto;
  margin-right: 0;
  aspect-ratio: inherit !important;
}

.p-greeting__portrait img {
  width: auto !important;
  max-width: 100%;
  height: auto !important;
}

.p-greeting__media {
  position: relative;
  margin: 180px auto 0;
}

.p-greeting__graphic {
  position: absolute;
  top: 0;
  left: 0;
  width: min(260px, 30vw);
  max-width: 260px;
  margin: 0;
  z-index: 3;
  pointer-events: none;
  transform: translate(-6%, -32%);
}

.p-greeting__graphic img,
.p-greeting__graphic svg {
  width: 100% !important;
  max-width: none;
  height: auto !important;
  display: block;
  margin: 0;
}

/* 代表挨拶下：デザイン通り＝1枚目は上段・全面表示で2枚目の左上に重ねる。2・3枚目は下段で横並び・底辺揃え */
.p-greeting__images.wp-block-columns {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1em;
  position: relative;
  overflow: visible;
}

/* 1枚目：上段左。右端を2枚目にかぶせ、下方向にも少し食い込ませる */
.p-greeting__images .wp-block-column:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  position: relative;
  overflow: visible;
  min-width: 0;
}

.p-greeting__images .wp-block-column:nth-child(1) .wp-block-image {
  position: relative;
  z-index: 2;
  width: 115%; /* 右隣（2枚目）の左上にかぶせる */
  max-width: 115%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: -15%; /* 下段の2枚目に食い込む */
}

.p-greeting__images .wp-block-column:nth-child(1) .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 2・3枚目：下段で横並び、底辺揃え */
.p-greeting__images .wp-block-column:nth-child(2) {
  grid-column: 2;
  grid-row: 2;
}

.p-greeting__images .wp-block-column:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
}

.p-greeting__images .wp-block-column:nth-child(2),
.p-greeting__images .wp-block-column:nth-child(3) {
  position: relative;
  z-index: 1;
}

.p-greeting__images .wp-block-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.p-greeting__images .wp-block-column:nth-child(2) .wp-block-image,
.p-greeting__images .wp-block-column:nth-child(3) .wp-block-image {
  flex: 1;
  min-height: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.p-greeting__images .wp-block-column:nth-child(2) .wp-block-image img,
.p-greeting__images .wp-block-column:nth-child(3) .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 挨拶セクション: デザイン合わせ上書き */
.p-greeting .p-greeting__graphic {
  position: absolute;
  left: 90px;
  top: -100px;
  width: 220px;
  max-width: 220px;
  margin: 0;
  transform: none;
  z-index: 3;
}

/* 2枚並びに固定（段ズレ無効化） */
.p-greeting .p-greeting__images.wp-block-columns {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.p-greeting .p-greeting__images .wp-block-column {
  grid-column: auto !important;
  grid-row: auto !important;
  align-self: stretch !important;
  position: relative !important;
  z-index: 1 !important;
}

.p-greeting .p-greeting__images .wp-block-column:nth-child(1) {
  width: 65% !important;
  max-width: 100% !important;
  justify-self: end;
  margin-left: auto;
  overflow: hidden;
}

/* 旧ルールの 115% 幅・マイナスマージンを打ち消す */
.p-greeting .p-greeting__images .wp-block-column:nth-child(1) .wp-block-image {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  /* transform: translateX(-40%); */
  aspect-ratio: 4/3;
  overflow: hidden;
}

/* 1枚目画像だけを50%トリミングして右側を表示 */
.p-greeting .p-greeting__images .wp-block-column:nth-child(1) .wp-block-image {
  overflow: hidden;
}

.p-greeting .p-greeting__images .wp-block-column:nth-child(1) .wp-block-image img {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: 100% 50%;
  display: block;
}

.p-greeting .p-greeting__images .wp-block-column:nth-child(2) .wp-block-image {
  margin: 0 !important;
  aspect-ratio: 4/3;
  overflow: hidden;
}

/* 3列目は今回デザイン不要 */
.p-greeting .p-greeting__images .wp-block-column:nth-child(3) {
  display: none !important;
}

/* プライバシーポリシー：タイトル＝ブログ一覧タイトル（h1 はテンプレートで出力）、H2＝ブログ詳細のH3見た目（左オレンジ縦線） */
.p-page-privacy__title {
  margin-top: 80px;
  margin-bottom: 40px;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--color-text);
  letter-spacing: 0.3rem;
  border-bottom: none !important;
}

.slug-privacy .entry-content {
  border-top: 1px solid #f7b87a;
  padding-top: 50px;
}
.slug-privacy .entry-content > p {
  padding: 0 40px 30px !important;
}
.slug-privacy .entry-content {
  /* 長いURLなどの連続文字列で横にはみ出さないようにする */
}
.slug-privacy .entry-content p,
.slug-privacy .entry-content li,
.slug-privacy .entry-content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 本文中のセクション見出し（ブロックで H2）＝左オレンジ縦線 */
.p-page-privacy .entry-content h2,
.p-page-privacy .entry-content h2.wp-block-heading,
.p-page-privacy .entry-content .wp-block-heading.has-heading-level-2 {
  margin-top: 1.75em !important;
  margin-bottom: 1.2em !important;
  padding: 10px 0 10px 20px !important;
  font-size: clamp(16px, 2vw, 20px) !important;
  font-weight: var(--fw-regular) !important;
  line-height: 1.4 !important;
  background: #f2f2f2 !important;
  position: relative;
  letter-spacing: 0.1em;
  margin-left: 40px !important;
  margin-right: 40px !important;
}

.p-page-privacy .entry-content h2::after,
.p-page-privacy .entry-content h2.wp-block-heading::after,
.p-page-privacy .entry-content .wp-block-heading.has-heading-level-2::after {
  content: "";
  display: block;
  width: 2px;
  height: 92%;
  background: #ff9c43;
  position: absolute;
  left: 5px;
  top: 4%;
}

.p-page-privacy .entry-content h2:first-child,
.p-page-privacy .entry-content .wp-block-heading.has-heading-level-2:first-child {
  margin-top: 0 !important;
}

/* 企業沿革ページ: ワールドマップ＋ピン・吹き出しポップアップ */
.historyMap {
  margin: 0 auto;
}

.historyMap__wrap {
  position: relative;
  width: 100%;
  margin: 0 calc(-1 * var(--container-padding));
  margin-left: 0;
}

/* 地図画像＋ピンだけのブロック（ピンの % はここ基準で、SPでポップ開いてもずれない） */
.historyMap__mapArea {
  position: relative;
}

.historyMap__image {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.historyMap__image--placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 2/1;
  min-height: 280px;
  background: #d4e2e4;
}

.historyMap__pin {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #c33;
  background-image: var(--history-map-pin-icon, none);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transform: translate(0, 0);
  transition: transform 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* ピン画像があるときは赤丸をやや小さく（画像の上に重ねる場合は .historyMap__pinDot を非表示に） */
.historyMap[style*="--history-map-pin-icon"] .historyMap__pin {
  background-color: transparent;
  box-shadow: none;
}

.historyMap[style*="--history-map-pin-icon"] .historyMap__pinDot {
  display: none;
}

.historyMap__pin:hover,
.historyMap__pin:focus-visible {
  transform: translate(0, 0) scale(1.15);
  outline-offset: 2px;
}

.historyMap__pin[aria-expanded=true] {
  transform: translate(0, 0) scale(1.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.historyMap__pinDot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
}

.historyMap__popup {
  position: fixed;
  left: var(--popup-x, 50%);
  top: var(--popup-y, 20%);
  transform: translate(-25%, -100%);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.historyMap__popup.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.historyMap__popup.is-corrected-left {
  left: 16px;
  transform: translate(0, -100%);
}

.historyMap__popup.is-corrected-right {
  left: auto;
  right: 16px;
  transform: translate(0, -100%);
}

.historyMap__popup.is-corrected-bottom {
  top: auto;
  bottom: 16px;
  transform: translate(-50%, 0);
}

.historyMap__popup.is-corrected-left.is-corrected-bottom {
  transform: translate(0, 0);
}

.historyMap__popup.is-corrected-right.is-corrected-bottom {
  transform: translate(0, 0);
}

.historyMap__popupInner {
  position: relative;
  max-width: 320px;
  padding: 14px 18px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 2px solid #d5e8f5;
  pointer-events: auto;
}

/* PCのみ: 吹き出しの尾（ちょっと歪な▼） */
.historyMap__popupInner::after {
  content: "";
  position: absolute;
  left: 35%;
  bottom: -27px;
  width: 81px;
  height: 30px;
  background: #fff;
  transform: translateX(-50%);
  clip-path: polygon(20% 100%, 36% 0, 58% 0, 64% 8%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.historyMap__popupClose {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.historyMap__popupClose::before,
.historyMap__popupClose::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  background: #666;
}

.historyMap__popupClose::before {
  transform: rotate(45deg);
}

.historyMap__popupClose::after {
  transform: rotate(-45deg);
}

.historyMap__popupClose:hover {
  background: #f0f0f0;
}

.historyMap__popupThumb {
  display: block;
  margin: 0 0 10px;
  aspect-ratio: 4/2;
  overflow: hidden;
  background: #eee;
}

.historyMap__popupThumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  vertical-align: top;
}

.historyMap__popupTitle {
  display: block;
  font-size: 18px;
  font-weight: var(--fw-medium);
  color: #ff9c43;
  margin-bottom: 8px;
  text-decoration: underline;
}

.historyMap__popupText {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
}

/* 6個のドット（SPでマップ下に表示。PCでは非表示） */
.historyMap__dots {
  display: none;
}

.historyMap__dot {
  width: 25px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.historyMap__dotInner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.historyMap__dot:hover .historyMap__dotInner,
.historyMap__dot:focus-visible .historyMap__dotInner {
  background: #999;
}

.historyMap__dot[aria-selected=true] .historyMap__dotInner {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* 企業沿革ページ: 年号タイムライン */
.historyTimeline {
  position: relative;
  margin: 8px 0 0;
  padding: 0;
  background: transparent;
  isolation: isolate;
  --history-main-width: 65%;
  --history-main-desktop-width: calc((var(--container-width) - (var(--container-padding) * 2)) * 0.65);
  --history-year-width: 92px;
  --history-line-left: 114px;
  --history-content-left: 148px;
}

.historyTimeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #f2f0ed;
  z-index: -1;
}

/* 2026まで: 左年号・中央ライン・右テキスト */
.historyTimeline__main {
  position: relative;
  padding-bottom: 8px;
  width: var(--history-main-width);
  margin: 0 auto;
}

.historyTimeline__line {
  position: absolute;
  left: var(--history-line-left);
  top: 0;
  width: 1px;
  background: #000;
}

.historyTimeline__line--solid {
  bottom: 0;
}

.historyTimeline__line--dotted {
  height: 80px;
  background: transparent;
  background-image: repeating-linear-gradient(to bottom, #737373 0, #737373 3px, transparent 3px, transparent 6px);
}

.historyTimeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.historyTimeline__item {
  position: relative;
  padding: 17px 0;
  min-height: 34px;
}

.historyTimeline__item::before {
  content: "";
  position: absolute;
  left: calc(var(--history-line-left) - 4px);
  top: 30px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000000;
}

.historyTimeline__year {
  position: absolute;
  left: 0;
  top: 20px;
  width: var(--history-year-width);
  text-align: right;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: var(--fw-regular);
  color: var(--color-text);
  line-height: 1.5;
}

.historyTimeline__item--highlight .historyTimeline__year {
  color: #ff0000;
}

.historyTimeline__text {
  display: block;
  margin-left: var(--history-content-left);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
}

.historyTimeline__item--card .historyTimeline__text {
  display: inline-block;
  min-height: 28px;
  padding: 5px 10px;
  background: #fff;
  border-radius: 2px;
  box-shadow: none;
  border: 0;
}

.historyTimeline__item--highlight .historyTimeline__text {
  color: #ff0000;
}

.historyTimeline__item--sub {
  min-height: 0;
  padding-top: 6px;
  padding-bottom: 12px;
}

.historyTimeline__item--sub::before {
  display: none;
}

.historyTimeline__item--sub .historyTimeline__year {
  display: none;
}

.historyTimeline__item--sub .historyTimeline__text {
  margin-left: calc(var(--history-content-left) + 26px);
  color: var(--color-text);
  position: relative;
  top: -15px;
}

/* 2026以降: 半円 + 点線 + 右端画像 */
.historyTimeline__future {
  position: relative;
  margin-top: -2px;
  padding: 24px 0 100px;
  min-height: 500px;
  overflow: hidden;
  width: 100vw;
  max-width: none;
  left: 50%;
  transform: translateX(-50%);
}
.historyTimeline__future::before {
  content: "";
  position: absolute;
  top: 100px;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  display: block;
  background-color: #fff;
  z-index: 0;
}

.historyTimeline__arc {
  position: absolute;
  top: 0;
  width: 100vw;
  max-width: none;
  height: 200px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #fff;
  z-index: 1;
}

.historyTimeline__future > .historyTimeline__line--dotted {
  left: calc((100% - min(var(--history-main-width), var(--history-main-desktop-width))) / 2 + var(--history-line-left));
  bottom: 0;
  height: auto;
  z-index: 1;
}

.historyTimeline__outro {
  position: relative;
  margin: 0;
  margin-left: var(--history-content-left);
  padding: 0;
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text);
  z-index: 1;
  margin-top: 40px;
	background: rgba(255, 255, 255, 0.85)
}

.slug-history .site-main, .slug-corporate-history .site-main {
  padding-bottom: 0;
}

.historyTimeline__futureRow {
  position: relative;
  display: block;
  margin-top: 14px;
  margin-left: var(--history-content-left);
  padding-right: clamp(220px, 28vw, 420px);
  z-index: 2;
}

.historyTimeline__futureRow .historyTimeline__link-wrap {
  margin: 0;
  padding-top: 12px;
}

.histry_txt {
  width: 60%;
  margin: 0 auto;
  padding: 50px 0;
}

.historyTimeline__link {
  display: inline-block;
  padding: 7px 12px;
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid #b5b5b5;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.historyTimeline__link:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.historyTimeline__futureImg {
  position: absolute;
  right: clamp(-140px, -22vw, -220px);
  top: 100px;
  display: block;
  width: clamp(420px, 44vw, 650px);
  margin: 0;
  pointer-events: none;
  z-index: 1;
}

.historyTimeline__futureSet3 {
  position: absolute;
  right: 200px;
  top: 0;
  display: block;
  width: clamp(120px, 12vw, 176px);
  margin: 0;
  pointer-events: none;
  z-index: 2;
}

.historyTimeline__futureSet3 img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.historyTimeline__future_box {
  width: min(var(--history-main-width), var(--history-main-desktop-width));
  margin: 0 auto;
  position: static;
  position: relative;
  z-index: 5;
}

.historyTimeline__futureImg img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  vertical-align: top;
}

.historyTimeline__futureImg--placeholder {
  width: clamp(360px, 42vw, 640px);
  height: clamp(220px, 26vw, 380px);
  background: #e8e8e8;
  border-radius: 4px;
}

/* ユーティリティ: u-* など。必要に応じて追加。 */
/* SPのみ改行: <br class="u-br-sp"> で SP だけ改行。PC では非表示 */
.u-br-sp {
  display: none;
}

/* 余白：ブロックの「詳細」→「追加のCSSクラス」に指定 */
.u-mt-sm {
  margin-top: 0.5em !important;
}

.u-mt-md {
  margin-top: 1.5em !important;
}

.u-mt-lg {
  margin-top: 2.5em !important;
}

.u-mt-xl {
  margin-top: 4em !important;
}

.u-mb-sm {
  margin-bottom: 0.5em !important;
}

.u-mb-md {
  margin-bottom: 1.5em !important;
}

.u-mb-lg {
  margin-bottom: 2.5em !important;
}

.u-mb-xl {
  margin-bottom: 4em !important;
}

.u-mt-160 {
  margin-top: 160px !important;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* SPEC.md: sp max-width 767px / pc min-width 768px */
@media (max-width: 767px) {
  :root {
    --container-padding: 16px;
    --section-space: 84px;
  }
  /* SPのみ改衁E u-br-sp は SP で block にして改行として表示 */
  .u-br-sp {
    display: block;
  }
  .site-main {
    padding-bottom: 60px;
  }
  .site-main h1 {
    margin-top: 40px;
    padding-left: 20px;
  }
  h2.p-sub-page__title {
    margin: 40px 0;
  }
  .page-profile .p-page-sub .entry-content dl, .page-profile .entry-content dl, .p-page-profile .entry-content dl {
    margin: 60px auto 30px;
    display: block;
  }
  /* 会社概要: セクション案内ボタン（ブロック・テンプレパーツ共通）SP */
  .p-profile-nav {
    margin-top: 16px;
    margin-bottom: 32px;
  }
  /* SP: 2個横並び、3個目は中央寄せ */
  .p-profile-nav .wp-block-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .p-profile-nav .wp-block-buttons .wp-block-button {
    width: calc((100% - 12px) / 2) !important;
    flex: 0 0 auto;
    max-width: none;
  }
  .p-profile-nav .wp-block-buttons .wp-block-button:nth-child(3):last-child {
    margin-left: auto;
    margin-right: auto;
  }
  .p-profile-nav .wp-block-button.is-style-section-nav .wp-block-button__link,
  .p-profile-nav .wp-block-button .wp-block-button__link {
    padding: 12px 16px 12px 58px;
    font-size: 15px;
  }
  /* 事業展開カーチE SPは1列で縦並び */
  .c-service-cards.wp-block-columns {
    grid-template-columns: 1fr;
    gap: 2em;
    margin: 30px auto;
  }
  .p-profile-nav__list {
    flex-direction: column;
    gap: 12px;
  }
  .p-profile-nav__link {
    padding: 12px 16px;
    font-size: 15px;
  }
  /* 代表挨拶セクション SP */
  .p-greeting {
    padding: 1.5em var(--container-padding);
  }
  .p-greeting__portrait {
    margin-left: auto;
    margin-right: auto;
  }
  .p-greeting__media {
    width: 100%;
    margin-top: 1.5em;
  }
  .p-greeting__graphic {
    width: min(100px, 25vw) !important;
    max-width: 100px !important;
    transform: none !important;
    margin: 0 auto 1em !important;
    top: -10px !important;
    left: 10px !important;
  }
  /* 代表挨拶：画像エリアを1カラム縦並びに */
  .p-greeting .p-greeting__images.wp-block-columns {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    padding-top: 0;
  }
  .p-greeting__images .wp-block-column:nth-child(n) {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
    margin-left: 0 !important;
  }
  /* SPでは1枚目を重ねず通常表示 */
  .p-greeting__images .wp-block-column:nth-child(1) .wp-block-image {
    position: static;
    width: 100%;
    max-width: none;
    margin-bottom: 0;
  }
  /* 1枚目の列を右寄せ（中身の表示は content の 60%＋translate のまま） */
  .p-greeting .p-greeting__images .wp-block-column:nth-child(1) {
    justify-self: end !important;
  }
  .p-greeting__images .wp-block-column:nth-child(2) .wp-block-image,
  .p-greeting__images .wp-block-column:nth-child(3) .wp-block-image {
    aspect-ratio: 4/3;
  }
  /* 全ページで横スクロール防止（SPで左右に揺れる・白い隙間対策） */
  .site-main {
    overflow-x: hidden;
  }
  .home .site-main .l-container {
    padding: 0;
  }
  .p-front-hero {
    padding-top: 14px;
  }
  .p-front-hero .splide__track {
    margin-left: 0;
    width: 100%;
  }
  /* スマホ時: ヒーロー画像は横幅いっぱいの正方形 */
  .p-front-hero__img {
    aspect-ratio: 1/1;
  }
  .p-front-hero__splide .splide__pagination {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 10px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 6px;
  }
  .u-mt-160 {
    margin-top: 80px !important;
  }
  /* 8枚ギャラリー: SP時は2枚表示で横に流れ続ける */
  .p-front-gallery__track {
    width: calc(600% + 75px);
  }
  .c-bracket-frame {
    margin-top: 40px;
  }
  .p-front-hero__splide .splide__arrow {
    display: none;
  }
  .p-front-hero__news {
    gap: 14px;
    padding: 14px 14px 16px;
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .p-front-hero__news-link {
    margin-top: 10px;
  }
  .p-front-hero__news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .p-front-hero__news-item:nth-child(2) {
    display: none;
  }
  .p-front-hero__news-entry {
    width: 100%;
    gap: 6px;
  }
  .p-front-message {
    padding: 36px var(--container-padding);
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  .p-front-message__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .p-front-message__image-wrap {
    width: min(170px, 42vw);
    max-width: 170px;
    margin-inline: auto;
    aspect-ratio: 4/5;
  }
  .p-front-gathering__header {
    padding: 18px 16px 22px 16px;
    display: block;
  }
  .p-front-gathering__title {
    width: 100%;
    margin-bottom: 10px;
  }
  .p-front-gathering__lead {
    padding-left: 12px;
    width: 100%;
  }
  .p-front-gathering__cards {
    gap: 20px;
  }
  .p-front-gathering__card-link-wrap {
    padding: 0;
  }
  .p-front-gathering__cards--triple {
    grid-template-columns: 1fr;
    width: 70%;
    margin-top: 20px;
  }
  .p-front-gathering__big-row {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  .p-front-gathering__big-card-label {
    font-size: 18px;
  }
  .p-front-voice {
    margin: 34px 0 42px;
    padding: 26px 0 30px;
    transform: inherit;
  }
  .p-front-voice__phrase-slide {
    min-height: 220px;
  }
  .p-front-voice__inner {
    padding-right: 30px;
  }
  .p-front-voice__title {
    font-size: clamp(34px, 10vw, 56px);
  }
  .p-front-voice__phrase-splide .splide__pagination {
    right: 6px;
    gap: 6px;
  }
  .p-front-voice__phrase-splide .splide__pagination__page {
    width: 7px;
    height: 7px;
    min-width: 7px;
    min-height: 7px;
  }
  .p-front-voice__image-track {
    gap: 10px;
  }
  .p-front-voice__image-marquee {
    margin-top: 15px;
    height: 180px;
  }
  .p-front-voice__chip {
    width: 108px;
  }
  .p-front-voice__chip--rect {
    width: 108px;
    height: 108px;
  }
  .p-front-voice__chip--capsule {
    border-radius: 28px;
    height: 80%;
    align-self: flex-end;
  }
  .p-front-voice__chip--round {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    align-self: flex-start;
  }
  .p-front-news-blog__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .p-front-news-blog__all {
    margin-top: 20px;
  }
  .p-front-partners__hero {
    aspect-ratio: 4/3;
    max-height: none;
  }
  .p-front-partners__banners {
    grid-template-columns: 1fr;
    width: 80%;
    gap: 20px;
    padding: 40px 0;
  }
  .p-front-page .p-front-slider .splide__arrow {
    display: none;
  }
  /* 長いURLや連続文字列でレイアウトが横にはみ出るのを防ぐ */
  .entry-content p,
  .entry-content li,
  .entry-content a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .p-header__brand,
  .header__toggle {
    position: relative;
    z-index: 1100;
  }
  .nav-panel {
    position: fixed;
    inset: 0;
    z-index: 1000;
  }
  .p-header {
    min-height: 64px;
    gap: 12px;
  }
  .p-header__logo img {
    width: 150px;
  }
  .p-header__toggle {
    position: relative;
    z-index: 120;
    display: block;
  }
  .p-header__panel {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    padding: 84px 22px 28px;
    overflow-y: auto;
    background: #fff;
    border-left: 1px solid #ece9e6;
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }
  .p-header__drawer {
    display: none !important;
  }
  html.is-menu-open,
  body.is-menu-open {
    overflow: hidden;
    height: 100dvh;
  }
  body.is-menu-open {
    position: fixed;
    width: 100%;
    left: 0;
  }
  body.is-menu-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }
  .p-header.is-open .p-header__panel {
    transform: translateX(0);
  }
  .p-header.is-open .p-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .p-header.is-open .p-header__toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .p-header.is-open .p-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    margin-top: 7px;
  }
  .p-nav {
    width: 100%;
  }
  .p-header__panel .p-nav {
    display: block;
  }
  .p-header.is-open .p-header__panel .p-nav {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .p-nav .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .p-nav .menu-item {
    width: 100%;
    border-bottom: 1px solid #f1ede8;
  }
  .p-nav .menu-item a {
    width: 100%;
    min-height: 44px;
    padding: 6px 0;
  }
  .p-nav .sub-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin: 0 0 8px;
    padding: 0 0 0 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .p-nav .sub-menu .menu-item a {
    min-height: 36px;
    padding: 4px 0;
    font-size: 13px;
    white-space: normal;
  }
  .p-nav .sub-menu .menu-item:last-child {
    border-bottom: 0;
  }
  .p-lang {
    padding-top: 8px;
  }
  .site-footer {
    padding: 30px 0;
  }
  .c-contact-cta {
    text-align: center;
  }
  .c-contact-cta .l-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .c-contact-cta__inner {
    justify-content: center;
    text-align: center;
  }
  .c-contact-cta__inner::after {
    display: none;
  }
  .p-footer-brand .p-footer-brand__sns {
    right: 0;
  }
  .p-footer-board {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 18px;
  }
  .p-footer-nav__menu {
    display: grid;
    gap: 8px;
  }
  .p-footer-nav__menu > .menu-item {
    width: auto;
  }
  .p-footer-links {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(224, 167, 128, 0.4);
    padding-top: 14px;
  }
  .p-footer-copy {
    margin-top: 10px;
    font-size: 11px;
  }
  .c-page-hero {
    padding: 44px 0 34px;
    margin-bottom: 36px;
  }
  .c-btn {
    min-width: 150px;
    min-height: 44px;
    font-size: 14px;
  }
  .p-blog-page {
    padding-top: 30px;
  }
  .p-blog-page__section {
    margin-top: 34px;
  }
  .p-blog-list__title,
  .p-news-list__title {
    font-size: 24px;
  }
  .p-blog-list__item-title,
  .p-news-list__item-title {
    font-size: 17px;
  }
  /* お問い合わせフォーム */
  .p-contact .wpcf7-form > p {
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
  }
  .p-contact .wpcf7-form label {
    flex: none;
  }
  .p-contact .wpcf7-form-control {
    max-width: none;
  }
  .p-contact .wpcf7-form .wpcf7-form-control-wrap + br + small,
  .p-contact .wpcf7-form p.description {
    margin-left: 0;
  }
  .p-contact .c-form__row {
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
  }
  .p-contact .c-form__label {
    flex: none;
  }
  .p-contact .c-form__control .wpcf7-form-control {
    max-width: none;
  }
  .p-contact .c-form__actions .c-form__btn,
  .p-contact .c-form__actions .wpcf7-submit.c-form__btn {
    width: min(280px, 100%);
  }
  .site-main header {
    padding-left: 20px;
  }
  .site-main header::after {
    width: calc(100% + 20px);
    left: -20px;
  }
  .p-hero {
    min-height: 120px;
  }
  .slug-internship .p-hero__bg {
    background-position: center;
  }
  .p-hero__bar {
    width: 30%;
    right: -16%;
    height: 100%;
    top: 15px;
  }
  .p-hero-services {
    margin-bottom: 60px;
  }
  .p-hero-services::before {
    top: 30%;
  }
  .p-hero-services__title {
    margin: 30px 0 20px !important;
    font-size: clamp(24px, 5vw, 32px);
  }
  .p-hero-services__image {
    min-height: 150px;
  }
  /* 企業沿革: ワールドマップ・ポップアップ SP（マップ下に詳細＋6ドット） */
  .historyMap__wrap {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
  }
  .historyMap__popup {
    position: static;
    order: 2;
    width: 100%;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
    visibility: visible;
  }
  .historyMap__popup.is-open {
    display: block;
  }
  .historyMap__popupInner {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
    margin-top: 10px;
    border: none;
  }
  .historyMap__popupInner::after {
    display: none;
  }
  .historyMap__popupContent {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    grid-template-areas: "thumb title" "thumb text";
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    border-top: 2px solid #d5e8f5;
    border-bottom: 2px solid #d5e8f5;
    padding: 10px 0;
  }
  .historyMap__popupThumb {
    grid-area: thumb;
    margin: 0;
    width: 100px;
    aspect-ratio: 1/1;
  }
  .historyMap__popupTitle {
    grid-area: title;
    margin-bottom: 0;
    line-height: 1.4;
  }
  .historyMap__popupText {
    grid-area: text;
    margin-top: 0;
  }
  .historyMap__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    order: 3;
    padding: 16px 0;
  }
  .histry_txt {
    width: 90%;
    padding: 20px 0;
  }
  .historyTimeline {
    --history-main-width: 90%;
    --history-year-width: 66px;
    --history-line-left: 1px;
    --history-content-left: 102px;
    padding-bottom: 0;
  }
  .historyTimeline__main {
    width: 90%;
    padding: 0;
  }
  .historyTimeline__item {
    padding: 10px 0 14px;
  }
  .historyTimeline__item::before {
    top: 16px;
  }
  .historyTimeline__year {
    position: static;
    display: block;
    width: auto;
    text-align: left;
    margin-left: calc(var(--history-line-left) + 14px);
    font-size: 13px;
    line-height: 1.4;
  }
  .historyTimeline__text {
    margin-left: calc(var(--history-line-left) + 14px);
    margin-top: 4px;
    font-size: 14px;
  }
  .historyTimeline__item--card .historyTimeline__text {
    display: inline-block;
    padding: 5px 8px;
  }
  .historyTimeline__item--sub .historyTimeline__text {
    margin-left: calc(var(--history-line-left) + 14px);
    margin-top: 0;
    top: 0;
  }
  .historyTimeline__future {
    padding-top: 20px;
    padding-bottom: 22px;
    min-height: 200px;
  }
  .historyTimeline__future_box {
    width: 90%;
  }
  .historyTimeline__future > .historyTimeline__line--dotted {
    left: calc((100% - var(--history-main-width)) / 2.2 + var(--history-line-left) + var(--container-padding));
  }
  .historyTimeline__outro {
    font-size: 18px;
    margin-left: 35px;
    z-index: 3;
  }
  .historyTimeline__futureRow {
    margin-top: 10px;
    padding-right: 0;
    margin-right: 0;
    gap: 10px;
    flex-wrap: wrap;
    display: flex;
    margin-left: 20px;
  }
  .p-contact__form {
    margin-top: 0;
  }
  .historyTimeline__arc {
    height: 100px;
  }
  .historyTimeline__future::before {
    top: 50px;
  }
  .historyTimeline__list {
    padding-bottom: 50px;
  }
  .historyTimeline__futureImg {
    position: absolute;
    right: -80px;
    top: inherit;
    bottom: -120px;
    width: min(280px, 70vw);
    margin: 0;
    pointer-events: none;
  }
  .historyTimeline__futureSet3 {
    position: absolute;
    right: 18px;
    top: auto;
    bottom: 74px;
    width: min(110px, 28vw);
    margin: 0;
    pointer-events: none;
    z-index: 2;
  }
  .historyTimeline__futureImg--placeholder {
    width: min(280px, 70vw);
    height: clamp(180px, 42vw, 260px);
  }
  .entry-content .c-mission-section__heading {
    margin-top: 50px;
  }
  .slug-japanese-culture-program .p-sub-page__title.nobd {
    margin-top: 10px;
    margin-bottom: 20px;
  }
  .slug-japanese-culture-program .p-profile-nav .wp-block-buttons .wp-block-button {
    width: calc((100% - 12px) / 1) !important;
  }
  .slug-japanese-culture-program .p-profile-nav .wp-block-buttons .wp-block-button .wp-block-button__link {
    padding: 12px 16px 12px 40px;
  }
  .slug-japanese-culture-program h2.p-sub-page__title.bgb {
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .slug-japanese-culture-program h2.p-sub-page__title.bgb span {
    display: block;
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
  .slug-history .p-sub-page__title.nobd {
    margin-top: 10px;
    margin-bottom: 20px;
  }
  .p-sub-page__title.nobd {
    flex-wrap: wrap;
  }
  .p-sub-page__title.nobd span {
    display: block;
    width: 100%;
  }
  .slug-internship .p-profile-nav .wp-block-buttons .wp-block-button {
    width: 100% !important;
  }
  .int_set {
    flex-wrap: wrap !important;
    margin: 20px auto;
  }
  .int_set .wp-block-image {
    margin: 0 auto;
    width: 75%;
    flex-wrap: wrap;
  }
  .int_set .wp-block-image img, .int_set .wp-block-image figcaption {
    width: 100%;
  }
  .slug-work-culture-program .p-page-sub {
    padding-top: 0;
  }
  .slug-work-culture-program .p-profile-nav .wp-block-buttons .wp-block-button {
    width: 100% !important;
  }
  /* ブログ一覧（page-blog.php）※ .site-main header h1 より詳細度を上げて効かせる */
  .p-blog-page .p-blog-page__header {
    margin-bottom: 32px;
    margin-left: 0;
    padding-left: var(--container-padding) !important;
  }
  .p-blog-page .p-blog-page__header .p-blog-page__title {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 24px;
    padding-left: 0;
    font-size: clamp(22px, 5vw, 28px);
  }
  .p-blog-page__list {
    width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }
  .p-blog-page__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 0;
  }
  .p-blog-page__item p {
    margin-left: 0;
  }
  .p-blog-page__meta {
    margin-bottom: 0;
  }
  .p-blog-page__date {
    font-size: 13px;
  }
  .p-blog-page__label {
    font-size: 13px;
  }
  .p-blog-page__item-title {
    font-size: 16px;
  }
  .p-blog-page__excerpt,
  .p-blog-page__body {
    font-size: 14px;
  }
  .p-blog-page__pager {
    margin-top: 24px;
    padding: 0 var(--container-padding);
  }
  .p-blog-page__pager .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 14px;
  }
  .p-blog-page__excerpt, .p-blog-page__body {
    flex: 1;
  }
  /* 本文内の列ブロック：SPでは縦積み */
  .entry-content .wp-block-columns {
    flex-direction: column;
  }
  /* ギャラリー行（3枚/2枚）：SPで1枚だけ高さ崩れないよう、列・figure・img を統一 */
  .c-gallery-row {
    margin-top: 35px;
  }
  .entry-content .c-gallery-row .wp-block-column {
    width: 100%;
    min-width: 0;
    min-height: 0;
  }
  .entry-content .c-gallery-row .wp-block-column .wp-block-image,
  .entry-content .c-gallery-row .wp-block-column figure.wp-block-image {
    min-height: 0;
    width: 100%;
  }
  .entry-content .c-gallery-row .wp-block-column .wp-block-image img,
  .entry-content .c-gallery-row .wp-block-column figure.wp-block-image img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 5/3;
    object-fit: cover;
    display: block;
    vertical-align: top;
  }
  /* 1+2キャプション（先頭キャプション33%）：SPで「画像1+キャプション」「画像2・3+キャプション」の並びに */
  .c-gallery-row--3-split:has(.c-gallery-row__captions > .wp-block-column:first-child[style*="33.33%"]) {
    display: flex;
    flex-direction: column;
  }
  .c-gallery-row--3-split:has(.c-gallery-row__captions > .wp-block-column:first-child[style*="33.33%"]) > .wp-block-columns {
    display: contents;
  }
  .c-gallery-row--3-split:has(.c-gallery-row__captions > .wp-block-column:first-child[style*="33.33%"]) > .wp-block-column:nth-child(1) {
    order: 1;
  }
  .c-gallery-row--3-split:has(.c-gallery-row__captions > .wp-block-column:first-child[style*="33.33%"]) > .wp-block-column:nth-child(2) {
    order: 3;
  }
  .c-gallery-row--3-split:has(.c-gallery-row__captions > .wp-block-column:first-child[style*="33.33%"]) > .wp-block-column:nth-child(3) {
    order: 4;
  }
  .c-gallery-row--3-split:has(.c-gallery-row__captions > .wp-block-column:first-child[style*="33.33%"]) > .wp-block-column:nth-child(4) {
    order: 2;
  }
  .c-gallery-row--3-split:has(.c-gallery-row__captions > .wp-block-column:first-child[style*="33.33%"]) > .wp-block-column:nth-child(5) {
    order: 5;
  }
  .txt_r .wp-element-caption, .txt_l .wp-element-caption {
    position: inherit;
    text-align: center;
  }
  .wp-block-column.voice_bg {
    margin-top: 50px;
    margin-bottom: 80px;
  }
  .p-sub-page__voice_ttl {
    flex-wrap: wrap;
    font-size: 23px;
  }
  .p-sub-page__voice_ttl span {
    display: block;
    width: 100%;
    text-align: right;
  }
  .wp-block-column.voice_bg .wp-block-cover {
    padding: 40px 1.5rem 20px;
  }
  .c-voice-item__text {
    padding: 1em;
  }
  .c-career-voice .wp-block-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .c-career-voice .wp-block-column {
    width: 100% !important;
    min-width: 0;
  }
  .c-career-voice__box {
    width: 100%;
    aspect-ratio: auto;
    min-height: 130px;
    overflow: visible;
    padding: 2.5em 1em 1em;
  }
  .c-career-voice__label {
    width: 88px;
    height: 88px;
    top: -50px;
    right: 8px;
  }
  .c-career-voice:nth-child(even) .c-career-voice__label {
    left: 8px;
    right: auto;
  }
  .c-career-voice__label::after {
    bottom: 24px;
    width: 56%;
  }
  .c-career-voice__label p {
    font-size: 14px;
  }
  .c-office-box {
    margin-top: 40px;
    width: 95%;
    margin-bottom: 0;
  }
  .c-office-box__images {
    height: auto;
    max-height: none;
    overflow: visible;
    flex-direction: column;
  }
  .c-office-box__images .wp-block-column {
    flex-basis: 100% !important;
  }
  .c-office-box__images .wp-block-column:first-child .wp-block-image img,
  .c-office-box__images .wp-block-column:first-child figure.wp-block-image img {
    aspect-ratio: 16/10;
  }
  .c-office-box__images .wp-block-column:last-child .wp-block-image img,
  .c-office-box__images .wp-block-column:last-child figure.wp-block-image img {
    aspect-ratio: 16/10;
  }
  .c-office-box__map .wp-block-embed__wrapper {
    min-height: 250px;
  }
  .c-location-box-set {
    gap: 80px;
  }
  .c-location-box__label {
    width: 100px;
    height: 100px;
    top: -40px;
    left: -15px;
    font-size: 18px;
  }
  .slug-locations .box90 {
    width: 95% !important;
  }
  /* ブログ詳細（single / _content.scss で定義した要素の SP 調整） */
  .p-single__header {
    margin-bottom: 28px;
  }
  .p-single__date {
    margin-top: 20px;
    font-size: 13px;
  }
  .single .p-single__title {
    padding: 0;
    padding-bottom: 15px;
    font-size: 18px;
  }
  .p-single__body {
    width: 100%;
  }
  .p-single__body p {
    margin-bottom: 28px;
    font-size: 15px;
  }
  .single .p-single__thumbnail {
    width: 100%;
    margin: 1rem auto;
  }
  .single .entry-content h3:not(.c-section-title__heading),
  .single .entry-content h3.wp-block-heading {
    padding: 8px 0 8px 10px !important;
  }
  .single .entry-content h4:not(.c-section-title__heading),
  .single .entry-content h4.wp-block-heading {
    padding: 6px 12px !important;
  }
  .single .entry-content .wp-block-image figcaption,
  .single .entry-content figure figcaption {
    font-size: 13px !important;
  }
  .single .entry-content .wp-block-columns {
    gap: 1em;
  }
  /* 共通コンポーネント（_components.scss の SP 調整） */
  .c-page-hero {
    padding: 48px 0 40px;
    margin-bottom: 40px;
  }
  .c-section-title--bar {
    padding: 12px 14px;
  }
  .c-anchor-btn {
    padding: 12px 14px;
    font-size: 15px;
  }
  .c-btn {
    min-width: 160px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 15px;
  }
  .c-box,
  .wp-block-group.is-style-box {
    padding: 1em 1.1em;
  }
  .c-card__body {
    padding: 14px;
  }
  .c-card__title {
    font-size: 18px;
  }
  .c-contact-cta {
    padding: 28px var(--container-padding);
    font-size: 16px;
    letter-spacing: 0.15em;
  }
  .c-contact-cta .l-container {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .c-contact-cta__heading {
    font-size: 16px;
  }
  /* プライバシーポリシー（PC ベースの SP 調整） */
  .p-page-privacy__title, .p-contact__title {
    margin-top: 40px !important;
    margin-bottom: 24px !important;
    font-size: clamp(22px, 5vw, 28px) !important;
    letter-spacing: 0.15em !important;
    padding: 0 !important;
  }
  .slug-privacy .entry-content {
    padding-top: 28px;
  }
  .slug-privacy .entry-content > p {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 20px !important;
    font-size: 14px;
  }
  .p-page-privacy .entry-content h2,
  .p-page-privacy .entry-content h2.wp-block-heading,
  .p-page-privacy .entry-content .wp-block-heading.has-heading-level-2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 8px 0 8px 12px !important;
    margin-top: 1.5em !important;
    margin-bottom: 0.8em !important;
  }
  .wp-block-button.is-style-line-primary .wp-block-button__link {
    line-height: 1.2;
  }
  .c-voice-item .wp-block-columns {
    gap: 0.8em;
  }
  .c-voice-item {
    margin-bottom: 5em;
  }
  .int_img figure {
    width: 100%;
  }
  .c-career-voice {
    margin-top: 100px;
  }
  .page-profile .p-page-sub .entry-content dl dt:first-child, .p-page-profile .entry-content dl dt:first-child {
    padding-top: 0.5em;
    border-top: 1px solid #c8c8c8;
  }
  .p-page-sub .entry-content dl dt {
    background-color: #eaeaea;
    padding: 0.5em;
  }
  h2.p-sub-page__title {
    padding-left: 20px;
  }
  .p-contact__header {
    padding-left: 0 !important;
  }
}
