/* ============================================================
   SmartSocial — すべらないシステム開発®＆SES LP
   Figmaデザイン完全準拠版
   ============================================================ */

:root {
  --dark: #131062; /* FV・Final CTA */
  --blue: #0067b2; /* Service・Clients・links */
  --qcta-top: #0055a0; /* Quick CTA gradient top */
  --qcta-btm: #003f76; /* Quick CTA gradient bottom */
  --gray-sec: #a2aeb1; /* Reason・Case 左側背景 */
  --charcoal: #333333; /* Reason 左パネル */
  --orange: #e57a00; /* メインCTAボタン */
  --white: #ffffff; /* メインCTAボタン */
  --text: #222222;
  --text-sub: #666666;
  --copy-blue: #00629d; /* フッターコピーバー */
  --font-jp:
    "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
}

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

body {
  font-family: var(--font-jp);
  color: var(--text);
  margin: 0;
  line-height: 1.75;
  background: var(--blue);
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  transition: box-shadow 0.3s;
}
#site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.hd-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
}
.hd-logo img {
  display: block;
}

.hd-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: wrap;
}
.hd-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  transition: color 0.2s;
  white-space: nowrap;
}
.hd-nav a:hover {
  color: var(--blue);
}
.hd-nav a.hd-cta,
.hd-nav li.hd-cta a {
  background: var(--orange);
  color: #fff !important;
  border-radius: 4px;
  padding: 0.45rem 1.25rem;
  font-weight: 700;
}
.hd-nav a.hd-cta:hover,
.hd-nav li.hd-cta a:hover {
  background: #c96b00;
  color: #fff !important;
}
.hd-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 5px;
}
.hd-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* グレー サブナビ（PC用） */
.hd-sub-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #f0f0f0;
  border-top: 1px solid #e0e0e0;
}
.hd-sub-nav a {
  display: flex;
  align-items: center;
  padding: 0.45rem 9rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border-right: 1px solid #d0d0d0;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.hd-sub-nav a:first-child {
  border-left: 1px solid #d0d0d0;
}
.hd-sub-nav a:hover {
  color: var(--blue);
  background: #e8e8e8;
}

/* SP nav: hidden on PC */
.hd-nav-sp {
  display: none;
}

/* ============================================================
   FV
   ============================================================ */
.fv-section {
  background: var(--dark);
  padding-top: 90px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.fv-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 3rem;
}
.fv-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
}
.fv-title sup {
  font-size: 0.45em;
  top: -0.5em;
  position: relative;
}

.fv-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.7rem 1.6rem;
  border-radius: 4px;
  margin-bottom: 3rem;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.fv-link-btn:hover {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}
.fv-link-text {
  display: inline-block;
}
.fv-link-icon {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.fv-strengths-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}
.fv-rule {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  max-width: 80px;
}

.fv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 860px;
  margin-bottom: 2.5rem;
}
.fv-card {
  background: #fff;
  border-radius: 6px;
  padding: 1.25rem 1rem;
  text-align: left;
}
.fv-card h3 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.fv-card p {
  font-size: 0.78rem;
  color: #444;
  line-height: 1.65;
  margin: 0;
}

.fv-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

/* ============================================================
   NEWS（白背景）
   ============================================================ */
.news-section {
  background: #ffffff;
  padding: 64px 0 72px;
  border-top: 1px solid #e8e8e8;
}

.sec-label-block {
  margin-bottom: 1.5rem;
}
.sec-label-en {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: block;
}
.sec-label-jp {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  margin: 0;
}
/* NEWS section label overrides (white bg) */
.sec-label-jp--news {
  color: var(--text);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-item {
  display: flex;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--text-sub);
  align-items: baseline;
}
.news-item:first-child {
  border-top: 1px solid var(--text-sub);
}
.news-date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.04em;
  min-width: 88px;
}
.news-link {
  font-size: 0.86rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.2s;
}
.news-link:hover {
  color: var(--blue);
}

.btn-dark-outlined {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 4.6rem;
  border: 1px solid var(--blue);
  color: var(--blue);
  border-radius: 16px;
  padding: 0.5rem 1.6rem;
  width: 320px;
  max-width: 100%;
  margin: auto;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
  text-align: center;
}
.btn-dark-outlined:hover {
  background: var(--blue);
  color: var(--white);
}
.btn-dark-outlined:hover .btn-icon-circle {
  background: var(--white);
  color: var(--blue);
}

