/* ==========================================================
   ITグローバルブレイン コーポレートサイト
   ========================================================== */

:root {
  --color-primary: #04a87e;
  --color-primary-light: #dcfbf3;
  /* グラデーションの終端と同じ青。官公庁実績のバッジにも使用 */
  --color-accent-blue: #1173b4;
  --color-navy: #00214d;
  --color-navy-dark: #001533;
  --color-danger: #ea0000;
  --color-text: #191919;
  --color-text-dark: #003729;
  --color-text-gray: #475569;
  --color-text-muted: #898e8d;
  --color-border: #e2e8f0;
  --color-bg-light: #f8fafc;
  --color-bg-gray: #f9f9f9;
  --font-base: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ==========================================================
   HEADER
   ========================================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  z-index: 1000;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 146px;
  height: 50px;
  object-fit: contain;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition: opacity 0.2s;
}

.nav-btn:hover {
  opacity: 0.85;
}

.nav-btn--primary {
  background: var(--color-primary);
}

.nav-btn-icon {
  width: 17px;
  height: 17px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================
   HERO（左テキスト + 右写真）
   ========================================================== */
.hero {
  margin-top: 80px;
  background: #fff;
  overflow: hidden;
}

.hero-inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  /* 左カラムの中身（見出し＋CTA）がちょうど収まる高さ。
     これ以上高くすると左下に空白が余り、写真も引き伸ばされる */
  min-height: clamp(420px, 32vw, 580px);
}

