/* ====== TOA CONSULTING — LP Styles ====== */

:root {
  --navy-900: #0a1530;
  --navy-800: #0e1b33;
  --navy-700: #14243d;
  --navy-600: #1a2c4a;
  --navy-section: #03101F; /* PHILOSOPHY / MESSAGE / CONTACT — design実測寄せ */
  --navy-deep: #041326;    /* HEADER / COMPANY / FOOTER — 上下を締める深色 */
  --gold-500: #c9a268;
  --gold-400: #d4b277;
  --gold-300: #e0c189;
  --gold-100: #f0dcb0;
  --beige-100: #f6f1e7;
  --beige-50: #F9F8F3; /* カード背景（exit-card/flow-step/career-table）: デザイン実測値 */
  --paper: #f5efe2;
  --ink-900: #1a1a1a;
  --ink-700: #2c2c2c;
  --ink-600: #4a4a4a;
  --ink-500: #6b6b6b;
  --line-gold: rgba(201, 162, 104, 0.4);
  --line-gold-strong: rgba(201, 162, 104, 0.75);
  --white-90: rgba(255, 255, 255, 0.9);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);

  --ff-serif-jp: "Shippori Mincho", "Noto Serif JP", "游明朝", "Yu Mincho", serif;
  --ff-sans-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, sans-serif;
  --ff-serif-en: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --ff-sans-en: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --max-w: 1200px;
  --pad-x: clamp(20px, 5vw, 60px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-sans-jp);
  background: #fff;
  line-height: 1.75;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

/* ====== Header ====== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(4, 19, 38, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 162, 104, 0.12);
  height: 80px;
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 34px;
  width: auto;
  opacity: 0.98;
}

.logo-img--lg {
  height: 52px;
}

.site-header__logo .mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  border: 1px solid rgba(201, 162, 104, 0.3);
  border-radius: 3px;
}

.site-header__logo .mark svg {
  width: 32px;
  height: 32px;
}

.site-header__logo .wordmark {
  font-family: var(--ff-sans-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: 17.5px;
  color: var(--white-90);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--gold-400);
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--gold-400);
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}
.btn-contact:hover {
  background: var(--gold-300);
  transform: translateY(-1px);
}

/* ====== Hero ====== */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy-900);
  overflow: hidden;
  padding-top: 80px;
}

.hero__bg {
  position: absolute;
  inset: 80px 0 0 0;
  background: url("../img/photos/hero.jpg") center center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 80px 0 0 0;
  background: linear-gradient(
    90deg,
    rgba(10, 21, 48, 0.92) 0%,
    rgba(10, 21, 48, 0.78) 25%,
    rgba(10, 21, 48, 0.45) 45%,
    rgba(10, 21, 48, 0.05) 65%,
    rgba(10, 21, 48, 0) 100%
  );
}

.hero__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(60px, 12vh, 130px) var(--pad-x) clamp(80px, 14vh, 160px);
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__pill {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid var(--line-gold-strong);
  color: var(--gold-300);
  font-family: var(--ff-serif-jp);
  font-size: 18.75px;
  letter-spacing: 0.5em;
  margin-bottom: 36px;
  width: fit-content;
  text-indent: 0.5em;
}

.hero__title {
  font-family: var(--ff-serif-jp);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.25;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.hero__sub {
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--white-90);
  letter-spacing: 0.05em;
  line-height: 2;
  margin-bottom: 56px;
}

.hero__cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 22px 42px;
  font-size: 19px;
  letter-spacing: 0.15em;
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.25s ease;
  min-width: 280px;
}

.btn-primary {
  background: var(--gold-400);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--gold-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 104, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-400);
  border: 1px solid var(--gold-400);
}
.btn-secondary:hover {
  background: rgba(201, 162, 104, 0.08);
  border-color: var(--gold-300);
  color: var(--gold-300);
  transform: translateY(-2px);
}

/* ====== Section eyebrow ====== */

.eyebrow {
  display: block;
  font-family: var(--ff-serif-en);
  font-size: 20px;
  letter-spacing: 0.45em;
  color: var(--gold-500);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 700;
}
.eyebrow.left {
  text-align: left;
  margin-bottom: 14px;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold-500);
  margin: 14px auto 0;
}
.eyebrow.left::after {
  margin-left: 0;
}

.section-title {
  font-family: var(--ff-serif-jp);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 60px;
}
.section-title.dark {
  color: #fff;
}

/* ====== SERVICE Section ====== */

.section-service {
  background: #EFF0EB;
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
  position: relative;
}
.section-service::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(120, 110, 90, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120, 110, 90, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.service__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.service__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.service__title {
  font-family: var(--ff-serif-jp);
  font-weight: 500;
  font-size: clamp(38px, 4.2vw, 56px);
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-bottom: 36px;
  color: var(--ink-900);
}

.service__lead {
  font-size: 22px;
  line-height: 2;
  color: var(--ink-700);
  margin-bottom: 28px;
}

.service__photo {
  border: 1px solid var(--line-gold);
  padding: 14px;
  background: transparent;
  position: relative;
}
.service__photo::before,
.service__photo::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--gold-500);
}
.service__photo::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.service__photo::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}
.service__photo img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* 3 cards */
.exits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 100px;
}

.exit-card {
  background: var(--beige-50);
  border: 1px solid var(--line-gold);
  padding: 36px 32px 38px;
  border-radius: 6px;
  position: relative;
}

.exit-card__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-gold);
  margin-bottom: 24px;
}