.btn-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--blue);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  color: var(--white);
  transition:
    background 0.2s,
    color 0.2s;
}

/* ============================================================
   QUICK CTA（青グラデーション）
   ============================================================ */
.qcta-section {
  background: linear-gradient(to bottom, var(--qcta-top), var(--qcta-btm));
  padding: 64px 0;
}
.qcta-top {
  margin-bottom: 2.5rem;
}
.qcta-title {
  font-size: clamp(1.4rem, 1.7vw, 1.8rem);
  font-weight: 900;
  color: var(--blue);
  background: var(--white);
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.4em;
  line-height: 1.8;
  margin: 0;
}
.qcta-title-line {
  border-right: 1px solid var(--gray-sec);
}
.qcta-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
  margin: 0;
  font-weight: 500;
}
.qcta-btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  justify-content: center;
}
.qcta-btn {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 100px;
  padding: 0;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  /* max-width: 330px; */
  line-height: 2;
}
.qcta-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--blue);
}
.qcta-btn:hover .qcta-btn-icon {
  border-left-color: rgba(0, 53, 128, 0.3);
}
.qcta-btn-text {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0.65rem 0.75rem 0.65rem 2.5rem;
}
.qcta-btn-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0 1rem;
  font-size: 1rem;
  margin: 1.3rem 0;
}

/* ============================================================
   REASON（左75%グレー + 右25%ブルーのスプリット背景）
   ============================================================ */
.reason-section {
  background: linear-gradient(to right, var(--gray-sec) 75%, var(--blue) 75%);
  padding: 88px 0;
  margin-top: 100px;
  position: relative;
}
.reason-section:after {
  position: absolute;
  content: "";
  background-image: url(../images/toppage-new/bgimage-reason_90.png);
  display: block;
  width: 240px;
  height: 908px;
  right: 0px;
  top: -50px;
  background-size: contain;
  background-repeat: no-repeat;
  max-width: 100%;
}
.reason-section .row {
  width: 100%;
}
.reason-heading {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.reason-heading-desc {
  font-size: 0.96rem;
  color: var(--white);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.reason-label-en {
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--blue);
  font-weight: 700;
  margin: 0;
}
.reason-hd-row {
  gap: 3rem;
}
.reason-hd-left {
  flex: 0 0 auto;
  width: 400px;
}
.reason-hd-right {
  flex: 1;
  min-width: 0;
}

.reason-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 1100px;
  max-width: 100%;
}

.reason-card {
  display: flex;
  box-shadow: 4px 4px 0px #a2aeb1;

  position: relative;
}
.reason-card-left {
  background: var(--charcoal);
  padding: 1.5rem 1.25rem;
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.reason-no {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--text);
  background: var(--gray-sec);
  font-weight: 700;
  padding: 0px 8px;
  width: 115px;
}

.reason-card-left h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.5;
  margin: 0;
}
.reason-card-right {
  background: #fff;
  padding: 1.5rem 2.5rem;
  flex: 1;
  display: flex;
  align-items: center;
  width: 780px;
}
.reason-card-right p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin: 0;
}

/* ============================================================
   SERVICE
   ============================================================ */
.service-section {
  background: var(--blue);
  padding: 88px 0;
  overflow: hidden;
  position: relative; /* JS スケール用 */
}
.service-section:after {
  position: absolute;
  content: "";
  background-image: url(../images/toppage-new/bgimage-service.png);
  display: block;
  height: 195px;
  width: 1050px;
  left: 20px;
  bottom: 120px;
  background-size: contain;
  background-repeat: no-repeat;
  max-width: 100%;
}
.service-sp-head {
  display: none;
}
.service-section .service-container {
  display: block;
  width: 1540px;
  height: 1016px;
  border: 1px solid var(--gray-sec);
  padding-top: 251px;
}
.service-head {
  text-align: center;
  margin-bottom: 3rem;
}
.service-label {
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: block;
}
.service-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.si-top-left {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
  margin-right: -239px;
  margin-top: -277px;
  max-width: 460px;
}
.si-top-right {
  grid-column: 3;
  grid-row: 1;
  margin-top: -330px;
  margin-left: -161px;
}
.service-center {
  grid-column: 2;
  grid-row: 1/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}
