/* ============================================
   東浦行政書士事務所 共通スタイル
   配色: 藍(#1F3A5F) × 白 × 朱(#B83A2B)
   ============================================ */

:root {
  --ai: #1F3A5F;        /* 藍 メインカラー */
  --ai-dark: #162B47;   /* 濃藍 */
  --ai-pale: #EEF2F7;   /* 淡藍 背景用 */
  --shu: #B83A2B;       /* 朱 印章アクセント */
  --sumi: #26282B;      /* 墨 本文 */
  --gray: #6B7280;      /* 補足テキスト */
  --paper: #FCFCFA;     /* 地色 */
  --line: #D8DDE4;      /* 罫線 */
  --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: 80px; }

body {
  font-family: var(--sans);
  color: var(--sumi);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ai); }

:focus-visible {
  outline: 3px solid var(--shu);
  outline-offset: 2px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 252, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ai-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-seal {
  width: 34px;
  height: 34px;
  background: var(--shu);
  color: #fff;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1.2;
  border-radius: 3px;
  flex-shrink: 0;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.global-nav a {
  text-decoration: none;
  color: var(--sumi);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.global-nav a:hover { color: var(--shu); }

.nav-cta {
  background: var(--ai);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 3px;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--shu); color: #fff !important; }

/* モバイルナビ */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ai-dark);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .global-nav.open { display: block; }
  .global-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .global-nav li { border-top: 1px solid var(--line); }
  .global-nav li:first-child { border-top: none; }
  .global-nav a { display: block; padding: 14px 24px; }
  .nav-cta { margin: 10px 24px; text-align: center; }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  background: linear-gradient(rgba(22, 43, 71, 0.62), rgba(22, 43, 71, 0.62)),
              url("https://higashiura-gyosei.com/wp-content/uploads/2026/01/nastuh-abootalebi-yWwob8kwOCk-unsplash-2-1024x684.jpg")
              center / cover no-repeat;
  color: #fff;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.hero-copy p {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  letter-spacing: 0.05em;
  max-width: 34em;
  margin-bottom: 34px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 0.98rem;
  transition: opacity 0.2s, background 0.2s;
}

.btn-primary { background: var(--shu); color: #fff; }
.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* 縦書きキャッチ(シグネチャー要素) */
.hero-tate {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  letter-spacing: 0.35em;
  font-weight: 500;
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  padding-right: 18px;
  height: 320px;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .hero-tate { display: none; }
  .hero { min-height: 480px; }
}

/* ---------- セクション共通 ---------- */
section { padding: 88px 0; }

.section-alt { background: var(--ai-pale); }

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head .en {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--shu);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ai-dark);
}

.section-head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--shu);
  margin: 18px auto 0;
}

/* ---------- 業務内容 ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service-body { padding: 26px 26px 30px; flex: 1; }

.service-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ai-dark);
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--shu);
  line-height: 1.5;
}

.service-body p { font-size: 0.93rem; color: var(--sumi); }

.service-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tags span {
  font-size: 0.76rem;
  background: var(--ai-pale);
  color: var(--ai);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- ご依頼の流れ ---------- */
.flow-list {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  counter-reset: flow;
}

.flow-list li {
  counter-increment: flow;
  position: relative;
  padding: 0 0 40px 78px;
}

.flow-list li::before {
  content: "0" counter(flow);
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  background: var(--ai);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 3px;
}

.flow-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 60px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.flow-list h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ai-dark);
  margin-bottom: 6px;
}

.flow-list p { font-size: 0.93rem; color: var(--sumi); }

.flow-note {
  max-width: 720px;
  margin: 8px auto 0;
  font-size: 0.85rem;
  color: var(--gray);
}

/* ---------- 料金 ---------- */
.price-tables {
  display: grid;
  gap: 40px;
  max-width: 820px;
  margin: 0 auto;
}

.price-block h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ai-dark);
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--shu);
}

table.price {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.93rem;
}

table.price th,
table.price td {
  border: 1px solid var(--line);
  padding: 13px 18px;
  text-align: left;
}

table.price th {
  background: var(--ai);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.05em;
}

table.price td:last-child {
  white-space: nowrap;
  text-align: right;
  font-feature-settings: "tnum";
}

.price-notes {
  max-width: 820px;
  margin: 26px auto 0;
  font-size: 0.85rem;
  color: var(--gray);
  padding-left: 1.2em;
}

.price-notes li { margin-bottom: 4px; }

/* ---------- ごあいさつ ---------- */
.greeting-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .greeting-wrap { grid-template-columns: 1fr; }
  .greeting-photo { max-width: 380px; margin: 0 auto; }
}

.greeting-text p { margin-bottom: 1.4em; }

.greeting-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--ai-dark);
  margin-top: 28px;
}

.greeting-name small {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 0.06em;
}

.greeting-photo img {
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(22, 43, 71, 0.16);
}

.qual-list {
  list-style: none;
  margin-top: 18px;
  font-size: 0.88rem;
}

.qual-list li {
  padding: 7px 0 7px 24px;
  border-bottom: 1px dashed var(--line);
  position: relative;
}

.qual-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: var(--shu);
  border-radius: 1px;
}

/* ---------- 事務所概要 ---------- */
.office-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 820px) {
  .office-wrap { grid-template-columns: 1fr; }
}

table.office {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  background: #fff;
}

table.office th,
table.office td {
  border: 1px solid var(--line);
  padding: 14px 18px;
  vertical-align: top;
}

table.office th {
  background: var(--ai-pale);
  color: var(--ai-dark);
  font-weight: 600;
  width: 7.5em;
  letter-spacing: 0.05em;
}

.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* ---------- CTAバンド ---------- */
.cta-band {
  background: var(--ai-dark);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}

.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.cta-band p { margin-bottom: 30px; font-size: 0.95rem; }

.cta-tel {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
}

.cta-tel small { display: block; font-size: 0.8rem; letter-spacing: 0.1em; }

.cta-actions {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- フッター ---------- */
.site-footer {
  background: #111A28;
  color: #C8CFD9;
  font-size: 0.85rem;
  padding: 40px 24px 30px;
  text-align: center;
}

.site-footer .footer-name {
  font-family: var(--serif);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.site-footer nav { margin: 18px 0; }

.site-footer nav a {
  color: #C8CFD9;
  text-decoration: none;
  margin: 0 12px;
}

.site-footer nav a:hover { color: #fff; }

.copyright { font-size: 0.78rem; color: #8B95A3; }

/* ---------- お問い合わせページ ---------- */
.page-title {
  background: var(--ai);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}

.page-title h1 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.14em;
}

.page-title .en {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h2,
.contact-form-wrap h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ai-dark);
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--shu);
}

.contact-tel {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ai-dark);
  text-decoration: none;
  display: inline-block;
  margin: 6px 0 2px;
}

.contact-info p { font-size: 0.92rem; margin-bottom: 14px; }

.contact-info .small { font-size: 0.83rem; color: var(--gray); }

.form-field { margin-bottom: 22px; }

.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ai-dark);
}

.req {
  display: inline-block;
  background: var(--shu);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: #fff;
  color: var(--sumi);
}

.form-field textarea { min-height: 160px; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--ai);
  outline-offset: 0;
  border-color: var(--ai);
}

.form-submit {
  background: var(--ai);
  color: #fff;
  border: none;
  padding: 15px 48px;
  font-size: 1rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--shu); }

.form-note { font-size: 0.83rem; color: var(--gray); margin-top: 14px; }

/* ---------- スクロール時のフェード ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

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