/* ====================================================================
   STUDIO 切断版テンプレ上で動作させるためのオーバーライド (function 専用)
   ==================================================================== */
[data-s-e927ec92-d290-4191-a13a-ffc36b634d17] { display: none !important; }
/* #cta-btn-fixed (「30秒でカンタン！」「無料の資料ですぐわかる！」モーダル) は他切断版 (/price 等)
   と同じく表示する。以前は Amplify .cta-section と重複するため hide していたが、ユーザー方針で表示。 */
body main.sd { display: block !important; width: 100% !important; max-width: 100% !important; }

/* ========================================
   ハピネスパートナーズ — List Page
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   Header
   （layout.css から移植。list/index.html はヘッダー直書きのため
     このファイルでスタイルを完結させる）
   ============================================================ */

:root { --header-h: 0px; }

header#header {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ── 1段目：M3 Health Design グローバルヘッダー ── */
.global-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
}

.global-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px;
}

.global-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.m3-logo-img {
  width: 249px;
  height: auto;
  display: block;
}

.global-nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
}

.global-util-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0 4px;
}

.global-util-nav li a {
  font-size: 13px;
  line-height: 1;
  color: #435266;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 7.5px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.global-util-nav li a:hover { opacity: 0.7; }

.global-main-row {
  display: flex;
  align-items: center;
}

.global-main-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-main-nav li a {
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  color: #003366;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
}

.global-main-nav li a:hover { opacity: 0.7; }

.chevron-icon {
  width: 16px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
}

.ext-link-icon {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  display: inline-block;
}

.global-contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 5px;
  background: linear-gradient(90deg, #003366 0%, #00264d 100%);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  box-sizing: border-box;
}

.global-contact-btn:hover { opacity: 0.85; }

/* ── 2段目：ハピネスパートナーズ プロダクトサブヘッダー ── */
.product-subheader {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #f3fafc;
  width: 100%;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.product-subheader-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1163px;
  max-width: calc(100% - 40px);
  height: 100%;
  padding: 12px 0;
}

.product-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding-top: 4px;
}

.product-logo-img {
  height: 33px;
  width: auto;
  display: block;
}

.product-subnav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.subnav-link {
  font-size: 14px;
  font-weight: 600;
  color: #003366;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1px;
}

.subnav-link:hover { opacity: 0.7; }

.subnav-divider {
  color: #a6a6c1;
  font-size: 14px;
  font-weight: 100;
  line-height: 30px;
  user-select: none;
  padding: 0;
}

/* メリット ドロップダウン (STUDIO版と同等: 保健師・産業医向け / 経営者向け) */
.subnav-dropdown {
  position: relative;
}

.subnav-dropdown-toggle {
  cursor: pointer;
}

.subnav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  padding: 6px 0;
  min-width: 230px;
  z-index: 1000;
}

.subnav-dropdown:hover .subnav-dropdown-menu,
.subnav-dropdown:focus-within .subnav-dropdown-menu {
  display: block;
}

.subnav-dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #003366;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.subnav-dropdown-item:hover {
  background: #f3fafc;
}

/* ── モバイル専用ヘッダー（990px以下で表示） ── */
.mobile-header {
  display: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
}

.mobile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.mobile-menu-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-contact-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #393939;
  text-decoration: none;
  padding: 8px;
}

.mobile-contact-link p { margin: 0; }
.mobile-contact-link:hover { opacity: 0.6; }

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-btn div {
  width: 22px;
  height: 2px;
  background: #393939;
  border-radius: 1px;
  transition: all 0.2s;
}

/* ── ヘッダー レスポンシブ ── */
@media screen and (max-width: 1280px) {
  .global-main-nav li a { padding: 8px 6px; font-size: 13px; }
  .global-contact-btn { padding: 0 14px; }
}

@media screen and (max-width: 990px) {
  .global-header { display: none; }
  .product-subheader { display: none; }
  .mobile-header { display: block; }
}

