/*
Theme Name: TYRELL
Theme URI: http://tyrell.jp/
Author: Studio Anrouge
Description: 株式会社タイレル コーポレートサイト用オリジナルテーマ（2026リニューアル）。トップページは1ページ構成（事業内容／強み／会社概要／アクセス／お問い合わせ）、お知らせは投稿で更新できます。会社情報は「外観 → カスタマイズ → 会社情報」から編集できます。
Version: 1.5.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tyrell
*/

/* ------------------------------------------------------------
   Tokens
------------------------------------------------------------ */
:root {
  /* Brand blue = ロゴの青 #0b318f */
  --brand: #0b318f;
  --navy-900: #06205f;
  --navy-800: #0b318f;
  --navy-700: #1543b0;
  --navy-500: #3a63c6;
  --accent: #39a9f0;
  --accent-dark: #1a6fd1;
  --ink: #1c2430;
  --ink-soft: #5b6676;
  --line: #e3e7ed;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-en: var(--font-en-kit, "Helvetica Neue"), "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
  --wrap: 1160px;
  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------
   Base
------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--accent-dark); text-decoration: none; transition: color .2s, opacity .2s, background .2s, border-color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .8em; font-weight: 700; }
p { margin: 0 0 1.4em; }
ul { margin: 0; padding: 0; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
  background: #fff; color: var(--navy-900); padding: 8px 16px;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ------------------------------------------------------------
   Header
------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-solid,
body:not(.home) .site-header { background: rgba(11, 49, 143, .97); box-shadow: 0 2px 18px rgba(6, 32, 95, .25); }
.site-brand { display: flex; align-items: center; gap: 12px; color: #fff; line-height: 1; }
.site-brand:hover { color: #fff; opacity: .85; }
.site-brand .custom-logo { max-height: 40px; width: auto; }
.site-logo { display: block; width: 210px; height: auto; color: #fff; }
@media (max-width: 600px) { .site-logo { width: 168px; } }

.global-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.global-nav a {
  display: block; padding: 8px 14px; color: #fff; font-size: 14px; letter-spacing: .08em;
}
.global-nav a:hover { color: var(--accent); }
.global-nav .nav-contact a {
  border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 8px 22px; margin-left: 8px;
}
.global-nav .nav-contact a:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; position: relative; z-index: 120;
}
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed; inset: 0; background: var(--navy-900);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav-open .global-nav { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; gap: 8px; text-align: center; }
  .global-nav a { font-size: 18px; padding: 10px 20px; }
  .global-nav .nav-contact a { margin: 16px 0 0; }
  .nav-open { overflow: hidden; }
}

/* ------------------------------------------------------------
   Hero
------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: var(--brand);
}
.hero-bg { position: absolute; top: 0; bottom: 0; right: 0; left: 28%; background-size: cover; background-position: 30% center; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11,49,143,1) 0%, rgba(11,49,143,.97) 28%, rgba(11,49,143,.55) 46%, rgba(11,49,143,.12) 70%, rgba(11,49,143,0) 100%),
    linear-gradient(0deg, rgba(6,32,95,.55) 0%, rgba(6,32,95,0) 35%);
}
@media (max-width: 700px) {
  .hero-bg { left: 0; background-position: 30% center; }
  .hero::before { background: linear-gradient(90deg, rgba(11,49,143,.92), rgba(11,49,143,.6)), linear-gradient(0deg, rgba(6,32,95,.6), rgba(6,32,95,0) 40%); }
}
.hero .wrap { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero-label { font-family: var(--font-en); font-size: 13px; letter-spacing: .4em; color: #9fd6ff; margin-bottom: 28px; display: flex; align-items: center; gap: 14px; }
.hero-label::before { content: ""; width: 40px; height: 1px; background: #9fd6ff; }
.hero-title {
  font-family: var(--font-en); font-weight: 700; letter-spacing: -.01em; line-height: 1.05;
  font-size: clamp(42px, 8vw, 104px); margin: 0 0 32px;
}
.hero-title .thin { font-weight: 700; opacity: .72; }
.hero-lead { font-size: clamp(16px, 2vw, 21px); font-weight: 500; letter-spacing: .12em; margin: 0 0 12px; }
.hero-sub { font-size: 14px; color: rgba(255,255,255,.85); letter-spacing: .1em; margin: 0; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-en); font-size: 10px; letter-spacing: .3em; color: rgba(255,255,255,.7);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll::after { content: ""; width: 1px; height: 48px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 700px) {
}

/* ------------------------------------------------------------
   Sections
------------------------------------------------------------ */
.section { padding: 120px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.section-dark.has-bg::before { content: ""; position: absolute; inset: 0; background: var(--sec-bg) center / cover no-repeat; opacity: .55; mix-blend-mode: luminosity; }
.section-dark.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,49,143,.9), rgba(11,49,143,.78) 50%, rgba(6,32,95,.92)); }
.section-dark > .wrap { position: relative; z-index: 1; }
@media (max-width: 700px) { .section { padding: 80px 0; } }

