:root {
  --bg: #ededed;
  --panel: #dfdfdf;
  --inner: #ececec;
  --text: #313338;
  --blue: #1f62b8;
  --site-max: 1140px;
  --gutter: 15px;
  --fs-1: clamp(28px, 3.4vw, 50px);
  --fs-2: clamp(22px, 2.5vw, 34px);
  --fs-3: clamp(17px, 1.8vw, 20px);
  --fs-4: clamp(14px, 1.1vw, 17px);
  --fs-5: clamp(12px, 0.95vw, 14px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f7f7f7;
  border-bottom: 1px solid #d8d8d8;
}

.header-wrap {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo img {
  height: 34px;
  display: block;
}

nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

nav a {
  position: relative;
  color: #111;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transform-origin: center bottom;
  transition: transform 0.2s ease, color 0.2s ease;
}

nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d6d6d 0%, #c9c9c9 50%, #6d6d6d 100%);
  background-size: 200% 100%;
  transform: scaleX(0.18);
  transform-origin: left center;
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease, background-position 0.35s ease;
}

nav a:not(.nav-cta):hover {
  color: #0d4f9a;
  transform: translateY(-2px) rotate(-1.2deg);
}

nav a:not(.nav-cta):hover::after {
  opacity: 1;
  transform: scaleX(1);
  background-position: 100% 0;
}

nav a.nav-cta {
  background: #222;
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

nav a.nav-cta:hover {
  background: #444;
  transform: translateY(-2px) rotate(-1.2deg);
  box-shadow: 0 8px 14px rgba(17, 17, 17, 0.18);
}

.menu-toggle {
  display: none;
}

@media (prefers-reduced-motion: reduce) {

  nav a,
  nav a::after {
    transition: none;
  }

  nav a:hover,
  nav a.nav-cta:hover {
    transform: none;
  }
}

.container {
  width: 100%;
  max-width: var(--site-max);
  padding: 0 var(--gutter);
  margin: 28px auto 44px;
}

.hero {
  position: relative;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.page-top .hero {
  height: 384px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.35);
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.7vw, 50px);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.page-top .hero h1 {
  font-size: clamp(46px, 9vw, 108px);
  letter-spacing: 0.06em;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.42),
    0 0 38px rgba(58, 128, 255, 0.34);
  animation: hero-update-pop 2.8s ease-in-out infinite;
}

.page-top .hero h1.hero-title-long {
  font-size: clamp(26px, 5.2vw, 54px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  max-width: min(94%, 980px);
  margin-inline: auto;
}

.hero p {
  margin: 22px 0 0;
  font-size: clamp(15px, 1.7vw, 26px);
  font-weight: 700;
}

.panel {
  margin-top: 34px;
  background: var(--panel);
  border-radius: 14px;
  padding: 30px 24px 24px;
}

.eyebrow {
  margin: 0;
  text-align: left;
  font-size: 13px;
  font-weight: 900;
  color: #111;
}

.page-top .eyebrow {
  text-align: center;
}

h2 {
  margin: 12px 0 0;
  text-align: center;
  font-size: clamp(25px, 2.6vw, 44px);
  line-height: 1.25;
}

.page-main h2 {
  text-align: left;
  font-size: clamp(22px, 2.2vw, 36px);
}

.sub {
  margin: 20px 0 0;
  text-align: center;
  font-size: clamp(16px, 1.5vw, 28px);
  font-weight: 700;
}

.spot-sub-left {
  text-align: left;
}

.inner-panel {
  margin-top: 24px;
  background: var(--inner);
  border-radius: 14px;
  padding: 20px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.member-grid video {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 14px;
  background: #d7d7d7;
}

.about-row {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.bars {
  display: grid;
  gap: 14px;
}

.bars .typing-line,
.expert-category .typing-line {
  display: inline-block;
  width: fit-content;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  background: #3c3d40;
  color: #fff;
  font-weight: 900;
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.25;
  padding: 2px 8px 4px;
  letter-spacing: 0.01em;
  border-right: 3px solid rgba(255, 255, 255, 0.92);
  will-change: max-width;
}

.bars .typing-line.typing-start,
.expert-category .typing-line.typing-start {
  animation:
    type-line 0.72s steps(var(--chars)) forwards var(--delay),
    caret-blink 0.6s step-end infinite var(--delay);
}

.bars .typing-line:nth-child(1) {
  --chars: 13;
}

.bars .typing-line:nth-child(2) {
  --chars: 15;
}

.bars .typing-line:nth-child(3) {
  --chars: 16;
}

.copy p {
  margin: 0 0 12px;
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 700;
  line-height: 1.8;
}

.cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-banner {
  background: #f3f3f3;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.card-banner img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.card-banner h3 {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 900;
  padding: 0 16px;
}

.card-banner h4 {
  margin: 0;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  color: #555;
  padding: 0 16px;
}

.card-banner-btn {
  display: inline-block;
  background: #222;
  color: #fff;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  margin-bottom: 18px;
}

.card-banner-btn:hover {
  background: #444;
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body p {
  margin: 0;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.7;
}

.partner-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.partner-grid>div {
  background: #fff;
  border-radius: 12px;
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 10px;
}

.partner-grid>div>a {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.partner-grid img {
  max-width: 85%;
  max-height: 45px;
  width: auto;
  height: auto;
}

.page-main {
  width: 100%;
  max-width: var(--site-max);
  margin: 28px auto 44px;
  padding: 0 var(--gutter);
}

/* ---- 共通パーツ（カード / ボタン） ---- */
.cm-card {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.cm-btn {
  display: inline-block;
  background: #222;
  color: #fff;
  padding: 14px 44px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.cm-btn:hover {
  background: #444;
}

.page-breadcrumb {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  color: #6a6a6a;
}

.page-breadcrumb a {
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid #b8b8b8;
}

.page-title {
  text-align: left;
  margin: 0;
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.content-stack {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.content-stack p,
.content-stack li {
  margin: 0;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.8;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.tile-grid {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  background: #efefef;
  border-radius: 12px;
  padding: 12px;
}

.tile img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
}

.tile h3 {
  margin: 10px 0 0;
  font-size: clamp(18px, 1.6vw, 24px);
}

.tile p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.member-cards {
  margin-top: 18px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-card {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.member-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.member-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.member-card .role {
  font-size: 12px;
  font-weight: 800;
  color: #4a4d53;
  margin-bottom: 14px;
}

.member-card p {
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
  flex: 1;
  color: #2f3136;
}

.member-card> :not(img) {
  padding-left: 18px;
  padding-right: 18px;
}

.member-card h3 {
  padding-top: 16px;
}

.site-footer {
  margin-top: 34px;
  background: #060606;
  color: #f5f5f5;
}

.footer-wrap {
  width: 100%;
  max-width: var(--site-max);
  padding: 34px var(--gutter) 30px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: clamp(18px, 1.7vw, 28px);
}

.site-footer h3 a {
  color: inherit;
  text-decoration: none;
}

.site-footer h3 a:hover {
  text-decoration: underline;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 0 0 12px;
  color: #d7d7d7;
  font-size: clamp(13px, 0.9vw, 14px);
  line-height: 1.7;
}

.site-footer .note-rss-list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer .note-rss-list a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.sns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sns-grid a {
  background: #fff;
  min-height: 92px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 10px;
}

.sns-grid img {
  max-width: 54px;
  max-height: 54px;
}

.copyright {
  margin: 0;
  text-align: center;
  border-top: 1px solid #252525;
  color: #bcbcbc;
  font-size: 12px;
  padding: 12px 0 14px;
}

[data-aos] {
  opacity: 0;
  will-change: transform, opacity;
  transition-property: transform, opacity;
  transition-duration: 700ms;
  transition-timing-function: cubic-bezier(0.2, 0.6, 0.2, 1);
}

[data-aos="fade-up"] {
  transform: translate3d(0, 22px, 0);
}

[data-aos="flip-left"] {
  transform: perspective(2500px) rotateY(-100deg);
  transform-origin: center;
  backface-visibility: hidden;
}

[data-aos="flip-left"].aos-animate {
  transform: perspective(2500px) rotateY(0);
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: none;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* ── プロフィールページ専用 ── */

.profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.profile-photo img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.page-speakingcircles .profile-photo img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
}

.profile-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-text h1 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 900;
  line-height: 1.2;
}

.profile-text .profile-roles {
  margin: 0;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.8;
}

.profile-text .profile-bio {
  margin: 0;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.8;
}

.profile-text .profile-tags {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.profile-link-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.profile-link-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  color: #111;
  font-size: 13px;
  font-weight: 700;
}

.profile-link-btn img {
  height: 22px;
  width: auto;
}

/* ── SOLUTIONカード ── */
.page-sukeda .solution-card {
  text-align: center;
}

.page-sukeda .solution-icon {
  margin-left: auto;
  margin-right: auto;
}

.page-sukeda .solution-card p {
  text-align: left;
}


.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.solution-card {
  background: #efefef;
  border-radius: 14px;
  padding: 24px 16px;
}

.solution-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.solution-card h3 {
  margin: 0 0 12px;
  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 900;
}

.solution-card p {
  margin: 0;
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.8;
}

/* ── WORKSロゴタイル（aspect-ratioなし） ── */

.works-tile {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.works-tile-banner {
  background: #f3f3f3;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.works-tile-banner img {
  max-height: 80px;
  max-width: 80%;
  width: auto;
  object-fit: contain;
}

.works-tile-banner h3 {
  margin: 0;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 900;
  line-height: 1.4;
}

.works-tile-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.works-tile-body p {
  margin: 0;
  font-size: clamp(13px, 0.9vw, 14px);
  line-height: 1.7;
  flex: 1;
}

.works-tile-btn {
  display: inline-block;
  background: #222;
  color: #fff;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.works-tile-btn:hover {
  background: #444;
}

.works-footnote {
  margin-top: 16px;
  font-size: 12px;
  color: #777;
}

/* ── レスポンシブ ── */

@media (max-width: 960px) {
  .header-wrap {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--gutter);
    gap: 12px;
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
  }

  .menu-toggle-bar,
  .menu-toggle-bar::before,
  .menu-toggle-bar::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #111;
    transition: transform 0.2s ease, opacity 0.2s ease;
    content: "";
  }

  .menu-toggle-bar {
    position: relative;
  }

  .menu-toggle-bar::before {
    position: absolute;
    top: -6px;
    left: 0;
  }

  .menu-toggle-bar::after {
    position: absolute;
    top: 6px;
    left: 0;
  }

  .header-wrap.nav-open .menu-toggle-bar {
    background: transparent;
  }

  .header-wrap.nav-open .menu-toggle-bar::before {
    top: 0;
    transform: rotate(45deg);
  }

  .header-wrap.nav-open .menu-toggle-bar::after {
    top: 0;
    transform: rotate(-45deg);
  }

  nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 25;
    background: #f6f6f6;
    border: 1px solid #d6d6d6;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
    padding: 10px;
    gap: 8px;
    flex-direction: column;
  }

  .header-wrap.nav-open nav {
    display: flex;
  }

  nav a {
    display: block;
    width: 100%;
    font-size: 12px;
    line-height: 1;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    padding: 12px;
  }

  nav a:not(.nav-cta)::after {
    display: none;
  }

  nav a:not(.nav-cta):hover {
    transform: none;
    color: #111;
    background: #f2f2f2;
  }

  nav a.nav-cta {
    border: 1px solid #222;
    border-radius: 10px;
    text-align: center;
  }

  .member-grid,
  .cards,
  .partner-grid,
  .about-row,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .tile-grid,
  .member-cards,
  .solution-grid,
  .concept-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-row {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 256px;
  }

  .page-top .hero {
    height: 205px;
  }

  .bars .typing-line {
    font-size: clamp(14px, 4.4vw, 18px);
  }

  .footer-wrap {
    padding: 26px var(--gutter) 22px;
  }

  .mvv-grid,
  .support-grid,
  .service-grid,
  .law-grid {
    grid-template-columns: 1fr;
  }
}

/* ── ABOUTページ: MVVカード ── */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.mvv-card {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.mvv-icon {
  font-size: 38px;
  margin-bottom: 12px;
}

.mvv-card h3 {
  margin: 0 0 12px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
}

.mvv-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
}

/* ── ABOUTページ: サポート対象4列 ── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.support-card {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.support-icon {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 8px;
}

.support-card .en-label {
  display: block;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #888;
  margin-bottom: 4px;
}

.support-card h3 {
  margin: 0 0 10px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
}

.support-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
}

/* ── ABOUTページ: 法人概要 + MAP ── */
.law-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

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

.law-table th,
.law-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #d8d8d8;
  vertical-align: top;
  line-height: 1.7;
}

.law-table th {
  font-weight: 700;
  white-space: nowrap;
  width: 38%;
  text-align: left;
}

.law-table td a {
  color: var(--blue);
}

.map-embed {
  border-radius: 12px;
  overflow: hidden;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.map-embed-card {
  position: relative;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.map-open-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(2px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.map-open-btn:hover {
  background: rgba(17, 17, 17, 1);
  transform: translateY(-1px);
}

/* ── EIRIページ: サービスバナーカード ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.service-card {
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.service-banner {
  background: #f3f3f3;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.service-banner img {
  max-height: 90px;
  max-width: 85%;
  object-fit: contain;
}

.service-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #e8e8e8;
  border: 1px solid #d3d3d3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.line-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  margin-right: 8px;
  border-radius: 999px;
  font-size: var(--fs-5);
  font-weight: 800;
  color: #fff;
  background: #06c755;
  vertical-align: middle;
}

.service-banner-title {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 900;
  line-height: 1.4;
  margin: 0;
}

.service-banner-btn {
  display: inline-block;
  background: #222;
  color: #fff;
  padding: 14px 44px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.service-banner-btn:hover {
  background: #444;
}

.service-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-body p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
}

.service-body a {
  display: none;
}

/* ── お問い合わせフォーム ── */
.inquiry-note {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.inquiry-note a {
  color: var(--blue);
}

.page-main .panel > form {
  margin-top: 14px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  background: #fafafa;
  box-sizing: border-box;
}

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

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
  background: #fff;
}

.form-submit-wrap {
  text-align: center;
  margin-top: 28px;
}

.form-submit {
  background: #222;
  color: #fff;
  padding: 14px 60px;
  border: none;
  border-radius: 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.form-submit:hover {
  background: #444;
}

/* ── メンバーカード: Xアイコンリンク ── */
.member-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding: 12px 18px 14px;
  border-top: 1px solid #cfcfcf;
  justify-content: flex-end;
  min-height: 54px;
}

.member-links a:not(.x-icon-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #444;
  border-radius: 8px;
  font-size: 0;
  flex-shrink: 0;
  text-decoration: none;
  position: relative;
}

.member-links a:not(.x-icon-link)::before {
  content: "↗";
  font-size: 13px;
  color: #fff;
  font-weight: 900;
}

.x-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #111;
  color: #fff !important;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none !important;
  flex-shrink: 0;
}

/* ── MEMBERSHIPページ専用 ── */
.membership-hero {
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 24px;
}

.membership-hero-img {
  background: #fff;
  border: 4px solid #111;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

.membership-hero-img h3 {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 14px;
}

.membership-hero-img .tag {
  background: #111;
  color: #fff;
  padding: 4px 20px;
  font-size: 14px;
  font-weight: 900;
  border-radius: 4px;
}

.membership-hero-img .cow-icon {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 50px;
}

.membership-hero-content dl {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.membership-hero-content dt {
  font-weight: 900;
  margin-bottom: 2px;
  color: #111;
}

.membership-hero-content dd {
  margin: 0 0 14px;
  color: #444;
}

.membership-hero-content dd:last-child {
  margin-bottom: 0;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

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

.concept-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.concept-card {
  text-align: center;
  padding: 24px 14px;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.concept-card-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}

.concept-icon {
  width: 72px;
  height: 72px;
  background: #333;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 32px;
}

.concept-card h3 {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 10px;
}

.concept-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

.page-community .related-projects .concept-card {
  padding: 0;
  overflow: hidden;
}

.page-community .related-projects .concept-card p {
  margin: 0;
}

.page-community .related-projects .concept-card-image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  margin: 0;
  object-fit: cover;
  display: block;
}

.note-section {
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  margin-top: 24px;
}

.note-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.note-item {
  border-bottom: 1px solid #eee;
  padding: 14px 0;
  font-size: 14px;
}

.note-item:last-child {
  border-bottom: none;
}

.note-item a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.note-item .date {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

.badge-black {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.flow-item {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.flow-num {
  font-size: 20px;
  font-weight: 900;
  width: 44px;
  height: 44px;
  background: #f0f0f0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.flow-content h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
}

.flow-content p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.faq-card {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.faq-card dt {
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.faq-card dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}

.inquiry-cta {
  text-align: center;
  margin-top: 44px;
}

.btn-red {
  display: inline-block;
  background: #d83b3b;
  color: #fff;
  padding: 14px 44px;
  border-radius: 30px;
  font-weight: 900;
  text-decoration: none;
  font-size: 16px;
}

.btn-red:hover {
  background: #c03434;
}

.cow-chat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
}

.cow-chat-icon {
  width: 44px;
  flex-shrink: 0;
}

.cow-chat-box {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.6;
  position: relative;
  flex: 1;
}

.cow-chat-box::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 18px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #fff;
}

.note-xs {
  font-size: 11px;
  color: #888;
  margin-top: 8px;
  line-height: 1.6;
}

.note-xs:first-of-type {
  margin-top: 24px;
}

/* membership 専用ユーティリティ */
.note-logo {
  height: 32px;
  margin-bottom: 20px;
}

.hero-caption {
  font-size: 11px;
  color: #666;
  margin-top: 10px;
}

.mvv-card--center {
  grid-column: 2;
}

.cta-wrap {
  margin-top: 32px;
  text-align: center;
}

/* ── MEMBERSHIP 専用 ── */
.page-membership .panel {
  border-radius: 14px;
  background: var(--panel);
}

.page-membership .panel:first-of-type .page-title {
  letter-spacing: 0.02em;
}

.page-membership .panel:first-of-type .spot-summary-grid {
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-membership .panel:first-of-type .spot-summary-item {
  background: #f4f4f4;
  border: 1px solid #d8d8d8;
}

.page-membership .law-grid {
  margin-top: 20px;
}

.page-membership .law-table {
  border-radius: 12px;
  overflow: hidden;
}

.page-membership .law-table th {
  width: 32%;
  background: transparent;
  color: inherit;
  font-size: 13px;
  letter-spacing: normal;
}

.page-membership .law-table td {
  background: transparent;
  font-size: 13px;
}

.page-membership .law-table tr:nth-child(even) td {
  background: transparent;
}


@media (max-width: 960px) {
  .membership-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .concept-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .mvv-card--center {
    grid-column: auto;
  }

  .page-membership .panel:first-of-type .spot-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ── SPOT WORKS 専用 ── */
.page-spot .member-card {
  background: #fff;
}

.page-spot .member-card> :not(img) {
  padding-left: 18px;
  padding-right: 18px;
}

.page-spot .member-card p:last-child {
  padding-bottom: 14px;
}

.spot-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.spot-summary-item {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  padding: 16px;
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.8;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.spot-summary-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #111;
}

.page-spot .spot-member-sub {
  margin-bottom: 28px;
}

.spot-faq-cta-wrap {
  margin-top: 40px;
  margin-bottom: 0;
  text-align: center;
}

.spot-cta-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: min(560px, 94%);
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 18px;
  padding: 20px 26px 24px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.spot-cta-label {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #444;
}

.spot-cta-copy {
  margin: 0;
  font-size: clamp(15px, 1.35vw, 21px);
  font-weight: 900;
  line-height: 1.45;
  color: #111;
}

.spot-cta-card .service-banner-btn {
  margin-bottom: 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.voice-tile {
  border: 1px solid #d0d0d0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.voice-tile-banner {
  background: #f3f3f3;
  padding: 20px 16px 14px;
  text-align: center;
}

.voice-tile-banner img {
  width: 110px;
  height: 110px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
}

.voice-tile-role {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #4a4d53;
}

.voice-tile-body {
  padding: 16px 18px 20px;
}

.voice-tile-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: #2f3136;
  text-align: left;
}

.terms-content {
  max-width: 920px;
  margin-top: 18px;
}

.terms-content h3 {
  margin: 22px 0 10px;
  font-size: 20px;
  font-weight: 900;
}

.terms-content p,
.terms-content li {
  font-size: 14px;
  line-height: 1.9;
}

.terms-content ol {
  margin: 8px 0 14px 20px;
  padding: 0;
}

.terms-content hr {
  border: 0;
  border-top: 1px solid #cfcfcf;
  margin: 18px 0;
}

.page-member .member-card {
  background: #fff;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
}

.page-member .member-links {
  border-top: none;
  margin-top: 0;
}

.page-member .member-card p:not(.role) {
  flex: initial;
  align-self: start;
}

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

.expert-category {
  margin: 36px 0 16px;
  padding: 0;
  text-align: left;
}

.expert-category:first-of-type {
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {

  .bars .typing-line,
  .expert-category .typing-line {
    animation: none;
    max-width: none;
    border-right: 0;
  }
}

@media (max-width: 960px) {
  .support-grid--3 {
    grid-template-columns: 1fr;
  }

  .concept-grid--2,
  .concept-grid--3 {
    grid-template-columns: 1fr;
  }

  .page-lport .concept-grid {
    grid-template-columns: 1fr !important;
  }

  .spot-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ── イントロオーバーレイ ── */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  cursor: pointer;
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease 0.5s,
    border-radius 0.9s ease;
}

.intro-logo {
  width: 220px;
  max-width: 50vw;
  filter: brightness(0) invert(1);
}

.intro-hint {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  opacity: 0.45;
  animation: intro-bounce 1.6s ease-in-out infinite;
}

@keyframes intro-bounce {

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

  50% {
    transform: translateY(7px);
  }
}

@keyframes hero-update-pop {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.98;
  }

  50% {
    transform: translateY(-2px) scale(1.04);
    opacity: 1;
  }
}

@keyframes type-line {
  from {
    max-width: 0;
  }

  to {
    max-width: calc(var(--chars) * 1em + 16px);
  }
}

@keyframes caret-blink {

  0%,
  49% {
    border-right-color: rgba(255, 255, 255, 0.92);
  }

  50%,
  100% {
    border-right-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-top .hero h1 {
    animation: none;
  }

  .bars .typing-line {
    max-width: none;
    animation: none;
    border-right: 0;
  }
}

/* ---- Typography Scale (5 steps) ---- */
body {
  font-size: var(--fs-4);
}

.page-title {
  font-size: var(--fs-1);
}

.page-main h2,
.panel h2 {
  font-size: var(--fs-2);
}

.mvv-card h3,
.support-card h3,
.service-banner-title,
.concept-card h3,
.flow-content h3,
.faq-card dt {
  font-size: var(--fs-3);
}

.content-stack p,
.content-stack li,
.spot-summary-item,
.mvv-card p,
.support-card p,
.concept-card p,
.flow-content p,
.faq-card dd,
.voice-tile-body p,
.profile-bio,
.profile-roles {
  font-size: var(--fs-4);
}

.eyebrow,
.support-card .en-label,
.spot-cta-label,
.page-breadcrumb,
nav a,
.voice-tile-role {
  font-size: var(--fs-5);
}

/* ── モバイル最終上書き（カード崩れ対策） ── */
@media (max-width: 960px) {
  .member-grid,
  .cards,
  .partner-grid,
  .about-row,
  .footer-wrap,
  .tile-grid,
  .member-cards,
  .solution-grid,
  .mvv-grid,
  .support-grid,
  .service-grid,
  .law-grid,
  .sns-grid,
  .profile-row,
  .concept-grid,
  .concept-grid--2,
  .concept-grid--3,
  .faq-grid,
  .support-grid--3,
  .spot-summary-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .bars .typing-line {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    border-right: 0;
    line-height: 1.45;
    animation: none !important;
  }
  .hero-content p {
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
}
