/* =========================================================
   アルケミストラボ合同会社 サイト共通スタイル
   旧WordPressサイトの色（水色のヘッダー・黄色の文字）を引き継ぐ
   ========================================================= */

@font-face {
  font-family: "Concert One";
  src: url("../fonts/concert-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --cyan: #1bb4d3;        /* ヘッダー・装飾（旧サイトの水色） */
  --cyan-deep: #0b7d96;   /* 白地の上の文字・リンク用（読みやすい濃さ） */
  --cyan-ink: #073f4c;    /* 水色の上に載せる小さな文字 */
  --yellow: #eeee22;      /* 旧サイトの黄色（水色の上の大きな文字・装飾） */
  --yellow-soft: #fbfbc4;
  --ink: #3e3e3e;         /* 本文 */
  --muted: #6b7378;
  --mist: #edf9fc;        /* 淡い水色の面 */
  --line: #d6ecf2;
  --paper: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 125, 150, .10);
  --font-en: "Concert One", "Hiragino Maru Gothic ProN", sans-serif;
  --font-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ja);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: .02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-deep); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--cyan);
  box-shadow: 0 2px 0 rgba(7, 63, 76, .08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.wordmark {
  font-family: var(--font-en);
  font-size: 30px; line-height: 1;
  color: var(--yellow);
  text-decoration: none;
  text-shadow: 0 2px 0 var(--cyan-deep);
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--cyan-ink); font-weight: 700; font-size: 15px; text-decoration: none;
}
.nav a:hover { background: rgba(255,255,255,.35); }
.nav a[aria-current="page"] { background: var(--paper); color: var(--cyan-deep); }
.nav-toggle { display: none; }