.exit-card__num {
  font-family: var(--ff-serif-en);
  font-size: 56px;
  font-weight: 500;
  color: var(--gold-500);
  letter-spacing: 0.05em;
  line-height: 1;
}

.exit-card__label {
  font-family: var(--ff-serif-jp);
  font-size: 30px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: 0.08em;
}

.exit-card__lead {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 14px;
}

.exit-card__body {
  font-size: 17.5px;
  line-height: 1.95;
  color: var(--ink-700);
}

/* Flow */
.flow-wrap {
  text-align: center;
}

.flow-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 36px;
  color: var(--ink-900);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.flow-head::before,
.flow-head::after {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  background: var(--gold-500);
}

.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 36px;
  border: 1px solid var(--line-gold);
  background: var(--beige-50);
  min-width: 240px;
  border-radius: 4px;
}

.flow-step__icon {
  width: 36px;
  height: 36px;
  color: var(--gold-500);
}

.flow-step__label {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-900);
}

.flow-arrow {
  color: var(--gold-500);
  font-size: 22px;
  font-weight: 300;
}

.flow-note {
  margin-top: 36px;
  font-size: 18.2px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}

/* ====== PHILOSOPHY Section ====== */

.section-philosophy {
  position: relative;
  background: var(--navy-section);
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
  color: #fff;
  overflow: hidden;
}
.section-message::before,
.section-company::before,
.section-contact::before,
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  max-width: 900px;
  aspect-ratio: 1600 / 900;
  background: url("../img/photos/tex_drawing.png") top left / contain no-repeat;
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
}

.section-philosophy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  max-width: 880px;
  aspect-ratio: 1038 / 888;
  background: url("../img/photos/philosophy_light.png") top left / contain no-repeat;
  opacity: 0.85;
  pointer-events: none;
  mix-blend-mode: screen;
}
.section-philosophy::after,
.section-message::after,
.section-company::after,
.section-contact::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  max-width: 900px;
  aspect-ratio: 1600 / 900;
  background: url("../img/photos/tex_blueprint.png") bottom right / contain no-repeat;
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
}
/* セクションごとに図面を出し分け＋配置側/傾きを散らしてテンプレ感を解消 */
.section-message::after {
  right: auto;
  left: 0;
  opacity: 0.225;
  background: url("../img/photos/tex_message_section_L.png") bottom left / contain no-repeat;
}
.section-company::after {
  background: url("../img/photos/tex_company_rot.png") bottom right / contain no-repeat;
}
.section-contact::after {
  right: auto;
  left: 0;
  background: url("../img/photos/tex_contact_front.png") bottom left / contain no-repeat;
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: 40px;
  right: 0;
  width: 42%;
  max-width: 540px;
  aspect-ratio: 479 / 310;
  background: url("../img/photos/footer_mark.png") bottom right / contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.philosophy__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.philosophy__eyebrow {
  display: block;
  width: fit-content;
  margin: 0 auto 28px;
  padding: 0;
  background: transparent;
  border: none;
  font-family: var(--ff-serif-en);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.45em;
  color: var(--gold-400);
  text-indent: 0.45em;
  text-align: center;
}
.philosophy__eyebrow::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold-400);
  margin: 12px auto 0;
}

.philosophy__title {
  font-family: var(--ff-serif-jp);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 46px);
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
}

.philosophy__lead {
  text-align: center;
  font-size: 22px;
  line-height: 2;
  color: var(--white-90);
  margin-bottom: 80px;
  letter-spacing: 0.05em;
}

.philo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.philo-card {
  border: 1px solid var(--line-gold-strong);
  padding: 44px 48px;
  background: rgba(10, 21, 48, 0.4);
  backdrop-filter: blur(4px);
}

.philo-card__title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-serif-jp);
  font-size: 34px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 26px;
  letter-spacing: 0.1em;
}
.philo-card__title::before {
  content: "";
  width: 4px;
  height: 30px;
  background: var(--gold-400);
}

.philo-list {
  list-style: none;
}

.philo-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(201, 162, 104, 0.2);
  color: var(--white-90);
  font-size: 22px;
  letter-spacing: 0.06em;
}
.philo-list li:last-child {
  border-bottom: none;
}

.philo-list .num {
  font-family: var(--ff-serif-en);
  color: var(--gold-400);
  font-size: 25px;
  font-weight: 500;
  min-width: 22px;
}

/* ====== MESSAGE Section ====== */

.section-message {
  position: relative;
  background: var(--navy-section);
  padding: clamp(60px, 10vh, 120px) var(--pad-x) clamp(80px, 12vh, 140px);
  overflow: clip; /* hiddenだと子のsticky(写真固定)が効かないためclipに */
}

.message__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.message__head {
  text-align: center;
  margin-bottom: 60px;
}

.message__eyebrow {
  font-family: var(--ff-serif-en);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.45em;
  color: var(--gold-400);
  margin-bottom: 14px;
}
.message__eyebrow::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold-400);
  margin: 12px auto 0;
}

.message__title {
  font-family: var(--ff-serif-jp);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.1em;
}

.message__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.message__photo {
  position: sticky;
  top: 108px; /* fixed header 80px + 余白 */
  align-self: start;
  border: 1px solid var(--line-gold-strong);
  padding: 12px;
}
.message__photo::before,
.message__photo::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--gold-400);
}
.message__photo::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.message__photo::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}
.message__photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.message__body {
  color: var(--white-90);
}

.message__lead {
  font-family: var(--ff-serif-jp);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;
  color: #fff;
  line-height: 1.6;
  letter-spacing: 0.08em;
  margin-bottom: 36px;
  padding-left: 24px;
  border-left: 2px solid var(--gold-400);
}