.si-mid-left {
  grid-column: 1;
  grid-row: 2;
  margin-top: 30px;
  margin-right: -71px;
  text-align: left;
  width: 390px;
}
.si-mid-right {
  grid-column: 3;
  grid-row: 2;
  margin-top: 2px;
  margin-left: 19px;
  width: 500px;
}
.si-bottom {
  grid-column: 1 / -1;
  grid-row: 3;
  left: 408px;
  top: 50px;
  max-width: 400px;
}
.si-top-left,
.si-top-right,
.si-mid-left,
.si-mid-right,
.si-bottom {
  position: relative;
}
.si-top-left:after {
  width: 770px;
  height: 490px;
  right: -42px;
  position: absolute;
  bottom: -235px;
  content: "";
  background-image: url(../images/toppage-new/service-area-4.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
}
.si-top-right:after {
  width: 770px;
  height: 490px;
  left: -73px;
  position: absolute;
  bottom: -275px;
  content: "";
  background-image: url(../images/toppage-new/service-area.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
}
.si-mid-left:after {
  width: 770px;
  height: 900px;
  right: -210px;
  position: absolute;
  top: -303px;
  content: "";
  /* background-image: url(../images/toppage-new/service-area-3.png); */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
}
.si-mid-right:after {
  width: 770px;
  height: 900px;
  left: -253px;
  position: absolute;
  top: -315px;
  content: "";
  /* background-image: url(../images/toppage-new/service-area-1.png); */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left;
}
.si-bottom:after {
  width: 1260px;
  height: 880px;
  left: -438px;
  position: absolute;
  bottom: -266px;
  content: "";
  background-image: url(../images/toppage-new/service-area-2.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
}

.service-center-ring {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  flex-shrink: 0;
  margin-left: 50px;
}
.service-center-ring span {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  display: block;
}
.service-center-sub {
  font-size: 1.2rem !important;
  color: var(--blue) !important;
  font-weight: 400 !important;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

/* .service-item { max-width: 300px; } */
.si-top-left,
.si-mid-left {
  margin-left: auto;
}

/* PC: si-head は通常ブロック、service-no は非表示 */
.si-head {
  display: block;
}
.service-no {
  display: none;
}

.service-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
}
.service-item p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin-bottom: 0.6rem;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.service-tags span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--blue);
  border-radius: 16px;
  padding: 2px 8px;
  font-size: 0.68rem;
  background: var(--white);
}

/* ============================================================
   CASE（左75%グレー + 右25%ブルーのスプリット背景）
   ============================================================ */
.case-section {
  position: relative;
  background: linear-gradient(to right, var(--gray-sec) 80%, var(--blue) 80%);
  padding: 88px 0 72px;
}
.case-section:after {
  position: absolute;
  content: "";
  background-image: url(../images/toppage-new/bgimage-case_90.png);
  display: block;
  width: 210px;
  height: 558px;
  right: 0px;
  bottom: -80px;
  background-size: contain;
  background-repeat: no-repeat;
  max-width: 100%;
}
.case-section .row {
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.case-section .row .col-md-4 {
  width: 350px;
  padding: 0;
}
.case-head {
  margin-bottom: 2.5rem;
}
.case-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--blue);
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
}
.case-title-main {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.case-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0;
}

