@charset "UTF-8";

/* =========================================================
   株式会社アンドイットラボ コーポレートサイト
   共通スタイルシート
   ========================================================= */

/* ---- カラー・基本変数 ---- */
:root {
  --color-primary: #1A4472;      /* コーポレートカラー（紺） */
  --color-primary-dark: #123255;
  --color-primary-light: #2f6aaa;
  --color-accent: #3d9be9;       /* アクセント（明るい青） */
  --color-bg: #ffffff;
  --color-bg-soft: #f3f6fa;      /* 薄い青グレー */
  --color-bg-soft2: #e7eef6;
  --color-text: #2b2f36;
  --color-text-light: #5b6470;
  --color-border: #d9e1ea;
  --color-white: #ffffff;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(26, 68, 114, 0.08);
  --shadow-md: 0 6px 20px rgba(26, 68, 114, 0.12);
  --shadow-lg: 0 14px 36px rgba(26, 68, 114, 0.18);

  --max-width: 1120px;
  --gutter: 24px;

  --font-base: "Helvetica Neue", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "BIZ UDPGothic", Meiryo, sans-serif;
  --header-h: 78px;
}

/* ---- リセット ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-accent);
}

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

h1, h2, h3, h4 {
  line-height: 1.4;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

/* ---- レイアウト共通 ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(48px, 8vw, 88px);
}
.section--soft {
  background: var(--color-bg-soft);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 48px);
}
.section-head__en {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}
.section-head__title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0;
}
.section-head__lead {
  margin-top: 1em;
  color: var(--color-text-light);
}

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 2em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  border: 2px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, color 0.18s ease;
}
.btn:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
}
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.btn--accent:hover {
  background: #2f87d4;
  border-color: #2f87d4;
}
.btn--lg {
  padding: 1.05em 2.6em;
  font-size: 1.05rem;
}

/* =========================================================
   ヘッダー / グローバルナビ
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 64px);
  height: var(--header-h);
}
.site-logo {
  display: inline-flex;
  align-items: center;
}
.site-logo img {
  height: 40px;
  width: auto;
}

.global-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.global-nav__list a {
  display: block;
  padding: 0.6em 0.9em;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  white-space: nowrap;
}
.global-nav__list a:hover,
.global-nav__list a[aria-current="page"] {
  color: var(--color-primary);
  background: var(--color-bg-soft);
}
.global-nav__cta {
  margin-left: 8px;
}
.global-nav__cta a {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 0.6em 1.2em !important;
}
.global-nav__cta a:hover {
  background: var(--color-primary-light) !important;
}

/* サービス ドロップダウン */
.has-sub {
  position: relative;
}
.sub-toggle {
  cursor: pointer;
}
.sub-toggle::after {
  content: "";
  display: inline-block;
  width: 0.46em;
  height: 0.46em;
  margin-left: 0.4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.has-sub:hover > .sub-toggle::after,
.has-sub.is-open > .sub-toggle::after {
  transform: translateY(1px) rotate(-135deg);
}
.has-sub.is-current > .sub-toggle {
  color: var(--color-primary);
  background: var(--color-bg-soft);
}
.sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 200;
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu,
.has-sub.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a {
  font-size: 0.92rem !important;
  white-space: nowrap;
}

/* ハンバーガー */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-primary);
  margin-inline: auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   ファーストビュー（トップ）
   ========================================================= */