.hero-content {
  flex: 1;
  min-width: 0;
  padding: clamp(64px, 4.5vw, 96px) clamp(40px, 3vw, 64px) clamp(56px, 4vw, 80px) clamp(80px, 6vw, 120px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-title {
  /* 上限を抑える。ここが伸びるとヒーロー全体が高くなり、写真も引き伸ばされる */
  font-size: clamp(62px, 4.3vw, 72px);
  font-weight: 700;
  line-height: 1.6;
  background: linear-gradient(90deg, var(--color-primary) 0%, #1173b4 58%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.hero-actions {
  margin-top: clamp(40px, 3.5vw, 64px);
  width: min(635px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 2.5vw, 48px);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 225px;
  height: 55px;
  background: linear-gradient(90deg, var(--color-primary), #1173b4);
  border-radius: 27.5px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  transition: opacity 0.2s;
}

.hero-cta:hover {
  opacity: 0.85;
}

.hero-note {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.hero-photo {
  width: 50.35%;
  flex-shrink: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 横長写真のため、被写体（手とシールド）が入る右側を基準に表示する */
  object-position: right center;
}

/* ==========================================================
   SECTION COMMON
   ========================================================== */
.section {
  padding: 120px 0;
}

html.js .section > .container {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .section.is-revealed > .container {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js .section > .container {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 80px;
}

.section-en {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  color: #000;
  line-height: 1.26;
}

.section-bar {
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 2px;
}

.section-bar--green {
  background: var(--color-primary);
}

.section-bar--navy {
  background: var(--color-primary);
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services {
  background: var(--color-bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 31px 33px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.service-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
}

.service-icon img {
  width: 28px;
  height: 28px;
}

.service-icon--plain {
  background: none;
}

.service-icon--plain img {
  width: 56px;
  height: 56px;
}

.service-icon-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-dark);
}

.service-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 1.3;
}

.service-desc {
  font-size: 16px;
  color: var(--color-text-gray);
  line-height: 1.6;
}

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}

.service-more img {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.service-more:hover img {
  transform: translateX(4px);
}

.services-note,
.section-note {
  margin-top: 64px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* セクション末尾のテキストリンク */
.section-link {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}

.text-link {
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.text-link:hover {
  opacity: 0.75;
}

/* ==========================================================
   WHY CHOOSE US
   ========================================================== */
.why {
  background: #fff;
}

.why-inner {
  display: flex;
  gap: 130px;
  align-items: center;
  justify-content: center;
}

.why-left {
  width: 500px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--color-primary);
}

.why-stat-number {
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.why-stat-label {
  font-size: 26px;
  font-weight: 800;
  /* Figmaでも行幅518pxで左カラム(500px)を18pxはみ出す設計。
     折り返すと「で」だけが次行に落ちるため1行に固定する。
     はみ出し分は .why-inner の gap:130px に収まる */
  white-space: nowrap;
}

.why-text {
  font-size: 18px;
  color: var(--color-text-gray);
  line-height: 1.8;
}

.why-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: var(--color-bg-gray);
  box-shadow: 0 12px 24px -8px rgba(0, 21, 51, 0.08);
}

.why-card-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.why-card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.why-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
}

.why-card-desc {
  font-size: 16px;
  color: var(--color-text-gray);
}

/* ==========================================================
   CASE STUDIES
   ========================================================== */
.cases {
  background: #fff;
}

.cases .section-head {
  margin-bottom: 64px;
}

.cases-groups {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.cases-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cases-group-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-primary);
}

.cases-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.cases-row--4 {
  grid-template-columns: repeat(4, 1fr);
}

.case-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 24px -8px rgba(0, 21, 51, 0.08);
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}

/* ==========================================================
   NEWS
   ========================================================== */
.news {
  background: var(--color-bg-light);
}

.news .section-head {
  margin-bottom: 64px;
}

.news-list {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.news-loading {
  padding: 60px 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

.news-loading a {
  color: var(--color-primary);
  font-weight: 700;
}

/* note埋め込み */
.note-embed-wrapper {
  width: 100%;
  overflow: hidden;
}

.note-embed {
  border: 0;
  display: block;
  width: 100%;
}

@media (max-width: 1000px) {
  .news-list {
    grid-template-columns: 1fr;
    max-width: 670px;
  }
}

/* ==========================================================
   下層ページ共通
   ========================================================== */
.page-hero {
  margin-top: 80px;
  background: #e7f5fd;
  padding: 80px 0 60px;
}

.page-hero--visual {
  padding: 60px 0;
  min-height: 460px;
  display: flex;
  align-items: center;
}

.page-hero--visual .container {
  width: 100%;
}

.page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.page-hero-main {
  flex: 1;
  min-width: 0;
}

.page-hero-visual {
  width: 400px;
  height: 300px;
  flex-shrink: 0;
  border-radius: 15px;
  overflow: hidden;
}

.page-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ロゴ・小型カード画像用 */
.page-hero-visual--logo {
  width: 228px;
  height: auto;
  border-radius: 24px;
  margin-right: 60px;
}

.page-hero-visual--logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb img {
  width: 10px;
  height: 10px;
}

.breadcrumb-current {
  color: var(--color-primary);
}

.page-hero-titles {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-hero-catch {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.55;
}

.page-hero-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
}

.page-hero-sub {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
}

.sub-section {
  padding: 100px 0;
  background: #fff;
}

.sub-section--gray {
  background: #f5f5f5;
}

.sub-section--blue {
  background: #e7f5fd;
}

.sub-section--light {
  background: var(--color-bg-light);
}

.sub-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 60px;
}

.sub-head-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
  text-align: center;
}

.sub-head-en {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: center;
}

.sub-head-bar {
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-primary);
}

/* --- 脆弱性診断とは --- */
.about-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-text {
  flex: 1;
}

/* 資料へのリンク（本文の下・右寄せ） */
.doc-link-wrap {
  margin-top: 16px;
  text-align: right;
}

.doc-link {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  transition: opacity 0.2s;
}

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

.about-text .sub-head {
  margin-bottom: 24px;
}

.about-desc {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.75;
}

.about-image {
  width: 400px;
  flex-shrink: 0;
}

.about-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
}

/* --- 2種類の診断 --- */
.type-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.type-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 24px -8px rgba(0, 21, 51, 0.08);
}

.type-card-icon-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.type-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 100px;
  background: #dcfbf3;
}

.type-card-icon img {
  width: 48px;
  height: 48px;
}

.type-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  text-align: center;
  color: var(--color-primary);
}

.type-card-num {
  font-size: 14px;
  font-weight: 700;
}

.type-card-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.65;
}

.type-card-desc {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.7;
}

/* --- 診断の流れ --- */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

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

.flow-steps--3col2row {
  grid-template-columns: repeat(3, 1fr);
  row-gap: 60px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.flow-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

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

/* --- オプションメニュー --- */
.option-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.option-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 24px -8px rgba(0, 21, 51, 0.08);
}

