@charset "UTF-8";

/* =============================================
   佐藤康平事務所 公式サイト
   ============================================= */

:root {
  --ink: #0e1a2b;
  --ink-2: #16263c;
  --ink-3: #1e3050;
  --gold: #b08d57;
  --gold-light: #cbb489;
  --gold-pale: #e9dfc9;
  --paper: #f7f4ee;
  --white: #ffffff;
  --text: #2b3442;
  --muted: #707a88;
  --line: #e3ded4;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.wrap {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

.sp-only { display: none; }
@media (max-width: 760px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy > * { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.site-header.is-solid {
  background: rgba(14, 26, 43, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--white);
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.brand-en {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.global-nav ul {
  display: flex;
  gap: 34px;
}
.global-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  position: relative;
  padding: 6px 0;
}
.global-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--gold-light);
  transition: right 0.35s ease;
}
.global-nav a:hover::after { right: 0; }

.nav-toggle { display: none; }

/* header on plain (subpage) */
.site-header.header-plain {
  position: static;
  background: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(10, 19, 33, 0.92) 0%,
    rgba(10, 19, 33, 0.78) 34%,
    rgba(10, 19, 33, 0.28) 62%,
    rgba(10, 19, 33, 0.16) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { color: var(--white); max-width: 640px; }
.hero-copy > * {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-copy .hero-lead { animation-delay: 0.45s; }
.hero-copy .hero-sub { animation-delay: 0.8s; }
.hero-copy .hero-actions { animation-delay: 1.05s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
}
.hero-lead {
  margin-top: 26px;
  font-size: clamp(0.95rem, 1.5vw, 1.07rem);
  line-height: 2.3;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.86);
}
.hero-sub {
  margin-top: 18px;
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  text-transform: uppercase;
  border-top: 1px solid rgba(203, 180, 137, 0.5);
  padding-top: 12px;
}
.hero-actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  padding: 15px 32px;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #9a7a48; }
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--ink-3); }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.9);
}
.section-white { background: var(--white); }

.sec-head { margin-bottom: 56px; }
.sec-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.sec-label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}
.sec-title {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.7;
  color: var(--ink);
}
.section-dark .sec-title { color: var(--white); }
.sec-note { margin-top: 14px; color: var(--muted); font-size: 0.92rem; }
.section-dark .sec-note { color: rgba(255, 255, 255, 0.64); }

/* ---------- mission ---------- */
.mission { text-align: center; }
.mission .sec-label { justify-content: center; }
.mission .sec-label::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}
.mission-copy {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  letter-spacing: 0.14em;
  line-height: 2.4;
  color: var(--ink);
  margin-top: 30px;
}
.mission-text {
  max-width: 720px;
  margin: 28px auto 0;
  font-size: 0.97rem;
  color: var(--text);
}

