/*
Theme Name: Freelance Site
Theme URI: https://github.com/
Author: Daichi Yoshino
Description: フリーランスのホームページ制作・運用サポート向けの1人スタジオサイト用テーマ。青を基調にした、やわらかい丸みのあるデザイン。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fws
*/

:root {
  --bg: #EDF5FD;
  --surface: #ffffff;
  --ink: #143352;
  --muted: #4B6C8A;
  --muted2: #5A7690;
  --faint: #7C9AB5;
  --faint2: #93B2CB;
  --primary: #2F7DD1;
  --primary-dark: #143352;
  --rule: rgba(47, 125, 209, 0.16);
  --chip-bg: #E2EFFB;
  --chip-bg2: #EAF3FB;
  --card-bg: #F3F9FF;
  --accent: #FFC94D;
  --warn: #FF8A72;
  --container: 1180px;
  --font-heading: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --font-body: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', system-ui, sans-serif;
  --font-label: 'Outfit', sans-serif;
  --font-mono: ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--ink); }

input, textarea, button, select { font-family: inherit; }

h1, h2, h3 { margin: 0; }
p { margin: 0; }

::selection { background: var(--primary); color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a.visually-hidden:focus {
  position: fixed; top: 10px; left: 10px;
  width: auto; height: auto; margin: 0;
  padding: 12px 20px; clip: auto;
  background: var(--ink); color: #fff;
  border-radius: 10px; z-index: 999;
}

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes floaty2 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(14px) rotate(8deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- loading screen ---------- */
body.is-loading { overflow: hidden; }
#site-loader {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity 420ms ease, visibility 420ms ease;
}
#site-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-text {
  display: flex; align-items: baseline;
  font-family: var(--font-heading); font-weight: 700; font-size: 18px;
  color: var(--ink); letter-spacing: 0.06em;
}
.loader-dots span { animation: loaderDot 1.4s infinite; opacity: 0; }
.loader-dots span:nth-child(1) { animation-delay: 0s; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loaderDot { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .loader-dots span { animation: none; opacity: 1; }
}

/* ---------- hero motto (typewriter) ---------- */
.hero__motto {
  display: flex; align-items: center; gap: 3px;
  font-family: var(--font-label); font-size: 14px; font-weight: 500;
  letter-spacing: 0.05em; color: var(--primary); margin: 0 0 16px;
}
.typewriter-cursor {
  display: inline-block; width: 2px; height: 1em; background: var(--primary);
  animation: caretBlink 900ms step-end infinite;
}
@keyframes caretBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .typewriter-cursor { animation: none; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px) scale(0.99); transition: opacity 700ms cubic-bezier(.2,.9,.2,1), transform 700ms cubic-bezier(.2,.9,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  * { animation: none !important; }
}

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-label);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.22em; color: var(--faint);
  text-transform: uppercase; margin-bottom: 14px;
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 14px; z-index: 60; padding: 0 24px; margin-bottom: -68px; }
.site-header__inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px 14px 12px 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(20, 51, 82, 0.35);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; }
.brand-tag { font-family: var(--font-label); font-size: 12.5px; letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; }