.message__para {
  font-size: 19px;
  line-height: 2.1;
  letter-spacing: 0.05em;
  margin-bottom: 22px;
  color: var(--white-90);
}

.message__para--decision {
  font-family: var(--ff-serif-jp);
  font-size: 23px;
  line-height: 1.9;
  letter-spacing: 0.14em;
  color: var(--gold-300);
  padding-left: 22px;
  border-left: 2px solid var(--gold-400);
  margin: 28px 0;
}

.message__divider {
  height: 1px;
  background: var(--line-gold-strong);
  margin: 36px 0 24px;
}

.message__role {
  font-size: 16.25px;
  letter-spacing: 0.12em;
  color: var(--white-70);
  margin-bottom: 8px;
}

.message__name {
  font-family: var(--ff-serif-jp);
  font-size: 37.5px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.message__name .reading {
  font-size: 16.25px;
  font-family: var(--ff-sans-jp);
  letter-spacing: 0.1em;
  color: var(--white-70);
  font-weight: 400;
  margin-left: 12px;
}

.message__creds {
  font-size: 15.6px;
  color: var(--white-70);
  letter-spacing: 0.06em;
  line-height: 1.9;
}

/* ====== CAREER Section ====== */

.section-career {
  background: #EFF0EB;
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
  position: relative;
}
.section-career::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(120, 110, 90, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120, 110, 90, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.career__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.career__title {
  font-family: var(--ff-serif-jp);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.career__lead {
  font-size: 21px;
  line-height: 2;
  color: var(--ink-700);
  margin-bottom: 60px;
}

.career__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: left;
}

.career-table {
  background: var(--beige-50);
  border: 1px solid var(--line-gold);
  padding: 30px 36px 36px;
  border-radius: 4px;
}

.career-table h3 {
  font-family: var(--ff-serif-jp);
  font-size: 26px;
  font-weight: 500;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-gold);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  color: var(--ink-900);
}

.career-table dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
}

.career-table dt {
  font-family: var(--ff-serif-en);
  color: var(--gold-500);
  font-size: 22px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(201,162,104,0.25);
  letter-spacing: 0.04em;
}

.career-table dd {
  font-size: 20px;
  color: var(--ink-700);
  padding: 12px 0;
  border-bottom: 1px dashed rgba(201,162,104,0.25);
}

.career-table dl > *:nth-last-child(-n+2) {
  border-bottom: none;
}

.career-table ul {
  list-style: none;
}

.career-table li {
  font-size: 20px;
  color: var(--ink-700);
  padding: 12px 0;
  border-bottom: 1px dashed rgba(201,162,104,0.25);
  padding-left: 22px;
  position: relative;
}
.career-table li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--gold-500);
}
.career-table li:last-child {
  border-bottom: none;
}

.career-table .footnote {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-gold);
  font-size: 18px;
  color: var(--gold-500);
  letter-spacing: 0.05em;
}

/* ====== COMPANY Section ====== */

.section-company {
  background: var(--navy-deep);
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
  position: relative;
  overflow: hidden;
}

.company__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.company__frame {
  border: 1px solid var(--line-gold-strong);
  padding: 38px 48px;
  background: rgba(10,21,48,0.35);
  position: relative;
  margin-top: 40px;
}
.company__frame::before,
.company__frame::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--gold-400);
}
.company__frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.company__frame::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.company-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.company__statement {
  text-align: center;
  margin-top: 32px;
  font-size: 18.2px; /* .flow-note(PC)に合わせる */
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--white-70);
}
@media (max-width: 960px) {
  .company__statement { font-size: 14px; text-align: left; } /* .flow-note(SP)に合わせる */
}

.company-table th,
.company-table td {
  padding: 22px 26px;
  font-size: 20px;
  border-bottom: 1px solid rgba(201,162,104,0.2);
  color: var(--white-90);
  letter-spacing: 0.04em;
  line-height: 1.85;
  vertical-align: top;
}

.company-table th {
  font-family: var(--ff-serif-jp);
  color: var(--gold-300);
  font-weight: 500;
  width: 200px;
  background: rgba(255,255,255,0.02);
  text-align: center;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

/* ====== Seminar CTA ====== */

.section-seminar {
  background: #EFF0EB;
  padding: clamp(60px, 8vh, 100px) var(--pad-x);
  position: relative;
}
.section-seminar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(120, 110, 90, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120, 110, 90, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.seminar__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--gold-500);
  border-bottom: 1px solid var(--gold-500);
  padding: 40px 0;
}
.seminar__inner::before,
.seminar__inner::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--gold-500);
}
.seminar__inner::before { top: -5px; left: 0; border-right: none; border-bottom: none; }
.seminar__inner::after  { bottom: -5px; right: 0; border-left: none; border-top: none; }

.seminar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  padding: 18px 0;
}

.seminar__left {
  flex: 1;
  min-width: 320px;
}

.seminar__bar {
  width: 4px;
  height: 28px;
  background: var(--gold-500);
  display: inline-block;
  margin-right: 18px;
  vertical-align: middle;
}

.seminar__title {
  font-family: var(--ff-serif-jp);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 500;
  letter-spacing: 0.08em;
  display: inline-block;
  vertical-align: middle;
}

.seminar__badge {
  display: inline-block;
  color: var(--gold-500);
  font-family: var(--ff-serif-jp);
  font-size: 22px;
  letter-spacing: 0.1em;
  margin-left: 24px;
}