/* ---------- services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(14, 26, 43, 0.12);
}
.service-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-photo img { transform: scale(1.05); }
.service-num {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--ink);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  padding: 8px 18px;
}
.service-body { padding: 30px 28px 34px; display: flex; flex-direction: column; flex: 1; }
.service-title {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
  line-height: 1.8;
}
.service-desc {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 2;
  flex: 1;
}
.service-items {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.service-items li {
  position: relative;
  padding-left: 18px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 6px;
}
.service-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--gold);
}

/* ---------- profile ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 70px;
  align-items: start;
}
.profile-side { text-align: center; }
.profile-photo {
  position: relative;
  width: min(280px, 72vw);
  margin: 0 auto;
}
.profile-photo::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  right: -18px;
  bottom: -18px;
  border: 1px solid rgba(203, 180, 137, 0.45);
  z-index: 0;
}
.profile-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.profile-mark {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border: 1px solid rgba(203, 180, 137, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.profile-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(203, 180, 137, 0.25);
  border-radius: 50%;
}
.profile-mark span {
  font-family: var(--serif);
  font-size: 3.4rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}
.profile-name {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--white);
}
.profile-name small {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.profile-role {
  margin-top: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}
.career-list { border-left: 1px solid rgba(203, 180, 137, 0.4); }
.career-list li {
  position: relative;
  padding: 0 0 34px 34px;
}
.career-list li:last-child { padding-bottom: 0; }
.career-list li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.career-era {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.career-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-top: 4px;
}
.career-desc {
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.72);
}
.profile-note {
  margin-top: 40px;
  font-size: 0.88rem;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 26px;
}

/* ---------- news ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a {
  display: grid;
  grid-template-columns: 130px 120px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 26px 10px;
  transition: background 0.3s ease;
}
.news-list a:hover { background: rgba(176, 141, 87, 0.07); }
.news-date {
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.news-cat {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  border: 1px solid var(--gold-pale);
  background: var(--white);
  text-align: center;
  padding: 4px 8px;
}
.news-title { font-size: 0.95rem; line-height: 1.9; }
.news-arrow { color: var(--gold); font-size: 0.9rem; }
.news-more { margin-top: 34px; text-align: right; }
.text-link {
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.text-link:hover { color: var(--gold); }

/* ---------- company table ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
.company-table th,
.company-table td {
  border: 1px solid var(--line);
  padding: 22px 28px;
  font-size: 0.95rem;
  line-height: 2;
  text-align: left;
  vertical-align: top;
}
.company-table th {
  width: 220px;
  background: var(--ink);
  color: var(--gold-pale);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.14em;
}
.company-table ul li {
  position: relative;
  padding-left: 18px;
}
.company-table ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ---------- contact ---------- */
.contact-inner {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}
.contact-lead {
  font-size: 0.95rem;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.8);
}
.contact-mail {
  margin-top: 36px;
  display: inline-block;
}
.contact-mail a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: 0.06em;
  color: var(--white);
  border: 1px solid rgba(203, 180, 137, 0.6);
  padding: 22px 40px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.contact-mail a:hover {
  background: rgba(176, 141, 87, 0.18);
  border-color: var(--gold-light);
}
.contact-mail .mail-icon { color: var(--gold-light); font-size: 1.1em; }
.contact-note {
  margin-top: 24px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- footer ---------- */
.site-footer {
  background: #0a1421;
  color: rgba(255, 255, 255, 0.72);
  padding: 60px 0 34px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-owner {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 0.82rem;
}
.footer-nav a { color: rgba(255, 255, 255, 0.72); transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--gold-light); }
.copyright {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

/* ---------- subpage ---------- */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 74px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(203, 180, 137, 0.22);
  border-radius: 50%;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: 40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(203, 180, 137, 0.14);
  border-radius: 50%;
}
.page-hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.page-hero-title {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.8;
}
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
}
.breadcrumb li + li::before { content: "／"; margin-right: 8px; color: var(--line); }
.breadcrumb a:hover { color: var(--gold); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}
.article-body {
  max-width: 780px;
}
.article-body p { margin-bottom: 1.6em; }
.article-body .article-sign {
  margin-top: 3em;
  text-align: right;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- policy page ---------- */
.policy-body { max-width: 820px; }
.policy-body > p { margin-bottom: 1.8em; }
.policy-sec { margin-top: 54px; }
.policy-sec h2 {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
  line-height: 1.9;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  margin-bottom: 22px;
}
.policy-sec p { margin-bottom: 1.4em; }
.policy-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  line-height: 2;
}
.policy-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.85em;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.policy-date {
  margin-top: 64px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  text-align: right;
  line-height: 2.2;
}
.policy-date .policy-owner {
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0.1em;
  color: var(--ink);
}

/* =============================================
   responsive
   ============================================= */
@media (max-width: 960px) {
  .service-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .profile-grid { grid-template-columns: 1fr; gap: 50px; }
  .profile-side { margin-inline: auto; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .section { padding: 76px 0; }
  .site-header .wrap { height: 68px; }
  .brand-en { display: none; }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
    z-index: 120;
  }
  .nav-toggle span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.35s ease, opacity 0.35s ease, top 0.35s ease;
  }
  .nav-toggle span:nth-child(1) { top: 15px; }
  .nav-toggle span:nth-child(2) { top: 22px; }
  .nav-toggle span:nth-child(3) { top: 29px; }
  .nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

  .global-nav {
    position: fixed;
    inset: 0;
    background: rgba(14, 26, 43, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 110;
  }
  .nav-open .global-nav { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; text-align: center; gap: 30px; }
  .global-nav a { font-size: 1.02rem; }

  .hero-actions .btn { min-width: 0; flex: 1 1 auto; padding: 14px 20px; }
  .hero-bg img { object-position: 66% center; }

  .news-list a {
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto;
    gap: 8px 14px;
    padding: 20px 4px;
  }
  .news-date { grid-row: 1; }
  .news-cat { grid-row: 1; justify-self: start; }
  .news-title { grid-column: 1 / -1; grid-row: 2; }
  .news-arrow { display: none; }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    border: none;
    padding: 14px 18px;
  }
  .company-table tr { display: block; border: 1px solid var(--line); border-bottom: none; }
  .company-table tr:last-child { border-bottom: 1px solid var(--line); }
  .company-table th { padding-bottom: 12px; }

  .contact-mail a { padding: 18px 22px; font-size: 1rem; }
  .footer-top { flex-direction: column; }
}