.option-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 100px;
  background: #dcfbf3;
}

.option-card-icon img {
  width: 40px;
  height: 40px;
}

.option-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  width: 100%;
  line-height: 1.6;
}

.option-card-desc {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.7;
}

/* 2列カード+3列カードを縦に並べる場合の間隔 */
.type-cards + .option-cards {
  margin-top: 24px;
}

/* --- 課題・お悩みカード（番号付き横並び） --- */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.problem-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 24px -8px rgba(0, 21, 51, 0.08);
}

.problem-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.problem-card-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.problem-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

.problem-card-desc {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.7;
}

/* --- シンプルカード（タイトル+説明） --- */
.plain-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.plain-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 24px -8px rgba(0, 21, 51, 0.08);
}

.plain-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.plain-card-desc {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.85;
}

/* --- セルフチェックカード --- */
.check-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.check-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 24px -8px rgba(0, 21, 51, 0.08);
}

.check-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-card-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.check-card-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

.check-card-desc {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.7;
}

/* ==========================================================
   会社情報・採用・実績などのコーポレートページ
   ========================================================== */
.page-hero--gray {
  background: var(--color-bg-light);
}

/* 左寄せセクション見出し */
.info-head {
  margin-bottom: 40px;
}

.info-head-en {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.info-head-title {
  font-size: 32px;
  font-weight: 700;
  color: #191919;
  line-height: 1.5;
}

.info-head-bar {
  display: block;
  margin-top: 16px;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-primary);
}

/* 定義リスト形式のテーブル */
.def-table {
  width: 100%;
  max-width: 909px;
  border-top: 1px solid #d9d9d9;
}

.def-row {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #d9d9d9;
  font-size: 16px;
  color: #191919;
  line-height: 1.7;
}

.def-label {
  width: 330px;
  flex-shrink: 0;
}

.def-value {
  flex: 1;
  min-width: 0;
}

.def-value p + p {
  margin-top: 8px;
}

/* 沿革で同じ年に複数の出来事を並べる場合は、住所の改行より広く空ける */
.def-value--events p + p {
  margin-top: 24px;
}

.def-value .def-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 20px 0;
}

.def-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--color-text-gray);
}

/* 主要実績カード（官民の区分バッジ付き） */
.record-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 32px;
}

/* 民間／官公庁の2グループを続けて並べる場合の間隔 */
.record-cards + .record-cards {
  margin-top: 60px;
}

.record-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* 民間＝民間企業（緑） */
.record-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 左右パディングで「民間」=60px・「官公庁」=76px になる */
  align-self: flex-start;
  height: 39px;
  padding: 0 14px;
  flex-shrink: 0;
  border-radius: 3px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* 官公庁＝官公庁・自治体（青） */
.record-badge--gov {
  background: var(--color-accent-blue);
}

.record-card-title {
  font-size: 20px;
  font-weight: 500;
  color: #000;
  text-align: center;
  line-height: 1.5;
}

/* 対象組織を示す（）付きの行 */
.record-card-title span {
  display: block;
  font-size: 18px;
}

/* 見出し中の補足（CIOの正式名称など）は行内で小さく */
.record-card-title small {
  font-size: 15px;
}

.record-card-desc {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
}

/* シンプルな箇条書きリスト（実績一覧） */
.works-list {
  width: 100%;
  max-width: 917px;
}

/* 左＝発注機関、右＝業務内容。
   業務内容の左端を全行で揃えるため、1列目を551px固定にする */
.works-list li {
  display: grid;
  grid-template-columns: 631px minmax(0, 1fr);
  padding: 28px 0;
  border-bottom: 1px solid #d9d9d9;
  font-size: 16px;
  color: #191919;
  line-height: 1.7;
}

.works-list-client {
  padding-right: 20px;
}

/* 列の見出し行 */
.works-list-head {
  font-weight: 700;
}

/* MAP */
.map-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.map-box {
  height: 300px;
  background: var(--color-border);
  box-shadow: 0 12px 24px -8px rgba(0, 21, 51, 0.08);
}

/* Googleマップの埋め込みを枠いっぱいに収める */
.map-box iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-name {
  margin-top: 12px;
  font-size: 16px;
  color: #191919;
}