.seminar__sub {
  margin-top: 22px;
  padding-left: 22px;
  font-size: 21px;
  color: var(--ink-700);
  letter-spacing: 0.04em;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 26px 40px;
  background: var(--navy-900);
  color: #fff;
  border: 1px solid var(--gold-500);
  font-size: 21px;
  letter-spacing: 0.15em;
  min-width: 300px;
  transition: all 0.2s;
}
.btn-dark:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
}
.btn-dark svg {
  width: 20px;
  height: 12px;
  color: var(--gold-400);
}

/* ====== CONTACT Section ====== */

.section-contact {
  position: relative;
  background: var(--navy-section);
  padding: clamp(80px, 12vh, 140px) var(--pad-x) clamp(60px, 10vh, 120px);
  overflow: hidden;
}

.contact__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact__frame {
  border-top: 1px solid var(--line-gold-strong);
  border-bottom: 1px solid var(--line-gold-strong);
  padding: 16px 44px;
  display: inline-block;
  margin: 20px auto 60px;
  color: var(--white-90);
  font-size: 20px;
  line-height: 1.9;
}

.contact-form {
  text-align: left;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 17.5px;
  color: var(--white-90);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}
.field label .opt {
  font-size: 15px;
  color: var(--white-50);
  margin-left: 8px;
}
.field label .req {
  color: var(--gold-400);
  margin-left: 6px;
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(10,21,48,0.6);
  border: 1px solid rgba(201,162,104,0.4);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  padding: 16px 18px;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(10,21,48,0.85);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 36px 0;
  font-size: 14px;
  color: var(--white-90);
}
.privacy input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold-400);
}
.privacy a {
  color: var(--gold-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-submit {
  width: 100%;
  padding: 22px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: var(--navy-900);
  font-size: 21.25px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  border-radius: 2px;
  transition: all 0.25s;
}
.btn-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201,162,104,0.25);
}

.contact__divider {
  margin: 48px 0 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold-strong), transparent);
}

.contact__tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.08em;
  flex-wrap: wrap;
}
.contact__tel .num {
  font-family: var(--ff-serif-en);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-300);
}
.contact__tel .hrs {
  color: var(--white-70);
  font-size: 14px;
}
.contact__tel svg {
  width: 24px; height: 24px;
  color: var(--gold-400);
}

/* ====== Footer ====== */

.site-footer {
  position: relative;
  background: var(--navy-deep);
  padding: 80px var(--pad-x) 30px;
  overflow: hidden;
  border-top: 1px solid rgba(201,162,104,0.15);
}

.footer__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.footer__logo .mark {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--navy-800);
  border: 1px solid rgba(201,162,104,0.3);
}
.footer__logo .mark svg {
  width: 46px; height: 46px;
}
.footer__logo .wordmark {
  font-family: var(--ff-sans-en);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.12em;
  color: #fff;
}

.footer__rule {
  height: 1px;
  background: rgba(201,162,104,0.25);
  margin-bottom: 30px;
}

