/* hirosecoordinates.com 公開ページ（2026）
   決まりは docs/デザインルール.md。部品（jQuery・Bootstrap など）は使わず、この 1 ファイルで表示する */
:root {
  --brand: #17bed2;
  --brand-ink: #0b6f7c;
  --brand-ink-2: #095d68;
  --brand-soft: #e6f7fa;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --line: #e3e7ec;
  --surface: #fff;
  --soft: #f6f8fa;
  --r-s: 6px; --r-m: 10px; --r-l: 16px;
  --shadow-1: 0 1px 2px rgba(16,35,43,.06), 0 2px 8px rgba(16,35,43,.06);
  --shadow-2: 0 12px 32px rgba(16,35,43,.14);
  --wrap: 1140px;
  --font: -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.8 var(--font); color: var(--ink); background: var(--surface); }
html[lang="nl"] body { line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.3; letter-spacing: .01em; margin: 0; word-break: auto-phrase; text-wrap: balance; }
/* 日本語の見出しは文節の切れ目で改行する（「お気軽にど／うぞ」のような切れ方を防ぐ） */
p { margin: 0 0 1em; }
p, dd, li, .body { overflow-wrap: anywhere; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 8px; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-m); border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--brand-ink); color: #fff; }
.btn-primary:hover { background: var(--brand-ink-2); box-shadow: var(--shadow-1); }
.btn-ghost { background: rgba(255,255,255,.8); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }

/* ---------- ヘッダー ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); transition: box-shadow .2s; }
.site-header.scrolled, .page-sub .site-header { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(16,35,43,.06); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo img { height: 38px; width: auto; }
.logo .logo-text { font-weight: 800; color: var(--ink); text-decoration: none; }
.menu { display: flex; align-items: center; gap: 4px 24px; }
.menu > a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 0; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 2px no-repeat; transition: background-size .2s; }
.menu > a:not(.btn):hover { background-size: 100% 2px; }
.menu .lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px !important; font-size: 13px !important; background: rgba(255,255,255,.7) !important; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; }
.menu-btn span:first-child, .menu-btn span:first-child::before, .menu-btn span:first-child::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: transform .2s, background .2s; }
.menu-btn span:first-child { top: 21px; }
.menu-btn span:first-child::before { left: 0; top: -7px; }
.menu-btn span:first-child::after { left: 0; top: 7px; }
.menu-btn[aria-expanded="true"] span:first-child { background: transparent; }
.menu-btn[aria-expanded="true"] span:first-child::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:first-child::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .site-header { background: rgba(255,255,255,.96); box-shadow: 0 1px 0 var(--line); }
  .menu-btn { display: block; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 24px 20px; box-shadow: var(--shadow-2); display: none; }
  .menu.open { display: flex; }
  .menu > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); background: none; }
  .menu .lang { align-self: flex-start; margin-top: 12px; }
  .menu .btn { margin-top: 12px; }
}

/* ---------- トップの大きな画像 ---------- */
.hero { position: relative; min-height: min(760px, 92vh); display: flex; align-items: center; overflow: hidden; background: var(--soft); padding: 110px 0 72px; }
/* 写真は見出しの右側から、本文の幅（最大 1140px・中央寄せ）の右端まで。広い画面でも右端まで伸ばさず中央にまとめる */
.hero-media { position: absolute; top: 0; bottom: 0; left: max(30%, calc(50% - 300px)); right: max(0px, calc(50% - 570px)); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--soft) 0, rgba(246,248,250,.6) 180px, rgba(246,248,250,0) 420px); }
.hero-in { position: relative; z-index: 1; width: 100%; }
.hero-text { max-width: 560px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; margin-bottom: 14px; }
.hero .sub { font-size: 18px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.hero .lead { font-size: 17px; color: var(--ink); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 24px; }
.sns { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.sns a { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, color .15s, transform .15s; }
.sns a:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-2px); }
.sns svg { width: 19px; height: 19px; fill: currentColor; }
@media (max-width: 900px) {
  .hero { display: block; padding: 72px 0 40px; min-height: 0; }
  .hero-media { position: relative; inset: auto; height: clamp(260px, 46vh, 420px); }
  .hero-media::after { background: linear-gradient(180deg, rgba(246,248,250,0) 60%, var(--soft) 100%); }
  .hero-in { margin-top: -40px; }
  .hero h1 { font-size: 40px; }
}

/* ---------- 区切り ---------- */
.sec { padding: 96px 0; }
.sec.soft { background: var(--soft); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
/* 区切りの見出しだけ大きく（カードの題名には効かせない） */
.sec-head h2, .work-side h2, .profile-text h2, .page-head h1 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; }
.more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; transition: margin .15s; }
.more:hover::after { margin-left: 4px; }
@media (max-width: 700px) { .sec { padding: 64px 0; } }