.case-card {
  background: #fff;
  padding: 1.5rem;
  height: 100%;
  width: 350px;
  display: flex;
  flex-direction: column;
}
.case-card-logo-wrap {
  height: 120px;
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  justify-content: center;
  border-bottom: 1px solid var(--gray-sec);
  margin: 0 -1.5rem;
  padding: 0 0 1.5rem;
}
.case-card-logo-wrap img {
  object-fit: contain;
  max-width: 180px;
  width: 180px;
  min-height: 50px;
  max-height: 70px;
}
.case-logo-text {
  font-size: 1rem;
  font-weight: 800;
  color: #444;
}
.case-tag {
  display: inline-block;
  border: 1px solid var(--blue);
  color: var(--blue);
  border-radius: 16px;
  padding: 4px 16px;
  margin: 1.5rem 0;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  align-self: flex-start;
}
.case-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.case-card-body {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.75;
  flex-grow: 1;
  margin-bottom: 0.75rem;
}
.case-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1.5px solid var(--blue);
  border-radius: 16px;
  padding: 0.55rem 1.5rem 0.55rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  width: 100%;
  transition:
    background 0.2s,
    color 0.2s;
}
.case-card-link:hover {
  background: var(--blue);
  color: var(--white);
}
.case-card-link:hover .case-card-link-arrow {
  background: var(--white);
  color: var(--blue);
}
.case-card-link-arrow {
  position: absolute;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--blue);
  border-radius: 50%;
  color: var(--white);
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-gray-outlined {
  display: block;
  border: 1px solid var(--white);
  color: var(--white);
  padding: 0.55rem 1.75rem;
  margin: auto;
  font-size: 0.86rem;
  font-weight: 600;
  width: 320px;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
  background: var(--blue);
}
.btn-gray-outlined:hover {
  background: var(--blue);
  color: #fff;
}

/* ============================================================
   CLIENT LOGOS（上部ブルー帯 + 下部白）
   ============================================================ */
.clients-section {
  margin: 80px 0;
}

.clients-heading {
  background: var(--blue);
  padding: 36px 0;
  text-align: center;
}
.clients-title {
  font-size: 1.9rem;
  color: #fff;
  letter-spacing: 0em;
  margin: 0;
  font-weight: 600;
}

.clients-logos {
  background: #ffffff;
  padding: 40px 0 48px;
}
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: center;
}
.clients-grid img {
  height: 60px;
  width: 120px;
}
.client-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  background: #fff;
  padding: 88px 0;
}
.sec-label-en--dark {
  color: var(--blue);
}
.sec-label-jp--dark {
  color: var(--text);
}