.hero {
  position: relative;
  color: var(--color-white);
  background:
    radial-gradient(circle at 80% 20%, rgba(61, 155, 233, 0.35), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(47, 106, 170, 0.45), transparent 50%),
    linear-gradient(135deg, #16385f 0%, #1A4472 45%, #275a92 100%);
  overflow: hidden;
}
.hero::after {
  /* 抽象的なグラフィック（ドットグリッド） */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.6;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 10vw, 116px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero__content {
  max-width: 620px;
}
.hero__visual {
  position: relative;
}
.hero__visual svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
/* ヒーロー内の幾何学ビジュアルの控えめな動き */
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes logo-sway {
  0%, 100% { transform: rotate(-10deg); }
  50%      { transform: rotate(10deg); }
}
.hv-rotate {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin-slow 60s linear infinite;
}
.hv-float {
  transform-box: fill-box;
  transform-origin: center;
  animation: float-soft 7s ease-in-out infinite;
}
.hv-float--2 { animation-duration: 9s; animation-delay: -2s; }
.hv-float--3 { animation-duration: 8s; animation-delay: -4s; }

/* 背景に重ねる企業ロゴ（ウォーターマーク） */
.hero__logo-bg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58%;
  aspect-ratio: 1 / 1;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  /* ロゴの形をマスクに、青→黄緑のグラデーションを透かす */
  background: linear-gradient(135deg, #e2f2ff 0%, #a6daff 45%, #c4e06a 100%);
  -webkit-mask: url(../img/blue_logo.png) center / contain no-repeat;
          mask: url(../img/blue_logo.png) center / contain no-repeat;
  transform-origin: center;
  animation: logo-sway 8s ease-in-out infinite;
}
.hero__visual svg {
  position: relative;
  z-index: 1;
}

/* ヒーロー: 社名 */
.hero__brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: clamp(1.15rem, 3vw, 1.75rem);
  line-height: 1.3;
  color: #c4e06a;
  margin: 0 0 0.5em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.hero__sub {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  letter-spacing: 0.18em;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 0.8em;
}
.hero__title {
  color: var(--color-white);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.35;
  margin: 0 0 0.5em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.hero__title .accent {
  color: #8fd0ff;
}
.hero__title .accent-yg {
  color: #c4e06a;
}
.hero__lead {
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  opacity: 0.95;
  max-width: 620px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.6em;
}
.hero__actions .btn {
  border-color: rgba(255, 255, 255, 0.6);
}
.hero__actions .btn--white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.hero__actions .btn--white:hover {
  background: #eaf3fb;
  color: var(--color-primary);
}
.hero__actions .btn--outline {
  background: transparent;
  color: var(--color-white);
}
.hero__actions .btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
}

/* =========================================================
   3つの導線パネル（カード）
   ========================================================= */
.entry-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.entry-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.entry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.entry-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.entry-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.entry-card:hover .entry-card__media img {
  transform: scale(1.06);
}
.entry-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 68, 114, 0.42), rgba(26, 68, 114, 0) 55%);
}
.entry-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 26px 26px 30px;
}
.entry-card__body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4em;
}
.entry-card__body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  flex-grow: 1;
  margin: 0;
}
.entry-card__more {
  margin-top: 16px;
  font-weight: 700;
  color: #8aa83a;
}
.entry-card__more::after {
  content: " →";
}

/* アクセント（黄緑）強調 */
.hl-accent {
  color: #8aa83a;
  font-weight: 700;
}

/* =========================================================
   汎用カードグリッド
   ========================================================= */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  font-size: 1.15rem;
}
.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* リスト（チェック） */
.check-list li {
  position: relative;
  padding-left: 1.7em;
  margin-bottom: 0.6em;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(61, 155, 233, 0.2);
}