/* 採用ページ */
.intro-split {
  display: flex;
  align-items: center;
  gap: 64px;
}

.intro-split-text {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 2;
}

/* テキスト＋画像/動画の横並び。採用ページとサービスページで共用 */
.intro-split-media {
  width: 520px;
  flex-shrink: 0;
}

.intro-split-media img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

/* SISC@のABOUT：写真ではなくロゴを右端に置く。
   .intro-split は採用ページと共用のため、必ずこの修飾クラス側で上書きする */
/* Figma: about-content (3749:495) の実測値。
   コンテナ内寸1200px = 本文585.5px + gap61px + ロゴ553.5px（右端ツライチ）
   本文幅は .intro-split-text の flex:1 で自動的に585.5pxになる */
.intro-split--logo {
  gap: 61px;
}

/* ロゴは横長ロックアップ（原寸1107x234）をちょうど1/2で配置する設計。
   553.5px = 1107/2 なので、Retinaで等倍2x表示になる */
.intro-split--logo .intro-split-media {
  width: 553.5px;
}

/* 旧ロゴ（正方形バッジ）用の角丸は、横長ロックアップでは端を欠けさせるため解除 */
.intro-split--logo .intro-split-media img {
  border-radius: 0;
}

/* YouTube等の埋め込み。16:9を保ったまま枠幅いっぱいに収める */
.intro-split-media iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 15px;
}

.job-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.job-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 24px -8px rgba(0, 21, 51, 0.08);
}

.job-card-img {
  width: 100%;
  height: 158px;
  object-fit: cover;
  border-radius: 8px;
}

.job-card-title {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #191919;
  line-height: 1.6;
}

.job-card-desc {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-gray);
  line-height: 1.85;
}

.entry-cta {
  display: flex;
  justify-content: center;
  padding: 0 0 100px;
}

.entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 256px;
  height: 63px;
  background: linear-gradient(90deg, var(--color-primary), #1173b4);
  border-radius: 31.5px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  transition: opacity 0.2s;
}

.entry-btn:hover {
  opacity: 0.85;
}

/* ==========================================================
   サービス詳細ページの新コンポーネント
   ========================================================== */
/* お悩みカード（チェックアイコン付き） */
.worry-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.worry-card {
  padding: 32px;
  background: #fff;
  box-shadow: 0 12px 24px -8px rgba(0, 21, 51, 0.08);
}

.worry-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.worry-card-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
}

.worry-card-check img {
  width: 14px;
  height: 14px;
}

.worry-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
}

.worry-card-desc {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #191919;
  line-height: 1.7;
}

/* 横並びフロー（矢印付き） */
.flow-cards {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-card {
  flex: 1;
  min-width: 0;
  min-height: 220px;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 24px -8px rgba(0, 21, 51, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.flow-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 100px;
  background: #dcfbf3;
}

.flow-card-icon img {
  width: 40px;
  height: 40px;
}

.flow-card-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  line-height: 2;
}

/* 素材の三角は上向き。横並びでは右を向くよう90度回す */
.flow-arrow {
  width: 26px;
  flex-shrink: 0;
  transform: rotate(90deg);
}

/* 導入事例ハイライトカード */
.case-feature {
  display: flex;
  gap: 32px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 9px rgba(0, 0, 0, 0.05);
}

.case-feature-img {
  width: 47%;
  max-width: 560px;
  flex-shrink: 0;
}

.case-feature-img img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
}