@media screen and (max-width: 690px) {
  .mobile-header-inner { padding: 20px 16px 12px 20px; }
  .logo-img { height: 28px; }
}

/* ============================================================
   End of Header
   ============================================================ */

/* ── Design Tokens ── */
:root {
  /* Gray */
  --primitive-gray-100: #121f32;
  --primitive-gray-80:  #435266;
  --primitive-gray-60:  #697584;
  --primitive-gray-40:  #8f9399;
  --primitive-gray-5:   #f5f5f5;
  --primitive-gray-0:   #ffffff;

  /* Navy */
  --primitive-navy-100: #003366;
  --primitive-navy-40:  #c2d0e8;
  --primitive-navy-30:  #d0d9ed;
  --primitive-navy-20:  #d6e7e8;
  --primitive-navy-10:  #f0f4fa;

  /* Yellow */
  --primitive-yellow-100: #fac03e;

  /* Red */
  --primitive-red-100: #c03a3a;
  --primitive-red-30:  #ecc8c4;
  --primitive-red-10:  #fdf5f4;

  /* Gradient */
  --gradient-brand: linear-gradient(142deg, #83D6BD 0%, #0066CC 100%);

  /* Text */
  --color-text-title:                var(--primitive-gray-100);
  --color-text-body:                 var(--primitive-gray-80);
  --color-text-subtle:               var(--primitive-gray-60);
  --color-text-action:               var(--primitive-navy-100);
  --color-text-on-dark:              var(--primitive-gray-0);

  /* Background */
  --color-background-default:        var(--primitive-gray-0);
  --color-background-secondary:      var(--primitive-navy-10);
  --color-background-primary-action: var(--primitive-navy-100);
  --color-background-call-to-action: var(--primitive-yellow-100);
  --color-background-emphasis:       var(--primitive-navy-100);

  /* Border */
  --color-border-subtler:            var(--primitive-gray-5);
  --color-border-subtle:             var(--primitive-navy-20);
  --color-border-primary:            var(--primitive-navy-30);
  --color-border-action:             var(--primitive-navy-100);

  /* Status */
  --color-status-danger:             var(--primitive-red-100);
  --color-background-danger:         var(--primitive-red-10);
  --color-border-danger:             var(--primitive-red-30);

  /* Category colors */
  --cat-health:    #2d8659;
  --cat-interview: #2563eb;
  --cat-work:      #c2590a;
  --cat-data:      #6d28d9;
  --cat-comm:      #c03a3a;
  --cat-platform:  #1e6096;
  --cat-external:  #0d7377;

  /* Typography */
  --font-display: system-ui, -apple-system, 'Helvetica Neue', sans-serif, 'ヒラギノ角ゴ W4 JIS2004','M3-W4', 'Hiragino Sans', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    system-ui, -apple-system, 'Helvetica Neue', sans-serif, 'ヒラギノ角ゴ W4 JIS2004','M3-W4', 'Hiragino Sans', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  40px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;
  --sp-4xl: 128px;

  /* Layout */
  --max-w:      1120px;
  --max-w-wide: 1280px;
  --header-h:   0px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 0.3s;
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-text-title);
  background: var(--color-background-default);
  letter-spacing: 0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
}

img { max-width: 100%; display: block; }
ul { list-style: none; }

h3 { color: var(--primitive-navy-100); letter-spacing: 0.02em; }

/* ========================================
   Hero (base — list.html で使う部分のみ)
   ======================================== */
.hero {
  margin-top: var(--header-h);
  padding: 96px var(--sp-xl);
  background: var(--color-background-secondary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--color-text-title);
}

.hero-description {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text-body);
  max-width: 640px;
}

/* ========================================
   LIST PAGE — Hero Simple
   ======================================== */
.hero.hero-simple {
  padding: var(--sp-2xl) var(--sp-xl) var(--sp-xl);
}

.hero.hero-simple::before {
  background-image: none;
}