/* =========================================================
   信頼性・権威付けセクション
   ========================================================= */
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.trust-logos li {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.6em 1.4em;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   ページ共通ヘッダー（下層ページ）
   ========================================================= */
.page-hero {
  background:
    radial-gradient(circle at 85% 30%, rgba(61, 155, 233, 0.3), transparent 55%),
    linear-gradient(135deg, #16385f 0%, #1A4472 60%, #275a92 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.5;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 9vw, 92px);
}
.page-hero__en {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: #9fd4ff;
  margin-bottom: 0.5em;
}
.page-hero__title {
  color: var(--color-white);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  margin: 0;
}
.page-hero__lead {
  margin-top: 0.8em;
  max-width: 760px;
  opacity: 0.95;
}

/* パンくず */
.breadcrumb {
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  list-style: none;
  margin: 0;
  padding: 0.9em 0;
  color: var(--color-text-light);
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.5em;
  color: var(--color-border);
}

/* =========================================================
   コンテンツ用パーツ
   ========================================================= */
.lead-block {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.media--reverse .media__img {
  order: 2;
}
.media__img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}
.media h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}

/* 番号付きフロー */
.flow {
  display: grid;
  gap: 20px;
}
.flow__step {
  display: flex;
  gap: 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.flow__num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.flow__body h3 {
  margin: 0 0 0.3em;
  font-size: 1.1rem;
}
.flow__body p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* テーブル */
.table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: 0.92rem;
  min-width: 520px;
}
.data-table th,
.data-table td {
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.data-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
}
.data-table tbody tr:nth-child(even) {
  background: var(--color-bg-soft);
}

/* 定義リスト（会社概要） */
.def-table {
  width: 100%;
  border-collapse: collapse;
}
.def-table th,
.def-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.def-table th {
  width: 30%;
  color: var(--color-primary);
  background: var(--color-bg-soft);
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================================
   実績一覧（タブ・カード）
   ========================================================= */
.tab-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.tab-filter__btn {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  padding: 0.6em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.tab-filter__btn:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}
.tab-filter__btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.works-heading {
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  text-align: center;
  margin-bottom: 28px;
}
.works-heading--mt {
  margin-top: clamp(48px, 8vw, 72px);
}
.works-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
/* 最近の実績一覧（表） */
.works-table-wrap {
  overflow-x: auto;
}
.works-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.works-table thead th {
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  border-bottom: 2px solid var(--color-primary);
  padding: 10px 14px;
  white-space: nowrap;
}
.works-table td {
  border-bottom: 1px solid var(--color-border);
  padding: 14px;
  vertical-align: top;
}
.works-table__date {
  white-space: nowrap;
  width: 1%;
  min-width: 7em;
  color: var(--color-text-light);
  font-size: 0.9rem;
}
.works-table__title {
  width: auto;
}
.works-table__title a {
  font-weight: 600;
}
.works-table__title a:hover {
  text-decoration: underline;
}
.works-table__cat {
  white-space: nowrap;
  width: 1%;
  min-width: 9.5em;
}
.works-table__cat .work-card__cat {
  display: inline-block;
  white-space: nowrap;
}
.works-table tbody tr:hover {
  background: var(--color-bg-soft);
}
@media (max-width: 600px) {
  .works-table thead {
    display: none;
  }
  .works-table tbody tr {
    display: grid;
    gap: 4px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-border);
  }
  .works-table td {
    border: none;
    padding: 0;
  }
  .works-table__cat {
    margin-top: 4px;
  }
}
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
/* カードのタイトルリンクをカード全体に拡張（ボックス全体をクリック可能に） */
.work-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.work-card__title a:focus-visible {
  outline: none;
}
.work-card:focus-within {
  box-shadow: var(--shadow-lg);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.work-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-soft2);
  overflow: hidden;
}
.work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-card__thumb--pict {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(61, 155, 233, 0.16), transparent 60%),
    linear-gradient(135deg, var(--color-bg-soft), var(--color-bg-soft2));
}
.work-card__thumb--pict svg {
  width: 84px;
  height: 84px;
  color: var(--color-primary);
}
.work-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}
.work-card__cat {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-accent);
  padding: 0.2em 0.8em;
  border-radius: 999px;
}
.work-card__title {
  font-size: 1.02rem;
  margin: 0;
  color: var(--color-primary);
}
.work-card__date {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: auto;
}

/* トップページ お知らせバナー */
.news-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 44px);
  background: linear-gradient(135deg, #e6f3ff 0%, #d4ecff 100%);
  border: 1px solid #bfe0fb;
  border-radius: var(--radius-lg);
}
.news-banner__body {
  flex: 1 1 320px;
}
.news-banner__title {
  font-size: clamp(1.3rem, 3.2vw, 1.6rem);
  margin: 4px 0 10px;
}
.news-banner__body p {
  color: var(--color-text-light);
  margin: 0;
}
.news-banner .btn {
  flex-shrink: 0;
}

/* 実績 記事ページ */
.work-article__inner {
  max-width: 820px;
  margin-inline: auto;
  padding-block: clamp(32px, 6vw, 56px);
}
.work-article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}
.work-article h1 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: 24px;
}
.thumbnail {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}
.work-article__body {
  line-height: 1.95;
}
.work-article__body h2 {
  margin-top: 1.6em;
  font-size: 1.25rem;
}
.work-article__body h3 {
  margin-top: 1.4em;
  font-size: 1.08rem;
}
.work-article__body h4 {
  margin-top: 1.2em;
  font-size: 1rem;
}
.work-article__body ul {
  margin: 0.6em 0 1em 1.3em;
  list-style: disc;
}
.work-article__body blockquote {
  margin: 1.2em 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--color-primary);
  color: var(--color-text-light);
}
.work-article__figure {
  margin: 1.4em 0;
}
.work-article__figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.work-article__source {
  margin-top: 28px;
  font-size: 0.92rem;
}
.work-article__source a {
  color: var(--color-text-light);
}
.work-article__back {
  margin-top: 36px;
  font-weight: 700;
}

/* 年度アーカイブ */
.archive-block {
  margin-top: clamp(40px, 7vw, 64px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--color-border);
}
.archive-block__title {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 24px;
}
.archive-years {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.archive-years a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.6em 1.4em;
  font-weight: 700;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.archive-years a:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.archive-years__count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
}

/* =========================================================
   お問い合わせフォーム
   ========================================================= */