.nav-toggle { display: none; }
.nav-close { display: none; }
.nav-overlay { display: none; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav.site-nav--drawer { display: none; }
.site-nav li { list-style: none; margin: 0; }
.site-nav a {
  display: block;
  padding: 10px 16px; font-size: 13.5px; font-weight: 500; letter-spacing: 0.03em;
  border-radius: 999px; color: var(--muted);
  transition: background 220ms, color 220ms, transform 220ms cubic-bezier(.2,.9,.2,1);
}
.site-nav a:hover, .site-nav a.is-current { background: var(--chip-bg); color: var(--ink); transform: translateY(-2px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: none;
  border-radius: 999px; font-size: 15.5px; font-weight: 700; letter-spacing: 0.04em;
  transition: transform 280ms cubic-bezier(.2,.9,.2,1), box-shadow 280ms, background 240ms;
}
.btn-primary {
  padding: 18px 36px; background: var(--primary); color: #fff;
  box-shadow: 0 16px 30px -14px rgba(47, 125, 209, 0.9);
}
.btn-primary:hover { color: #fff; transform: translateY(-4px) rotate(-1.2deg); box-shadow: 0 22px 40px -14px rgba(47, 125, 209, 0.95); }
.btn-secondary { padding: 18px 32px; background: #fff; color: var(--ink); font-weight: 500; }
.btn-secondary:hover { color: var(--ink); transform: translateY(-4px) rotate(1.2deg); box-shadow: 0 14px 28px -14px rgba(20, 51, 82, 0.5); }
.btn-light {
  display: inline-block; font-size: 14px; font-weight: 500; color: var(--primary); cursor: pointer;
  padding: 10px 20px; background: #fff; border-radius: 999px;
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), box-shadow 260ms;
}
.btn-light:hover { color: var(--primary); transform: translateY(-3px); box-shadow: 0 12px 24px -14px rgba(20, 51, 82, 0.5); }
.btn-dark {
  display: inline-block; padding: 16px 34px; background: var(--primary); color: #fff;
  border-radius: 999px; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), background 260ms;
}
.btn-dark:hover { color: #fff; background: var(--ink); transform: translateY(-3px) rotate(-1deg); }
.btn-cta {
  display: inline-block; padding: 18px 42px; background: #fff; color: var(--primary);
  border-radius: 999px; font-size: 15.5px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
  transition: transform 280ms cubic-bezier(.2,.9,.2,1), box-shadow 280ms;
}
.btn-cta:hover { color: var(--primary); transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 20px 36px -16px rgba(9, 32, 58, 0.6); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 24px 90px; overflow: hidden; }
.hero__grid { position: relative; max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; width: 100%; }
.hero__title { font-family: var(--font-heading); font-weight: 900; font-size: 60px; line-height: 1.34; letter-spacing: 0.01em; margin: 0 0 26px; white-space: pre-line; }
.hero__body { font-size: 16.5px; line-height: 2.05; color: var(--muted); margin: 0 0 38px; max-width: 30em; white-space: pre-line; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__art { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; }
.hero__blob { position: absolute; width: 78%; aspect-ratio: 1/1; border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%; background: #DCEBFA; animation: floaty2 12s ease-in-out infinite; }
.hero__img { position: relative; width: 88%; max-height: 440px; object-fit: contain; animation: floaty 9s ease-in-out infinite; margin: 0 auto; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--primary); padding: 18px 0; margin: 20px 0 60px; box-shadow: 0 14px 34px -20px rgba(20, 51, 82, 0.7); }
.ticker__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.ticker__group { display: flex; align-items: center; gap: 34px; flex: none; padding-right: 34px; }
.ticker__item { display: flex; align-items: center; gap: 34px; font-family: var(--font-heading); font-weight: 700; font-size: 17px; color: #fff; letter-spacing: 0.06em; white-space: nowrap; }
.ticker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: block; }

/* ---------- section headings ---------- */
.section { padding: 40px 24px 100px; }
.section-title { font-family: var(--font-heading); font-weight: 700; font-size: 36px; line-height: 1.55; margin: 0 0 52px; max-width: 24em; letter-spacing: 0.01em; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-heading); font-weight: 700; font-size: 32px; letter-spacing: 0.02em; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--surface); border-radius: 26px; padding: 34px 30px 38px; transition: transform 340ms cubic-bezier(.2,.9,.2,1), box-shadow 340ms; }
.service-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 26px 44px -26px rgba(20, 51, 82, 0.55); }
.service-num { width: 46px; height: 46px; border-radius: 16px 16px 16px 5px; background: var(--chip-bg); display: flex; align-items: center; justify-content: center; font-family: var(--font-label); font-weight: 700; font-size: 16px; color: var(--primary); margin-bottom: 22px; }
.service-title { font-family: var(--font-heading); font-weight: 700; font-size: 21px; margin: 0 0 14px; letter-spacing: 0.02em; }
.service-body { font-size: 14.5px; line-height: 1.95; color: var(--muted2); margin: 0; }

/* ---------- process ---------- */
.process-panel { max-width: var(--container); margin: 0 auto; background: var(--surface); border-radius: 34px; padding: 62px 54px; }
.process-panel h2 { font-family: var(--font-heading); font-weight: 700; font-size: 32px; margin: 0 0 48px; letter-spacing: 0.02em; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-card { background: var(--card-bg); border-radius: 22px; padding: 26px 24px 30px; transition: transform 300ms cubic-bezier(.2,.9,.2,1), background 300ms; }
.process-card:hover { transform: translateY(-6px); background: #E7F2FD; }
.process-num { font-family: var(--font-label); font-weight: 700; font-size: 30px; line-height: 1; color: #A8CBEC; margin-bottom: 14px; }
.process-title { font-family: var(--font-heading); font-weight: 700; font-size: 16.5px; margin-bottom: 10px; }
.process-body { font-size: 13.5px; line-height: 1.9; color: var(--muted2); margin: 0; }

/* ---------- history (vertical timeline) ---------- */
.history-list { display: flex; flex-direction: column; max-width: 640px; }
.history-item { position: relative; padding: 0 0 40px 36px; }
.history-item:last-child { padding-bottom: 0; }
.history-item::before {
  content: ''; position: absolute; left: 5px; top: 22px; bottom: -4px; width: 2px; background: var(--chip-bg);
}
.history-item:last-child::before { display: none; }
.history-item::after {
  content: ''; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px var(--chip-bg);
}
.history-period { font-family: var(--font-label); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--primary); margin-bottom: 8px; }
.history-body { font-size: 16px; line-height: 1.85; color: var(--ink); }
.history-note { font-size: 13.5px; line-height: 1.85; color: var(--muted2); margin: 8px 0 0; }

/* ---------- works (home preview + works page) ---------- */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-card { background: var(--surface); border-radius: 28px; padding: 16px 16px 30px; cursor: pointer; transition: transform 360ms cubic-bezier(.2,.9,.2,1), box-shadow 360ms; display: block; }
.work-card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -28px rgba(20, 51, 82, 0.55); }
.work-thumb {
  position: relative;
  aspect-ratio: 16/11; border-radius: 20px; overflow: hidden;
  background-color: #D6E8F9;
  background-image: repeating-linear-gradient(135deg, rgba(20, 51, 82, 0.07) 0 1px, transparent 1px 10px);
  display: flex; align-items: flex-end; padding: 16px;
}
.work-thumb span { position: relative; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: #6E8FAC; }
.work-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-body { padding: 22px 14px 0; }
.work-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tag-pill { font-size: 11.5px; letter-spacing: 0.05em; color: var(--primary); background: var(--chip-bg2); border-radius: 999px; padding: 5px 12px; }
.work-title { font-family: var(--font-heading); font-weight: 700; font-size: 20px; margin: 0 0 8px; letter-spacing: 0.02em; color: var(--ink); }
.work-summary { font-size: 14px; line-height: 1.9; color: var(--muted2); margin: 0; }

.work-thumb.work-thumb--soon, .work-item__thumb.work-thumb--soon { background-image: none; align-items: center; justify-content: center; }
.work-thumb--soon span { font-family: var(--font-heading); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; color: #93B2CB; }
.work-card--soon { cursor: default; }
.work-card--soon:hover { transform: none; box-shadow: none; }

.works-list { display: flex; flex-direction: column; gap: 28px; }
.work-item { background: var(--surface); border-radius: 34px; padding: 22px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.work-item__thumb { position: relative; aspect-ratio: 16/10; border-radius: 24px; overflow: hidden; background-color: #D6E8F9; background-image: repeating-linear-gradient(135deg, rgba(20, 51, 82, 0.07) 0 1px, transparent 1px 10px); display: flex; align-items: flex-end; padding: 18px; }
.work-item__thumb span { position: relative; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: #6E8FAC; }
.work-item__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-item__body { padding: 20px 24px 20px 0; }
.work-item__body h2 { font-family: var(--font-heading); font-weight: 700; font-size: 25px; margin: 0 0 14px; letter-spacing: 0.02em; }
.work-item__body p { font-size: 14.5px; line-height: 2; color: var(--muted); margin: 0 0 22px; }
.work-item__meta { display: grid; grid-template-columns: 76px 1fr; gap: 10px 18px; font-size: 13.5px; line-height: 1.8; color: var(--muted); background: var(--card-bg); border-radius: 16px; padding: 18px 20px; }
.work-item__meta span:nth-child(odd) { color: var(--faint2); }
.works-cta { margin-top: 60px; background: var(--surface); border-radius: 30px; padding: 48px; text-align: center; }
.works-cta p { font-size: 15px; line-height: 1.9; color: var(--muted); margin: 0 0 22px; }

/* ---------- notes / blog rows ---------- */
.notes-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 52px; align-items: start; }
.notes-list { display: flex; flex-direction: column; gap: 10px; }
.post-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: start; padding: 22px 24px; background: var(--surface); border-radius: 20px; cursor: pointer; transition: transform 280ms cubic-bezier(.2,.9,.2,1), box-shadow 280ms; }
.post-row:hover { transform: translateX(8px); box-shadow: 0 18px 34px -22px rgba(20, 51, 82, 0.5); }
.post-date { font-family: var(--font-label); font-size: 13px; color: var(--faint2); letter-spacing: 0.05em; padding-top: 3px; }
.post-title { font-size: 16.5px; font-weight: 500; line-height: 1.7; color: var(--ink); }
.post-excerpt { font-size: 13.5px; line-height: 1.85; color: var(--muted2); margin: 6px 0 0; }
.post-cat { font-size: 12.5px; color: var(--faint2); margin-top: 8px; }
.post-arrow { color: var(--primary); font-size: 18px; padding-top: 3px; }

/* ---------- CTA banner ---------- */
.cta-band { position: relative; overflow: hidden; max-width: var(--container); margin: 0 auto; background: linear-gradient(150deg, #3D8FDE, #2F6FC0); border-radius: 40px; padding: 82px 60px; text-align: center; color: #fff; }
.cta-blob-1 { position: absolute; top: -70px; left: -50px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, 0.10); animation: floaty 11s ease-in-out infinite; }
.cta-blob-2 { position: absolute; bottom: -90px; right: -40px; width: 260px; height: 260px; border-radius: 44% 56% 52% 48%; background: rgba(255, 255, 255, 0.08); animation: floaty2 13s ease-in-out infinite; }
.cta-band__inner { position: relative; }
.cta-band h2 { font-family: var(--font-heading); font-weight: 900; font-size: 36px; line-height: 1.55; margin: 0 0 18px; letter-spacing: 0.01em; }
.cta-band p { font-size: 15.5px; line-height: 2; color: #DCEBFA; margin: 0 0 36px; }

/* ---------- footer ---------- */
.site-footer { background: var(--primary-dark); color: #A9C3DA; padding: 60px 24px 34px; border-radius: 40px 40px 0 0; margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand span { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: #fff; letter-spacing: 0.04em; }
.footer-desc { font-size: 13px; line-height: 1.9; }
.footer-nav { display: flex; gap: 22px; font-size: 13.5px; flex-wrap: wrap; }
.footer-nav a { color: #A9C3DA; transition: color 200ms; }
.footer-nav a:hover { color: #fff; }
.footer-copy { padding-top: 22px; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.05em; color: #79A0C0; }

/* ---------- inner page hero ---------- */
.page-hero { padding: 130px 24px 0; }
.page-hero__inner { max-width: var(--container); margin: 0 auto; }
.page-hero__inner--narrow { max-width: 940px; }
.page-title { font-family: var(--font-heading); font-weight: 900; font-size: 46px; margin: 0 0 18px; letter-spacing: 0.01em; }
.page-lead { font-size: 15.5px; line-height: 2; color: var(--muted2); margin: 0 0 56px; max-width: 34em; }

/* ---------- profile ---------- */
.profile-intro { display: flex; align-items: center; gap: 48px; margin-bottom: 40px; }
.profile-photo {
  width: 220px; height: 220px; flex: none; border-radius: 50%; overflow: hidden;
  background: #DCEBFA; box-shadow: 0 20px 40px -22px rgba(20, 51, 82, 0.5);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35) translateX(6%); display: block; }
.profile-photo__placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background-color: #D6E8F9;
  background-image: repeating-linear-gradient(135deg, rgba(20, 51, 82, 0.07) 0 1px, transparent 1px 10px);
}
.profile-photo__placeholder span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: #6E8FAC; }
.profile-info { max-width: 34em; }
.profile-name { font-family: var(--font-heading); font-weight: 900; font-size: 28px; margin: 0 0 6px; letter-spacing: 0.01em; }
.profile-role { font-family: var(--font-label); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--primary); text-transform: uppercase; margin-bottom: 20px; }
.profile-bio { font-size: 15px; line-height: 2; color: var(--muted); margin: 0 0 16px; }
.profile-info .btn-dark { margin-top: 10px; }

/* ---------- blog list ---------- */
.blog-cats { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.cat-pill { font-size: 13px; font-weight: 500; padding: 10px 20px; border-radius: 999px; background: #fff; color: var(--muted); transition: transform 240ms cubic-bezier(.2,.9,.2,1), background 240ms, color 240ms; }
.cat-pill:hover { transform: translateY(-3px); color: var(--muted); }
.cat-pill.is-active { background: var(--primary); color: #fff; }
.cat-pill.is-active:hover { color: #fff; }
.blog-list { display: flex; flex-direction: column; gap: 12px; }
.blog-row { display: grid; grid-template-columns: 104px 1fr; gap: 22px; align-items: start; padding: 28px; background: var(--surface); border-radius: 24px; cursor: pointer; transition: transform 280ms cubic-bezier(.2,.9,.2,1), box-shadow 280ms; }
.blog-row:hover { transform: translateX(8px); box-shadow: 0 20px 36px -24px rgba(20, 51, 82, 0.5); }
.blog-row__date { font-family: var(--font-label); font-size: 13px; color: var(--faint2); letter-spacing: 0.05em; padding-top: 5px; }
.blog-row__title { font-family: var(--font-heading); font-weight: 700; font-size: 19.5px; line-height: 1.7; letter-spacing: 0.02em; color: var(--ink); }
.blog-row__excerpt { font-size: 13.5px; line-height: 1.9; color: var(--muted2); margin: 10px 0 0; }
.blog-row__cat { font-size: 12px; color: var(--primary); background: var(--chip-bg2); border-radius: 999px; padding: 4px 12px; display: inline-block; margin-top: 12px; }
.blog-empty { font-size: 15px; color: var(--muted2); background: #fff; border-radius: 24px; padding: 40px; text-align: center; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; font-size: 14px; }
.pager a { padding: 10px 20px; background: #fff; border-radius: 999px; }

/* ---------- single post ---------- */
.single-post { margin: 0 auto; }
.single-post__date { font-family: var(--font-label); font-size: 13px; color: var(--faint2); letter-spacing: 0.05em; }
.single-post__title { font-family: var(--font-heading); font-weight: 900; font-size: 34px; line-height: 1.5; margin: 12px 0 20px; }
.single-post__cat { font-size: 12px; color: var(--primary); background: var(--chip-bg2); border-radius: 999px; padding: 4px 12px; display: inline-block; margin-bottom: 22px; }
.single-post__content { font-size: 15.5px; line-height: 2.1; color: var(--muted); background: var(--surface); border-radius: 28px; padding: 40px; }
.single-post__content p { margin: 0 0 1.4em; }
.single-post__back { display: inline-block; margin-bottom: 30px; font-size: 13.5px; color: var(--primary); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-lead { font-size: 15px; line-height: 2.05; color: var(--muted); margin: 0 0 32px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-card { background: var(--surface); border-radius: 20px; padding: 22px 24px; }
.info-card__label { font-size: 12px; letter-spacing: 0.06em; color: var(--faint2); margin-bottom: 7px; }
.info-card__body { font-size: 14px; line-height: 1.9; color: var(--muted); }

.notice { background: var(--surface); border-radius: 32px; padding: 66px 44px; text-align: center; }
.notice__check { width: 62px; height: 62px; margin: 0 auto 22px; border-radius: 22px 22px 22px 6px; background: linear-gradient(135deg, #55A8F0, #2F7DD1); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; animation: bob 2.6s ease-in-out infinite; }
.notice h2 { font-family: var(--font-heading); font-weight: 700; font-size: 24px; margin: 0 0 14px; }
.notice p { font-size: 14.5px; line-height: 1.95; color: var(--muted2); margin: 0 0 26px; }
.notice--error { background: #FFF3F0; color: #C24A2E; text-align: left; padding: 20px 24px; border-radius: 18px; font-size: 14px; margin-bottom: 22px; }

.form { background: var(--surface); border-radius: 32px; padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field span.field-label { font-size: 12.5px; font-weight: 500; letter-spacing: 0.05em; color: var(--muted); }
.field .required { color: var(--warn); }
.field .optional { color: var(--faint2); font-weight: 400; }
.field input, .field textarea {
  padding: 14px 16px; border: 1.5px solid #DEEAF6; border-radius: 14px;
  background: #F7FBFF; font-size: 14.5px; color: var(--ink); outline: none;
  transition: border-color 220ms, background 220ms;
}
.field textarea { line-height: 1.85; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--primary); background: #fff; }
.field--error input, .field--error textarea { border-color: #F0A98F; }
.field__error { font-size: 12.5px; color: #C24A2E; }

.kind-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.kind-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind-pill label {
  display: inline-block; font-size: 13px; font-weight: 500; padding: 10px 18px;
  border-radius: 999px; cursor: pointer; background: var(--card-bg); color: var(--muted);
  transition: transform 240ms cubic-bezier(.2,.9,.2,1), background 240ms, color 240ms;
}
.kind-pill label:hover { transform: translateY(-3px); }
.kind-pill input:checked + label { background: var(--primary); color: #fff; }
.kind-pill input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }

.submit-btn {
  margin-top: 4px; padding: 18px; background: var(--primary); color: #fff; border: none;
  border-radius: 999px; font-family: var(--font-heading); font-size: 15.5px; font-weight: 700;
  letter-spacing: 0.06em; cursor: pointer; box-shadow: 0 14px 28px -14px rgba(47, 125, 209, 0.9);
  transition: background 240ms, transform 240ms cubic-bezier(.2,.9,.2,1);
}
.submit-btn:hover { background: var(--ink); transform: translateY(-3px); }
.form-note { font-size: 11.5px; line-height: 1.8; color: var(--faint2); margin: 0; }

/* ---------- 404 ---------- */
.error-404 { padding: 170px 24px 140px; text-align: center; }
.error-404 h1 { font-family: var(--font-heading); font-weight: 900; font-size: 44px; margin: 0 0 18px; }
.error-404 p { font-size: 15px; color: var(--muted2); margin: 0 0 30px; }

/* ---------- responsive ---------- */

/* body scroll lock while the drawer is open */
body.nav-lock { overflow: hidden; }

@media (max-width: 1080px) {
  .wrap, .hero__grid, .page-hero__inner { max-width: 100%; }
  .services-grid, .process-grid { gap: 18px; }
}

@media (max-width: 960px) {
  .hero__grid, .notes-grid, .contact-grid, .work-item { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 360px; margin: 0 auto; }
  .services-grid, .process-grid, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-intro { flex-direction: column; text-align: center; }
  .profile-info { max-width: 100%; }
  .process-panel { padding: 44px 30px; }
  .work-item__body { padding: 8px 4px 0; }
}

/* ---- hamburger + 右からスライドするドロワー ---- */
@media (max-width: 860px) {
  .site-header { top: 10px; padding: 0 12px; }
  .site-header__inner { border-radius: 26px; padding: 10px 10px 10px 20px; }
  .brand-tag { display: none; }

  .nav-toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    width: 42px; height: 42px; border: none; border-radius: 999px;
    background: var(--chip-bg); cursor: pointer; flex: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 220ms, transform 220ms cubic-bezier(.2,.9,.2,1);
  }
  .nav-toggle__bar {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 200ms, background 220ms;
  }
  @media (hover: hover) and (pointer: fine) {
    .nav-toggle:hover { background: var(--primary); transform: translateY(-2px); }
    .nav-toggle:hover .nav-toggle__bar { background: #fff; }
  }
  .nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
  .nav-toggle.is-active .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.is-active .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 90;
    background: rgba(20, 51, 82, 0.45); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity 320ms ease;
  }
  .nav-overlay.is-visible { opacity: 1; pointer-events: auto; }

  .site-nav--desktop { display: none; }

  .site-nav.site-nav--drawer {
    display: flex;
    position: fixed; top: 0; right: 0; z-index: 100;
    width: min(82vw, 320px); height: 100vh; height: 100dvh;
    background: #fff; flex-direction: column; align-items: stretch;
    gap: 14px; padding: 96px 24px 32px; margin: 0;
    box-shadow: -20px 0 50px -20px rgba(20, 51, 82, 0.45);
    transform: translateX(100%); transition: transform 360ms cubic-bezier(.2,.9,.2,1);
    overflow-y: auto;
  }
  .site-nav--drawer.is-open { transform: translateX(0); }
  .site-nav--drawer a { text-align: left; padding: 18px 20px; font-size: 18px; }
  .site-nav--drawer a:hover, .site-nav--drawer a.is-current { transform: none; }

  .nav-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 20px; right: 44px;
    width: 38px; height: 38px; border: none; border-radius: 999px;
    background: var(--chip-bg); color: var(--ink); font-size: 16px; line-height: 1;
    cursor: pointer;
  }
}

@media (max-width: 720px) {
  .hero { padding: 118px 16px 60px; }
  .hero__title { font-size: 38px; }
  .wrap, .section, .page-hero { padding-left: 16px; padding-right: 16px; }
  .services-grid, .process-grid, .works-grid, .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 56px 26px; }
  .cta-band h2 { font-size: 26px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .contact-grid { gap: 32px; }
  .form, .notice { padding: 28px 22px; }
  .work-item { padding: 16px; }
  .single-post__content { padding: 26px 22px; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 17px; }
  .hero { padding: 108px 14px 48px; }
  .hero__title { font-size: 30px; }
  .hero__body { font-size: 15px; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; padding: 16px 20px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .ticker__item { font-size: 14px; gap: 22px; }
  .ticker__group { gap: 22px; }
  .section-title, .page-title { font-size: 26px; }
  .process-panel { padding: 30px 18px; }
  .cta-band h2 { font-size: 22px; }
  .cta-band { padding: 40px 20px; }
  .post-row, .blog-row { grid-template-columns: 1fr; }
  .post-row .post-arrow { display: none; }
  .work-item__meta { grid-template-columns: 60px 1fr; }
  .pager { flex-wrap: wrap; }
}
