@charset "UTF-8";

/* =========================================
   1. Design Tokens (CSS Variables)
   ※別事業へ展開する際は、ここのカラーコードやフォントを変更するだけで
   サイト全体のトーン＆マナーを切り替えられるようにしています。
========================================= */
:root {
  /* Colors - Base (Navy / Gray) */
  --c-navy: #102a4c;
  --c-navy-600: #173a63;
  --c-navy-300: #41618a;
  --c-ink: #1b2430;
  --c-gray: #586273;
  --c-muted: #7b8696;
  --c-line: #e4e8ef;
  --c-bg: #ffffff;
  --c-soft: #f5f7fb;
  --c-soft-2: #eef2f8;
  
  /* Colors - Accent (Gold) */
  --c-accent: #c89a36;
  --c-accent-600: #a87f24;

  /* Typography */
  --font-base: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  
  /* Spacing & Layout */
  --max-width: 1120px;
  --gap: clamp(16px, 4vw, 32px); /* スマホ〜PCで可変する余白 */
  --section-py: clamp(56px, 8vw, 100px); /* セクションの上下余白 */
  
  /* Radii & Shadows */
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 4px 12px rgba(16, 42, 76, 0.05);
  --shadow-md: 0 8px 24px rgba(16, 42, 76, 0.08);
  --shadow-hover: 0 12px 32px rgba(16, 42, 76, 0.12);
}

/* =========================================
   2. Base Styles
========================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--c-ink);
  line-height: 1.8;
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--c-navy-600);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  color: var(--c-navy);
  line-height: 1.3;
  margin: 0 0 0.5em;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* =========================================
   3. Utilities (汎用クラス: u-*)
========================================= */
.u-container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.u-section {
  padding-block: var(--section-py);
}

.u-section--soft {
  background-color: var(--c-soft);
}

.u-text-center {
  text-align: center;
}

/* アクセシビリティ用：視覚的には隠すが、スクリーンリーダーには読ませる */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   4. Components (部品クラス: c-*)
========================================= */
/* ボタン */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.c-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.c-btn--accent {
  background-color: var(--c-accent);
  color: #fff;
}

.c-btn--accent:hover {
  background-color: var(--c-accent-600);
}

.c-btn--navy {
  background-color: var(--c-navy);
  color: #fff;
}

.c-btn--navy:hover {
  background-color: var(--c-navy-600);
}

.c-btn--outline {
  background-color: transparent;
  border-color: #fff;
  color: #fff;
}

.c-btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* セクション見出し */
.c-section-header {
  margin-bottom: clamp(32px, 5vw, 48px);
}

.c-section-header__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
}

.c-section-header__en {
  display: block;
  font-size: 13px;
  color: var(--c-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* =========================================
   5. Layout Blocks (枠組みクラス: l-*)
========================================= */
/* ヘッダー */
.l-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.l-header__logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.l-header__logo:hover {
  text-decoration: none;
}

.l-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.l-header__nav-list {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.l-header__nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
}

.l-header__nav-link:hover {
  color: var(--c-accent);
  text-decoration: none;
}

/* フッター */
.l-footer {
  background-color: var(--c-ink);
  color: #fff;
  padding-block: 60px 24px;
}

.l-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.l-footer__info p {
  color: var(--c-muted);
  font-size: 14px;
  margin-top: 16px;
}

.l-footer__title {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

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

.l-footer__nav li {
  margin-bottom: 12px;
}

.l-footer__nav a {
  color: var(--c-muted);
  font-size: 14px;
}

.l-footer__nav a:hover {
  color: #fff;
}

.l-footer__copy {
  text-align: center;
  color: var(--c-muted);
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

/* =========================================
   6. Project / Page Specific (固有クラス: p-*)
========================================= */
/* ヒーロー (ファーストビュー) */
.p-hero {
  background: var(--c-navy);
  color: #fff;
  padding-block: clamp(60px, 10vw, 120px) clamp(100px, 15vw, 180px);
  position: relative;
  overflow: hidden;
}

.p-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(200, 154, 54, 0.15), transparent 50%),
              linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-600) 100%);
  z-index: 1;
}

.p-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.p-hero__title {
  color: #fff;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.4;
  margin-bottom: 24px;
}

.p-hero__lead {
  font-size: clamp(16px, 2.5vw, 18px);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.p-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* マトリクス (4分割の課題整理カード) */
.p-matrix {
  margin-top: clamp(-80px, -10vw, -120px); /* ヒーローセクションに被せる */
  position: relative;
  z-index: 10;
  padding-bottom: var(--section-py);
}

.p-matrix__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.p-matrix__card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.p-matrix__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--c-soft);
  border-radius: 50%;
  color: var(--c-navy);
}

.p-matrix__title {
  font-size: 18px;
  margin-bottom: 12px;
}

.p-matrix__desc {
  font-size: 14px;
  color: var(--c-gray);
  line-height: 1.6;
}

/* コンセプト・特徴 */
.p-feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.p-feature-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 32px;
}

.p-feature-card__num {
  font-size: 40px;
  font-weight: 900;
  color: var(--c-soft-2);
  line-height: 1;
  margin-bottom: 16px;
}

.p-feature-card__title {
  font-size: 20px;
  margin-bottom: 16px;
}

/* プロフィール */
.p-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.p-profile__image {
  background-color: var(--c-soft-2);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--c-muted);
}

.p-profile__content h3 {
  font-size: 24px;
}

/* 支援実績 (Works/Cases) */
.p-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.p-works-card {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  display: block;
}

.p-works-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.p-works-card__thumb {
  background-color: var(--c-soft-2);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: var(--c-muted);
}

.p-works-card__body {
  padding: 20px;
}

.p-works-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-navy);
  background-color: var(--c-soft);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.p-works-card__title {
  font-size: 16px;
  color: var(--c-ink);
}

/* FAQ (アコーディオン) */
.p-faq {
  max-width: 800px;
  margin-inline: auto;
}

.p-faq__item {
  border-bottom: 1px solid var(--c-line);
}

.p-faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-faq__q::after {
  content: "＋";
  color: var(--c-accent);
}

.p-faq__item.is-open .p-faq__q::after {
  content: "−";
}

.p-faq__a {
  display: none;
  padding-bottom: 24px;
  color: var(--c-gray);
}

.p-faq__item.is-open .p-faq__a {
  display: block;
}

/* CTA */
.p-cta {
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-600));
  color: #fff;
  text-align: center;
  padding-block: 80px;
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
}

.p-cta__title {
  color: #fff;
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 16px;
}

.p-cta__desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

/* =========================================
   7. Responsive Media Queries
========================================= */
@media (max-width: 992px) {
  .p-matrix__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* ヘッダーナビ: スマホ時はハンバーガーメニュー等に置き換える想定 */
  .l-header__nav-list {
    display: none; 
  }
  
  .p-profile {
    grid-template-columns: 1fr;
  }
  
  .l-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 576px) {
  .p-matrix__grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}