.case-feature-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.case-feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-feature-tag {
  display: inline-block;
  padding: 6px 10px;
  background: var(--color-primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.case-feature-scale {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.case-feature-title {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 700;
  color: #191919;
  line-height: 1.5;
}

.case-feature-excerpt {
  margin-top: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #191919;
  line-height: 1.7;
}

/* 導入事例から電子カタログ（meclib）の該当ページへ */
.case-feature-btn {
  /* 本文との間は最低24px確保しつつ、余白が余ればボタンを下端に寄せる */
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 53px;
  padding: 0 36px;
  border-radius: 30px;
  background: #29a18b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.2s;
}

.case-feature-btn:hover {
  opacity: 0.85;
}

/* サポートカードの下部イラスト */
/* 5枚を「3枚＋中央寄せ2枚」で並べる（SISC@のできること） */
.option-cards--3-2 {
  grid-template-columns: repeat(6, 1fr);
}

.option-cards--3-2 > * {
  grid-column: span 2;
}

.option-cards--3-2 > :nth-child(4) {
  grid-column: 2 / span 2;
}

.option-cards--3-2 > :nth-child(5) {
  grid-column: 4 / span 2;
}

.option-card-title--lg {
  font-size: 24px;
}

/* カード本文を中央寄せに（標的型メール訓練「こんな企業・組織におすすめです」） */
.type-cards--center .type-card-desc {
  text-align: center;
}

/* 波モチーフの区切り */
.wave-divider {
  display: flex;
  justify-content: center;
  padding: 4px 0;
  background: #fff;
}

.wave-divider img {
  width: 48px;
  height: 24px;
}

/* ==========================================================
   方針・規程ページ（個人情報保護方針／ISMS基本方針）
   ========================================================== */
.policy-body {
  max-width: 900px;
}

.policy-lead {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 2;
  text-align: justify;
}

.policy-block {
  margin-top: 40px;
}

.policy-block-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.6;
}

/* 条文がそのまま並ぶ場合（ISMS基本方針など）は本文色で表示する */
.policy-block-title--plain {
  color: var(--color-text);
  line-height: 1.9;
}

.policy-text {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 2;
  text-align: justify;
}

.policy-text + .policy-text {
  margin-top: 4px;
}

/* 番号なしの箇条（利用目的など） */
.policy-list {
  margin-top: 10px;
}

.policy-list li {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 2;
}

/* 連絡先ボックス */
.policy-contact {
  margin-top: 24px;
  padding: 28px;
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-primary);
}

.policy-contact-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-dark);
}

.policy-contact p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.9;
}

.policy-contact a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* 制定日・署名 */
.policy-sign {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #d9d9d9;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.9;
  text-align: right;
}

.policy-sign strong {
  font-weight: 700;
}