.hero.hero-simple .hero-content {
  text-align: center;
}

.hero.hero-simple h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 12px;
}

.hero.hero-simple .hero-description {
  max-width: 560px;
  margin: 0 auto;
}

/* ========================================
   LIST PAGE — Main Layout
   ======================================== */
.main-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-xl) 0;
}

/* ========================================
   Category Nav
   ======================================== */
.category-nav {
  max-width: 1400px;
  margin: var(--sp-2xl) auto var(--sp-lg);
  padding: 0 var(--sp-xl);
}

.category-nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 12px;
  justify-content: center;
}

.category-nav-item { margin-bottom: 0; }

.category-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-action);
  letter-spacing: 0.02em;
  border-radius: 100px;
  border: 2px solid var(--color-border-subtle);
  background: var(--color-background-default);
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.category-nav-link:hover {
  border-color: var(--color-text-action);
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.1);
}

.category-nav-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: url(#steps-icon-gradient) var(--color-text-action);
}

.category-nav-caret {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #0a41a0;
  border-radius: 999px;
  flex-shrink: 0;
  color: white;
}

/* ========================================
   Category Sections (List Page)
   ======================================== */
.category-section {
  margin-bottom: 120px;
  scroll-margin-top: calc(var(--header-h) + var(--sp-lg));
}

.category-header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 80px;
  padding: 48px;
  border-radius: 10px;
  background: var(--color-background-secondary);
  overflow: hidden;
}

.category-header > img,
.category-header > picture {
  position: absolute;
  top: 25px;
  right: 0;
  width: 328px;
  height: auto;
  display: block;
}

.category-header > picture img {
  width: 100%;
  height: auto;
  display: block;
}

.category-header__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 605px;
}

.category-header__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.category-header__desc {
  font-size: 14px;
  color: var(--color-text-body);
  line-height: 2;
  letter-spacing: 0.02em;
  margin: 0;
}

.category-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--color-text-action);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.section-flow-block {
  background: var(--color-background-secondary);
  border-radius: 10px;
  padding: 36px;
  max-width: 960px;
  margin: 0 auto;
}

.category-challenge {
  text-align: center;
  margin-bottom: 36px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.subsection-label {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-action);
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0;
}

.challenge-block {
  position: relative;
  max-width: 960px;
  margin: 0 auto 72px;
}

.challenge-block > .subsection-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0 16px;
  white-space: nowrap;
  z-index: 1;
}

.category-challenge__grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  border: 2px solid var(--color-border-primary);
  border-radius: 10px;
  padding: 56px 24px 36px;
  list-style: none;
  margin: 0;
}

.category-challenge__grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.category-challenge__item-img {
  background: var(--color-background-secondary);
  padding: 16px;
  border-radius: 8px;
  flex-shrink: 0;
}

.category-challenge__item-img img {
  width: 240px;
  height: 128px;
  object-fit: cover;
  display: block;
}

.category-challenge__grid li span {
  font-size: 18px;
  color: var(--color-text-action);
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}

.feature-subgroup {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--color-background-default);
  border-radius: 10px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.feature-subgroup:last-child {
  margin-bottom: 0;
}

/* ════════════════════════════════
   Plan A: ステップ帯型レイアウト
════════════════════════════════ */

/* ── ステップフロー概要（全ステップ一覧） ── */
.a-steps-overview {
  margin-bottom: 48px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.a-steps-overview__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 8px;
}

.a-steps-overview__item {
  display: flex;
  align-items: center;
}

.a-steps-overview__item::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.19188 0.334735C7.63819 -0.111578 8.36181 -0.111578 8.80812 0.334735L15.6653 7.19188C16.1116 7.63819 16.1116 8.36181 15.6653 8.80812L8.80812 15.6653C8.36181 16.1116 7.63819 16.1116 7.19188 15.6653C6.74556 15.219 6.74556 14.4953 7.19188 14.049L12.098 9.14286H1.14286C0.511675 9.14286 0 8.63118 0 8C0 7.36882 0.511675 6.85714 1.14286 6.85714H12.098L7.19188 1.95098C6.74556 1.50467 6.74556 0.781049 7.19188 0.334735Z' fill='%23003366'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 8px;
  flex-shrink: 0;
}

