/* ===== Color Variables ===== */
:root {
  --color-accent: #ED712F;
  --color-accent-rgb: 237, 113, 47;
  --color-bg: #FFFFFF;
  --color-text: #3A3A3A;
  --color-white: #FFF;
  --color-accent-light: #F5945F;
  --color-accent-pale: #FDF1E5;
  --border-warm: #F3DECB;
  --text-muted: #767676;
  --border: #E7E1DA;
  --color-heading: #14100C;
}

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

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

html {
  /* iOS Safari は body 側の overflow-x だけだと無視することがある */
  overflow-x: clip;
}

body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 40px;
  overflow-x: clip;
}

.wrapper {
  width: 90%;
  max-width: 1100px;
  padding-top: 100px;
  margin: auto;
}

a {
  text-decoration: none;
  color: var(--color-text);
}

p {
  font-size: 14px;
  line-height: 40px;
  letter-spacing: 0.8px;
}

h2,
.hero-eyebrow,
.service-band-left .band-title,
.str-num,
.plan-price,
.works-ex-ttl,
.flow-num,
.faq-q {
  font-family: "Oswald", sans-serif;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  height: fit-content;
  padding: 20px;
  position: sticky;
  top: 0;
  background-color: var(--color-bg);
  z-index: 100;
}

.header.gacha {
  background-color: rgba(255, 255, 255, .25);
  backdrop-filter: blur(10px);
}

.logo {
  width: clamp(9.375rem, 8.523rem + 3.636vw, 11.25rem);
  object-fit: contain;
  position: relative;
}

.ham-btn {
  display: none;
}

/* ===== Nav ===== */
.gacha-nav {
  font-size: 12px;
  display: flex;
  gap: 20px;
}

.gacha-nav a:hover {
  color: var(--color-accent);
}

/* ===== Buttons ===== */
.view-more {
  width: 210px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--color-accent);
  padding: 0px 30px;
  transition: .5s;
  font-size: 11px;

  letter-spacing: .25em;
  border: var(--color-accent) 1px solid;
  border-radius: 6px;
}

.view-more-text {
  display: inline-block;
  color: var(--color-white);
}

.view-more-text::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--color-white);
  border-right: 0;
  margin-left: 10px;
}

.view-more:hover {
  background-color: var(--color-white);
  border: var(--color-accent) 1px solid;
  box-shadow: rgba(var(--color-accent-rgb), .4) 0px 0px 5px;
}

.view-more:hover .view-more-text {
  color: var(--color-accent);
}

.view-more:hover .view-more-text::after {
  border-left: 5px solid var(--color-accent);
}

.view-more.reverse {
  background-color: var(--color-bg);
  border: var(--color-accent) 1px solid;
}

.view-more.reverse:hover {
  background-color: var(--color-accent);
}

.view-more-text.reverse {
  color: var(--color-accent);
}

.view-more.reverse:hover .view-more-text {
  color: var(--color-white);
}

.view-more-text.reverse::after {
  border-left: 5px solid var(--color-accent);
}

.view-more.reverse:hover .view-more-text::after {
  border-left: 5px solid var(--color-white);
}

.cta-download {
  display: flex;
  justify-content: center;
  margin-top: 26px;
  margin-bottom: 50px;
}

.cta-download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--color-accent-rgb), .4);
  padding-bottom: 3px;
  transition: color .3s ease, border-color .3s ease;
}

.cta-download-link svg {
  flex-shrink: 0;
}

@media (hover: hover) {
  .cta-download-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
  }
}

/* ===== Footer ===== */
.gacha-footer {
  /* padding-top: 50px; */
  width: 90%;
  margin: auto;
}

.gacha-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 0 26px;
  border-top: rgba(0, 0, 0, .15) 1px solid;
}

.gacha-footer-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.gacha-footer-site-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.12em;
  border: 0.5px solid rgba(0, 0, 0, .25);
  padding: 5px 22px;
  text-decoration: none;
  transition: .3s;
}

.gacha-footer-site-btn:hover {
  color: var(--color-accent);
  border: var(--color-accent) 1px solid;
  box-shadow: rgba(var(--color-accent-rgb), .4) 0px 0px 5px;
}

.gacha-footer-site-btn svg {
  transition: .3s;
}

.gacha-footer-site-btn:hover svg {
  stroke: var(--color-accent);
}