.form {
  max-width: 760px;
  margin-inline: auto;
}
.form__row {
  margin-bottom: 22px;
}
.form__label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: var(--color-primary);
}
.form__label .req {
  font-size: 0.72rem;
  color: #fff;
  background: #d64545;
  padding: 0.1em 0.6em;
  border-radius: 4px;
  margin-left: 0.6em;
  vertical-align: 2px;
}
.form__label .opt {
  font-size: 0.72rem;
  color: var(--color-text-light);
  background: var(--color-bg-soft2);
  padding: 0.1em 0.6em;
  border-radius: 4px;
  margin-left: 0.6em;
  vertical-align: 2px;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  padding: 0.8em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(47, 106, 170, 0.15);
}
.form input::placeholder,
.form textarea::placeholder {
  color: #c4cbd4;
  opacity: 1; /* Firefox の既定の半透明を無効化して色指定を揃える */
}
.form textarea {
  min-height: 160px;
  resize: vertical;
}
.form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.form__radios label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.55em 1.2em;
  cursor: pointer;
  font-size: 0.95rem;
}
.form__radios input {
  accent-color: var(--color-primary);
}
.form__privacy {
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  text-align: center;
}
.form__submit {
  text-align: center;
  margin-top: 28px;
}
/* ハニーポット（画面外に隠す） */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 送信結果・エラー表示（send.php / thanks.html 共通） */
.form-result {
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 40px);
  text-align: center;
}
.form-result--ok {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}
.form-result--ok svg {
  width: 40px;
  height: 40px;
  color: #2e9e5b;
  margin-bottom: 10px;
}
.form-result--ok h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.form-result--ok p {
  line-height: 1.9;
  margin-bottom: 12px;
}
.form-result--error {
  background: #fdf3f3;
  border: 1px solid #e9c2c2;
  text-align: left;
}
.form-result--error > p {
  font-weight: 700;
  margin-bottom: 12px;
}
.form-result--error ul {
  margin-left: 1.2em;
  list-style: disc;
  color: #b3403a;
}
.form-result--error li {
  margin-bottom: 6px;
}

/* =========================================================
   CTA（お問い合わせ誘導）
   ========================================================= */
.cta {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
}
.cta__inner {
  text-align: center;
  padding-block: clamp(40px, 7vw, 72px);
}
.cta__title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 0.4em;
}
.cta__lead {
  color: var(--color-text-light);
  margin-bottom: 1.6em;
}

/* =========================================================
   フッター
   ========================================================= */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}
.site-footer a:hover {
  color: var(--color-white);
}
.site-footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-block: clamp(40px, 6vw, 64px);
}
.site-footer__logo img {
  height: 42px;
  width: auto;
  margin-bottom: 16px;
  /* 紺背景に白ロゴ風に反転表示 */
  filter: brightness(0) invert(1);
}
.site-footer__addr {
  font-style: normal;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
}
.site-footer__nav h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 1em;
  letter-spacing: 0.04em;
}
.site-footer__nav li {
  margin-bottom: 0.6em;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer__bottom a {
  color: rgba(255, 255, 255, 0.75);
}

/* =========================================================
   ユーティリティ
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 900px) {
  .site-footer__main {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__logo {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 64px;
  }
  .site-logo img {
    height: 34px;
  }

  /* ハンバーガー表示 */
  .nav-toggle {
    display: flex;
  }
  .global-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--color-white);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    padding: 16px var(--gutter) 60px;
    box-shadow: var(--shadow-lg);
  }
  .global-nav.is-open {
    transform: translateX(0);
  }
  .global-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .global-nav__list a {
    padding: 0.95em 0.6em;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    font-size: 1.05rem;
  }
  .global-nav__cta {
    margin: 18px 0 0;
  }
  .global-nav__cta a {
    text-align: center;
    border-radius: 999px !important;
  }

  /* モバイル: サービス サブメニューはアコーディオン表示 */
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    display: none;
    background: var(--color-bg-soft);
  }
  .has-sub.is-open > .sub-menu {
    display: flex;
  }
  .sub-menu a {
    padding-left: 1.8em !important;
    font-size: 1rem !important;
  }
  .sub-toggle::after {
    float: right;
    margin-top: 0.55em;
  }

  /* ヒーロー1カラム */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero__content {
    max-width: none;
    order: 1;
  }
  .hero__visual {
    order: 0;
    max-width: 360px;
    margin: 0 auto 8px;
  }

  /* 3パネル縦並び */
  .entry-panels {
    grid-template-columns: 1fr;
  }

  /* メディアを縦に */
  .media {
    grid-template-columns: 1fr;
  }
  .media--reverse .media__img {
    order: 0;
  }

  .def-table th {
    width: 34%;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }
  .def-table th,
  .def-table td {
    display: block;
    width: 100%;
  }
  .def-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }
  .hero__actions .btn {
    width: 100%;
  }
}

/* アクセシビリティ: 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