.a-steps-overview__item:last-child::after {
  display: none;
}

.a-steps-overview__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 100px;
  border: 2px solid var(--color-border-subtle);
  padding: 12px 24px 12px 20px;
  background: var(--color-background-default);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.a-steps-overview__link:hover {
  border-color: var(--color-text-action);
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.1);
}

.a-steps-overview__icon {
  width: 24px;
  height: 24px;
  stroke: url(#steps-icon-gradient) #0066CC;
  flex-shrink: 0;
}

.a-steps-overview__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-action);
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
}

.a-steps-overview__caret {
  display: none;
}

@media (max-width: 640px) {
  .a-steps-overview__list {
    gap: 10px 6px;
  }
  .a-steps-overview__link {
    padding: 10px 14px 10px 12px;
  }
  .a-steps-overview__item::after {
    width: 12px;
    height: 12px;
    margin-left: 6px;
  }
}

.a-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.a-step {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  background: var(--color-background-default);
  border-radius: 10px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.a-step__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.a-step__desc {
  margin: 0;
  font-size: 16px;
  color: var(--color-text-body);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.a-step__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  stroke: url(#steps-icon-gradient) var(--color-text-action);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.a-step__label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.a-step__name {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-action);
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
}

.a-step__cards {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.a-step__cards.is-single {
  grid-template-columns: 1fr;
  max-width: 320px;
}

/* アイコン付き横並びカード */
.feat-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 6px 12px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: default;
  background: var(--color-background-default);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--r-md);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-sm);
}

.feat-card__icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-background-secondary);
  border: 1.5px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
  grid-column: 1;
  grid-row: 1;
}