.policy-end {
  margin-top: 32px;
  font-size: 15px;
  color: var(--color-text);
  text-align: right;
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact {
  padding: 100px 0;
  background: var(--color-navy);
  text-align: center;
}

.contact-title {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
}

.contact-lead {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.contact-actions {
  margin-top: 48px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--color-primary);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition: opacity 0.2s;
}

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

/* TOPページのCTA（濃紺背景 + グラデーションボタン） */
.contact--dark {
  background: var(--color-navy-dark);
}

.contact--dark .contact-title {
  font-size: 32px;
  font-weight: 700;
}

.contact--dark .contact-lead {
  font-size: 16px;
}

.contact-btn--gradient {
  width: 225px;
  height: 55px;
  padding: 0;
  background: linear-gradient(90deg, var(--color-primary), #1173b4);
  border-radius: 27.5px;
  font-size: 16px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--color-navy-dark);
  color: #fff;
  padding: 64px 0 40px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-company-name {
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

.footer-certs {
  display: flex;
  gap: 24px;
}

.footer-cert {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-cert-mark {
  width: 40px;
  height: 40px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.footer-cert-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-gray);
}

.footer-main {
  margin-top: 40px;
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-offices {
  width: 480px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-office {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-office p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.6;
}

.footer-office .footer-office-name {
  font-size: 16px;
  font-weight: 700;
  opacity: 0.9;
}

.footer-nav {
  flex: 1;
  min-width: 300px;
  display: flex;
  gap: 64px;
  justify-content: center;
}

.footer-nav-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
}

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

.footer-nav-col a {
  font-size: 14px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-nav-col a:hover {
  opacity: 1;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer-copyright {
  font-size: 12px;
  opacity: 0.7;
}

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-navy);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1440px) {
  .hero-title {
    font-size: 48px;
  }
}

@media (max-width: 1180px) {
  .header-inner {
    padding: 0 32px;
  }

  .hero-content {
    padding: 80px 40px;
  }

  .hero-title {
    font-size: 46px;
  }

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

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

  .why-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .why-left {
    width: auto;
  }

  .flow-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
  }

  .check-cards,
  .record-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .record-cards {
    gap: 32px 24px;
  }

  .page-hero-inner {
    gap: 40px;
  }
}

@media (max-width: 1000px) {
  #global-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 84vw);
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 100px 32px 32px;
  }

  #global-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .nav-btn {
    width: 100%;
  }

  .hamburger {
    display: flex;
  }

  .hero-inner {
    min-height: 0;
    flex-direction: column-reverse;
  }

  .hero-content {
    padding: 48px 24px 56px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-actions {
    margin-top: 40px;
    gap: 24px;
    width: 100%;
  }

  .hero-photo {
    width: 100%;
    /* 横長写真(2400x900)をそのまま置くと細い帯になるため、高さを確保して切り出す。
       75vw は「画像の横幅のちょうど半分が見える」比率で、320〜480px幅の端末で一定になる。
       480px以上は360pxで頭打ちにし、タブレットで縦に伸びすぎないようにする */
    height: clamp(240px, 75vw, 360px);
    overflow: hidden;
  }

  .container {
    padding: 0 24px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 48px;
  }

  .back-to-top {
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
  }

  .section-title {
    font-size: 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 28px;
  }

  .why-stat-number {
    font-size: 56px;
  }

  .why-stat-label {
    font-size: 20px;
    /* 狭い画面では横スクロールを避けるため折り返しを許可する */
    white-space: normal;
  }

  .why-card {
    padding: 24px;
  }

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

  .cases-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .case-card {
    font-size: 15px;
    padding: 16px;
  }

  .contact-title {
    font-size: 30px;
  }

  .footer-main {
    flex-direction: column;
    gap: 48px;
  }

  .footer-offices {
    width: auto;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 40px;
  }

  .footer-company-name {
    font-size: 20px;
  }

  /* 下層ページ */
  .page-hero {
    padding: 48px 0 40px;
  }

  .page-hero-title {
    font-size: 28px;
  }

  .page-hero-sub {
    font-size: 18px;
  }

  .sub-section {
    padding: 64px 0;
  }

  .sub-head {
    margin-bottom: 40px;
  }

  .sub-head-title {
    font-size: 24px;
  }

  .about-inner {
    flex-direction: column;
    gap: 32px;
  }

  .about-image {
    width: 100%;
  }

  .type-cards,
  .option-cards,
  .problem-cards,
  .plain-cards,
  .check-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 1列にするため、3+2レイアウトの列指定を解除する */
  .option-cards--3-2 > *,
  .option-cards--3-2 > :nth-child(4),
  .option-cards--3-2 > :nth-child(5) {
    grid-column: auto;
  }

  .page-hero--visual {
    min-height: 0;
    padding: 40px 0 48px;
  }

  .page-hero-inner {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 28px;
  }

  .page-hero-visual {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .page-hero-visual--logo {
    width: 180px;
    aspect-ratio: auto;
    margin: 0 auto;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* コーポレートページ・新コンポーネント */
  .worry-cards,
  .map-grid,
  .job-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 実績カードは横幅が広がりすぎないよう2列を維持する */
  .record-cards {
    gap: 24px;
  }

  .record-card {
    padding: 28px;
  }

  .flow-cards {
    flex-direction: column;
    align-items: stretch;
  }

  /* 縦積みになるので下向きに */
  .flow-arrow {
    align-self: center;
    transform: rotate(180deg);
  }

  .case-feature {
    flex-direction: column;
  }

  .case-feature-img {
    width: 100%;
  }

  .def-row {
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
  }

  .def-label {
    width: auto;
    font-weight: 700;
  }

  .intro-split {
    flex-direction: column;
    gap: 32px;
  }

  .intro-split-media {
    width: 100%;
  }

  /* 上の指定より詳細度が高いため、修飾クラス側も明示的に戻す。
     400pxのままだとスマホ幅で横スクロールが発生する */
  .intro-split--logo .intro-split-media {
    width: 100%;
  }

  .info-head-title {
    font-size: 24px;
  }

  .entry-cta {
    padding-bottom: 64px;
  }
}

/* ==========================================================
   実績カード：2列だと窮屈になる幅で1列へ
   ========================================================== */
@media (max-width: 680px) {
  .record-cards {
    grid-template-columns: 1fr;
  }

  /* 横に並べる幅がないので発注機関と業務内容を縦積みにする */
  .works-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .works-list-client {
    padding-right: 0;
  }
}