.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid #e0e0e0;
}
.faq-q {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-jp);
  transition: opacity 0.2s;
}
.faq-q:hover {
  opacity: 0.75;
}
.faq-q-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.faq-q-text {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.faq-q-plus {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: #aaa;
  line-height: 1;
  transition: transform 0.3s;
}
.faq-q[aria-expanded="true"] .faq-q-plus {
  transform: rotate(45deg);
  color: var(--blue);
}

.faq-a {
  display: flex;
  gap: 0.75rem;
  padding: 0 0 1.25rem;
  font-size: 0.86rem;
  color: #555;
  line-height: 1.8;
}
.faq-a-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  background: var(--gray-sec);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.faq-a p {
  margin: 0;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.finalcta-section {
  background: linear-gradient(to bottom, var(--dark) 0%, #000 100%);
  padding: 96px 0 88px;
}
.finalcta-title {
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.finalcta-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.finalcta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-orange {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border-radius: 5px;
  padding: 0.8rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-orange:hover {
  opacity: 0.85;
  color: #fff;
}
.btn-ghost {
  display: inline-block;
  border: 1px solid var(--white);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 5px;
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  background: var(--dark);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ============================================================
   CONTACT（白背景）
   ============================================================ */
.contact-section {
  background: #ffffff;
  padding: 60px 0;
  border-top: 1px solid #e0e0e0;
}
.contact-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.contact-addr {
  font-size: 0.84rem;
  color: var(--text-sub);
  font-style: normal;
  line-height: 1.8;
}
.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 1.25rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  transition: opacity 0.2s;
  min-height: 80px;
}
.btn-contact:hover {
  opacity: 0.85;
  color: #fff;
}

/* ============================================================
   FOOTER（白背景 + テールコピーバー）
   ============================================================ */
#site-footer {
  background: #ffffff;
}

.footer-inner {
  padding: 2rem 0;
  border-top: 1px solid #e0e0e0;
}
.footer-inner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.footer-nav a {
  font-size: 0.8rem;
  color: #444;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-nav a:hover {
  color: var(--blue);
}

.footer-sns {
  display: flex;
  gap: 0.75rem;
}
.footer-sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-sns-link:hover {
  opacity: 0.8;
}
.footer-sns-link svg {
  display: block;
}

.footer-sns-instagram {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}
.footer-sns-x {
  background: #000000;
}
.footer-sns-facebook {
  background: #1877f2;
}

.footer-copy {
  background: var(--copy-blue);
  padding: 12px 0;
}
.footer-copy p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- タブレット（〜992px） ---- */
@media (max-width: 991.98px) {
  /* SP ヘッダー: 青ボーダーに変更、グレーサブナビ非表示 */
  #site-header {
    border-bottom: 2px solid var(--blue);
  }
  .hd-sub-nav {
    display: none;
  }

  /* ハンバーガー表示 */
  .hd-toggle {
    display: flex;
  }

  /* FV オフセット: SP はサブナビなし分を削減 */
  .fv-section {
    padding-top: 64px;
  }

  /* ハンバーガー → × アニメーション */
  .hd-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hd-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hd-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* PC nav: SP では完全非表示 */
  .hd-nav {
    display: none !important;
  }

  /* SP nav */
  .hd-nav-sp {
    display: none;
    background: #fff;
    border-top: 1px solid #e8e8e8;
  }
  .hd-nav-sp.open {
    display: block;
  }
  .hd-nav-sp > ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .hd-nav-sp > ul > li {
    border-bottom: 1px solid #e8e8e8;
  }
  .hd-nav-sp > ul > li > a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
  }
  .hd-nav-sp > ul > li > a:hover {
    background: #f5f7fa;
  }

  /* 記事アコーディオンボタン */
  .hd-nav-sp-acc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    font-family: var(--font-jp);
    text-align: left;
  }
  .hd-nav-sp-acc:hover {
    background: #f5f7fa;
  }
  .hd-nav-sp-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 0.5rem;
  }
  .hd-nav-sp-acc[aria-expanded="true"] .hd-nav-sp-arrow {
    transform: rotate(-135deg);
  }

  /* 記事サブメニュー */
  .hd-nav-sp-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f5f7fa;
  }
  .hd-nav-sp-sub li {
    border-top: 1px solid #e8e8e8;
  }
  .hd-nav-sp-sub li a {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
  }
  .hd-nav-sp-sub li a:hover {
    background: #eef1f5;
  }

  /* REASON 固定幅リセット */
  .reason-heading {
    width: 100%;
  }
  .reason-heading-desc {
    width: 100%;
  }
  .reason-list {
    width: 100%;
  }
  .reason-card-right {
    width: auto;
  }
  .reason-hd-left,
  .reason-hd-right {
    width: 100%;
    flex: none;
  }
  .reason-section {
    margin-top: 40px;
  }
  .reason-section:after {
    background-image: url(../images/toppage-new/bgimage-reason_sp.png);
    display: block;
    width: 340px;
    height: 68px;
    left: 5px;
    top: -33px;
    max-width: calc(100% - 5px);
  }

  .service-section:after {
    background-image: url(../images/toppage-new/bgimage-service_sp.png);
    display: block;
    width: 340px;
    height: 68px;
    left: 5px;
    top: 5px;
    max-width: calc(100% - 5px);
  }

  .case-section:after {
    background-image: url(../images/toppage-new/bgimage-case_sp.png);
    display: block;
    width: 340px;
    height: 68px;
    left: 5px;
    top: -33px;
    max-width: calc(100% - 5px);
  }
  /* CASE カード幅リセット */
  .case-section .row .col-md-4 {
    width: 100%;
    max-width: 400px;
  }
  .case-card {
    width: 100%;
  }

  .qcta-title-line {
    border-right: 0;
    border-bottom: 1px solid var(--gray-sec);
    padding-bottom: 2rem;
  }
  .qcta-btns {
    flex-direction: column;
    flex-wrap: wrap;
  }
  .qcta-btn {
    flex: none;
    width: 100%;
    height: 72px;
  }

  .clients-section {
    margin: 0 0 80px;
  }
  .clients-logos {
    background: #ffffff;
    margin: 0 0.75rem;
  }

  /* footer */
  .footer-inner .container {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-nav {
    margin-bottom: 1.5rem;
  }
}