.gacha-footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
}

.gacha-footer-info .gacha-footer-logo {
  margin-bottom: 4px;
}

.gacha-footer-company {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.gacha-footer-address {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, .6);
}

.gacha-footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.gacha-footer-contact {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, .6);
}

.gacha-footer-mail {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  text-decoration: none;
  transition: .3s;
}

.gacha-footer-mail:hover {
  text-decoration: underline;
}

.gacha-footer-bottom {
  padding: 14px 0;
  text-align: center;
}

.gacha-footer-bottom small {
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* ===== Section Base ===== */
.sec-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 0.7rem;
}

.sec-title {
  word-break: auto-phrase;
  font-size: clamp(1.8rem, 3.9vw, 2.9rem);
  font-weight: 900;
  color: var(--color-heading);
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.sec-desc {
  font-size: 15px;
  color: var(--color-text);
  max-width: 560px;
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.sec-desc--wide {
  max-width: none;
}

/* ===== Hero ===== */
.hero {
  --pdf-ink: var(--color-heading);
  --pdf-body: #4A4038;
  --header-h: 60px;

  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: clamp(28px, 5vh, 68px) 2.5rem clamp(34px, 5vh, 60px);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 2rem 3rem;
  align-items: center;
}

/* --- 左：コピー --- */
.hero-copy {
  min-width: 0;
}

/* スクロール連動カプセル */
.scroll-capsule {
  position: fixed;
  right: 20px;
  width: 30px;
  z-index: 99;
  pointer-events: none;
  opacity: 0.8;
  will-change: transform;
}

@media (max-width: 768px) {
  .scroll-capsule {
    width: 22px;
    right: 10px;
  }
}

.hero-eyebrow {
  display: inline-block;
  font-size: clamp(10px, 1.5vh, 12px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: clamp(0.7rem, 2vh, 1.7rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.hero-eyebrow::before {
  content: none;
}

.hero-title {
  font-size: clamp(1.9rem, min(4.3vw, 6.3vh), 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--pdf-ink);
  margin-bottom: clamp(0.9rem, 2.4vh, 1.9rem);
}

.hero-title span {
  display: block;
}

.hero-title .black {
  color: var(--pdf-ink);
}

.hero-title .accent {
  color: var(--color-accent);
}

.hero-sub {
  font-size: clamp(1rem, min(1.7vw, 2.7vh), 1.5rem);
  font-weight: 500;
  color: var(--pdf-ink);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin-bottom: clamp(0.7rem, 1.9vh, 1.4rem);
}

.hero-sub::before {
  content: none;
}

.hero-sub>span {
  display: block;
}

.hero-sub .accent {
  color: var(--color-accent);
  font-weight: 700;
}

.hero-desc {
  font-size: clamp(12.5px, 1.85vh, 14px);
  color: var(--pdf-body);
  max-width: 40em;
  margin: 0 0 clamp(1.1rem, 2.8vh, 2rem);
  line-height: 1.9;
  word-break: auto-phrase;
}

.hero-actions.fu.d5 {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 50px;
}

/* ===== 無料相談フォーム ===== */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.cf-wide {
  grid-column: 1 / -1;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.cf-req {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: 1px;
}

.cf-input {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
}

.cf-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), .15);
}

.cf-textarea {
  resize: vertical;
  min-height: 120px;
}

/* スパム対策の隠しフィールド */
.cf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cf-error {
  color: #c0392b;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 12px;
  text-align: center;
}

.cf-submit {
  margin: 22px auto 0;
  font-family: inherit;
  line-height: 42px;
}

.cf-done {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
  margin: 34px 0;
}

@media (max-width: 768px) {
  .cf-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ヒーロー内だけ左寄せ・大きめのボタン */
.hero .hero-actions.fu.d5 {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: clamp(1.1rem, 2.8vh, 2rem);
}

.hero .view-more {
  width: auto;
  min-width: clamp(160px, 15vw, 210px);
  padding: 0 26px;
  line-height: clamp(44px, 6.2vh, 56px);
  font-size: 12px;
}

/* --- タグ --- */
.hero-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(7px, 1.2vh, 11px);
  margin-top: 0;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: clamp(7px, 1.1vh, 11px) clamp(9px, 1.4vh, 14px);
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  background: var(--color-white);
  color: var(--pdf-ink);
  font-size: clamp(10.5px, 1.55vh, 12.5px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.hero-tag-icon {
  width: clamp(15px, 2.2vh, 19px);
  height: clamp(15px, 2.2vh, 19px);
  flex-shrink: 0;
  color: var(--color-accent);
}

/* --- 右：スマホ＋カプセル --- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(300px, 70vh, 680px);
}

.hero-glow {
  position: absolute;
  inset: -14% -20%;
  background: radial-gradient(circle at 52% 48%,
      rgba(var(--color-accent-rgb), .15),
      rgba(var(--color-accent-rgb), .05) 40%,
      rgba(var(--color-accent-rgb), 0) 68%);
  z-index: 0;
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(115%, 74vh);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotate(-16deg) scaleX(.86);
  border: 1px solid rgba(var(--color-accent-rgb), .25);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

/* スマホのモック（画像） */
.hero-phone-img {
  position: relative;
  z-index: 2;
  height: clamp(300px, 70vh, 680px);
  width: auto;
  filter: drop-shadow(0 30px 55px rgba(60, 32, 8, .26));
  animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

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

/* 浮かぶカプセル */
.hero-ball {
  position: absolute;
  z-index: 3;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 16px 24px rgba(70, 40, 10, .2));
}

.hero-ball.b1 {
  width: clamp(44px, 8vh, 84px);
  top: 9%;
  left: 4%;
  transform: rotate(-20deg);
}

.hero-ball.b2 {
  width: clamp(62px, 11.5vh, 120px);
  top: 42%;
  left: -7%;
  transform: rotate(62deg);
}

.hero-ball.b3 {
  width: clamp(28px, 5vh, 52px);
  top: 1%;
  right: -3%;
  transform: rotate(32deg);
}

.hero-ball.b4 {
  width: clamp(46px, 8.4vh, 88px);
  top: 22%;
  right: -9%;
  transform: rotate(-24deg);
}

.hero-ball.b5 {
  width: clamp(36px, 6.4vh, 68px);
  top: 58%;
  right: -7%;
  transform: rotate(128deg);
}

.hero-ball.b6 {
  width: clamp(96px, 21vh, 250px);
  bottom: -16%;
  right: -14%;
  z-index: 4;
  transform: rotate(-12deg);
}

/* --- SCROLL --- */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(8px, 1.8vh, 22px);
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
  animation: scrollNudge 1.9s ease-in-out infinite;
}

@keyframes scrollNudge {

  0%,
  100% {
    transform: translateY(0);
    opacity: .75;
  }

  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

/* Hero: モバイルは縦積みに（769px以上はデスクトップと同じ2カラム） */
@media (max-width: 768px) {
  .hero {
    padding: clamp(28px, 4vh, 60px) 1.5rem clamp(24px, 3.4vh, 50px);
  }

  /* .hero-copy を透過させて、各要素を直接並べ替える */
  .hero-copy {
    display: contents;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hero-eyebrow {
    order: 1;
  }

  .hero-title {
    order: 2;
  }

  .hero-visual {
    order: 3;
    min-height: clamp(200px, 27vh, 380px);
    margin: 0 0 1.1rem;
  }

  .hero-sub {
    order: 4;
  }

  .hero-desc {
    order: 5;
  }

  .hero-desc {
    margin-bottom: clamp(0.9rem, 2.2vh, 1.6rem);
  }

  .hero .hero-actions.fu.d5 {
    order: 6;
    margin-bottom: clamp(0.9rem, 2.2vh, 1.6rem);
  }

  .hero .view-more {
    line-height: clamp(42px, 5vh, 52px);
  }

  .hero-tags {
    order: 7;
  }

  .hero-phone-img {
    height: clamp(200px, 27vh, 380px);
  }

  .hero-scroll {
    display: none;
  }
}

/* Hero: タブレット帯はデスクトップ2カラムのまま各サイズを縮小 */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    padding: clamp(28px, 4vh, 60px) 1.5rem clamp(24px, 3.4vh, 50px);
  }

  .hero-inner {
    gap: 1.5rem 2rem;
  }

  .hero-visual {
    min-height: clamp(300px, 48vh, 520px);
  }

  .hero-phone-img {
    height: clamp(260px, 42vh, 470px);
  }

  /* ボタンは潰して折り返さず、入らない時は行を分ける */
  .hero .hero-actions.fu.d5 {
    flex-wrap: wrap;
  }

  .hero .view-more {
    white-space: nowrap;
    min-width: 0;
    padding: 0 20px;
    font-size: 11px;
  }

  .hero-ball {
    filter: drop-shadow(0 10px 16px rgba(70, 40, 10, .18));
  }

  .hero-ball.b1 {
    width: clamp(32px, 5.5vh, 58px);
  }

  .hero-ball.b2 {
    width: clamp(44px, 8vh, 84px);
  }

  .hero-ball.b3 {
    width: clamp(20px, 3.6vh, 38px);
  }

  .hero-ball.b4 {
    width: clamp(34px, 6vh, 62px);
  }

  .hero-ball.b5 {
    width: clamp(26px, 4.6vh, 48px);
  }

  .hero-ball.b6 {
    width: clamp(76px, 14vh, 160px);
  }
}

/* ===== Service Band ===== */
.grid-band {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.service-band-left .band-title {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.band-check {
  list-style: none;
  margin-bottom: 1.5rem;
}

.band-check li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  padding: 5px 0;
  line-height: 1.5;
}

.band-check li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.service-band-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.band-card {
  border: none;
  border-radius: 18px;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  /* ネオモーフィズム: ほんのり凸面のグラデーション + 明暗2方向のソフトシャドウ */
  background: linear-gradient(145deg, #FFFFFF, #F4F4F4);
  box-shadow:
    7px 7px 16px rgba(0, 0, 0, .12),
    -7px -7px 16px rgba(255, 255, 255, .95);
}

.band-card-icon img {
  width: 150px;
  height: 100px;
  object-fit: contain;
}

/* ===== About ===== */
.check-list {
  list-style: none;
  margin-top: 1.5rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  padding: 9px 0;
  line-height: 1.6;
}

.check-list li::before {
  content: '';
  width: 11px;
  height: 11px;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 5px;
}

.qa-card {
  border: 1px solid var(--color-accent);
  background-color: rgba(255, 255, 255, .25);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.qa-q {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.qa-a {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.8;
}

/* ===== Strengths ===== */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.str-card {
  background: linear-gradient(145deg, #FFFFFF, #F4F4F4);
  border: none;
  border-radius: 18px;
  box-shadow:
    7px 7px 16px rgba(0, 0, 0, .12),
    -7px -7px 16px rgba(255, 255, 255, .95);
  padding: 1.5rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.str-num {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.str-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.str-desc {
  font-size: 14px;
  line-height: 1.8;
}

/* ===== Compare ===== */
.compare-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 580px;
}

.compare-table th {
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  background-color: rgba(255, 255, 255, .5);
  border: 1px solid var(--border);
  color: var(--color-text);
}

.compare-table th.ours {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  font-size: 16px;
}

.compare-table th.label-col {
  text-align: left;
}

.compare-table td {
  padding: 0.875rem 1.5rem;
  border: 1px solid var(--border);
  color: var(--color-text);
  text-align: center;
  vertical-align: middle;
  line-height: 1.5;
  background-color: rgba(255, 255, 255, .5);
}

.compare-table td.label {
  width: 250px;
  text-align: left;
  font-weight: 500;
  color: var(--color-text);
  background-color: rgba(255, 255, 255, .5);
}

.compare-table td.ours-col {
  background: var(--color-accent-pale);
  color: var(--color-text);
  font-weight: 500;
  font-size: 16px;
}

.icon-ok {
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 700;
}

.icon-ng {
  color: var(--red);
  font-size: 15px;
}

.icon-tri {
  color: var(--yellow);
  font-size: 13px;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.plan-card {
  background: linear-gradient(145deg, #FFFFFF, #F4F4F4);
  border: none;
  border-radius: 18px;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow:
    7px 7px 16px rgba(0, 0, 0, .12),
    -7px -7px 16px rgba(255, 255, 255, .95);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.plan-card:hover {
  box-shadow:
    9px 9px 20px rgba(0, 0, 0, .17),
    -7px -7px 16px rgba(255, 255, 255, .95);
}

.plan-card.featured {
  border: 3px solid var(--color-accent);
}

.plan-card.featured::before {
  content: '本運用の主力提案';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 22px;
  border-radius: 30px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.15rem;
}

.plan-target {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.5;
  margin-bottom: 1.1rem;
}

.plan-price {
  font-size: 2.6rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
  letter-spacing: -0.01em;
}

.plan-price .unit {
  font-size: 1.15rem;
  font-weight: 700;
}

.plan-card.featured .plan-price .num {
  color: var(--color-accent);
}

.plan-initial {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.4rem;
}

.plan-fee {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.5;
  margin-top: 0.2rem;
}

.no-break {
  display: inline-block;
}

.plan-tax-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.plan-features {
  flex: 1;
}

.plan-features::before {
  content: '';
  display: block;
  width: 56%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
  opacity: 0.8;
  margin: 1.2rem auto;
}

.plan-foot {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  color: var(--color-text);
  padding: 4px 0;
  line-height: 1.5;
}

.plan-feature::before {
  content: '·';
  color: var(--color-accent);
  font-size: 20px;
  line-height: 0.9;
  flex-shrink: 0;
}

.pricing-sub-title {
  margin-top: 3.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  border-left: 4px solid var(--color-accent);
  padding-left: 0.75rem;
  line-height: 1.3;
}

.buyout-grid {
  grid-template-columns: repeat(3, 1fr);
}

.buyout-grid .plan-card.featured::before {
  content: '買い切りのおすすめ';
}

/* ===== Function matrix ===== */
.func-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.func-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  background: var(--color-white);
  border-radius: 14px;
  overflow: hidden;
}

.func-table th {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  padding: 1rem 1.5rem;
}

.func-table th.area-col {
  text-align: center;
  width: 110px;
}

.func-table td {
  padding: 1rem 1.5rem;
  line-height: 1.7;
  color: var(--color-text);
}

.func-table tbody tr:nth-child(even) td {
  background: var(--color-accent-pale);
}

.func-table td.area {
  text-align: center;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.pricing-note .note-mark {
  color: var(--color-accent);
  font-weight: 700;
}

.note-ref {
  font-size: 0.65em;
  font-weight: 700;
  color: var(--color-accent);
  margin-left: 1px;
  white-space: nowrap;
}

.pricing-note {
  margin-top: 1.5rem;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 2;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--border-warm);
  border-radius: 6px;
}

/* ===== Works ===== */
.works-ex-ul {
  list-style-type: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  justify-items: center;
}

.works-ex-li {
  min-width: min(300px, 100%);
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform .35s, box-shadow .35s, border-color .35s;
}

.works-ex-li:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--color-accent-rgb), .5);
  box-shadow: 0 10px 24px rgba(var(--color-accent-rgb), .22);
}

.works-ex-li:hover .icon-c svg {
  transform: translateX(10px);
}

.works-ex-content {
  padding: 20px;
  background-color: var(--color-white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.works-ex-content p {
  line-height: 1.8;
}

.works-ex-ttl {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: var(--color-white);
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.works-ex-subttl {
  font-size: 16px;
  font-weight: 600;
}

.works-ex-link {
  color: var(--color-accent);
}

.works-ex-li:nth-child(1) .works-ex-ttl {
  background-image: linear-gradient(135deg, #1a2a4a, #2d4a7a);
}

.works-ex-li:nth-child(2) .works-ex-ttl {
  background-image: linear-gradient(135deg, #2a1a0a, #5a3a10);
}

/* デモガチャのカードだけ塗りつぶしではなく線のみ */
.works-ex-li:nth-child(3) .works-ex-ttl {
  background-image: none;
  border: 2px solid #f02323;
  color: #f02323;
  border-radius: 10px;
  margin: 12px 12px 0;
  height: 86px;
}

.works-small {
  color: var(--color-accent);
  background-color: rgba(var(--color-accent-rgb), .25);
  font-size: 12px;
  padding: 2px 15px;
  border-radius: 10px;
  border: var(--color-accent) 1px solid;
}

.icon-c {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  text-decoration: none;
}

.icon-c svg {
  width: 13px;
  height: 13px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.2;
  transition: transform 0.3s;
}

.works-ex-link-box {
  display: flex;
  gap: 5px;
}

/* ===== Flow ===== */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
}

.flow-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 8.33%;
  right: 8.33%;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--color-accent), var(--border));
}

.flow-step {
  text-align: center;
  padding: 0 0.6rem;
  position: relative;
}

.flow-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(var(--color-accent-rgb), 0.3);
}

.flow-num {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.flow-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.flow-desc {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.faq-q::before {
  content: 'Q';
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.faq-a {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.9;
  padding-left: 32px;
}

/* ===== CTA ===== */
.cta-sec {
  padding: 100px 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-sec::before {
  content: 'CONTACT';
  position: absolute;
  font-size: 10rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.05);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}

.cta-title {
  word-break: auto-phrase;
  font-size: clamp(1.8rem, 3.9vw, 2.9rem);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.cta-sub {
  font-size: 14px;
  margin-bottom: 2.5rem;
  line-height: 1.9;
}

/* ===== Animation ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fu {
  opacity: 0;
  animation: fadeUp 0.55s ease forwards;
}

.d1 {
  animation-delay: 0.08s;
}

.d2 {
  animation-delay: 0.2s;
}

.d3 {
  animation-delay: 0.32s;
}

.d4 {
  animation-delay: 0.44s;
}

.d5 {
  animation-delay: 0.56s;
}

/* ===== カード類のスクロール出現（スタッガー） ===== */
.sr-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sr-item.sr-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .sr-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Responsive: 1200px ===== */
@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .works-ex-ul {
    grid-template-columns: 1fr 1fr;
  }

  /* ハンバーガーボタン */
  .ham-btn {
    display: block;
    width: 40px;
    height: 40px;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 999;
    background-color: transparent;
    border: none;
    cursor: pointer;
  }

  .ham-line {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--color-accent);
    margin: auto;
    position: relative;
    transition: all 0.3s ease-in-out;
  }

  .ham-line::before,
  .ham-line::after {
    display: block;
    content: '';
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: var(--color-accent);
    position: absolute;
    transition: inherit;
  }

  .ham-line::before {
    top: -8px;
  }

  .ham-line::after {
    top: 8px;
  }

  .ham-btn.open .ham-line {
    rotate: 45deg;
    background-color: #fff;
  }

  .ham-btn.open .ham-line::before {
    rotate: -90deg;
    top: 0;
    background-color: #fff;
  }

  .ham-btn.open .ham-line::after {
    display: none;
  }

  /* ドロワーナビ */
  .gacha-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 80px 30px 30px;
    background-color: rgba(85, 85, 85, 0.92);
    width: 70vw;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -100%;
    transition: right 0.4s ease-in-out;
    z-index: 3;
  }

  .gacha-nav.open {
    right: 0;
  }

  .gacha-nav .nav-item {
    color: #fff;
  }
}

/* ===== Responsive: 860px ===== */
@media (max-width: 860px) {
  section {
    padding: 70px 1.25rem;
  }

  .strengths-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .flow-grid::before {
    display: none;
  }

  .works-ex-ul {
    grid-template-columns: 1fr;

  }
}

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
  .wrapper {
    width: 85%;
    margin: auto;
    overflow: hidden;
  }

  .header {
    padding: 0;
    width: 100%;
    height: 60px;
  }

  .logo {
    margin: 15px 10px 15px 20px;
  }



  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    border: 0;
  }

  .hero {
    padding: clamp(22px, 3.7vh, 46px) 1.25rem clamp(16px, 2.4vh, 36px);
  }

  /* 見出しとスマホ画像を横並びに（内容全体は中央寄せで間延びを防ぐ） */
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0;
    column-gap: 8px;
    max-width: 500px;
  }

  .hero-eyebrow {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .hero-title {
    grid-row: 2;
    grid-column: 1;
    align-self: center;
    margin-bottom: 0;
  }

  .hero-visual {
    grid-row: 2;
    grid-column: 2;
    min-height: 0;
    margin: 0 0 clamp(0.7rem, 1.9vh, 1.5rem);
  }

  .hero-sub {
    grid-row: 3;
    grid-column: 1 / -1;
  }

  .hero-desc {
    grid-row: 4;
    grid-column: 1 / -1;
  }

  .hero .hero-actions.fu.d5 {
    grid-row: 5;
    grid-column: 1 / -1;
  }

  .hero-tags {
    grid-row: 6;
    grid-column: 1 / -1;
  }

  /* 背景の装飾はモバイルでは非表示 */
  .hero-glow,
  .hero-orbit,
  .hero-ball {
    display: none;
  }

  /* 小さめのカプセルだけスマホの周りに表示 */
  .hero-ball.b1,
  .hero-ball.b3,
  .hero-ball.b6 {
    display: block;
    z-index: 1;
    filter: drop-shadow(0 6px 10px rgba(70, 40, 10, .18));
  }

  .hero-ball.b1 {
    width: 26px;
    top: -4%;
    left: -26%;
  }

  .hero-ball.b3 {
    width: 20px;
    top: 12%;
    right: -18%;
  }

  .hero-ball.b6 {
    width: 44px;
    bottom: -7%;
    right: auto;
    left: -34%;
  }
}

@media (max-width: 768px) {
  .hero-eyebrow {
    font-size: 10px;
    margin-bottom: clamp(0.5rem, 1.3vh, 1rem);
  }

  .hero-title {
    font-size: clamp(1.45rem, min(7.2vw, 4.8vh), 2.3rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
    /* 長い行はスマホ画像に重ねてでも1行で見せる */
    position: relative;
    z-index: 3;
  }

  .hero-title span {
    white-space: nowrap;
  }

  .hero-sub {
    font-size: clamp(0.92rem, min(4.4vw, 2.1vh), 1.15rem);
    line-height: 1.55;
    margin-bottom: clamp(0.4rem, 1.1vh, 0.9rem);
  }

  .hero-desc {
    font-size: clamp(11.5px, 1.6vh, 13px);
    line-height: 1.65;
    margin-bottom: clamp(0.5rem, 1.4vh, 1.2rem);
  }


  .hero-phone-img {
    height: 200px;
  }

  .hero-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: clamp(0.6rem, 1.6vh, 1.3rem);
  }

  .hero-tag {
    gap: 6px;
    padding: clamp(5px, 0.9vh, 9px) 9px;
    font-size: 10.5px;
    line-height: 1.3;
    border-radius: 8px;
  }

  .hero-tag-icon {
    width: 14px;
    height: 14px;
  }

  .grid-band,
  .pricing-grid,
  .flow-grid,
  .works-ex-ul {
    grid-template-columns: 1fr;
  }

  .service-band-left .view-more {
    margin: auto;
  }

  .service-band-right {
    grid-template-columns: 1fr;
  }

  .hero-actions.fu.d5 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }

  .hero .hero-actions.fu.d5 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-items: stretch;
    align-items: start;
  }

  .hero .view-more {
    width: 100%;
    min-width: 0;
    padding: 0 8px;
    font-size: 10px;
    letter-spacing: 0.1em;
    line-height: 42px;
    white-space: nowrap;
  }

  .gacha-footer-top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 28px 0 24px;
  }

  .gacha-footer-logo {
    align-items: center;
  }

  .gacha-footer-info {
    align-items: center;
    text-align: center;
  }

  .gacha-footer-contact-item {
    align-items: center;
    text-align: center;
  }
}
/* ===== Compare table: mobile card layout ===== */
@media (max-width: 768px) {
  .compare-table {
    min-width: 0;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table tr {
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  }

  .compare-table td {
    border: none;
    text-align: left;
    padding: 0.7rem 1rem;
  }

  .compare-table td.label {
    font-weight: 700;
    border-bottom: 1px solid var(--border);
  }

  .compare-table td.ours-col {
    font-size: 14px;
  }

  .compare-table td.ours-col::before,
  .compare-table td:not(.label):not(.ours-col)::before {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.7;
    padding: 0 7px;
    margin-right: 8px;
    border-radius: 4px;
    vertical-align: middle;
  }

  .compare-table td.ours-col::before {
    content: 'iサポート';
    color: #fff;
    background: var(--color-accent);
  }

  .compare-table td:not(.label):not(.ours-col)::before {
    content: '一般的なサービス';
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: var(--color-white);
  }
}

/* ===== About: steps & feature cards ===== */
.about-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 2rem;
}

.step-card {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  text-align: center;
}

.step-num {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
  background: var(--color-accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 13px;
  line-height: 1.9;
}

.about-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.feat-card {
  background: linear-gradient(145deg, #FFFFFF, #F4F4F4);
  border: none;
  border-radius: 18px;
  box-shadow:
    7px 7px 16px rgba(0, 0, 0, .12),
    -7px -7px 16px rgba(255, 255, 255, .95);
  padding: 1.4rem 1.5rem;
}

.feat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
}

.feat-title::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.feat-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  padding: 0 6px;
  line-height: 1.7;
}

.feat-card p {
  font-size: 14px;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .about-steps,
  .about-feats {
    grid-template-columns: 1fr;
  }
}

/* ===== About: merged service band ===== */
.about-band {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 2rem;
}

.about-cta {
  margin-top: 1.5rem;
}

.about-cta .view-more {
  margin: 0 auto;
}

@media (max-width: 768px) {
  .about-band {
    grid-template-columns: 1fr;
  }
}

.about-sub-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  border-left: 4px solid var(--color-accent);
  padding-left: 0.6rem;
  line-height: 1.3;
  margin: 2rem 0 1rem;
}

.about-notes {
  margin-top: -1.5rem;
  margin-bottom: 1rem;
}

/* ===== Mobile: fit section titles & 2x2 band cards ===== */
@media (max-width: 480px) {
  .sec-title,
  .cta-title {
    font-size: clamp(1.3rem, 6.7vw, 1.7rem);
  }
}

@media (max-width: 768px) {
  .about-band {
    grid-template-columns: 1fr 1fr;
  }

  .about-band .band-card {
    padding: 0.9rem 0.5rem;
    font-size: 11px;
  }

  .about-band .band-card-icon img {
    width: 100%;
    max-width: 130px;
    height: auto;
  }
}

@media (max-width: 768px) {
  .about-band .band-card {
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .about-band .band-card-icon img {
    height: 90px;
    object-fit: contain;
  }
}

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

/* ===== Function matrix: sticky area column on mobile ===== */
@media (max-width: 768px) {
  .func-table th.area-col,
  .func-table td.area {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
  }

  .func-table td.area {
    background: var(--color-white);
  }
}

@media (max-width: 768px) {
  .func-table {
    overflow: visible;
  }

  .func-table-wrap {
    overflow-y: hidden;
  }
}

/* ===== Function matrix: fixed bar + one column per screen on mobile ===== */
@media (max-width: 768px) {
  .func-table {
    min-width: 0;
    width: max-content;
  }

  .func-table th,
  .func-table td {
    padding: 0.7rem 0.6rem;
    font-size: 11px;
    line-height: 1.7;
  }

  .func-table th.area-col,
  .func-table td.area {
    width: 60px;
    min-width: 60px;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  .func-table th:not(.area-col),
  .func-table td:not(.area) {
    width: calc(85vw - 100px);
    min-width: calc(85vw - 100px);
    max-width: calc(85vw - 100px);
    scroll-snap-align: start;
    scroll-margin-left: 60px;
  }

  .func-table-wrap {
    scroll-snap-type: x proximity;
  }
}

/* ===== Pre-check section ===== */
.precheck-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.precheck-card {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 1.75rem 1.5rem;
}

.precheck-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.precheck-title::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.precheck-list {
  margin-top: 0;
}

.precheck-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 0.75rem;
}

.precheck-item p {
  font-size: 13px;
  line-height: 1.9;
}

.precheck-note {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

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


/* ===== Function matrix: mobile scroll hint ===== */
.func-scroll-hint {
  display: none;
}

@media (max-width: 768px) {
  .func-scroll-hint {
    display: block;
    font-size: 11px;
    color: var(--color-text-sub, #888);
    text-align: right;
    margin: 0 0 0.5rem;
  }
}

/* ===== Function matrix: swipe guide overlay ===== */
.func-table-outer {
  position: relative;
}

.func-swipe-guide {
  display: none;
}

@media (max-width: 768px) {
  .func-swipe-guide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    background: rgba(30, 30, 30, 0.6);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
  }

  .func-swipe-guide.is-hidden {
    opacity: 0;
  }

  .fsg-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .fsg-arrow {
    font-size: 16px;
    line-height: 1;
  }

  .fsg-hand svg {
    width: 26px;
    height: 26px;
    display: block;
    animation: fsgSwipe 1.6s ease-in-out infinite;
  }

  .fsg-label {
    font-family: "Oswald", sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
}

@keyframes fsgSwipe {
  0%, 100% { transform: translateX(-7px); }
  50% { transform: translateX(7px); }
}

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