.feat-card__icon {
  width: 22px;
  height: 22px;
  stroke: url(#steps-icon-gradient) var(--color-text-action);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feat-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-title);
  line-height: 1.4;
  transition: color 0.15s;
  grid-column: 2;
  grid-row: 1;
}

.feat-card__arrow {
  display: none;
}

.feat-card__desc {
  font-size: 11.5px;
  color: var(--color-text-body);
  line-height: 1.8;
  grid-column: 1 / -1;
  grid-row: 2;
}

/* ========================================
   Plan B: スクショ横型2列カード
   ======================================== */
.a-step__cards--wide {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.a-step__cards--wide.is-single {
  width: 100%;
  max-width: none;
  justify-content: flex-start;
}
.a-step__cards--wide.is-single .feat-card--wide {
  flex: 0 0 calc(50% - 8px);
}

.feat-card--wide {
  flex: 1 0 calc(33.333% - 11px);
  max-width: calc(33.333% - 11px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 2px solid var(--color-background-secondary);
}

.feat-card--wide .feat-card__icon-circle {
  position: relative;
  width: 100%;
  height: 130px;
  flex-shrink: 0;
  border-radius: 0;
  border-width: 0;
  border-bottom: 2px solid #eff4fa;
  background: #f0f4fa;
  overflow: hidden;
}
.feat-card--wide .feat-card__icon {
  display: none;
}
.feat-card--wide .feat-card__icon-circle:not(:has(img)) .feat-card__icon {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  stroke: url(#steps-icon-gradient) var(--color-text-action);
}

.feat-card__screenshot {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 195px;
  height: 130px;
  object-fit: cover;
  object-position: left top;
  display: block;
}

.feat-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
}

.feat-card--wide .feat-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-action);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.feat-card--wide .feat-card__body {
  gap: 6px;
}

.feat-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feat-card--wide .feat-card__desc {
  font-size: 14px;
  color: var(--color-text-body);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 80px 20px;
  background: var(--color-background-default);
}

.cta-background {
  background: linear-gradient(100deg, #00264d 0%, #003366 100%);
  border-radius: 40px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 60px 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.cta-title {
  font-size: 27.9px;
  font-weight: 600;
  color: white;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 0;
}

.cta-cards {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.cta-card-estimate {
  background: white;
  border-radius: 10px;
  padding: 30px;
  flex: 0 0 408px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.cta-card-estimate::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 80px;
  top: -47px;
  left: -19px;
  background: linear-gradient(141.69deg, rgb(131, 214, 189) 0%, rgb(0, 102, 204) 100%);
  opacity: 0.1;
  filter: blur(20px);
  pointer-events: none;
}

.cta-card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.cta-card-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

.cta-card-title {
  font-size: 24px;
  font-weight: 600;
  color: #003366;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.cta-card-desc {
  font-size: 15px;
  color: #435266;
  text-align: center;
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin: 0;
}

.cta-estimate-btn {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  border: 1px solid #003366;
  border-radius: 999px;
  padding: 7px 7px 7px 33px;
  background: white;
  text-decoration: none;
  box-sizing: border-box;
  transition: opacity 0.2s;
}

.cta-estimate-btn:hover { opacity: 0.8; }

.cta-estimate-btn-text {
  font-size: 16px;
  font-weight: 600;
  color: #003366;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
}

.cta-estimate-btn-arrow {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(10, 65, 160, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
}

.cta-estimate-btn-arrow-inner {
  width: 100%;
  height: 100%;
  background: #0a41a0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
}

.cta-card-document {
  background: white;
  border-radius: 10px;
  padding: 30px 45px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.cta-card-document::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 80px;
  bottom: -15px;
  right: -18px;
  background: linear-gradient(141.69deg, rgb(131, 214, 189) 0%, rgb(0, 102, 204) 100%);
  opacity: 0.1;
  filter: blur(20px);
  pointer-events: none;
}

.cta-card-document-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.cta-doc-desc {
  font-size: 15px;
  color: #435266;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 0;
}

.cta-download-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fac03e;
  color: #003366;
  border-radius: 38px;
  padding: 16px 28px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cta-download-btn:hover { opacity: 0.9; }

.cta-laptop-img {
  width: 268px;
  height: 166px;
  object-fit: cover;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ========================================
   Version Switcher
   ======================================== */
.version-switcher {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 2px 4px;
  display: flex;
  gap: 2px;
  opacity: 0.5;
}

.version-switcher:hover {
  opacity: 1;
}

.version-switcher__btn {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.version-switcher__btn--active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1200px) {
  .main-layout {
    padding: var(--sp-xl) var(--sp-lg) var(--sp-3xl);
  }

  .cta-background { padding: 60px 40px; }
  .cta-card-estimate { flex: 0 0 340px; }
}


@media (max-width: 990px) {
  .category-nav {
    padding: 0 var(--sp-md);
    margin: var(--sp-xl) auto var(--sp-md);
  }

  .category-nav-list {
    gap: 10px 8px;
  }

  .category-nav-link {
    font-size: 14px;
    padding: 10px 12px 10px 16px;
    gap: 8px;
  }

  .category-nav-caret {
    width: 24px;
    height: 24px;
  }

  .category-header {
    padding: 24px 20px;
    margin-bottom: 36px;
    gap: 12px;
    flex-direction: column;
  }

  .category-header > img,
  .category-header > picture {
    position: static;
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    order: 2;
  }

  .category-header__body {
    display: contents;
  }

  .category-header__title-row {
    order: 1;
    padding: 8px 0 12px;
  }

  .category-header__desc {
    order: 3;
  }

  .category-title {
    font-size: 22px;
    text-align: center;
    width: 100%;
  }

  .category-header__desc {
    font-size: 13px;
    line-height: 1.8;
  }

  .section-flow-block {
    padding: 24px 16px;
  }

  .subsection-label {
    font-size: 22px;
  }

  .feat-card--wide {
    flex: 1 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }

  .a-step__cards--wide.is-single .feat-card--wide {
    flex: 0 0 calc(50% - 8px);
  }

  .a-step__name {
    font-size: 20px;
  }

  .category-challenge__grid {
    gap: 20px;
    padding: 48px 16px 28px;
  }

  .category-challenge__item-img img {
    width: 180px;
    height: 96px;
  }

  .category-challenge__grid li span {
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .cta-cards { flex-direction: column; }
  .cta-card-estimate { flex: 0 0 auto; }
  .cta-card-document { flex-direction: column; }
  .cta-laptop-img { width: 100%; height: auto; max-width: 277px; }
  .cta-background { padding: 40px 20px; border-radius: 24px; }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .hero {
    padding: var(--sp-2xl) var(--sp-md) var(--sp-xl);
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero.hero-simple {
    padding: var(--sp-xl) var(--sp-md);
  }

  .hero.hero-simple h1 {
    font-size: 26px;
  }

  .main-layout {
    padding: var(--sp-lg) var(--sp-md) var(--sp-2xl);
  }

  .category-section {
    margin-bottom: 72px;
  }

  .category-header {
    padding: 24px 20px;
    margin-bottom: 36px;
    gap: 12px;
  }

  .category-header > img,
  .category-header > picture {
    position: static;
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    order: 2;
  }

  .category-header__body {
    display: contents;
  }

  .category-header__title-row {
    order: 1;
    padding: 8px 0 12px;
  }

  .category-header__desc {
    order: 3;
  }

  .category-header__body {
    max-width: 100%;
    gap: 16px;
  }

  .category-title {
    font-size: 22px;
    text-align: center;
    width: 100%;
  }

  .category-header__desc {
    font-size: 13px;
    line-height: 1.8;
  }

  .a-step__head {
    justify-content: center;
    gap: 6px;
  }

  .category-challenge {
    margin-bottom: 16px;
  }

  .a-step__cards.a-step__cards--wide {
    margin-top: 8px;
  }

  .challenge-block {
    margin-bottom: 24px;
  }

  .category-challenge__grid {
    flex-direction: column;
    gap: 24px;
    padding: 40px 16px 28px;
  }

  .category-challenge__item-img img {
    width: 200px;
    height: 106px;
  }

  .category-challenge__grid li span {
    font-size: 16px;
  }

  .section-flow-block {
    padding: 20px 12px;
  }

  .subsection-label {
    font-size: 20px;
  }

  .a-steps-overview {
    margin-bottom: 32px;
  }

  .a-steps-overview__link {
    padding: 10px 14px 10px 12px;
    gap: 6px;
  }

  .a-steps-overview__name {
    font-size: 13px;
  }

  .a-steps-overview__icon {
    width: 20px;
    height: 20px;
  }

  .a-steps-overview__item::after {
    width: 12px;
    height: 12px;
    margin-left: 4px;
  }

  .a-step {
    padding: 24px 16px;
  }

  .a-step__name {
    font-size: 18px;
  }

  .a-step__desc {
    font-size: 14px;
  }

  .feat-card--wide {
    flex: 1 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }

  .a-step__cards--wide.is-single .feat-card--wide {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .feat-card--wide .feat-card__name {
    font-size: 14px;
  }

  .feat-card--wide .feat-card__desc {
    font-size: 13px;
  }

  .feature-subgroup {
    padding: 24px 16px;
  }

  .cta-section {
    padding: 48px 16px;
  }

  .cta-title {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .category-nav-list {
    gap: 8px 6px;
  }

  .category-nav-link {
    font-size: 13px;
    padding: 8px 10px 8px 14px;
    gap: 6px;
  }

  .category-nav-icon {
    width: 20px;
    height: 20px;
  }

  .category-nav-caret {
    width: 22px;
    height: 22px;
  }

  .a-steps-overview__list {
    gap: 6px 4px;
  }

  .a-steps-overview__link {
    padding: 8px 10px 8px 10px;
    gap: 4px;
  }

  .a-steps-overview__name {
    font-size: 12px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  .a-steps-overview__icon {
    width: 18px;
    height: 18px;
  }

  .a-steps-overview__item::after {
    width: 10px;
    height: 10px;
    margin-left: 4px;
  }

  .feat-card--wide {
    flex: 1 0 100%;
    max-width: 100%;
  }

  .a-step__cards--wide.is-single .feat-card--wide {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .feat-card--wide .feat-card__icon-circle {
    height: 110px;
  }

  .feat-card__screenshot {
    width: 170px;
    height: 110px;
    top: 10px;
  }

  .cta-background {
    padding: 32px 16px;
    border-radius: 20px;
  }

  .cta-title {
    font-size: 19px;
  }

  .cta-card-estimate {
    padding: 24px 20px;
  }

  .cta-card-document {
    padding: 24px 20px;
  }

  .cta-card-title {
    font-size: 20px;
  }

  .cta-estimate-btn {
    padding: 6px 6px 6px 24px;
    gap: 16px;
  }

  .cta-estimate-btn-text {
    font-size: 14px;
  }

  .cta-download-btn {
    font-size: 14px;
    padding: 14px 24px;
  }

  .cta-doc-desc {
    font-size: 13px;
  }
}

/* ============================================================
   Footer
   （layout.css から移植。list/index.html はフッター直書きのため
     このファイルでスタイルを完結させる）
   ============================================================ */

.footer {
  position: relative;
  overflow: hidden;
  background: white;
  padding: 0;
  margin: 0;
}

.footer-inner {
  display: flex;
  align-items: stretch;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-left {
  flex: 0 0 360px;
  padding: 80px 40px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  position: relative;
  z-index: 1;
}

.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-logo-link .m3-logo-img {
  width: 362px;
  height: auto;
}

.footer-address {
  font-size: 14px;
  color: #435266;
  line-height: 2;
  margin: 0;
  font-style: normal;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-badges img {
  height: 120px;
  width: auto;
}

.footer-copyright {
  font-size: 12px;
  color: #003366;
  margin: 0;
  line-height: 1.6;
}

.footer-nav {
  flex: 1;
  min-width: 0;
  background: linear-gradient(to bottom, #003366 0%, #00264d 100%);
  border-top-left-radius: 40px;
  padding: 80px 40px 20px 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-nav::after {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 100vw;
  height: 100%;
  background: linear-gradient(to bottom, #003366 0%, #00264d 100%);
}

.footer-nav-columns {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav-primary {
  display: flex;
  flex-direction: column;
}

.footer-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.footer-nav-link:hover { opacity: 0.7; }

.footer-nav-section-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  padding: 8px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: block;
}

.footer-nav-sub {
  display: flex;
  flex-direction: column;
}

.footer-nav-sub-link {
  display: block;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ccd5df;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.footer-nav-sub-link:hover { opacity: 0.8; }

.footer-nav-util {
  display: flex;
  align-items: center;
}

.footer-nav-util-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #99a9b9;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.footer-nav-util-link:hover { opacity: 0.8; }

.footer-ext-icon-sm {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .footer-nav-columns { gap: 48px; }
  .footer-nav { padding: 60px 30px 20px 50px; }
}

@media (max-width: 860px) {
  .footer-inner { flex-direction: column; padding: 0; }
  .footer-left {
    flex: 0 0 auto;
    padding: 60px 20px 40px;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-nav {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    padding: 60px 20px 20px;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-nav::after { display: none; }
  .footer-nav-columns { flex-wrap: wrap; gap: 32px; }
  .footer-nav-link, .footer-nav-section-title { font-size: 15px; }
}

/* ============================================================
   End of Footer
   ============================================================ */