/* ---- スマートフォン（〜768px） ---- */
@media (max-width: 767.98px) {
  /* PC専用改行を非表示 */
  br.pc {
    display: none;
  }
  .fv-link-l1,
  .fv-link-l2 {
    display: inline-block;
    white-space: nowrap;
  }

  /* FV */
  .fv-cards {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* NEWS */
  .news-item {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0;
  }

  /* QUICK CTA */
  .qcta-title {
    font-size: 1.4rem;
  }
  .qcta-title-line {
    border-right: 0;
    border-bottom: 1px solid var(--gray-sec);
    padding-bottom: 2rem;
  }

  .qcta-btns {
    flex-direction: column;
    flex-wrap: wrap;
  }
  .qcta-btn {
    flex: none;
    width: 100%;
  }

  /* REASON */
  .reason-heading {
    width: 100%;
    font-size: 1.35rem;
  }
  .reason-heading-desc {
    width: 100%;
    font-size: 0.88rem;
  }
  .reason-list {
    width: 100%;
  }
  .reason-card {
    flex-direction: column;
  }
  .reason-card-left {
    width: 100%;
  }
  .reason-card-right {
    width: 100%;
    padding: 1.25rem;
  }

  /* SERVICE: service-container をリセット（selector 修正） */
  .service-section .service-container {
    width: 100% !important;
    height: auto !important;
    padding-top: 0 !important;
    border: none !important;
  }

  /* スポーク線画像を非表示 */
  .si-top-left::after,
  .si-top-right::after,
  .si-mid-left::after,
  .si-mid-right::after,
  .si-bottom::after {
    display: none !important;
  }
  .service-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2rem;
    max-width: 540px;
    width: 100%;
    padding: 0 0.75rem;
    margin: 0 auto;
  }
  .si-top-left,
  .si-top-right,
  .si-mid-left,
  .si-mid-right,
  .si-bottom {
    grid-column: 1 !important;
    grid-row: auto !important;
    text-align: left !important;
    max-width: 100% !important;
    width: auto !important;
    margin: 0 !important;
    left: auto !important;
    top: auto !important;
  }
  .service-center {
    display: none;
  }
  .service-sp-head {
    display: block;
    max-width: 540px;
    padding: 1.25rem 1.25rem 1.5rem;
    margin: 0 auto;
  }

  /* SP: 2トーンカード */
  .service-item {
    background: #fff;
    border: 1.5px solid var(--blue);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 4px 0px #a2aeb1;
  }
  .si-head {
    display: block;
    background: var(--dark);
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .service-no {
    display: inline-block;
    background: var(--gray-sec);
    color: var(--dark);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0 8px;
    margin-bottom: 0.8rem;
  }
  .service-item h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
  }
  .service-item p {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.75;
    padding: 1.25rem 1.25rem 0;
    margin: 0;
  }
  .service-item .service-tags {
    padding: 0.75rem 1.25rem 1.25rem;
  }
  .service-tags span {
    border-color: var(--blue);
    color: var(--blue);
  }

  /* CASE */
  .case-section .row .col-md-4 {
    width: 100%;
    max-width: 540px;
    padding: 0 0.75rem;
    margin: 0 auto;
  }
  .case-card {
    width: 100%;
  }
  /* .case-section:after {
    display: none;
  } */

  /* FINAL CTA */
  .finalcta-btns {
    flex-direction: column;
    align-items: center;
  }
  .btn-orange,
  .btn-ghost {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* セクション上下パディング縮小 */
  .reason-section,
  .service-section,
  .case-section,
  .faq-section,
  .finalcta-section {
    padding: 56px 0;
  }

  /* スプリット背景はモバイルで無効化 */
  .reason-section,
  .case-section {
    background: linear-gradient(to right, var(--gray-sec) 94%, var(--blue) 94%);
  }
  .pc {
    display: none;
  }
}

/* フロントページの旧FV: .home クラスがない preview でも height を auto に */
.page-template-template-frontpage .top-video,
.page-template-template-frontpage .main-visual,
.page-template-template-new-frontpage .top-video,
.page-template-template-new-frontpage .main-visual,
.page-template-template-frontpage .pickup,
.page-template-template-new-frontpage .pickup,
.page-template-template-frontpage .pickup ul,
.page-template-template-new-frontpage .pickup ul {
    height: auto; 
}
.page-template-template-frontpage .pickup ul,
.page-template-template-new-frontpage .pickup ul {
    gap: 24px;
}

/* WordPress 管理バー表示時のヘッダー位置調整 */
.admin-bar #site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar #site-header {
    top: 46px;
  }
}