.footer__company {
  color: var(--white-90);
  font-size: 21px;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.footer__addr,
.footer__tel {
  color: var(--white-70);
  font-size: 17.5px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.footer-nav {
  border-left: 1px solid rgba(201,162,104,0.25);
  padding-left: 60px;
  display: flex;
  flex-direction: column;
}

.footer-nav a {
  padding: 16px 0;
  color: var(--white-90);
  font-size: 17.5px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(201,162,104,0.12);
  transition: color 0.2s, padding-left 0.2s;
}
.footer-nav a:last-child {
  border-bottom: none;
}
.footer-nav a:hover {
  color: var(--gold-400);
  padding-left: 6px;
}

.footer__base {
  position: relative;
  max-width: var(--max-w);
  margin: 50px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(201,162,104,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--white-50);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__base a {
  color: var(--white-70);
  margin-right: 28px;
}
.footer__base a:hover { color: var(--gold-400); }

/* ====== Responsive ====== */

@media (max-width: 960px) {
  .service__head { grid-template-columns: 1fr; }
  .exits { grid-template-columns: 1fr; }
  .philo-grid { grid-template-columns: 1fr; }
  .message__grid { grid-template-columns: 1fr; }
  .message__photo { position: static; top: auto; } /* SPはsticky解除 */
  .career__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer-nav { border-left: none; padding-left: 0; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}

/* ====== Loading overlay (theme custom) ====== */
.loading-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	min-height: 100dvh;
	background:
		radial-gradient(circle at 50% 42%, rgba(200, 166, 106, 0.12), transparent 36%),
		linear-gradient(135deg, var(--deep-bg), var(--primary-navy));
	opacity: 1;
	pointer-events: auto;
	transition: opacity var(--loading-fadeout-duration) ease;
}

.loading-overlay.is-complete {
	opacity: 0;
	pointer-events: none;
}

.loading-overlay__inner {
	display: grid;
	justify-items: center;
	gap: clamp(18px, 4vw, 28px);
	width: min(58vw, 340px);
	color: var(--loading-text);
}

.loading-logo-stack {
	position: relative;
	width: 100%;
	aspect-ratio: 914 / 564;
}

.loading-logo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.loading-logo--gray {
	opacity: 0.72;
}

.loading-logo--gold {
	clip-path: inset(0 100% 0 0);
	filter: drop-shadow(0 0 22px rgba(200, 166, 106, 0.34));
}

.loading-overlay.is-active .loading-logo--gold {
	animation: toa-loading-reveal var(--loading-duration) cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.loading-label {
	color: var(--loading-text);
	font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
	font-weight: 500;
	line-height: 1;
}

@keyframes toa-loading-reveal {
	from { clip-path: inset(0 100% 0 0); }
	to   { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
	.loading-logo--gold { clip-path: inset(0 0 0 0); }
}

/* ====== Accessibility helpers (WP standard) ====== */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100001;
}
.skip-link:focus {
	background: var(--navy-900);
	color: var(--gold-300);
	border: 1px solid var(--gold-500);
	clip: auto;
	clip-path: none;
	display: block;
	font-weight: 700;
	font-size: 0.875rem;
	height: auto;
	left: 8px;
	padding: 12px 18px;
	text-decoration: none;
	top: 8px;
	width: auto;
}

/* ====== Body background (avoid white flash after loading fadeout) ====== */
body { background: #0a1530; background: var(--navy-900); }

/* ====== Mobile nav fallback (keep nav reachable on small screens) ====== */
@media (max-width: 960px) {
	.nav {
		display: flex;
		flex-wrap: wrap;
		gap: 10px 14px;
		justify-content: flex-end;
		font-size: 12.5px;
	}
	.nav a { letter-spacing: 0.04em; }
	.site-header {
		height: auto;
	}
	.site-header__inner {
		flex-wrap: wrap;
		gap: 12px;
		padding-block: 14px;
	}
	.btn-contact {
		font-size: 13px;
		padding: 12px 22px;
	}
}


/* ====== Hero adjustment for SP (avoid header overlap when nav wraps) ====== */
@media (max-width: 960px) {
	.hero {
		padding-top: 0;
	}
	.hero__bg,
	.hero__overlay {
		inset: 0;
	}
	.hero__inner {
		padding-top: clamp(140px, 22vh, 200px);
		min-height: 100vh;
	}
}

/* ====== Contact form fallback (when CF7 is not configured) ====== */
.contact-form-fallback {
	color: var(--white-90);
	text-align: center;
	padding: 28px 20px;
	margin: 8px auto 24px;
	border: 1px solid var(--line-gold);
	background: rgba(10, 21, 48, 0.45);
	max-width: 560px;
}
.contact-form-fallback p {
	margin-bottom: 10px;
	color: var(--white-90);
	font-size: 16px;
	line-height: 1.85;
}
.contact-form-fallback__tel {
	margin-top: 20px;
	font-size: 22px;
}
.contact-form-fallback__tel a {
	font-family: var(--ff-serif-en);
	color: var(--gold-300);
	letter-spacing: 0.1em;
	text-decoration: none;
	border-bottom: 1px solid var(--line-gold);
	padding-bottom: 2px;
}
.contact-form-fallback__hours {
	color: var(--white-70);
	font-size: 14px;
	margin-left: 10px;
}
.contact-form-admin-notice {
	color: var(--white-70);
}


/* ====== v4 fixes (after 3rd dev-review) ====== */

/* CR-1: 薄背景セクション見出しの色を明示（tokens.css の text-white継承を防止） */
.career__title,
.seminar__title {
	color: var(--ink-900);
}

/* W3-3: loading overlay の hidden 属性保険（JS失敗時の永続表示防止） */
.loading-overlay[hidden] {
	display: none !important;
}

/* W3-1 / W3-2: SP実機向けの追加調整 */
@media (max-width: 960px) {
	.nav a {
		font-size: 12.5px;
		letter-spacing: 0.04em;
	}
	html {
		scroll-padding-top: 180px;
	}
}


/* ====== CF7 (Contact Form 7) integration with Claude Design ====== */

/* CF7 wraps inputs in span.wpcf7-form-control-wrap; make it block so .field width works */
.contact-form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

/* CF7's default submit button → match .btn-submit style */
.contact-form .wpcf7-submit {
	width: 100%;
	padding: 22px;
	background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
	color: var(--navy-900);
	font-family: inherit;
	font-size: 21.25px;
	font-weight: 600;
	letter-spacing: 0.4em;
	text-indent: 0.4em;
	border-radius: 2px;
	border: none;
	cursor: pointer;
	transition: all 0.25s;
	margin-top: 12px;
}
.contact-form .wpcf7-submit:hover {
	filter: brightness(1.08);
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(201,162,104,0.25);
}

/* CF7 acceptance (privacy consent) inside .privacy wrapper */
.contact-form .privacy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 36px 0;
	font-size: 14px;
	color: var(--white-90);
	flex-wrap: wrap;
}
.contact-form .privacy .wpcf7-list-item {
	margin: 0;
}
.contact-form .privacy .wpcf7-list-item-label a {
	color: var(--gold-300);
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-right: 4px;
}
.contact-form .privacy input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--gold-400);
	margin-right: 8px;
}

/* CF7 inline validation tips */
.contact-form .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-size: 12.5px;
	color: #e8b25a;
}

/* CF7 response output */
.contact-form .wpcf7-response-output {
	margin-top: 20px !important;
	padding: 14px 18px !important;
	border: 1px solid var(--line-gold) !important;
	color: var(--white-90) !important;
	font-size: 14px !important;
	letter-spacing: 0.04em;
	background: rgba(10, 21, 48, 0.5);
}

/* Design specification page 02 motions */
@keyframes hero-slow-zoom {
	from {
		transform: scale(1) translateX(0);
	}
	to {
		transform: scale(1.25) translateX(-3%);
	}
}

.hero__bg {
	animation: hero-slow-zoom 24s ease-in-out forwards;
	transform-origin: 55% 50%;
}

.section-service,
.section-philosophy,
.section-message,
.section-career,
.section-company,
.section-seminar,
.section-contact {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.9s ease, transform 0.9s ease;
	will-change: opacity, transform;
}

.section-service.is-visible,
.section-philosophy.is-visible,
.section-message.is-visible,
.section-career.is-visible,
.section-company.is-visible,
.section-seminar.is-visible,
.section-contact.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.hero__bg {
		animation: none;
	}

	.section-service,
	.section-philosophy,
	.section-message,
	.section-career,
	.section-company,
	.section-seminar,
	.section-contact {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Title char-by-char reveal (shinwalaw-style, GSAP-free) */
.toa-split .toa-char {
	display: inline-block;
	opacity: 0;
	transform: translateY(0.5em);
	transition: opacity 0.95s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.95s cubic-bezier(0.22, 0.61, 0.36, 1);
	transition-delay: calc(var(--col-i, 0) * 220ms + var(--i, 0) * 45ms);
	will-change: opacity, transform;
}

.toa-split.is-revealed .toa-char {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.toa-split .toa-char {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* ====== SP first-view alignment 260528 ====== */
@media (max-width: 960px) {
	html {
		scroll-padding-top: 88px;
	}

	body.is-nav-open {
		overflow: hidden;
	}

	.site-header {
		height: 88px;
		background: linear-gradient(180deg, rgba(7, 15, 28, 0.76), rgba(7, 15, 28, 0.18));
		backdrop-filter: none;
		border-bottom: 0;
	}

	.site-header__inner {
		flex-wrap: nowrap;
		align-items: center;
		gap: 0;
		padding: 18px 22px 0;
	}

	.site-header__logo {
		position: relative;
		z-index: 102;
		min-width: 0;
	}

	.logo-img {
		height: 32px;
		max-width: 236px;
		object-fit: contain;
	}

	.site-header .btn-contact {
		display: none;
	}

	.nav-toggle {
		position: relative;
		z-index: 103;
		display: inline-flex !important;
		flex-direction: column;
		justify-content: center;
		align-items: flex-end;
		width: 44px;
		height: 44px;
		margin-left: auto;
		padding: 0;
		background: transparent;
		border: 0;
	}

	.nav-toggle span {
		display: block;
		width: 30px;
		height: 2px;
		margin: 4px 0;
		background: var(--gold-400);
		border-radius: 999px;
		transition: transform 0.24s ease, opacity 0.24s ease;
	}

	.site-header.is-nav-open .nav-toggle span:nth-child(1) {
		transform: translateY(10px) rotate(42deg);
	}

	.site-header.is-nav-open .nav-toggle span:nth-child(2) {
		opacity: 0;
	}

	.site-header.is-nav-open .nav-toggle span:nth-child(3) {
		transform: translateY(-10px) rotate(-42deg);
	}

	.site-header .nav {
		position: fixed;
		inset: 0;
		z-index: 101;
		display: none;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 24px;
		padding: 110px 28px 42px;
		background: rgba(7, 15, 28, 0.96);
	}

	.site-header .nav[hidden] {
		display: none !important;
	}

	.site-header.is-nav-open .nav {
		display: flex;
	}

	.site-header .nav a {
		font-size: 17px;
		letter-spacing: 0.12em;
		color: var(--white-90);
	}

	.hero {
		min-height: 100svh;
		padding-top: 0;
	}

	.hero__bg,
	.hero__overlay {
		inset: 0;
	}

	.hero__bg {
		background-position: 72% center;
		background-size: auto 100%;
		transform-origin: 72% 50%;
	}

	.hero__overlay {
		background:
			linear-gradient(180deg, rgba(7, 15, 28, 0.78) 0%, rgba(7, 15, 28, 0.25) 34%, rgba(7, 15, 28, 0.46) 67%, rgba(7, 15, 28, 0.86) 100%),
			linear-gradient(90deg, rgba(7, 15, 28, 0.38) 0%, rgba(7, 15, 28, 0.08) 48%, rgba(7, 15, 28, 0.14) 100%);
	}

	.hero__inner {
		width: 100%;
		min-height: 100svh;
		justify-content: flex-start;
		align-items: center;
		text-align: center;
	}

	.hero__pill {
		display: inline-flex;
		justify-content: center;
		width: auto;
		max-width: 92vw;
		margin: 0 auto 30px;
		padding: 9px 15px;
		font-size: 12.5px;
		line-height: 1.7;
		letter-spacing: 0.24em;
		text-indent: 0.24em;
		color: var(--gold-300);
		border-color: rgba(201, 162, 104, 0.62);
		background: rgba(7, 15, 28, 0.2);
	}

	.hero__title {
		width: 100%;
		margin: 0 auto 26px;
		font-size: clamp(43px, 12.2vw, 48px);
		line-height: 1.38;
		letter-spacing: 0.015em;
		color: #ece6d6;
	}

	.hero__sub {
		width: min(90vw, 340px);
		margin: 0 auto 42px;
		font-size: 14.5px;
		line-height: 2.05;
		letter-spacing: 0.04em;
		color: rgba(236, 230, 214, 0.84);
	}

	.hero__cta {
		width: 100%;
		justify-content: center;
		gap: 0;
	}

	.hero__cta .btn-primary {
		display: none;
	}

	.hero__cta .btn-secondary {
		width: min(88vw, 328px);
		min-width: 0;
		min-height: 72px;
		padding: 19px 58px 19px 28px;
		background: var(--gold-400);
		border: 1px solid rgba(232, 200, 138, 0.28);
		border-radius: 4px;
		color: var(--navy-900);
		font-size: 17px;
		font-weight: 700;
		letter-spacing: 0.16em;
		text-indent: 0.16em;
		box-shadow: none;
		transform: none;
	}

	.hero__cta .btn-secondary::after {
		content: "→";
		position: absolute;
		right: 28px;
		font-size: 28px;
		font-weight: 300;
		line-height: 1;
		text-indent: 0;
	}

	.hero-scroll {
		position: absolute;
		left: 50%;
		bottom: 26px;
		z-index: 2;
		display: flex !important;
		flex-direction: column;
		align-items: center;
		gap: 10px;
		color: var(--gold-300);
		pointer-events: none;
	}

	.hero-scroll__line {
		position: relative;
		display: block;
		width: 1px;
		height: 46px;
		background: rgba(224, 193, 137, 0.74);
	}

	.hero-scroll__line::after {
		content: "";
		position: absolute;
		left: 50%;
		bottom: -1px;
		width: 12px;
		height: 12px;
		border-right: 1px solid rgba(224, 193, 137, 0.9);
		border-bottom: 1px solid rgba(224, 193, 137, 0.9);
		transform: translateX(-50%) rotate(45deg);
		transform-origin: center;
	}

	.hero-scroll__label {
		font-family: var(--ff-serif-en);
		font-size: 10px;
		line-height: 1;
		letter-spacing: 0.32em;
		text-indent: 0.32em;
		color: rgba(224, 193, 137, 0.86);
	}
}

/* SP micro-tweaks (user-requested) */
@media (max-width: 960px) {
	.hero__title {
		text-align: center;
	}
	.hero__sub {
		text-align: left;
	}
	.hero__cta .btn-secondary::after {
		right: 50px;
	}
	.hero-scroll {
		right: 50%;
		transform: translateX(50%);
	}
	.service__lead {
		font-size: 18px;
	}
}


/* SP: force hero__title centering (override .toa-split state) */
@media (max-width: 960px) {
	.hero__title,
	.hero__title.toa-split,
	.hero__title.toa-split.is-revealed {
		text-align: center !important;
		width: 100%;
	}
}


/* SP micro-tweaks (service spacing & flow-step width) */
@media (max-width: 960px) {
	.service__head {
		gap: 30px;
		margin-bottom: 30px;
	}
	.flow-step {
		width: 90%;
	}
}


/* SP micro-tweaks (font sizing batch) */
@media (max-width: 960px) {
	.flow-note {
		font-size: 12px;
	}
	.philosophy__lead {
		font-size: 18px;
	}
	.philo-list li {
		font-size: 18px;
		padding: 10px 4px;
	}
	.message__para {
		font-size: 18px;
	}
}


/* SP micro-tweaks (career section) */
@media (max-width: 960px) {
	.career__lead {
		font-size: 18px;
	}
	.career-table h3 {
		text-align: center;
	}
	.career-table dd {
		font-size: 16px;
		padding: 5px 0;
	}
}


/* SP micro-tweaks (career-table li) */
@media (max-width: 960px) {
	.career-table li {
		font-size: 16px;
	}
}


/* SP: company-table を縦積みに */
@media (max-width: 960px) {
	.company-table,
	.company-table tbody,
	.company-table tr,
	.company-table th,
	.company-table td {
		display: block;
		width: 100%;
	}
	.company-table tr {
		border-bottom: 1px solid rgba(201, 162, 104, 0.2);
		padding: 14px 0 16px;
	}
	.company-table tr:last-child {
		border-bottom: none;
	}
	.company-table th {
		text-align: left;
		padding: 0 0 8px;
		background: transparent;
		font-size: 14px;
		color: var(--gold-300);
		border-bottom: none;
	}
	.company-table td {
		padding: 0;
		border-bottom: none;
		font-size: 15px;
		line-height: 1.85;
	}
}


/* SP: contact frame font-size */
@media (max-width: 960px) {
	.contact__frame {
		font-size: 18px;
	}
}


/* SP: contact frame left-align */
@media (max-width: 960px) {
	.contact__frame {
		text-align: left;
	}
}


/* SP: hero pill & title alignment override (revert previous center to left) */
@media (max-width: 960px) {
	.hero__pill {
		margin: 0 auto 20px 0;
	}
	.hero__title,
	.hero__title.toa-split,
	.hero__title.toa-split.is-revealed {
		text-align: left !important;
	}
}


/* Hero sub: PC font-size 20px / SP 16px + SP-only line break */
.hero__sub {
	font-size: 20px;
}
.hero__sub-sp-br {
	display: none;
}
@media (max-width: 960px) {
	.hero__sub {
		font-size: 16px;
	}
	.hero__sub-sp-br {
		display: inline;
	}
}


/* SP: hero-scroll line draw animation (top→down repeat, junpei-sugiyama-style) */
@keyframes hero-scroll-line-draw {
	0% {
		transform: scale(1, 0);
		transform-origin: 0 0;
	}
	50% {
		transform: scale(1, 1);
		transform-origin: 0 0;
	}
	51% {
		transform: scale(1, 1);
		transform-origin: 0 100%;
	}
	100% {
		transform: scale(1, 0);
		transform-origin: 0 100%;
	}
}

@media (max-width: 960px) {
	.hero-scroll__line {
		animation: hero-scroll-line-draw 2s infinite;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-scroll__line {
		animation: none !important;
		transform: none !important;
	}
}


/* SP-only line breaks (default hidden) */
.philo-title-sp-br,
.contact-frame-sp-br {
	display: none;
}

@media (max-width: 960px) {
	.philo-title-sp-br,
	.contact-frame-sp-br {
		display: inline;
	}

	/* SERVICE flow */
	.flow-head {
		gap: 5px;
		font-size: 20px;
	}
	.flow-step__label {
		font-size: 20px;
		width: 200px;
		text-align: center;
	}
	.flow-note {
		font-size: 14px;
		text-align: left;
	}

	/* PHILOSOPHY */
	.philosophy__lead {
		text-align: left;
	}
	.philo-card__title {
		font-size: 30px;
	}
	.philo-card {
		padding: 25px 20px;
	}

	/* PHILOSOPHY ↔ MESSAGE の間の余白を半分に */
	.section-philosophy {
		padding-bottom: 40px;
	}
	.section-message {
		padding-top: 40px;
	}

	/* MESSAGE lead size */
	.message__lead,
	.message__lead.toa-split,
	.message__lead.toa-split.is-revealed {
		font-size: 26px !important;
	}

	/* CAREER */
	.career__lead {
		text-align: left;
	}

	/* COMPANY table (already vertically stacked) */
	.company-table th,
	.company-table td {
		font-size: 16px;
	}

	/* COMPANY ↔ CONTACT の間の余白を半分に */
	.section-company {
		padding-bottom: 40px;
	}
	.section-contact {
		padding-top: 40px;
	}

	/* CONTACT frame */
	.contact__frame {
		padding: 16px 20px;
	}
}


/* Responsive <br> utility classes */
.br-pc-only { display: inline; }
.br-sp-only { display: none; }

@media (max-width: 960px) {
	.br-pc-only { display: none; }
	.br-sp-only { display: inline; }

	.flow-head::before,
	.flow-head::after {
		width: 20px;
	}
	.flow-step__label {
		width: 165px;
	}
	.company__frame {
		padding: 35px 20px;
	}
}


/* SP: career-table padding */
@media (max-width: 960px) {
	.career-table {
		padding: 30px 20px 35px;
	}
}


/* SP: flow-head font-size override */
@media (max-width: 960px) {
	.flow-head {
		font-size: 22px;
	}
}


/* SP: philosophy__title size override */
@media (max-width: 960px) {
	.philosophy__title,
	.philosophy__title.toa-split,
	.philosophy__title.toa-split.is-revealed {
		font-size: 30px !important;
	}
}


/* Small SP (≤400px): reading furigana size */
@media (max-width: 375px) {
	.message__name .reading {
		font-size: 14px;
	}
}


/* Mobile-only line break utility (≤400px) */
.br-mobile-only { display: none; }
@media (max-width: 375px) {
	.br-mobile-only { display: inline; }
}


/* SP: hero__sub margin override (left-aligned with auto-right) */
@media (max-width: 960px) {
	.hero__sub {
		margin: 0 auto 42px 0;
	}
}


/* SP: btn-secondary arrow positioned RELATIVE TO BUTTON (not the parent .hero__cta) */
@media (max-width: 960px) {
	.hero__cta .btn-secondary {
		position: relative;
	}
	.hero__cta .btn-secondary::after {
		position: absolute;
		right: 24px;
		top: 50%;
		transform: translateY(-50%);
	}
}

/* ====== Legal / Generic Page (page.php: privacy, tokushoho) ====== */
.site-main--page {
  background: var(--navy-800);
  padding: calc(var(--header-height, 88px) + clamp(48px, 9vh, 96px)) var(--pad-x) clamp(80px, 14vh, 140px);
}
.site-main--page .page-content {
  max-width: 820px;
  margin-inline: auto;
}
.site-main--page .page-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vh, 72px);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-gold);
}
.site-main--page .page-header h1 {
  margin: 0;
  font-family: var(--ff-serif-jp);
  font-weight: 600;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0.06em;
}
.site-main--page .entry-content {
  color: var(--white-90);
  font-family: var(--ff-sans-jp);
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 2;
}
.site-main--page .entry-content > *:first-child {
  margin-top: 0;
}
.site-main--page .entry-content p {
  margin: 0 0 1.6em;
}
.site-main--page .entry-content h2 {
  margin: 2.4em 0 0.9em;
  padding-left: 16px;
  border-left: 3px solid var(--gold-500);
  font-family: var(--ff-serif-jp);
  font-weight: 600;
  color: var(--gold-300);
  font-size: clamp(19px, 2.2vw, 24px);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.site-main--page .entry-content h3 {
  margin: 1.8em 0 0.7em;
  font-family: var(--ff-serif-jp);
  color: #fff;
  font-size: clamp(17px, 1.6vw, 20px);
}
.site-main--page .entry-content ol,
.site-main--page .entry-content ul {
  margin: 0 0 1.6em;
  padding-left: 1.6em;
}
.site-main--page .entry-content li {
  margin-bottom: 0.6em;
  padding-left: 0.2em;
}
.site-main--page .entry-content :is(ol, ul) :is(ol, ul) {
  margin: 0.7em 0 0.4em;
}
.site-main--page .entry-content a {
  color: var(--gold-300);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.site-main--page .entry-content a:hover {
  color: var(--gold-100);
}
.site-main--page .entry-content strong {
  color: #fff;
}
.site-main--page .entry-content table {
  width: 100%;
  margin: 0 0 1.6em;
  border-collapse: collapse;
}
.site-main--page .entry-content :is(th, td) {
  padding: 12px 14px;
  border: 1px solid var(--divider, rgba(255, 255, 255, 0.15));
  text-align: left;
  vertical-align: top;
}
.site-main--page .entry-content th {
  background: var(--navy-700);
  color: #fff;
  white-space: nowrap;
}