.sec-head { margin-bottom: 56px; }
.sec-head.center { text-align: center; }
.sec-en {
  display: block; font-family: var(--font-en); font-weight: 700; font-size: clamp(34px, 5vw, 54px);
  letter-spacing: .04em; line-height: 1.1; color: var(--navy-800);
}
.section-dark .sec-en { color: #fff; }
.sec-ja { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); margin-top: 14px; letter-spacing: .14em; font-weight: 500; }
.sec-ja::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.section-dark .sec-ja { color: rgba(255,255,255,.85); }
.section-dark .sec-ja::before, .contact .sec-ja::before, .page-hero .sec-ja::before { background: #9fd6ff; }

/* About */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.about-catch { font-size: clamp(24px, 3.2vw, 36px); font-weight: 700; line-height: 1.6; letter-spacing: .08em; color: var(--navy-800); margin: 0; }
.about-catch em { font-style: normal; color: var(--accent-dark); }
.about-body p { color: var(--ink-soft); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.about-stats div { background: #fff; padding: 22px 16px; text-align: center; }
.about-stats .num { display: block; font-family: var(--font-en); font-weight: 700; font-size: 34px; color: var(--navy-800); line-height: 1.2; }
.about-stats .num small { font-size: 14px; margin-left: 2px; }
.about-stats .lbl { font-size: 12px; color: var(--ink-soft); letter-spacing: .1em; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 480px) { .about-stats .num { font-size: 26px; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 34px 40px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.service:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11, 49, 143, .14); }
.service:hover::before { transform: scaleX(1); }
.service-no { font-family: var(--font-en); font-size: 13px; font-weight: 700; color: var(--accent-dark); letter-spacing: .2em; }
.service-icon { width: 56px; height: 56px; margin: 18px 0 22px; color: var(--navy-700); }
.service-en { font-family: var(--font-en); font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--navy-800); margin: 0 0 4px; letter-spacing: .02em; }
.service-ja { font-size: 14px; color: var(--ink-soft); margin: 0 0 22px; }
.service ul { list-style: none; border-top: 1px solid var(--line); padding-top: 18px; }
.service li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.8; margin-bottom: 10px; }
.service li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
@media (max-width: 1000px) { .services { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }

/* Strength */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.strength { padding: 40px 32px 8px; border-right: 1px solid rgba(255,255,255,.14); }
.strength:last-child { border-right: 0; }
.strength .no { font-family: var(--font-en); font-size: 48px; font-weight: 700; color: #9fd6ff; line-height: 1; }
.strength h3 { font-size: 19px; margin: 18px 0 14px; letter-spacing: .08em; }
.strength p { font-size: 14px; color: rgba(255,255,255,.85); }
@media (max-width: 900px) {
  .strengths { grid-template-columns: 1fr; }
  .strength { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); padding: 32px 4px 12px; }
}

/* News */
.news-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.news-list { list-style: none; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 120px 110px 1fr 24px; align-items: center; gap: 16px; padding: 22px 8px; color: var(--ink); }
.news-list a:hover { background: var(--bg-soft); color: var(--navy-700); }
.news-date { font-family: var(--font-en); font-size: 14px; color: var(--ink-soft); letter-spacing: .06em; }
.news-cat { font-size: 11px; text-align: center; border: 1px solid var(--navy-500); color: var(--navy-500); border-radius: 2px; padding: 2px 6px; line-height: 1.6; }
.news-title { font-size: 15px; line-height: 1.7; }
.news-arrow { width: 16px; height: 16px; color: var(--accent-dark); }
.news-empty { color: var(--ink-soft); padding: 24px 8px; }
@media (max-width: 700px) {
  .news-list a { grid-template-columns: auto auto 1fr; row-gap: 6px; }
  .news-title { grid-column: 1 / -1; }
  .news-arrow { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px; justify-content: center;
  padding: 14px 32px; border-radius: 999px; font-size: 14px; letter-spacing: .1em; font-weight: 500;
  border: 1px solid var(--navy-800); color: var(--navy-800); background: transparent;
}
.btn:hover { background: var(--navy-800); color: #fff; }
.btn svg { width: 14px; height: 14px; transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }
.btn-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* Company table */
.company-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy-800); }
.company-table th, .company-table td { padding: 22px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; line-height: 1.8; }
.company-table th { width: 220px; font-weight: 600; color: var(--navy-800); background: var(--bg-soft); letter-spacing: .12em; }
.company-table td small { color: var(--ink-soft); }
.company-table .new-badge { display: inline-block; font-size: 11px; background: var(--accent); color: #fff; padding: 0 8px; border-radius: 2px; margin-left: 8px; letter-spacing: .1em; vertical-align: 2px; }
@media (max-width: 700px) {
  .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { padding: 12px 14px; border-bottom: 0; }
  .company-table td { padding: 12px 14px 20px; }
}

/* Access */
.access-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: stretch; }
.office { padding: 8px 0; }
.office + .office { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 28px; }
.office-tag { font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .3em; color: var(--accent-dark); }
.office h3 { font-size: 20px; margin: 6px 0 14px; color: var(--navy-800); }
.office address { font-style: normal; font-size: 15px; line-height: 1.9; margin-bottom: 14px; }
.office-tel { display: flex; flex-wrap: wrap; gap: 6px 24px; font-family: var(--font-en); font-size: 15px; }
.office-tel a { color: var(--ink); font-weight: 600; }
.office-tel a:hover { color: var(--accent-dark); }
.office-tel .k { font-size: 12px; color: var(--ink-soft); margin-right: 8px; letter-spacing: .1em; }
.office-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 14px; }
.map { position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
@media (max-width: 900px) { .access-grid { grid-template-columns: 1fr; } .map { min-height: 300px; } }

/* Contact */
.contact { position: relative; overflow: hidden; text-align: center; background: var(--brand); color: #fff; }
.contact::before { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.08); transform: rotate(45deg); left: -260px; top: -200px; }
.contact::after { content: ""; position: absolute; width: 380px; height: 380px; border: 1px solid rgba(159,214,255,.3); transform: rotate(45deg); right: -190px; bottom: -220px; }
.contact .wrap { position: relative; z-index: 1; }
.contact .sec-en { color: #fff; }
.contact .sec-ja { color: rgba(255,255,255,.75); }
.contact-lead { color: rgba(255,255,255,.82); margin: 0 auto 48px; max-width: 640px; }
.contact-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; }
.contact-box { display: block; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 34px 20px; color: #fff; background: rgba(255,255,255,.03); }
.contact-box:hover { background: rgba(255,255,255,.09); color: #fff; border-color: rgba(255,255,255,.5); }
.contact-box .k { display: block; font-size: 13px; letter-spacing: .16em; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.contact-box .v { display: block; font-family: var(--font-en); font-weight: 700; font-size: clamp(20px, 3vw, 30px); letter-spacing: .04em; line-height: 1.4; word-break: break-all; }
.contact-box .s { display: block; font-size: 12px; color: rgba(255,255,255,.6); margin-top: 8px; }
.contact-form-area { max-width: 820px; margin: 48px auto 0; text-align: left; background: #fff; color: var(--ink); padding: 40px; border-radius: var(--radius); }
@media (max-width: 700px) { .contact-boxes { grid-template-columns: 1fr; } .contact-form-area { padding: 24px 16px; } }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.85); padding: 72px 0 32px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid .site-brand { margin-bottom: 20px; display: inline-block; }
.footer-grid .site-logo { width: 230px; }
.footer-grid h4 { font-family: var(--font-en); font-size: 12px; letter-spacing: .3em; color: #9fd6ff; margin-bottom: 12px; }
.footer-grid address { font-style: normal; line-height: 1.9; }
.footer-grid a { color: rgba(255,255,255,.85); }
.footer-grid a:hover { color: #fff; }
.footer-nav { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.copyright { padding-top: 28px; text-align: center; font-family: var(--font-en); font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.65); margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.pagetop {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s;
}
.pagetop.is-show { opacity: 1; visibility: visible; transform: none; }
.pagetop:hover { background: var(--accent-dark); color: #fff; }
.pagetop svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------
   Sub pages (page / single / archive)
------------------------------------------------------------ */
.page-hero { padding: calc(var(--header-h) + 72px) 0 64px; background: var(--brand) var(--sec-bg, none) center / cover; color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,49,143,.96) 30%, rgba(11,49,143,.6)); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero::after { content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(159,214,255,.35); transform: rotate(45deg); right: -120px; top: -60px; }
.page-hero .sec-en { color: #fff; font-size: clamp(30px, 4.5vw, 46px); }
.page-hero .sec-ja { color: rgba(255,255,255,.88); }
.breadcrumb { font-size: 12px; padding: 16px 0; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .sep { margin: 0 10px; opacity: .5; }

.content-area { padding: 72px 0 120px; }
.entry { max-width: 820px; margin: 0 auto; }
.entry-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.entry-title { font-size: clamp(22px, 3vw, 30px); color: var(--navy-800); padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.entry-content h2 { font-size: 22px; margin: 2.2em 0 1em; padding: 0 0 12px; border-bottom: 2px solid var(--navy-800); color: var(--navy-800); }
.entry-content h3 { font-size: 18px; margin: 2em 0 .8em; padding-left: 14px; border-left: 3px solid var(--accent); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.6em; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 12px 14px; }
.entry-content th { background: var(--bg-soft); }
.entry-content blockquote { margin: 0 0 1.6em; padding: 16px 24px; background: var(--bg-soft); border-left: 3px solid var(--navy-500); }
.entry-content .wp-block-image, .entry-content figure { margin: 0 0 1.6em; }
.alignwide { max-width: 1000px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 14px; }
.back-wrap { text-align: center; margin-top: 48px; }

.pagination { margin-top: 56px; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); color: var(--ink); font-family: var(--font-en); font-size: 14px; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.notfound { text-align: center; }
.notfound .big { font-family: var(--font-en); font-weight: 700; font-size: 120px; line-height: 1; color: var(--line); }

/* ------------------------------------------------------------
   Reveal animation
------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
.js .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll::after { animation: none; }
}

/* Utility */
@media (max-width: 700px) { br.pc { display: none; } }
.office-link svg { width: 14px; height: 14px; }
.news-arrow svg { width: 16px; height: 16px; display: block; }

/* Office photo */
.office-photo { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.office-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.access-grid { align-items: stretch; }
.map { min-height: 520px; }
@media (max-width: 900px) { .map { min-height: 300px; } }

/* ------------------------------------------------------------
   Loading screen（白 → 3色ストライプ → 青 → シャッターで開く）
------------------------------------------------------------ */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 9999; display: block; overflow: hidden;
  --cut: cubic-bezier(.86, 0, .07, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
}
.no-loader .loader { display: none !important; }
.loader.is-gone { visibility: hidden; pointer-events: none; }
body.is-loading { overflow: hidden; overscroll-behavior: none; }
html:has(body.is-loading) { overflow: hidden; }

.ld-layer { position: absolute; inset: 0; display: grid; place-items: center; }
.ld-white { z-index: 1; background: #fff; color: var(--brand); }

/* --- ストライプ（斜めワイプ） --- */
.ld-stripe, .ld-blue {
  clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%);
  transition: clip-path .7s var(--cut);
}
.ld-stripe.s1 { z-index: 2; background: var(--accent); }
.ld-stripe.s2 { z-index: 3; background: var(--navy-700); transition-delay: .09s; }
.ld-blue { z-index: 4; color: #fff; transition-delay: .18s; }
.loader.is-blue .ld-stripe,
.loader.is-blue .ld-blue { clip-path: polygon(0 0, 130% 0, 100% 100%, 0 100%); }

/* 青面はシャッター2枚で構成（退場時に上下へ開く） */
.ld-shutter { position: absolute; left: 0; width: 100%; height: 50.5%; background: var(--brand); transition: transform .85s var(--cut); }
.ld-shutter.top { top: 0; }
.ld-shutter.bot { bottom: 0; }
.loader.is-done .ld-shutter.top { transform: translateY(-101%); }
.loader.is-done .ld-shutter.bot { transform: translateY(101%); }
.loader.is-done .ld-stripe, .loader.is-done .ld-white { visibility: hidden; }

/* --- 白画面の走査ライン --- */
.ld-white::before, .ld-white::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: var(--brand);
  transform: scaleX(0); transform-origin: left;
}
.ld-white::before { top: 50%; transform: translateX(-101%); animation: ldScan 1.1s var(--cut) .05s forwards; }
.ld-white::after { top: auto; bottom: 0; height: 4px; transform: scaleX(var(--p, 0)); transition: transform .2s linear; }
@keyframes ldLine { to { transform: scaleX(1); } }
@keyframes ldScan { 0% { transform: translateX(-101%); } 45% { transform: translateX(0); } 100% { transform: translateX(101%); } }

/* --- 巨大カウンター（アウトライン） --- */
.ld-count {
  position: absolute; right: 3vw; bottom: -4vw; z-index: 0;
  font-family: var(--font-en); font-weight: 700; font-size: clamp(140px, 28vw, 420px); line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--brand); opacity: .22; font-variant-numeric: tabular-nums;
  user-select: none;
}
.ld-blue .ld-count { -webkit-text-stroke-color: #fff; opacity: .25; }

/* --- ロゴ＆メタ --- */
.loader-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.loader-logo { width: min(320px, 66vw); height: auto; overflow: visible; }
.ld-white .loader-logo .mk { transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0) rotate(-180deg); animation: ldMark .75s var(--pop) .55s forwards; }
.ld-white .loader-logo .tx { opacity: 0; transform-box: fill-box; transform: translateX(-60%) skewX(-30deg); animation: ldText .42s var(--cut) forwards; }
@keyframes ldMark { to { transform: none; } }
@keyframes ldText { to { opacity: 1; transform: none; } }

.loader-meta { display: flex; align-items: center; gap: 16px; width: min(320px, 66vw); font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: .18em; }
.ld-white .loader-meta { opacity: 0; animation: ldText .3s var(--cut) 1.1s forwards; }
.loader-bar { flex: 1; height: 2px; position: relative; overflow: hidden; }
.loader-bar::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .22; }
.loader-bar span { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(var(--p, 0)); }
.loader-num { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }

/* 青に切り替わった瞬間：ロゴがパンチ＋ダイヤ型の衝撃波 */
.loader.is-blue .ld-blue .loader-logo { animation: ldPunch .6s var(--pop) .55s both; }
@keyframes ldPunch { 0% { transform: scale(.82); } 100% { transform: scale(1); } }
.ld-wave { position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px; border: 2px solid #fff; transform: rotate(45deg) scale(0); opacity: 0; z-index: 0; pointer-events: none; }
.ld-wave.w2 { border-color: var(--accent); }
.loader.is-blue .ld-wave { animation: ldWave 1.1s cubic-bezier(.2,.8,.2,1) .6s forwards; }
.loader.is-blue .ld-wave.w2 { animation-delay: .75s; }
@keyframes ldWave { 0% { opacity: 1; transform: rotate(45deg) scale(.2); } 100% { opacity: 0; transform: rotate(45deg) scale(7); } }

/* 退場：ロゴがズームアウト → シャッターが開く */
.loader.is-done .ld-blue .loader-inner { animation: ldOut .45s var(--cut) forwards; }
.loader.is-done .ld-blue .ld-count, .loader.is-done .ld-wave { opacity: 0; transition: opacity .2s; }
@keyframes ldOut { to { opacity: 0; transform: scale(1.25); letter-spacing: .3em; } }

/* 「視差効果を減らす」設定でもロゴの動きは再生（短時間のため）。走査ラインのみ非表示 */
@media (prefers-reduced-motion: reduce) {
  .ld-white::before { display: none; }
}

/* Map badge */
.map-badge { position: absolute; left: 14px; top: 14px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; background: var(--brand); color: #fff; border-radius: 2px; box-shadow: 0 6px 18px rgba(6,32,95,.25); pointer-events: none; }
.map-badge-mark { width: 28px; height: auto; color: #fff; }
.map-badge span { display: flex; flex-direction: column; line-height: 1.3; }
.map-badge strong { font-size: 13px; letter-spacing: .08em; }
.map-badge small { font-family: var(--font-en); font-weight: 700; font-size: 9px; letter-spacing: .2em; opacity: .8; }
