/* =========================================
   m-Link 自社サイト スタイル
   基調カラー：深紺 × 白 ＋ 琥珀（信頼感・誠実系）
   ========================================= */

:root {
  --navy: #1a2b45;
  --navy-dark: #111e33;
  --navy-deep: #0b1424;
  --navy-light: #eef1f6;
  --accent: #2fae70;
  --accent-dark: #1f8a55;
  --accent-light: #e9f8f0;
  --text: #26292e;
  --text-light: #5d6470;
  --white: #ffffff;
  --bg-alt: #f6f7f9;
  --border: #dfe3ea;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(17, 30, 51, 0.06), 0 4px 12px rgba(17, 30, 51, 0.05);
  --shadow-md: 0 2px 6px rgba(17, 30, 51, 0.06), 0 12px 28px rgba(17, 30, 51, 0.10);
  --shadow-lg: 0 4px 10px rgba(17, 30, 51, 0.08), 0 20px 44px rgba(17, 30, 51, 0.14);
  --max-width: 1080px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  line-height: 1.9;
  letter-spacing: 0.02em;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section[id] {
  scroll-margin-top: 84px;
}

/* スクロール表示アニメーション */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.cards .reveal:nth-child(2),
.steps .reveal:nth-child(2) {
  transition-delay: 0.12s;
}

.cards .reveal:nth-child(3),
.steps .reveal:nth-child(3) {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================
   ヘッダー
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 34px;
  width: auto;
}

.brand-note {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.global-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.global-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.global-nav a:hover::after,
.global-nav a.is-current::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 999px;
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ハンバーガー */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

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

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

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

/* =========================================
   ヒーロー
   ========================================= */
.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(15, 26, 45, 0.93) 0%, rgba(26, 43, 69, 0.88) 55%, rgba(36, 57, 92, 0.86) 100%),
    url("images/hero-tools.jpg") center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(47, 174, 112, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(76, 108, 160, 0.25), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 96px 0 104px;
  max-width: 720px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #7ce8b4;
  border: 1px solid rgba(124, 232, 180, 0.5);
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: #7ce8b4;
}

.hero p {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 下層ページヒーロー */
.page-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 70%);
  color: var(--white);
  padding: 60px 0 56px;
}

.page-hero .kicker {
  color: #7ce8b4;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  margin-top: 6px;
}

.page-hero p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

/* =========================================
   ボタン
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =========================================
   セクション共通
   ========================================= */
.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  margin-bottom: 52px;
}

.section-head .kicker {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-head .lead {
  margin-top: 14px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* =========================================
   カード
   ========================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card .icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--navy);
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.6;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-light);
}

.card .card-note {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dark);
}

/* =========================================
   2カラム（サービス）
   ========================================= */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.duo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 34px;
  box-shadow: var(--shadow-sm);
}

.duo-card .label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  padding: 3px 14px;
  margin-bottom: 16px;
}

.duo-card.accent .label {
  background: var(--accent);
}

.duo-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.duo-card p {
  font-size: 0.93rem;
  color: var(--text-light);
}

.duo-card .price-hint {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 0.9rem;
}

.duo-card .price-hint strong {
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 800;
  margin-right: 4px;
}

/* =========================================
   実績
   ========================================= */
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.work-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.work-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-light);
  border-bottom: 1px solid var(--border);
}

.work-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s var(--ease-out);
}

.work-card:hover .thumb img {
  transform: scale(1.03);
}

.work-card .body {
  padding: 26px 26px 30px;
}

.work-card .genre {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.06em;
}

.work-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin: 6px 0 10px;
}

.work-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  list-style: none;
}

.work-tags li {
  font-size: 0.76rem;
  color: var(--navy);
  background: var(--navy-light);
  border-radius: 999px;
  padding: 3px 12px;
}

/* 実績詳細（works.html） */
.work-detail {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: start;
}

.work-detail + .work-detail {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid var(--border);
}

.work-detail .shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.work-detail h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 4px 0 14px;
}

.work-detail .genre {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.06em;
}

.work-detail p {
  font-size: 0.93rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.work-detail dl {
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.work-detail dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.work-detail dt {
  font-weight: 700;
  color: var(--navy);
}

.work-detail dd {
  color: var(--text-light);
}

/* =========================================
   制作の流れ
   ========================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px 26px;
  box-shadow: var(--shadow-sm);
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* =========================================
   メッセージ帯（引用風）
   ========================================= */
.message-band {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}

.message-band blockquote {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 800;
  line-height: 1.8;
}

.message-band .accent {
  color: #7ce8b4;
}

.message-band p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.93rem;
}

/* =========================================
   CTA
   ========================================= */
.cta {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-radius: var(--radius);
  padding: 64px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

/* =========================================
   about
   ========================================= */
.profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.profile-side {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.profile-side .profile-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  display: block;
  margin-bottom: 8px;
}

.profile-side .photo-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.profile-side .name {
  font-size: 1.2rem;
  font-weight: 800;
}

.profile-side .role {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 18px;
}

.profile-side ul {
  list-style: none;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.profile-side li {
  font-size: 0.85rem;
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--text-light);
}

.profile-side li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.95em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.profile-main h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.6;
}

.profile-main p {
  font-size: 0.95rem;
  margin-bottom: 18px;
  color: var(--text);
}

.profile-main .inline-photo {
  margin: 24px 0 28px;
}

.profile-main .inline-photo img {
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
  display: block;
}

.profile-main .inline-photo figcaption {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 8px;
  text-align: center;
}

.profile-main p.sign {
  text-align: right;
  font-weight: 700;
  margin-top: 28px;
}

.profile-main p.sign span {
  font-size: 1.15rem;
}

/* 事業概要テーブル */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-table th,
.info-table td {
  padding: 16px 22px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.info-table th {
  width: 180px;
  background: var(--navy-light);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================
   フォーム
   ========================================= */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  margin-bottom: 24px;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.form-row .req {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  border-radius: 4px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: 2px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}

.form-row textarea {
  min-height: 160px;
  resize: vertical;
}

.form-note {
  font-size: 0.83rem;
  color: var(--text-light);
  margin-bottom: 26px;
}

.form-note a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.form-wrap .btn {
  width: 100%;
}

/* =========================================
   プライバシーポリシー等の文章ページ
   ========================================= */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 40px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.prose p,
.prose li {
  font-size: 0.93rem;
  color: var(--text);
}

.prose ul {
  padding-left: 1.4em;
  margin: 10px 0;
}

.prose .updated {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: right;
}

/* =========================================
   フッター
   ========================================= */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 32px;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.footer-brand img {
  height: 30px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  max-width: 340px;
}

.footer-nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 36px;
}

.footer-nav a {
  font-size: 0.88rem;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--white);
}

.copyright {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}

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

  .work-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .profile-side {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }

  .hero-inner {
    padding: 72px 0 80px;
  }

  .menu-toggle {
    display: flex;
  }

  .brand-note {
    display: none;
  }

  .global-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease, visibility 0.3s;
  }

  .global-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .global-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
  }

  .global-nav li + li {
    border-top: 1px solid var(--border);
  }

  .global-nav a {
    display: block;
    padding: 14px 4px;
  }

  .global-nav a::after {
    display: none;
  }

  .nav-cta {
    text-align: center;
    margin-top: 12px;
    border-radius: var(--radius-sm);
  }

  .cards,
  .steps,
  .duo,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 48px 24px;
  }

  .form-wrap {
    padding: 32px 22px;
  }

  .info-table th {
    width: 110px;
    padding: 14px 14px;
  }

  .info-table td {
    padding: 14px 14px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }
}