/* ---------- サービス ---------- */
.services { padding-top: 0; margin-top: -56px; position: relative; z-index: 2; }
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px 22px; box-shadow: var(--shadow-1); transition: box-shadow .2s, transform .2s; }
.svc:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.svc-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 14px; }
.svc-icon svg { width: 26px; height: 26px; }
.svc h3 { font-size: 18px; margin-bottom: 8px; }
.svc p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 1000px) { .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .services { margin-top: 0; padding-top: 24px; } }
@media (max-width: 560px) { .cards4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- カード（ブログ・ポートフォリオ） ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-l); background: var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 14px 2px 0; }
.card-title { font-size: 18px; margin: 2px 0 6px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brand-ink); }
.date { color: var(--muted); font-size: 14px; margin: 0; }
.excerpt { color: var(--muted); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* ポートフォリオは写真を大きく、題名を写真に重ねる */
.works .card { position: relative; }
.works .card-body { position: absolute; inset: auto 0 0 0; padding: 48px 18px 16px; border-radius: 0 0 var(--r-l) var(--r-l); background: linear-gradient(180deg, rgba(10,20,25,0) 0%, rgba(10,20,25,.78) 100%); pointer-events: none; }
.works .card-title a { color: #fff; pointer-events: auto; }
.works .card-title a::after { content: ""; position: absolute; inset: 0; }
.works .date { color: rgba(255,255,255,.8); }

/* ---------- 実績 ---------- */
.work { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.work-side { position: sticky; top: 100px; }
.work-side h2 { margin-bottom: 24px; }
.work-img { border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.work-h { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin: 28px 0 10px; }
.work-h:first-child { margin-top: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6f7c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.checks + .checks { border-top: 1px solid var(--line); padding-top: 24px; }
@media (max-width: 900px) { .work { grid-template-columns: minmax(0, 1fr); gap: 32px; } .work-side { position: static; } .work-img { max-height: 320px; width: 100%; object-fit: cover; } }
@media (max-width: 560px) { .checks { grid-template-columns: minmax(0, 1fr); } }

/* ---------- プロフィール ---------- */
.profile { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; }
.profile-photo img { width: 100%; border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.profile-text h2 { margin-bottom: 24px; }
.profile-text h3 { font-size: 20px; margin: 36px 0 16px; }
.facts { display: grid; gap: 0; margin: 0 0 8px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.facts dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; padding: 0 0 18px 12px; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.tl-year { font-weight: 700; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .profile { grid-template-columns: minmax(0, 1fr); gap: 32px; } .profile-photo { max-width: 360px; } }
@media (max-width: 560px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; } .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ---------- お知らせ ---------- */
.info { margin-top: 48px; padding: 24px 28px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.info p:last-child { margin: 0; }

/* ---------- お問い合わせ ---------- */
.cta { background: radial-gradient(900px 400px at 100% 0%, #1fc6d9 0%, var(--brand-ink) 55%, #073f47 100%); color: #fff; padding: 88px 0; }
.cta-in { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.cta .eyebrow { color: #bff3fb; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.9); }
/* 短い説明文も言葉の切れ目で改行（「しま／す。」のような 1 文字だけの行を防ぐ） */
.cta p, .hero .lead, .svc p { word-break: auto-phrase; text-wrap: pretty; }
.cta-actions { display: grid; gap: 12px; }
.cta-actions .btn { justify-content: flex-start; overflow: hidden; text-overflow: ellipsis; }
.cta-addr { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 0; font-size: 14px; }
.cta-addr .ic { margin-top: 4px; }
.cta a:not(.btn) { color: #fff; }
@media (max-width: 900px) { .cta-in { grid-template-columns: minmax(0, 1fr); gap: 28px; } .cta { padding: 64px 0; } }

/* ---------- フッター ---------- */
.site-footer { background: #0e1a20; color: #c5d2d8; padding: 40px 0 24px; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
/* ロゴの画像は背景が白いので、暗いフッターではサイト名を文字で出す */
.footer-name { color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .02em; text-decoration: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: #c5d2d8; text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.site-footer .sns a { background: transparent; border-color: rgba(255,255,255,.2); color: #c5d2d8; }
.site-footer .copy { font-size: 13px; color: #8ea1aa; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- 一覧・詳細ページ ---------- */
.page-head { background: var(--soft); padding: 128px 0 48px; }
.page-head h1 { margin-top: 6px; }
.page-head .date { margin-top: 10px; }
.crumb { font-size: 14px; color: var(--muted); margin: 0; }
.crumb a { color: var(--muted); }
.detail { padding-top: 48px; }
.detail .main-img { width: 100%; border-radius: var(--r-l); margin-bottom: 32px; }
.detail .body { font-size: 17px; }
.detail .back { margin-top: 48px; }
.pagination { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 48px 0 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; font-weight: 600; }
.pagination .active span { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }

/* ---------- 少しずつ現れる動き（開いた時に見えていない所だけ。ちらつかないように） ---------- */
.reveal.pending { opacity: 0; transform: translateY(16px); }
.reveal.pending.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal.pending { opacity: 1; transform: none; }
}
