/* ===== Base ===== */
:root {
  --text: #000;
  --muted: #333;
  --line: #e5e5e5;
  --bg: #ffffff;
  --soft: #f7f7f7;

  --yellow: #f4b300;
  --pink: #f5d9e8;

  --cardPink: #f5c6e3;
  --cardGreen: #21c3a2;
  --cardYellow: #f5c33c;
  --cardBlue: #84b9e8;
  --cardRed: #ef3b3b;

  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity .7s ease, transform .7s ease, filter .7s ease;
  will-change: transform, opacity, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal.reveal-delay-60 {
  transition-delay: 60ms;
}

.reveal.reveal-delay-120 {
  transition-delay: 120ms;
}

.reveal.reveal-delay-180 {
  transition-delay: 180ms;
}

.reveal.reveal-delay-200 {
  transition-delay: 200ms;
}

.reveal.reveal-delay-240 {
  transition-delay: 240ms;
}

.reveal.reveal-delay-300 {
  transition-delay: 300ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  opacity: .7;
}

.nowrap {
  white-space: nowrap;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

main .container {
  width: min(var(--max), calc(100% - 56px));
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(8px);
}

.site-header .container {
  width: 100%;
  margin-inline: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(16px, 5vw, 40px) 14px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  font-weight: 900;
  font-size: 26px;
  --bg: #ffffff;
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.brand-logo {
  display: block;
  width: 118px;
  height: auto;
}

.brand-sub {
  font-size: 28px !important;
  font-weight: 700;
  margin-top: 0;
  color: #222;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 16px;
  margin-top: 6px;
  white-space: nowrap;
}

.nav a {
  color: #222;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  width: 36px;
  height: 32px;
  padding: 8px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}

.nav-toggle-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle:checked+.nav-toggle-btn {
  border-color: #000;
}

/* ===== Hero ===== */
.hero {
  padding: 24px 0 48px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

main {
  padding-top: 84px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 36px;
}

.hero-copy h1 {
  font-size: clamp(26px, 1.2vw + 20px, 34px);
  margin: 0 0 10px;
  font-weight: 800;
}

.hero-copy {
  padding-left: 14px;
}

.lead {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: clamp(14px, 0.6vw + 10px, 18px);
  line-height: var(--lead-lh);
}

.hero-points {
  margin: 0;
  padding-left: 16px;
  font-size: clamp(13px, 0.5vw + 10px, 17px);
  color: var(--text);
}

/* right illustration */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual-img {
  width: 640px;
  height: 640px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== Yellow band ===== */
.band {
  background: var(--yellow);
  padding: 40px 0;
}

.band .container {
  max-width: 1280px;
}

.band-inner {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) max-content minmax(200px, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 18px;
}

.band-title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 16.8px;
  color: #1a1a1a;
  opacity: .9;
  grid-column: 2;
  grid-row: 2;
  margin-inline: 0;
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  text-align: center;
}

.band-text {
  margin: 0;
  font-size: 16.8px;
  color: #1a1a1a;
  opacity: .9;
  grid-column: 2;
  grid-row: 1;
  margin-inline: 0;
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  text-align: center;
}

.band-left-img {
  display: block;
  width: auto;
  height: 250px;
  margin-inline: auto;
  grid-column: 1;
  grid-row: 1;
}

.band-right-img {
  display: block;
  width: auto;
  height: 180px;
  margin-inline: auto;
  grid-column: 3;
  grid-row: 2;
}

/* ===== Services ===== */
.services {
  padding: 34px 0 300px;
  position: relative;
  overflow: hidden;
}

.services .container {
  max-width: 1280px;
}

.services-ghost-img {
  position: absolute;
  right: 10%;
  bottom: 0;
  width: 220px;
  height: auto;
  opacity: .85;
  pointer-events: none;
  z-index: 0;
}

.section-title {
  text-align: center;
  margin: 0 0 18px;
  font-size: clamp(20px, 0.9vw + 14px, 26px);
  font-weight: 800;
  letter-spacing: .02em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* 2段目は2枚＋右下に薄い猫っぽい余白、に寄せる */
.service-card {
  border-radius: 12px;
  padding: 16px 14px 14px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .08);
  min-height: 190px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card h3 {
  margin: 10px 0 6px;
  font-size: clamp(14px, 0.5vw + 11px, 18px);
  font-weight: 900;
  text-align: center;
}

.service-card p {
  margin: 0;
  font-size: clamp(12px, 0.4vw + 10px, 15px);
  color: #222;
  opacity: .9;
}

/* colored cards */
.service-card--pink {
  background: var(--cardPink);
}

.service-card--green {
  background: var(--cardGreen);
}

.service-card--yellow {
  background: var(--cardYellow);
}

.service-card--blue {
  background: var(--cardBlue);
}

.service-card--red {
  background: var(--cardRed);
}

.icon {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .35);
  border: 2px solid rgba(0, 0, 0, .12);
  position: relative;
}

.icon::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 6px;
  border: 2px solid rgba(0, 0, 0, .25);
}

.service-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  flex: 1 1 auto;
}

/* 5枚配置：3+2 */
/* 右下の“余白” */

/* ===== Security ===== */
.security {
  background: var(--pink);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}

.security-inner {
  position: relative;
}

.security-inner> :not(.security-ghost-img) {
  position: relative;
  z-index: 1;
}

.security-lead {
  text-align: center;
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(12px, 0.5vw + 10px, 16px);
}

.security-highlight {
  color: red;
  font-weight: 700;
}

.security-list {
  max-width: 520px;
  margin: 0 auto 24px;
  padding-left: 44px;
  font-size: clamp(12px, 0.4vw + 10px, 15px);
  color: #222;
  text-align: left;
}

.security-list li {
  margin: 10px 0;
}

.security-list strong {
  font-weight: 900;
}

.security-foot {
  text-align: center;
  margin: 10px 0 0;
  font-size: clamp(12px, 0.5vw + 10px, 16px);
  color: var(--text);
}

.security-ghost-img {
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: 220px;
  height: auto;
  opacity: .8;
  z-index: 0;
}

/* ===== News ===== */
.news {
  padding: 34px 0;
}

.news-box {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid #cfcfcf;
  background: #fff;
  padding: 14px 16px;
}

.news-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: clamp(12px, 0.4vw + 10px, 15px);
}

.news-box li {
  margin: 5px 0;
}

.news-box time {
  display: inline-block;
  min-width: 92px;
  color: var(--muted);
}


/* ===== Contact ===== */
.contact {
  padding: 34px 0 50px;
  scroll-margin-top: 110px;
}

.section-lead {
  text-align: center;
  padding-bottom: 20px;
}

.contact-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* テーブル全体 */
table.CF7_table {
  width: 70%;
  margin: 0 auto;
  border: 3px solid #e5e5e5;
  border-collapse: collapse;
}

/* 見出しセル */
.CF7_table th {
  background: #ebedf5;
  text-align: left;
  vertical-align: top;
  /* 入力欄のはみ出し防止 */
  padding: 10px;
  width: 20%;
}

/* 入力セル */
.CF7_table td {
  padding: 10px 50px;
  width: 50%;
  vertical-align: top;
  margin: 0 auto 1em;
}

/* 入力欄共通 */
.CF7_table input,
.CF7_table textarea {
  border: 1px solid #d8d8d8;
  height: 45px;
  width: 100%;
  box-sizing: border-box;
  padding-left: 20px;
}

.CF7_table ::placeholder {
  color: var(--muted);
}

/* 必須・任意ラベル */
.CF7_req,
.CF7_unreq {
  display: inline-block;
  font-size: 0.9em;
  padding: 5px;
  color: #fff;
  border-radius: 3px;
  margin-right: 0.5em;
}

.CF7_req {
  background: #f79034;
}

.CF7_unreq {
  background: #bdbdbd;
}

/* チェックボックス */
.wpcf7 input[type="checkbox"] {
  width: 16px;
  height: 16px;
  transform: scale(0.9);
  margin-right: 6px;
}

/* チェックボックス行全体 */
.wpcf7-form-control-wrap.your-checkbox {
  display: block;
  width: 100%;
  margin: 1em 0;
}

/* テキストエリア（メッセージ） */
.wpcf7 textarea {
  padding: 10px;
}

.wpcf7 textarea[name="your-message"] {
  min-height: 200px;
  width: 100%;
  box-sizing: border-box;
  text-align: justify;
}

/* 「メッセージ本文」タイトルを縦中央寄せ */
table.CF7_table tr:last-child th {
  background-color: #ebedf5;
  vertical-align: middle !important;
}

/* 送信ボタン */
.wpcf7 input.wpcf7-submit {
  background-color: #f79034;
  border: 0;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  display: block;
  margin: 20px auto 0;
  padding: 10px 30px;
  border-radius: 4px;
  cursor: pointer;
}

.wpcf7-spinner {
  width: 0;
  margin: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: #111;
  color: #fff;
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-top {
  display: flex;
  width: min(1280px, 100%);
  margin-inline: auto;
  box-sizing: border-box;
  padding-inline: 50px;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-mark {
  font-weight: 900;
  font-size: 22px;
  line-height: 0.95;
}

.footer-logo {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.footer-links {
  display: grid;
  gap: 6px;
  font-size: 16px;
  opacity: .9;
  align-content: center;
}

.footer-copy {
  margin: 0;
  font-size: clamp(12px, 0.4vw + 10px, 14px);
  opacity: .75;
  text-align: center;
}



/* ========== Layout (PC) ========== */
.content,
.content-wrapper {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 150px;
  padding-left: clamp(16px, 3vw, 32px);
  padding-right: clamp(16px, 3vw, 32px);
  padding-bottom: 160px;
  /* 猫と重ならない下余白 */
  position: relative;
  z-index: 1;
}

/* Title */
.content>h2,
.content-wrapper>h2 {
  text-align: center;
  margin: 0 0 56px;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: .04em;
  color: #000;
}

/* ========== Table (no borders) ========== */
.custom-table {
  width: 100%;
  border-collapse: separate;
  /* collapse だと白線が出るテーマ対策 */
  border-spacing: 0;
  table-layout: fixed;
  background: transparent;
}

.custom-table td {
  border: 0;
  padding: 12px 16px;
  vertical-align: top;
  word-break: break-word;
  background: transparent;
}

/* Left column (label) */
.custom-table .left {
  width: 30%;
  background: #f5f5f5;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  /* 上詰め解消 */
  white-space: nowrap;
}

/* Right column (value) */
.custom-table td:not(.left) {
  color: #222;
  text-align: left;
  line-height: 1.8;
  /* 業務内容を読みやすく */
}

/* Row spacing (border の代わりに余白で区切る) */
.custom-table tr+tr td {
  padding-top: 18px;
}

/* ========== Officers (役員) ========== */
/* 黒ポチ除去・余白リセット */
.officers {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

/* 役職 / 姓 / 固定1em / 名 の4セルを CSSテーブルで安定表示 */
.officers li {
  display: table;
  table-layout: fixed;
  width: 100%;
}

.officers .role,
.officers .lname,
.officers .space,
.officers .fname {
  display: table-cell;
  vertical-align: baseline;
  padding: 0;
  white-space: nowrap;
}

.officers .role {
  white-space: normal;
  /* 長い役職は折返し可（不要なら nowrap） */
}

.officers .lname {
  text-align: right;
  min-width: 3em;
  /* 苗字が短い時のガタつき防止（2.5em〜調整可） */
}

.officers .space {
  width: 1em;
  /* 姓と名の間隔＝全角1文字相当を固定 */
  min-width: 1em;
}

/* ===== policy===== */
:root {
  --max-w: 1100px;
  --pad-x: clamp(16px, 4vw, 40px);
  --lead-lh: 1.9;
  --text: #000;
}

.page-wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  margin-top: 0;
  padding: 80px 0 80px;
}

#policy-page {
  background: var(--pink);
}

#privacy-policy,
#privacy-basic-policy {
  padding-inline: var(--pad-x);
}

.policy-section {
  background: var(--bg);
  padding-inline: var(--pad-x);
  padding-block: 24px;
}

/* ===== headings ===== */
.section-title {
  text-align: center;
  margin-top: 50px;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: .04em;
  line-height: 1.3;
  color: var(--text);
}


.num-title {
  margin: 32px 0 10px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.4;
  color: var(--text);
}

.num-title + p {
  margin-left: clamp(12px, 3vw, 32px);
}


ul.bullet {
  list-style: none;
  margin: 0 0 18px clamp(12px, 3vw, 32px);
  padding: 0;
}

ul.bullet li {
  margin: 8px 0;
}

.bg-block {
  background: var(--bg);
  padding: 0 clamp(12px, 3vw, 32px);
  border-radius: 6px;
  margin: 0;
}

/* 強調の見え方（WP strong重ねがちの調整） */
strong {
  font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .services {
    padding-bottom: 10px;
  }


  .header-inner {
    align-items: center;
    position: relative;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 100px;
    height: auto;
  }

  .brand-sub {
    font-size: 20px !important;
    white-space: nowrap;
  }

  .nav-toggle-btn {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav a {
    padding: 4px 2px;
  }

  .nav-toggle:checked~.nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 2;
    margin-inline: auto;
    max-width: 520px;
    text-align: left;
    font-size: clamp(14px, 0.5vw + 11px, 16px);
  }

  .hero-visual {
    order: 1;
  }

  .hero-visual-img {
    width: min(420px, 100%);
    height: auto;
  }

  .band-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .band .container {
    width: 100%;
    max-width: none;
  }

  .band-left-img {
    display: none;
  }

  .band-right-img {
    display: none;
  }

  .band-text {
    position: relative;
    padding-left: 90px;
    padding-right: 90px;
    width: 100%;
  }

  .band-title {
    position: relative;
    padding-left: 110px;
    padding-right: 110px;
    padding-bottom: 60px;
    width: 100%;
  }

  .band-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 90px;
    height: 140px;
    background: url("../images/catch_phrase1.png") center / contain no-repeat;
  }

  .band-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 110px;
    height: 90px;
    background: url("../images/catch_phrase2.png") center / contain no-repeat;
  }

  .service-card {
    grid-column: auto;
    min-height: auto;
  }

  .service-icon {
    height: auto;
    flex: 0 0 auto;
  }

  .services-ghost-img {
    position: static;
    width: 180px;
    margin: 32px 0 -12px auto;
    display: block;
    opacity: .7;
  }

  .service-grid::after {
    display: none;
  }

  .contact {
    grid-template-columns: 1fr;
    padding: 24px 8px 30px;
  }

  .custom-table .left {
    white-space: normal;
    text-align: left;
    padding-left: 12px;
  }

  table.CF7_table {
    width: 100%;
    font-size: 13px;
  }

  .CF7_table tr,
  .CF7_table td,
  .CF7_table th {
    display: block;
    width: 100%;
    line-height: 2.2em;
    font-size: 13px;
  }

  .wpcf7 form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 0.5rem;
  }

  .wpcf7-form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 13px;
  }

  .wpcf7 textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    font-size: 13px;
  }

  table.CF7_table {
    border-collapse: collapse;
    width: 100%;
  }

  .CF7_table tr,
  .CF7_table td,
  .CF7_table th {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .my-table {
    width: 100%;
    font-size: 13px;
  }

  .my-table th,
  .my-table td {
    padding: 6px;
  }

  .my-table-container {
    overflow-x: auto;
  }

  .section-lead {
    font-size: clamp(14px, 0.4vw + 10px, 14px);
  }
}

@media (max-width: 520px) {

  .hero-visual-img {
    width: min(320px, 100%);
    height: auto;
  }

  .brand-logo {
    width: 100px;
    height: auto;
  }

  .brand-sub {
    font-size: 16px !important;
  }

  .pc-break {
    display: none;
  }

  .nav-toggle-btn {
    width: 32px;
    height: 30px;
  }

  .nav-toggle-btn span {
    width: 16px;
  }

  .contact {
    grid-template-columns: 1fr;
    height: auto;
    padding: 16px 4px 20px;
  }

  .news-box li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 10px 0;
  }

  .news-box time {
    min-width: 0;
  }

  .news-text {
    display: block;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-inline: 0;
  }

  .footer-logo {
    width: 130px;
    height: 130px;
  }

  .footer-links {
    text-align: center;
    justify-items: center;
  }
}
