@charset "UTF-8";
/*
Theme Name: JDOC Theme
Author: JDOC
Description: Original theme for JDOC
Version: 1.0.0
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* =========================
   1. Variables & Base
   ========================= */
:root {
  --page-width: 1440px;
  --container: 1120px;
  --c-text: #1a1f26;
  --c-muted: #66717c;
  --c-bg: #ffffff;
  --c-surface: rgba(255, 255, 255, .78);
  --c-border: rgba(0, 0, 0, .08);
  --c-accent: #4883ae;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, .08);
  --shadow-md: 0 18px 56px rgba(0, 0, 0, .14);
  --header-h: 80px;
  --t-peek: 56px;
  --sec-head-size: 34px;
  --sec-head-lh: 1.15;
  --sec-head-weight: 900;
  --sec-head-color: #1c242c;
  --sec-head-underline: rgba(72, 131, 174, .85);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:where(a, button, .btn, .service-tab, .social__btn):focus-visible {
  outline: 3px solid rgba(72, 131, 174, .32);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}
.hide-sp { display: block; } /* PCでは表示 */

/* =========================
   2. Background Effects
   ========================= */
.bg-motion {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-motion::before, .bg-motion::after {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(closest-side at 30% 30%, rgba(72, 131, 174, .12), transparent 60%),
    radial-gradient(closest-side at 70% 40%, rgba(72, 131, 174, .08), transparent 62%),
    radial-gradient(closest-side at 55% 75%, rgba(0, 0, 0, .05), transparent 65%);
  filter: blur(28px); opacity: .55; transform: translate3d(0, 0, 0);
  animation: float-blobs 18s ease-in-out infinite;
}
.bg-motion::after { opacity: .35; filter: blur(40px); animation-duration: 26s; animation-direction: alternate; }
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 220px 220px; mix-blend-mode: multiply;
}
@keyframes float-blobs {
  0% { transform: translate(-2%, -1%) scale(1.02); }
  35% { transform: translate(2%, 1%) scale(1.04); }
  70% { transform: translate(1%, 3%) scale(1.01); }
  100% { transform: translate(-2%, -1%) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-motion::before, .bg-motion::after { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* =========================
   3. Header & Navigation
   ========================= */
.site-header { position: sticky; top: 0; z-index: 50; background: transparent; }
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .76) 0%, rgba(255, 255, 255, .34) 55%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.header__inner { position: relative; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.header__left { display: flex; align-items: center; gap: 14px; min-width: 160px; }
.header__logo { font-weight: 900; letter-spacing: .02em; text-decoration: none; color: #0d1117; font-size: 22px; line-height: 1; }
.header__logo:hover { opacity: .92; }

.header__nav { flex: 0 0 auto; justify-content: flex-start; display: flex; }
.nav-pill {
  display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 999px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  max-width: 100%;
}
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nav__list::-webkit-scrollbar { display: none; }
.nav__link { text-decoration: none; color: #2f3942; font-size: 13px; font-weight: 800; padding: 10px 12px; border-radius: 999px; transition: background .15s ease, transform .15s ease, color .15s ease; white-space: nowrap; }
.nav__link:hover { background: rgba(72, 131, 174, .10); transform: translateY(-1px); color: #1f2a33; }
.nav__link.is-active { background: rgba(72, 131, 174, .18); color: #0d1117; }

.header__actions { justify-content: flex-end; gap: 8px; display: flex; align-items: center; }
.lang-toggle {
  display: inline-flex; align-items: center; border: 1px solid rgba(0, 0, 0, .10); border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .76); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px);
}
.lang-toggle__btn {
  appearance: none; border: 0; background: transparent; padding: 8px 12px; font-size: 12px; font-weight: 900;
  letter-spacing: .02em; color: #2f3942; cursor: pointer; line-height: 1; transition: background .15s ease, color .15s ease;
}
.lang-toggle__btn:hover { background: rgba(72, 131, 174, .08); }
.lang-toggle__btn.is-active { background: rgba(72, 131, 174, .18); color: #0d1117; }

/* Hamburger (Hidden on PC) */
.header__hamburger { display: none; }

/* =========================
   4. Buttons & UI Elements
   ========================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  border-radius: 999px; padding: 10px 16px; font-weight: 900; font-size: 13px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  user-select: none; white-space: nowrap;
}
.btn--sm { padding: 9px 14px; }
.btn--contact { background: #eef0f2; color: var(--c-accent); border: 1px solid var(--c-accent); padding: 11px 18px; font-size: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
.btn--contact:hover { transform: translateY(-1px); box-shadow: 0 18px 44px rgba(0, 0, 0, .22); background: #eef0f2; }
.btn--accent { background: #eef0f2; color: var(--c-accent); border: 1px solid var(--c-accent); box-shadow: 0 12px 28px rgba(72, 131, 174, .22); }
.btn--accent:hover { background: #fff; box-shadow: 0 14px 34px rgba(72, 131, 174, .26); transform: translateY(-1px); }
.btn--ghost { background: rgba(255, 255, 255, .72); color: #0d1117; border-color: rgba(0, 0, 0, .10); backdrop-filter: blur(12px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .82); border-color: rgba(0, 0, 0, .12); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, .14); }
.btn:active { transform: translateY(0); box-shadow: none; }

.section-title {
  margin: 0 auto 28px; text-align: center; font-size: 34px; line-height: 1.12; letter-spacing: -.01em;
  font-weight: 800; color: #1c242c; display: table; position: relative; padding-bottom: 12px;
}
.section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; height: 2px; width: clamp(220px, 62%, 560px);
  background: rgba(72, 131, 174, .55); border-radius: 999px; transform: translateX(-50%) scaleX(0); transform-origin: center;
  opacity: 0; animation: title-underline .72s ease-out both; animation-delay: .08s;
}
@keyframes title-underline { from { transform: translateX(-50%) scaleX(0); opacity: 0; } to { transform: translateX(-50%) scaleX(1); opacity: 1; } }
@supports (animation-timeline: view()) {
  .section-title::after { animation-delay: 0s; animation-timeline: view(); animation-range: entry 15% cover 30%; }
}

/* =========================
   5. Home (Top Page)
   ========================= */
.hero {
  position: relative; padding: 200px 0 140px; min-height: 520px; display: flex; align-items: center;
  background-image: url('/wp-content/uploads/2026/02/HERO.jpeg') !important;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 1;
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 1040px; padding: 28px 0 32px; padding-left: 100px; padding-right: 50px; }
.hero__title { margin: 0 0 14px; font-size: 52px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.hero__lead { margin: 0 0 18px; color: rgba(255, 255, 255, .80); font-size: 24px; font-weight: 500; }
.hero__cta { display: flex; gap: 12px; }
.hero .btn--ghost { color: #fff; border-color: #fff; }
.hero .btn--ghost:hover { background-color: #fff; color: var(--c-accent); }

/* Services (Top) */
.services { padding: 56px 0 74px; background: linear-gradient(180deg, #ffffff 0%, #f5f8fa 45%, #ffffff 100%); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.card { background: #fff; border: 1px solid rgba(0, 0, 0, .055); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 22px 22px 20px; min-height: 210px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(72, 131, 174, .18); }
.card__icon { width: 58px; height: 58px; border-radius: 16px; background: rgba(72, 131, 174, .14); display: grid; place-items: center; margin-bottom: 10px; }
.card__title { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: #1f2a33; line-height: 1.25; }
.card__text { margin: 0; font-size: 14px; color: var(--c-muted); }

/* Business (Top) */
.business { padding: 20px 0 80px; }
.business__lead { text-align: center; max-width: 780px; margin: 0 auto 46px; font-size: 16px; font-weight: 700; line-height: 1.8; color: #3f4b56; }
.business__wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 1040px; margin: 0 auto; }
.business__card { background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 20px; box-shadow: 0 12px 36px rgba(0, 0, 0, .04); padding: 38px 42px; position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.business__card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0, 0, 0, .08); }
.business__card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.business__card--marketing::before { background: linear-gradient(90deg, #4883ae, #72a8cf); }
.business__card--system::before { background: linear-gradient(90deg, #2a2f36, #5c6772); }
.business__header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px dashed rgba(0, 0, 0, .1); }
.business__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.business__card--marketing .business__icon { background: #4883ae; }
.business__card--system .business__icon { background: #2a2f36; }
.business__icon svg { width: 26px; height: 26px; }
.business__category { margin: 0; font-size: 22px; font-weight: 900; color: #1f2a33; }
.business__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.business__tag { display: inline-flex; align-items: baseline; background: #f4f7f9; color: #3f4b56; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1px solid rgba(0, 0, 0, .04); transition: background .15s ease, color .15s ease, border-color .15s ease; }
.business__tag small { font-size: 12px; margin-left: 6px; opacity: 0.8; }
.business__card--marketing .business__tag:hover { background: rgba(72, 131, 174, .08); color: #4883ae; border-color: rgba(72, 131, 174, .2); }
.business__card--system .business__tag:hover { background: rgba(42, 47, 54, .08); color: #2a2f36; border-color: rgba(42, 47, 54, .2); }

/* Case Teaser */
.case { background: linear-gradient(90deg, rgba(72, 131, 174, 1) 0%, rgba(72, 131, 174, .86) 55%, rgba(72, 131, 174, .74) 100%); box-shadow: 0 14px 40px rgba(0, 0, 0, .16); padding: 22px 18px; }
.case__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: center; }
.case__img { border-radius: 18px; box-shadow: var(--shadow-md); }
.case__kicker { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: rgba(0, 0, 0, .62); }
.case__title { margin: 0 0 14px; font-size: 32px; line-height: 1.18; font-weight: 900; letter-spacing: -.01em; color: rgba(0, 0, 0, .78); }
.case-more { padding: 22px 0 8px; text-align: center; }
.case-more__link { display: inline-block; font-size: 20px; font-weight: 900; color: #1f2a33; text-decoration: none; transition: transform .15s ease, text-decoration-color .15s ease; }
.case-more__link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; transform: translateY(-1px); }

/* Insights Teaser */
.insights { padding: 62px 0 70px; }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.post { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid rgba(0, 0, 0, .055); box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.post:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(72, 131, 174, .16); }
.post__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post__body { padding: 14px 16px 16px; }
.post__meta { margin: 0 0 6px; font-size: 14px; color: #8793a0; font-weight: 700; }
.post__title { margin: 0 0 8px; font-size: 16px; line-height: 1.25; font-weight: 900; color: #1f2a33; }
.post__text { margin: 0 0 10px; font-size: 14px; color: var(--c-muted); }
.post__link { font-size: 13px; font-weight: 900; color: #1f2a33; text-decoration: none; transition: opacity .15s ease, transform .15s ease; display: inline-flex; gap: 6px; align-items: center; }
.post__link:hover { text-decoration: underline; transform: translateY(-1px); }

/* Testimonials Carousel */
.testimonials { padding: 56px 0 64px; background: #f4f7f9; border-top: 1px solid rgba(0, 0, 0, .04); border-bottom: 1px solid rgba(0, 0, 0, .04); }
.carousel { display: grid; grid-template-columns: 48px 1fr 48px; gap: 14px; align-items: center; margin-top: 8px; }
.carousel__arrow { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(72, 131, 174, 1); background: #fff; box-shadow: var(--shadow-sm); font-size: 22px; line-height: 1; color: #4883ae; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.carousel__arrow:hover { transform: translateY(-1px); background: rgba(72, 131, 174, .05); }
.carousel__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 6px 10px 14px; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 calc((100% - 18px - var(--t-peek)) / 2); scroll-snap-align: start; background: #fff; border: 1px solid rgba(72, 131, 174, .95); box-shadow: var(--shadow-sm); padding: 20px 22px 18px; }
.quote__mark { font-size: 22px; font-weight: 900; color: rgba(72, 131, 174, 1); line-height: 1; margin-bottom: 6px; }
.quote__text { margin: 0 0 10px; font-size: 16px; color: var(--c-muted); }
.quote__name { margin: 0; font-size: 14px; font-weight: 900; color: #1f2a33; }
.quote__role { margin: 0; font-size: 14px; font-weight: 700; color: #9aa6b2; }

/* Final CTA */
.final-cta { padding: 34px 0 52px; background: #ffffff; }
.final-cta__inner { text-align: center; border-radius: 14px; border: 1px solid rgba(0, 0, 0, .10); background: linear-gradient(90deg, rgba(72, 131, 174, 1) 0%, rgba(72, 131, 174, .86) 55%, rgba(72, 131, 174, .74) 100%); box-shadow: 0 14px 40px rgba(0, 0, 0, .16); padding: 22px 18px; }
.final-cta__title { margin: 0 0 12px; font-size: 26px; font-weight: 900; color: #fff; }

/* =========================
   6. Footer
   ========================= */
.site-footer { background: #2a2f36; color: rgba(255, 255, 255, .82); }
.footer__inner { padding: 38px 0 18px; display: grid; grid-template-columns: 1fr 1.9fr; gap: 24px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__logo { font-weight: 900; letter-spacing: .02em; font-size: 20px; color: #fff; margin-bottom: 8px; }
.footer__desc { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .55); line-height: 1.55; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.footer__head { margin: 0 0 10px; font-size: 14px; font-weight: 900; color: #fff; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__link { color: rgba(255, 255, 255, .62); text-decoration: none; font-size: 14px; font-weight: 700; transition: color .15s ease; }
.footer__link:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 8px; align-items: center; }
.social__btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-size: 12px; font-weight: 900; transition: transform .15s ease, background .15s ease; }
.social__btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .14); }
.footer__bottom { padding: 12px 0 18px; }
.footer__copy { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .50); }

/* =========================
   7. About Page
   ========================= */
.page-about { background: radial-gradient(1200px 600px at 50% 0%, rgba(0, 0, 0, .028), rgba(255, 255, 255, 0) 65%), #fff; }
.section { padding: 56px 0; }
.h1 { margin: 0 0 10px; text-align: center; font-size: 44px; line-height: 1.08; letter-spacing: -.02em; font-weight: 900; }
.lead { margin: 0 auto; text-align: center; font-size: 15px; font-weight: 600; color: var(--c-muted); max-width: 720px; line-height: 1.6; }
.h2 { margin: 0 0 26px; text-align: center; font-size: 30px; line-height: 1.15; font-weight: 900; letter-spacing: -.01em; position: relative; }
.h2::after { content: ""; display: block; height: 2px; background: rgba(72, 131, 174, .75); border-radius: 2px; width: 120px; margin: 10px auto 0; transform: scaleX(0); transform-origin: center; animation: h2-underline 900ms cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes h2-underline { to { transform: scaleX(1); } }
.attitudes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 64px; margin-top: 18px; max-width: 860px; margin: 0 auto; }
.att { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; padding: 4px 6px; border-radius: 12px; }
.att__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: rgba(0, 0, 0, .02); }
.att__title { margin: 0 0 6px; font-size: 16px; font-weight: 900; }
.att__text { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--c-muted); }
.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 780px; margin: 0 auto; }
.f-card { border: 1px solid rgba(0, 0, 0, .22); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, .10); }
.f-card__img { width: 100%; height: 300px; object-fit: cover; }
.f-card__body { padding: 12px 14px 14px; }
.f-card__name { margin: 0 0 2px; font-size: 18px; font-weight: 900; }
.f-card__role { margin: 0 0 10px; font-size: 12px; font-weight: 800; color: #5e6a75; }
.f-card__bio { font-size: 12.2px; font-weight: 600; color: var(--c-muted); margin-bottom: 14px; }
.ov-table { width: 100%; max-width: 720px; margin: 0 auto; border-collapse: separate; border-spacing: 0; border: 1px solid rgba(0, 0, 0, .22); border-radius: 10px; background: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .06); }
.ov-table th, .ov-table td { padding: 10px 12px; font-size: 12.5px; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.ov-table th { width: 34%; text-align: left; background: rgba(0, 0, 0, .045); font-weight: 900; }

/* =========================
   8. Services Page
   ========================= */
.services-hero { background: linear-gradient(135deg, rgba(72, 131, 174, .15) 0%, rgba(72, 131, 174, .06) 55%, #fff 100%); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.services-hero__inner { padding: 54px 0 34px; }
.services-hero__title { margin: 0 0 12px; font-size: 46px; line-height: 1.06; font-weight: 900; letter-spacing: -.02em; color: #141b22; }
.frameworks { padding: 34px 0 52px; }
.frameworks__kicker { position: relative; display: block; width: fit-content; margin: 0 auto 22px; text-align: center; font-size: 34px; font-weight: 900; }
.offer-shell { border: 1px solid rgba(17, 24, 39, .10); background: rgba(255, 255, 255, .90); border-radius: 16px; box-shadow: 0 14px 34px rgba(17, 24, 39, .12); overflow: hidden; }
.offer-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgba(0, 0, 0, .08); background: rgba(72, 131, 174, .05); }
.service-tab { width: 100%; text-align: left; cursor: pointer; border: 0; background: transparent; padding: 16px 14px 14px; transition: background .2s ease; }
.service-tab.is-selected { background: var(--c-accent); }
.service-tab.is-selected .service-tab__name { color: #ffffff; }
.service-tab.is-selected .service-tab__short { color: rgba(255, 255, 255, 0.85); }
.service-tab__name { margin: 0 0 4px; font-size: 16px; font-weight: 900; }
.service-tab__short { margin: 0; font-size: 12px; font-weight: 800; color: rgba(17, 24, 39, .60); }
.offer-body { padding: 14px; background: #fff; }
.solutions-panel { display: none; }
.solutions-panel.is-active { display: block; animation: solutionsPanelIn .22s ease both; }
@keyframes solutionsPanelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.solution-card { border: 1px solid rgba(17, 24, 39, .10); border-radius: 12px; background: #fff; box-shadow: 0 10px 26px rgba(17, 24, 39, .10); display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.solution-card__media { position: relative; width: 100%; height: 220px; background-color: #f1f5f9; overflow: hidden; border-radius: 12px 12px 0 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.solution-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.3s ease; }
.solution-card:hover .solution-card__media img { transform: scale(1.05); }
.solution-card__body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.solution-card__title { font-size: 14px; font-weight: 900; color: #151c23; margin: 0; }
.solution-card__text { margin-top: 10px; font-size: 14px; color: #475569; line-height: 1.6; }

.mission-band { margin-top: 18px; padding: 18px 16px 16px; display: grid; gap: 14px; }
.mission-title { font-size: 18px; font-weight: 900; text-align: center; }
.mission-grid { display: grid; grid-template-columns: 1.05fr .95fr 1fr; gap: 14px; }
.method { padding: 44px 0 56px; background: linear-gradient(180deg, rgba(72, 131, 174, .085) 0%, #fff 70%); }
.method__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 10px; }
.method-card { border: 1px solid rgba(17, 24, 39, .10); border-radius: 12px; background: #fff; padding: 14px; text-align: center; }
.method-card__icon { font-size: 22px; margin-bottom: 10px; }

/* Own Business */
.own-business { padding: 20px 0 80px; background: #fff; }
.own-business__inner { background: #fff; border: 1px solid rgba(0,0,0,.10); border-radius: 16px; padding: 48px; box-shadow: 0 16px 40px rgba(17,24,39,.06); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.own-business__title { font-size: 28px; font-weight: 900; margin: 0 0 16px; color: #141b22; }
.own-business__text { font-size: 15px; line-height: 1.7; color: #475569; margin: 0 0 28px; }
.own-business__stat { display: inline-flex; flex-direction: column; background: #f8fafc; padding: 16px 24px; border-radius: 12px; border-left: 4px solid var(--c-accent); }
.stat-label { font-size: 13px; font-weight: 800; color: #64748b; }
.stat-value { font-size: 36px; font-weight: 900; color: var(--c-accent); line-height: 1; }
.ob-link-card { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 12px; border: 1px solid rgba(0,0,0,.12); text-decoration: none; margin-bottom: 12px; }

/* Collab Network */
.collab-network { padding: 60px 0 100px; background: #f8fafc; }
.collab-network__head { text-align: center; max-width: 800px; margin: 0 auto 52px; }
.collab-network__title { font-size: 30px; font-weight: 900; margin-bottom: 20px; }
.collab-items { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.collab-chip { background: #fff; border: 1px solid rgba(0, 0, 0, 0.08); padding: 8px 16px 8px 8px; border-radius: 50px; font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 12px; text-decoration: none; box-shadow: 0 4px 12px rgba(17, 24, 39, 0.03); }
.collab-chip__icon { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.collab-chip.is-featured { border-color: rgba(72, 131, 174, 0.3); background: linear-gradient(135deg, #fff 0%, rgba(72, 131, 174, 0.03) 100%); border-radius: 16px; padding: 12px; }

/* =========================
   9. Insights Page
   ========================= */
.ins-hero { background: linear-gradient(180deg, #ffffff 0%, #f4f7f9 100%); border-bottom: 1px solid rgba(0,0,0,.06); }
.ins-hero__inner { padding: 52px 0 34px; text-align:center; }
.ins-hero__title { font-size: 44px; font-weight: 900; margin: 0 0 8px; color: #1c242c; letter-spacing: -.02em; }

/* --- フィルター（ピルボタン） --- */
.ins-filters { background: #fff; padding: 26px 0 20px; }
.filter-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.pill { 
  display: inline-flex; align-items: center; justify-content: center; 
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12); 
  background: #fff; text-decoration: none; font-size: 13px; font-weight: 800; 
  color: #1f2a33; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease; 
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.06); border-color: rgba(72,131,174,.4); }
.pill.is-active { 
  background: var(--c-accent); border-color: var(--c-accent); 
  color: #fff; box-shadow: 0 10px 24px rgba(72,131,174,.22); 
}

/* --- 記事グリッド --- */
.ins-grid { padding: 20px 0 60px; background: #fff; }
.article-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important; gap: 24px; align-items: start; }

.article { 
  border-radius: 16px; overflow: hidden; border: 1px solid rgba(0,0,0,.08); 
  background: #fff; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; 
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.04);
}
.article:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(17, 24, 39, 0.08); border-color: rgba(72, 131, 174, 0.2); }

.article__img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid rgba(0,0,0,.04); }
.article__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.article__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.article__date { font-size: 12px; font-weight: 700; color: #8793a0; }
.article__tag { font-size: 11px; font-weight: 900; padding: 4px 10px; border-radius: 6px; background: rgba(72,131,174,.08); color: var(--c-accent); }

.article__title { margin: 0 0 10px; font-size: 18px; line-height: 1.35; font-weight: 900; color: #1f2a33; letter-spacing: -.01em; }
.article__excerpt { margin: 0 0 16px; font-size: 13px; font-weight: 600; color: var(--c-muted); line-height: 1.6; flex: 1; }

.article__more { 
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 900; 
  text-decoration: none; color: var(--c-accent); transition: opacity .15s ease, transform .15s ease; 
}
.article__more:hover { opacity: 0.8; transform: translateX(2px); }

/* --- ページネーション --- */
.ins-pagination { padding: 10px 0 60px; background: #fff; text-align: center; }
.pagination { display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #7a8692; }
.pagination .page-numbers { 
  display: inline-flex; justify-content: center; align-items: center; min-width: 36px; height: 36px; padding: 0 12px; 
  border-radius: 8px; text-decoration: none; color: #1f2a33; border: 1px solid rgba(0,0,0,.1); transition: all .15s ease; 
}
.pagination a.page-numbers:hover { background: rgba(72,131,174,.05); border-color: rgba(72,131,174,.3); color: var(--c-accent); }
.pagination .current { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

/* --- スマホ用レスポンシブ --- */
@media (max-width: 768px) {
  .ins-hero__inner { padding: 44px 0 28px; }
  .ins-hero__title { font-size: 34px; }
  .article-grid { grid-template-columns: 1fr !important; }
}

/* =========================
   10. Works (Case Studies) Page
   ========================= */
.ss-approach { padding: 34px 0 18px; background: #fff; text-align: center; }
.ss-approach__title { margin: 0 0 8px; font-size: 34px; font-weight: 900; letter-spacing: -.01em; color: #1c242c; line-height: 1.18; }

/* --- フィルターバー --- */
.ss-filterbar { padding: 18px 0 10px; background: linear-gradient(180deg, #ffffff 0%, #f4f7f9 100%); border-top: 1px solid rgba(0,0,0,.06); }
.ss-filterbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ss-filterbtns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fbtn {
  border: 1px solid rgba(0,0,0,.14); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 900; cursor: pointer; color: #475569;
  box-shadow: 0 8px 18px rgba(0,0,0,.05); transition: all .15s ease;
}
.fbtn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,.07); color: #1f2a33; }
.fbtn.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #fff; box-shadow: 0 12px 26px rgba(72,131,174,.22); }

/* --- 業界セレクトボックス --- */
.industry { display: flex; align-items: center; gap: 10px; }
.industry__label { font-size: 13px; font-weight: 900; color: #2b3138; white-space: nowrap; }
.industry__select {
  appearance: none; -webkit-appearance: none; border: 1px solid rgba(0,0,0,.14); background: #fff;
  border-radius: 999px; padding: 8px 34px 8px 16px; font-size: 13px; font-weight: 900; color: #2b3138; cursor: pointer; line-height: 1;
  box-shadow: 0 10px 20px rgba(0,0,0,.055); transition: all .15s ease;
}
.industry__wrap { position: relative; display: inline-block; }
.industry__wrap:after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-52%); font-size: 14px; color: #2b3138; pointer-events: none; opacity: .75; }
.industry__select:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 12px 26px rgba(0,0,0,.09); }

/* --- 実績カードグリッド --- */
.ss-cases { padding: 20px 0 80px; background: linear-gradient(180deg, #f4f7f9 0%, #ffffff 100%); min-height: 50vh; }
.ss-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 24px !important; }

/* カード本体 */
.ss-card {
  width: 100%; text-align: left; border: 1px solid rgba(0,0,0,.08); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm);
  padding: 16px; cursor: pointer; transition: all .2s ease; display: flex; flex-direction: column;
}
/* JSによるフワッと表示アニメーション用 */
.ss-card.is-enter { opacity: 0; transform: translateY(12px); }
.ss-card.is-enter.is-enter--active { opacity: 1; transform: translateY(0); }
.ss-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(17,24,39,.08); border-color: rgba(72,131,174,.3); }

/* カード内画像 */
.ss-card__media { margin: -16px -16px 14px; border-bottom: 1px solid rgba(0,0,0,.06); border-radius: 16px 16px 0 0; overflow: hidden; background: #f4f7f9; }
.ss-card__media img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.ss-card:hover .ss-card__media img { transform: scale(1.03); }

/* バッジ・タイトル */
.ss-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ss-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ss-badge {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 10px; border: 1px solid rgba(0,0,0,.08);
  background: rgba(72,131,174,.08); font-size: 11px; font-weight: 900; color: var(--c-accent); white-space: nowrap;
}
.ss-badge__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--c-accent); }
.ss-badge--muted { background: #f1f5f9; color: #475569; border-color: rgba(0,0,0,.05); }
.ss-badge--muted .ss-badge__dot { background: #94a3b8; }
.ss-card__title { margin: 0 0 12px; font-size: 18px; line-height: 1.35; font-weight: 900; color: #141b22; letter-spacing: -.01em; }

/* サマリー（概要・期間など） */
.ss-summary { display: grid; grid-template-columns: 1fr; gap: 10px; flex-grow: 1; }
.ss-block { border: 1px solid rgba(0,0,0,.06); background: #f8fafc; border-radius: 12px; padding: 12px; transition: all .15s ease; }
.ss-card:hover .ss-block { background: #fff; border-color: rgba(72,131,174,.2); }
.ss-block__label { font-size: 11px; font-weight: 900; color: #64748b; margin: 0 0 4px; text-transform: uppercase; }
.ss-block__value { font-size: 13px; font-weight: 800; color: #1e293b; line-height: 1.4; margin: 0; }
.ss-block--overview .ss-block__value { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ss-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 詳細を見るボタン */
.ss-card__cta { margin-top: 14px; display: flex; justify-content: flex-end; font-size: 13px; font-weight: 900; color: var(--c-accent); transition: transform .15s ease; }
.ss-card:hover .ss-card__cta { transform: translateX(2px); }

/* =========================
   モーダル (Modal)
   ========================= */
.modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .6); backdrop-filter: blur(4px); }
.modal__panel {
  position: relative; width: min(860px, calc(100% - 32px)); margin: 40px auto; border-radius: 20px; background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.3); overflow-y: auto; max-height: calc(100vh - 80px);
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(0,0,0,.1);
  background: #fff; cursor: pointer; font-size: 24px; color: #475569; display: grid; place-items: center;
  transition: all .2s ease; z-index: 10; box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.modal__close:hover { background: #f1f5f9; color: #0f172a; transform: scale(1.05); }

.modal__head { padding: 32px 32px 24px; border-bottom: 1px solid rgba(0,0,0,.06); background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.modal__badge {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; border: 1px solid rgba(72,131,174,.2);
  background: rgba(72,131,174,.05); font-size: 12px; font-weight: 900; color: var(--c-accent);
}
.modal__title { margin: 16px 0 0; font-size: 26px; font-weight: 900; color: #0f172a; line-height: 1.3; }

.modal__body { padding: 24px 32px 32px; }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.mbox { border: 1px solid rgba(0,0,0,.08); border-radius: 16px; background: #f8fafc; padding: 20px; }
.mbox__head { margin: 0 0 10px; font-size: 13px; font-weight: 900; color: var(--c-accent); text-transform: uppercase; letter-spacing: 0.05em; }
.mbox__text { margin: 0; font-size: 14px; font-weight: 700; color: #334155; line-height: 1.7; }
.modal__summary { margin-top: 24px; }
.modal__footer { margin-top: 24px; display: flex; justify-content: center; }

/* Works */
  .ss-approach__title { font-size: 28px; }
  .ss-filterbar__inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .ss-filterbtns { width: 100%; justify-content: center; }
  .industry { justify-content: center; margin-top: 4px; }
  .ss-grid { grid-template-columns: 1fr !important; }
  /* スマホ用モーダル調整 */
  .modal__panel { margin: 20px auto; width: calc(100% - 24px); max-height: calc(100vh - 40px); }
  .modal__head { padding: 24px 20px 20px; }
  .modal__title { font-size: 20px; }
  .modal__body { padding: 20px; }
  .modal__grid { grid-template-columns: 1fr; gap: 16px; }

/* --- 実績カードグリッド --- */
.ss-cases { 
  padding: 20px 0 80px; 
  background: linear-gradient(180deg, #f4f7f9 0%, #ffffff 100%); 
  min-height: 50vh; 
}

/* ▼ ここでPC画面で横に3つ並べる設定を強制 ▼ */
.ss-grid { 
  display: grid !important; 
  grid-template-columns: repeat(3, 1fr) !important; 
  gap: 24px !important; 
  width: 100%;
}

/* =========================================
   12. Responsive (Mobile overrides) 
   ========================================= */

/* タブレットサイズ（画面が少し狭い時）は2列にする */
@media (max-width: 980px) {
  .ss-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
  }
}

/* スマホサイズ（768px以下）では1列にする */
@media (max-width: 768px) {
  .ss-grid { 
    grid-template-columns: 1fr !important; 
  }
}

/* =========================
   11. Contact Page
   ========================= */
.contact-hero { background: linear-gradient(135deg, rgba(72,131,174,.15) 0%, rgba(72,131,174,.06) 55%, #fff 100%); text-align: center; padding: 64px 0 44px; }
.contact-hero__title { font-size: 42px; font-weight: 900; }
.form-wrapper { max-width: 680px; margin: 40px auto; background: #fff; border-radius: 16px; padding: 48px 56px; box-shadow: var(--shadow-sm); }
.input, .textarea { width: 100%; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 10px; padding: 14px 16px; font-size: 15px; font-family: inherit; margin-bottom: 20px; }


/* =========================================
   12. Responsive (Mobile overrides) - 完璧に統合されたパッチ
   ========================================= */
@media (max-width: 980px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .ss-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
  /* Header / Hamburger Force Fix */
  .header__inner { height: auto; padding: 10px 0 12px; }
  .hide-sp { display: none !important; }
  
  .header__actions {
    display: flex !important;
    position: relative !important;
    z-index: 1000 !important;
    width: 100%;
    justify-content: flex-end;
  }
  .header__hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
  }
  .hamburger-line {
    display: block; width: 100%; height: 2px; background-color: #0f172a; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  /* Drawer Menu */
  .header__nav {
    display: flex !important;
    position: fixed !important;
    top: 0 !important; left: 0 !important; width: 100% !important; height: 100vh !important;
    background-color: rgba(255, 255, 255, 0.95) !important; backdrop-filter: blur(10px) !important;
    flex-direction: column !important; justify-content: center !important; align-items: center !important;
    opacity: 0 !important; visibility: hidden !important; transition: opacity 0.3s ease, visibility 0.3s ease !important;
    z-index: 999 !important;
  }
  body.is-menu-open .header__nav { opacity: 1 !important; visibility: visible !important; }
  body.is-menu-open { overflow: hidden; }
  body.is-menu-open .hamburger-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  body.is-menu-open .hamburger-line:nth-child(2) { opacity: 0; }
  body.is-menu-open .hamburger-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  
  .header__nav .nav-pill { background: transparent !important; box-shadow: none !important; border: none !important; }
  .header__nav .nav__list { flex-direction: column !important; gap: 32px !important; overflow: visible; }
  .header__nav .nav__link { font-size: 24px !important; }

  /* Generic Grids */
  .cards, .business__grid, .case__grid, .posts, .carousel, .partner-card, .footer__inner, .mission-grid, .method__grid, .own-business__inner {
    grid-template-columns: 1fr;
  }

  /* Home */
  .hero__content { padding-left: 26px; padding-right: 0; }
  .hero { min-height: 520px; }
  .hero__title { font-size: 38px; }
  .business__wrapper { flex-direction: column; }
  .business__card { width: 100%; padding: 26px 22px; }

  /* Services */
  .offer-tabs { display: block; }
  .service-tab { padding: 14px; border-bottom: 1px solid rgba(0,0,0,.06); width: 100%; }
  .own-business__inner { padding: 32px 24px; gap: 32px; }
  .collab-chip { width: 100%; justify-content: flex-start; border-radius: 12px; padding: 12px; }
  .collab-network__title { font-size: 24px; }

  /* Works */
  .ss-grid { grid-template-columns: 1fr !important; }
  .ss-filterbtns { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .ss-filterbtns .fbtn { width: 100%; text-align: center; }
  
  /* Insights */
  .article-grid { grid-template-columns: 1fr !important; }
  
  /* Footer */
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .footer__cols .footer__col:nth-child(3) { grid-column: 1 / -1; }

  /* Others */
  .h1 { font-size: 34px; }
  .h2 { font-size: 26px; }
  .form-wrapper { padding: 32px 24px; }
}

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

/* --- お客様の声 (Success Stories) --- */
.success {
  padding: 44px 0 56px;
}
.mini-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}
.mini-quote {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.04);
  display: flex;
  flex-direction: column;
}
.mini-quote__logo {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-start;
}
.mini-quote__logo img {
  max-width: 140px;
  height: auto;
  display: block;
}
.mini-quote__text {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  line-height: 1.7;
  flex-grow: 1;
}
.mini-quote__text strong {
  color: var(--c-accent);
}
.mini-quote__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #1a1f26;
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 12px;
}

/* スマホ用の横スクロール設定 */
@media (max-width: 768px) {
  .mini-quotes {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    scrollbar-width: none; /* Firefox用スクロールバー非表示 */
    -webkit-overflow-scrolling: touch;
  }
  .mini-quotes::-webkit-scrollbar {
    display: none; /* Chrome/Safari用スクロールバー非表示 */
  }
  .mini-quote {
    flex: 0 0 85%; /* スマホでは画面の85%の幅のカードにする */
    scroll-snap-align: start;
  }
}

/* =========================
   11. Contact Page
   ========================= */
.contact-hero { background: linear-gradient(135deg, rgba(72,131,174,.15) 0%, rgba(72,131,174,.06) 55%, #fff 100%); text-align: center; padding: 64px 0 44px; }
.contact-hero__title { margin: 0 0 12px; font-size: 42px; font-weight: 900; }
.contact-hero__lead { margin: 0; font-size: 16px; font-weight: 600; color: #56626d; line-height: 1.7; }
.form-wrapper { max-width: 680px; margin: 40px auto; background: #fff; border-radius: 16px; padding: 48px 56px; box-shadow: var(--shadow-sm); }

/* --- フォーム各項目のデザイン --- */
.field { margin-bottom: 28px; }
.label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 800; color: #151c23; }
.req { color: #e53e3e; margin-left: 4px; }

/* Contact Form 7 特有の崩れ防止（超重要） */
.wpcf7-form-control-wrap { display: block; }

.input, .select, .textarea { 
  width: 100%; 
  background: #f8fafc; 
  border: 1px solid #cbd5e1; 
  border-radius: 10px; 
  padding: 14px 16px; 
  font-size: 15px; 
  color: #1e293b; 
  font-family: inherit; 
  box-sizing: border-box; 
  transition: all .2s ease;
}
.textarea { min-height: 160px; resize: vertical; }

.input:focus, .select:focus, .textarea:focus { 
  outline: none; 
  border-color: #4883ae; 
  background: #fff; 
  box-shadow: 0 0 0 3px rgba(72,131,174,.15); 
}

/* --- セレクトボックス（ご相談の領域）専用スタイル --- */
.select { 
  appearance: none; 
  -webkit-appearance: none; 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); 
  background-repeat: no-repeat; 
  background-position: right 16px center; 
  padding-right: 40px; 
  cursor: pointer;
}

/* --- チェックボックス（同意） --- */
.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 32px; margin-bottom: 32px; font-size: 14px; font-weight: 600; color: #475569; cursor: pointer; }
.check input[type="checkbox"] { margin-top: 4px; width: 18px; height: 18px; accent-color: #4883ae; cursor: pointer; }

/* --- 送信ボタン --- */
.submit-wrap { text-align: center; }
.submit-wrap .btn.submit { width: 100%; max-width: 320px; padding: 16px; font-size: 16px; cursor: pointer; }

/* --- CF7 エラーメッセージ等 --- */
.wpcf7-not-valid-tip { font-size: 12px; color: #e53e3e; margin-top: 6px; display: block; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0 !important; border-radius: 8px; font-size: 14px; font-weight: 600; padding: 16px; }

/* =========================
   13. 404 Page
   ========================= */
.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 65vh; /* 画面の中央付近に配置するため */
  background: linear-gradient(135deg, rgba(72,131,174,.06) 0%, rgba(255,255,255,1) 100%);
}

.error-sec {
  padding: 80px 0;
  width: 100%;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.error-code {
  font-size: 80px;
  line-height: 1;
  font-weight: 900;
  color: var(--c-accent); /* JDOCブルー */
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.error-title {
  font-size: 24px;
  font-weight: 900;
  color: #141b22;
  margin: 0 0 16px;
}

.error-desc {
  font-size: 15px;
  color: #56626d;
  margin: 0 0 32px;
  line-height: 1.8;
}

.error-action {
  display: flex;
  justify-content: center;
}

/* スマホ用レスポンシブ */
@media (max-width: 768px) {
  .error-content {
    padding: 40px 24px;
  }
  .error-code {
    font-size: 64px;
  }
  .error-title {
    font-size: 20px;
  }
  .error-desc {
    font-size: 14px;
  }
}
/* =========================
   14. Single Post (記事詳細ページ)
   ========================= */
.page-single {
  padding-bottom: 80px;
  background: #f8fafc; /* 背景をほんのりグレーにして記事を目立たせる */
}

/* --- ヘッダー（タイトル周辺） --- */
.single-hero {
  padding: 60px 0 40px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  margin-bottom: 40px;
}
.single-hero__inner {
  max-width: 800px;
  margin: 0 auto;
}
.single-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.single-date {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
}
.single-cat {
  font-size: 12px;
  font-weight: 900;
  background: rgba(72,131,174,.1);
  color: var(--c-accent);
  padding: 4px 12px;
  border-radius: 999px;
}
.single-title {
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.4;
  margin: 0;
  letter-spacing: -.02em;
}

/* --- アイキャッチ画像 --- */
.single-thumbnail {
  max-width: 800px;
  margin: -70px auto 40px; /* ヘッダーに少し食い込ませる今風のデザイン */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  position: relative;
  z-index: 2;
  background: #fff;
}
.single-thumbnail__img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* --- 本文エリア（自動で綺麗になる魔法のCSS） --- */
.single-content {
  max-width: 760px; /* 読者が一番読みやすい文字幅に制限 */
  margin: 0 auto;
  background: #fff;
  padding: 48px 56px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.05);
  font-size: 16px;
  line-height: 1.85;
  color: #334155;
}

/* 見出し2（大見出し） */
.single-content h2 {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  margin: 56px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(72,131,174,.2);
  position: relative;
}
.single-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background: var(--c-accent);
}

/* 見出し3（中見出し） */
.single-content h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--c-accent);
}

/* 見出し4（小見出し） */
.single-content h4 {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin: 32px 0 12px;
}

/* テキスト・段落 */
.single-content p {
  margin: 0 0 24px;
}

/* リンク */
.single-content a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s;
}
.single-content a:hover { color: #1e293b; }

/* 箇条書き（リスト） */
.single-content ul, .single-content ol {
  margin: 0 0 24px;
  background: #f8fafc;
  padding: 24px 24px 24px 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.04);
}
.single-content li { margin-bottom: 8px; font-weight: 600; }

/* 引用 */
.single-content blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  background: #f1f5f9;
  border-left: 4px solid #94a3b8;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #475569;
}
.single-content blockquote p:last-child { margin-bottom: 0; }

/* 画像（エディタで挿入した画像） */
.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 32px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* 強い強調（太字にすると黄色のマーカーが引かれます） */
.single-content strong, .single-content b {
  color: #0f172a;
  background: linear-gradient(transparent 60%, rgba(72,131,174,.25) 60%);
}

/* --- 前後の記事ナビゲーション --- */
.single-nav {
  max-width: 760px;
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.single-nav__prev, .single-nav__next { flex: 1; }
.single-nav__next { text-align: right; }
.single-nav a {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  transition: all .2s;
}
.single-nav__next a { justify-content: flex-end; }
.single-nav a:hover {
  border-color: var(--c-accent);
  box-shadow: 0 8px 16px rgba(72,131,174,.1);
  color: var(--c-accent);
  transform: translateY(-2px);
}
.nav-arrow { font-size: 16px; margin: 0 8px; color: #94a3b8; }

/* =========================================
   Aboutページ（スマホ用）のレイアウト完全修正
   ========================================= */
@media (max-width: 768px) {
  /* 1. 「大切にしている考え方」を1列（1カラム）にする */
  .attitudes {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  /* 2. 「私たちについて（Founder）」を1列にする */
  .founders {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .f-card__img {
    height: 260px !important; /* 画像の高さもスマホに合わせて調整 */
  }

  /* 3. 「会社情報（表）」をスマホ向けに縦積みにする魔法のコード */
  .ov-table, 
  .ov-table tbody, 
  .ov-table tr, 
  .ov-table th, 
  .ov-table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* 表の見出し（会社名、所在地など）をラベルのようなデザインに変更 */
  .ov-table th {
    border-right: none !important;
    border-bottom: none !important;
    background: #f4f7f9 !important; /* 薄いグレー背景 */
    padding: 12px 16px 4px !important;
    color: var(--c-accent) !important;
    font-size: 12px !important;
  }
  
  /* 表の中身（実際のデータ）の余白調整 */
  .ov-table td {
    padding: 4px 16px 16px !important;
    border-bottom: 1px solid rgba(0, 0, 0, .12) !important;
    font-size: 14px !important;
  }
  
  /* 一番最後の下線は消す */
  .ov-table tr:last-child td {
    border-bottom: none !important;
  }
}

/* PCではこの改行を隠す */
.show-sp {
  display: none;
}
@media (max-width: 768px) {
  /* ...（既存のスマホ用コード）... */

  /* スマホの時だけこの改行を有効にする */
  br.show-sp {
    display: block !important;
  }
}

/* ▼ トップページ：事業内容カードをスマホで1列にする ▼ */
  .business__wrapper {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
/* =========================================
   トップページ：お客様の声（スマホ用完全修正）
   ========================================= */
@media (max-width: 768px) {
  /* カルーセルの外枠の余白を調整 */
  .testimonials {
    padding: 48px 0;
  }
  
  /* スマホでは矢印ボタンは不要なので完全に消す */
  .carousel__arrow {
    display: none !important;
  }
  
  /* カードが綺麗に横スライドするように設定 */
  .carousel__track {
    display: flex !important;
    gap: 16px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 10px 0 20px !important; /* スクロールバーや影が切れないように余白確保 */
    scrollbar-width: none !important; /* Firefox用スクロールバー隠し */
    margin: 0 -20px; /* 画面の端から端までスワイプできるようにするテクニック */
  }
  .carousel__track::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari用スクロールバー隠し */
  }
  
  /* カード本体の幅と内側の余白をスマホ最適化 */
  .quote {
    flex: 0 0 85% !important; /* 画面幅の85%にして、次のカードが少し見えるようにする */
    scroll-snap-align: center !important; /* スワイプした時に真ん中でピタッと止まる */
    padding: 24px 20px !important; /* 窮屈にならないように余白を調整 */
    margin-left: 20px; /* 最初と最後のカードの横余白 */
  }
  
  /* 最後のカードの右側の余白確保 */
  .quote:last-child {
    margin-right: 20px;
  }

  /* テキストが読みやすくなるように微調整 */
  .quote__text {
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
  }
  
  .quote__mark {
    font-size: 32px !important;
    margin-bottom: 8px !important;
  }
}