/* ---------- 共通の見出し ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--mist); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 18px; letter-spacing: .12em;
  color: var(--cyan-deep);
}
.eyebrow::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 3px var(--cyan);
}
h1, h2, h3 { color: #262c2e; line-height: 1.45; letter-spacing: .04em; }
.section-title { font-size: clamp(24px, 3.4vw, 32px); margin: 6px 0 14px; }
.lead { color: var(--muted); max-width: 680px; margin: 0 0 40px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cyan-deep); color: #fff; box-shadow: 0 6px 0 var(--cyan-ink); }
.btn-primary:hover { box-shadow: 0 8px 0 var(--cyan-ink); }
.btn-ghost { background: var(--paper); color: var(--cyan-deep); border: 2px solid var(--cyan); }
.btn .arrow { font-family: var(--font-en); }

/* ---------- トップ：メインビジュアル ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, var(--yellow-soft) 0 120px, transparent 121px),
    linear-gradient(180deg, var(--mist), #fff 85%);
}
.hero::after { /* 化学の分子模様（装飾） */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2 L60 19 L60 53 L30 70 L0 53 L0 19 Z M60 19 L90 2 M60 53 L90 70 L120 53' fill='none' stroke='%23bfe7f1' stroke-width='1.5'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  padding-top: 64px; padding-bottom: 72px;
}
.hero-logo { width: min(440px, 100%); margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(28px, 4.6vw, 46px); margin: 0 0 18px; line-height: 1.35;
}
.hero h1 .accent {
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
  padding: 0 2px;
}
.hero p { margin: 0 0 30px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-photo {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(7, 63, 76, .22);
  transform: rotate(1.5deg);
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-photo figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(255,255,255,.92); color: var(--cyan-ink);
  font-size: 12px; padding: 6px 12px; border-radius: 999px; line-height: 1.4;
}

/* ---------- 事業内容カード ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 22px; }
.card-en { font-family: var(--font-en); color: var(--cyan-deep); font-size: 14px; letter-spacing: .08em; }
.card h3 { font-size: 18px; margin: 2px 0 8px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 実績 ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work { margin: 0; }
.work img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.work .tag {
  display: inline-block; margin: 14px 0 4px; padding: 2px 10px; border-radius: 999px;
  background: var(--mist); color: var(--cyan-deep); font-size: 12px; font-weight: 700;
}
.work h3 { font-size: 17px; margin: 0 0 4px; }
.work p { margin: 0; font-size: 14.5px; color: var(--muted); }
.more { margin-top: 40px; text-align: center; }
.works.works-2 { grid-template-columns: repeat(2, 1fr); }
.work-mini { margin: 22px 0 0; display: flex; align-items: center; gap: 16px; }
.work-mini img { width: 200px; border-radius: 10px; box-shadow: var(--shadow); }
.work-mini figcaption { font-size: 14px; color: var(--muted); }

/* 実績ページの一覧 */
.work-group { margin-top: 56px; }
.work-group:first-of-type { margin-top: 0; }
.group-note { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.work-list a.read + a.read { margin-left: 1.2em; }
.work-group > h3 {
  font-size: 20px; margin: 0 0 18px; padding-left: 14px;
  border-left: 6px solid var(--cyan);
}
.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work-list li { padding: 18px 4px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9em 1fr; gap: 16px; }
.work-list .when { color: var(--cyan-deep); font-weight: 700; font-size: 14px; }
.work-list strong { display: block; color: #262c2e; }
.work-list span.desc { font-size: 14.5px; color: var(--muted); }


.case-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  max-width: 920px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.case-link:hover, .case-link:focus-visible { border-color: var(--cyan-deep); }
.case-link:hover .btn, .case-link:focus-visible .btn { background: var(--mist); }
.case-link > img { width: 100%; height: 100%; object-fit: cover; }
.case-link-body { align-self: center; padding: clamp(20px, 4vw, 36px); }
.case-link-body h3 { margin: 0; font-size: clamp(20px, 3vw, 26px); }
.case-label { margin: 0 0 8px; color: var(--cyan-deep); font-size: 14px; font-weight: 700; }
.work-list .work-thumb { float: right; width: clamp(82px, 20vw, 132px); height: auto; margin: 0 0 0 16px; border-radius: 8px; }
.case-article { max-width: 800px; }
.case-article .work { margin: 24px 0 36px; }
.case-article .work img { box-shadow: none; }
.case-article .work figcaption { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .case-link { grid-template-columns: 1fr; }
  .case-link > img { height: auto; aspect-ratio: 16 / 10; }
}

/* ---------- 代表 ---------- */
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.profile img { border-radius: 20px; box-shadow: var(--shadow); }
.profile .role { color: var(--cyan-deep); font-weight: 700; margin: 0; }
.profile h3 { font-size: 26px; margin: 2px 0 16px; }
.profile h3 small { font-family: var(--font-en); font-weight: 400; font-size: 18px; color: var(--muted); margin-left: 10px; }
.profile ul { margin: 16px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 15px; }

/* ---------- 会社概要の表 ---------- */
.info { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.info th, .info td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.info th { width: 10em; background: var(--mist); color: var(--cyan-ink); font-weight: 700; white-space: nowrap; }
.info tr:last-child th, .info tr:last-child td { border-bottom: 0; }
.info ul { margin: 0; padding-left: 1.2em; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.story .formula {
  font-family: var(--font-en); font-size: clamp(30px, 5vw, 46px); color: var(--cyan-deep);
  background: var(--paper); border-radius: var(--radius); padding: 30px 26px; text-align: center;
  border: 2px dashed var(--cyan); line-height: 1.3;
}
.story .formula span { color: #d4a800; }
.story .formula small { display: block; font-family: var(--font-ja); font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- ページの見出し帯 ---------- */
.page-head { background: var(--mist); padding: 56px 0 46px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); margin: 4px 0 0; }

/* ---------- お問い合わせの帯 ---------- */
.cta {
  background: var(--cyan); color: var(--cyan-ink);
  padding: 64px 0; text-align: center;
}
.cta .en { font-family: var(--font-en); font-size: clamp(30px, 5vw, 44px); color: var(--yellow); text-shadow: 0 3px 0 var(--cyan-deep); line-height: 1.2; }
.cta p { margin: 10px auto 26px; max-width: 560px; font-weight: 700; }
.cta .btn-primary { background: var(--paper); color: var(--cyan-deep); box-shadow: 0 6px 0 var(--cyan-ink); }

/* ---------- ブログ ---------- */
.empty {
  background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 40px 28px; text-align: center; color: var(--muted);
}
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.topic { background: var(--paper); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.topic h3 { margin: 0 0 6px; font-size: 17px; }
.topic p { margin: 0; font-size: 14.5px; color: var(--muted); }
.author { display: flex; gap: 16px; align-items: center; margin-top: 32px; }
.author img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--cyan); }

/* ---------- お問い合わせページ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-box h2 { font-size: 20px; margin: 0 0 8px; }
.contact-box .tel { font-family: var(--font-en); font-size: 30px; color: var(--cyan-deep); text-decoration: none; letter-spacing: .04em; }
.note { font-size: 13.5px; color: var(--muted); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- フッター ---------- */
.site-footer { background: #23383d; color: #cfe3e8; padding: 56px 0 28px; font-size: 14px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer .wordmark { font-size: 26px; text-shadow: none; }
.site-footer h2 { font-size: 13px; color: var(--yellow); letter-spacing: .12em; margin: 0 0 10px; font-family: var(--font-en); font-weight: 400; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer .small { color: #9fb9c0; font-size: 12.5px; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; color: #9fb9c0; font-size: 12px; }

/* ---------- スマホ ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: 1fr 1fr; }
  .topics { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .section { padding: 64px 0; }
  .site-header .wrap { min-height: 56px; }
  .wordmark { font-size: 25px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; border-radius: 12px;
    background: rgba(255,255,255,.3); color: var(--cyan-ink); font-size: 22px; cursor: pointer;
  }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cyan); display: none; box-shadow: 0 10px 20px rgba(7,63,76,.15); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 18px 16px; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; padding-bottom: 52px; }
  .hero-logo { width: 260px; margin-bottom: 18px; }
  .hero-photo { transform: none; max-width: 420px; }
  .cards { grid-template-columns: 1fr; }
  .works, .works.works-2 { grid-template-columns: 1fr; }
  .work-mini img { width: 140px; }
  .profile { grid-template-columns: 1fr; gap: 24px; }
  .profile img { max-width: 300px; }
  .story { grid-template-columns: 1fr; }
  .info th { width: 6.5em; padding: 14px; }
  .info td { padding: 14px; }
  .work-list li { grid-template-columns: 1fr; gap: 2px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

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

/* ---------- 事例カード（実績ページ上部） ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
}
.case-card:hover, .case-card:focus-visible { border-color: var(--cyan-deep); }
.case-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 20px; }
.case-card h3 { margin: 0; font-size: 17px; line-height: 1.5; }
.case-card p { margin: 0; font-size: 14px; color: var(--muted); }
.case-card .case-label { margin: 0; font-size: 13px; }
.case-card .more-link { margin-top: auto; padding-top: 8px; color: var(--cyan-deep); font-weight: 700; font-size: 14px; }
.work-list a.read { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 700; }

/* ---------- 事例記事の本文 ---------- */
.case-article h2.section-title { margin-top: 52px; }
.case-article > p { line-height: 1.95; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.tags li { background: var(--mist); color: var(--cyan-ink); border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 700; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 36px; }
.photos figure { margin: 0; }
.photos img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.photos.tall img { aspect-ratio: 3 / 4; }
.photos figcaption { margin-top: 6px; color: var(--muted); font-size: 14px; }
.case-article .work-mini { margin: 20px 0 28px; }
.case-article .work-mini img { box-shadow: none; }
.footnote { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* ---------- ブログの一覧と記事 ---------- */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 22px 4px; color: var(--ink); text-decoration: none; }
.post-list a:hover h3, .post-list a:focus-visible h3 { color: var(--cyan-deep); }
.post-list time, .post-date { color: var(--cyan-deep); font-weight: 700; font-size: 14px; }
.post-list h3 { margin: 2px 0 4px; font-size: 19px; }
.post-list p { margin: 0; font-size: 14.5px; color: var(--muted); }
.post-date { margin: 10px 0 0; }
.post { max-width: 760px; }
.post > p { line-height: 1.95; }
.post h2 { font-size: 22px; margin: 48px 0 14px; padding-left: 12px; border-left: 6px solid var(--cyan); }
.post-notice {
  background: var(--yellow-soft); border: 1px solid #e3d95a; border-radius: var(--radius);
  padding: 14px 18px; margin: 0 0 32px; font-size: 15px;
}
.post .aside { background: var(--mist); border-radius: var(--radius); padding: 14px 18px; font-size: 14.5px; }
.post .refs { font-size: 14.5px; color: var(--muted); }
.post table.info { margin: 20px 0 28px; }
.post ul { line-height: 1.9; }

@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .case-grid { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr; }
  .photos.tall { grid-template-columns: 1fr 1fr; }
}

/* ---------- トップ：実績カードのリンク・ご依頼の流れ（2026-12-04） ---------- */
a.work { display: block; color: inherit; text-decoration: none; }
a.work:hover h3 { color: var(--cyan-deep); text-decoration: underline; }
.works .work .tag { margin-top: 14px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 70px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--cyan-deep); color: #fff; font-family: var(--font-en); font-size: 19px; display: grid; place-items: center; }
.steps h3 { margin: 0 0 6px; font-size: 17px; }
.steps p { margin: 0; font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.clients { margin-top: 44px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.clients h3 { margin: 0 0 12px; font-size: 17px; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.clients li { background: var(--mist); color: var(--cyan-ink); font-weight: 700; font-size: 14.5px; padding: 6px 14px; border-radius: 999px; }
.clients .note { margin: 12px 0 0; }
