/* ============================================================
   リバーシティ税理士事務所 - 共通スタイルシート（かわいいテイスト）
   ============================================================ */

:root {
  /* ブランドカラー（パステル黄色 × パステルオレンジ） */
  --color-sky: #ffd9ad;           /* パステルオレンジ（面用） */
  --color-sky-soft: #fff3e6;      /* パステルオレンジ（薄面用） */
  --color-sky-deep: #ef9b4e;      /* オレンジ（アクセント・文字用） */
  --color-navy: #5b4a3a;          /* 見出し・本文の濃色（あたたかいブラウン） */
  --color-yellow: #ffe9a8;        /* パステル黄色 */
  --color-yellow-soft: #fff8e4;   /* パステル黄色（薄） */
  --color-yellow-deep: #f2b83c;   /* 黄色（ボタン用の濃色） */

  --color-bg: #fffdf7;
  --color-surface: #ffffff;
  --color-text: #4a3f34;
  --color-text-soft: #8a7c6c;
  --color-border: #f3e6d6;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --shadow-soft: 0 14px 32px rgba(239, 155, 78, 0.14);
  --shadow-card: 0 8px 20px rgba(90, 70, 40, 0.08);

  --font-heading: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;

  --container-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

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

a {
  color: var(--color-sky-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.5;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

.section-alt {
  background: var(--color-sky-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-sky-deep);
  background: var(--color-sky-soft);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 0.5em;
}

.section-lead {
  color: var(--color-text-soft);
  max-width: 640px;
  margin-bottom: 3em;
}

/* ---------------- Reveal animation（ふわっと表示） ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.grid .reveal:nth-child(2),
.steps .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.grid .reveal:nth-child(3),
.steps .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.grid .reveal:nth-child(4),
.steps .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

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

/* ---------------- Header / Nav ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1.08rem;
  line-height: 1.3;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--color-text-soft);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.main-nav a:hover {
  background: var(--color-sky-soft);
  text-decoration: none;
}

.main-nav a.current {
  background: var(--color-sky);
  color: var(--color-navy);
}

.nav-cta {
  background: var(--color-yellow) !important;
  color: var(--color-navy) !important;
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-navy);
  border-radius: 3px;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-yellow-deep);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(242, 184, 60, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(242, 184, 60, 0.45);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-navy);
  border-color: var(--color-sky);
}

.btn-secondary:hover {
  background: var(--color-sky-soft);
}

.btn-block {
  width: 100%;
}

/* ---------------- Hero ---------------- */

.hero {
  padding: 96px 0 112px;
  overflow: hidden;
  position: relative;
  /* 薄黄色のベールを重ねて、文字を読みやすくした背景写真 */
  background:
    linear-gradient(90deg, rgba(255,248,228,0.86) 0%, rgba(255,248,228,0.80) 40%, rgba(255,248,228,0.42) 64%, rgba(255,248,228,0.05) 100%),
    url("../images/hero.jpg") center 22% / cover no-repeat;
}

.hero .container {
  display: block;
}

.hero-copy h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 0.5em;
}

.hero-copy .highlight {
  color: var(--color-sky-deep);
}

.hero-copy p {
  font-size: 1.05rem;
  color: #6b5846;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-tags span {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--color-navy);
  font-weight: 600;
}


/* ---------------- Cards / grids ---------------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}

.card p {
  color: var(--color-text-soft);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.card-soft {
  background: var(--color-sky-soft);
  border: none;
}

.card-yellow {
  background: var(--color-yellow-soft);
  border: none;
}

/* ---------------- Strength / profile block ---------------- */

.profile-block {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.profile-photo {
  background: linear-gradient(160deg, var(--color-sky) 0%, var(--color-yellow-soft) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.profile-photo svg {
  width: 70%;
}

.profile-name {
  font-size: 1.4rem;
  margin-bottom: 0.2em;
}

.profile-role {
  color: var(--color-sky-deep);
  font-weight: 700;
  margin-bottom: 1.2em;
}

.timeline {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  border-left: 3px solid var(--color-sky);
}

.timeline li {
  position: relative;
  padding: 2px 0 22px 26px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-yellow-deep);
  border: 3px solid var(--color-bg);
}

.timeline .year {
  display: block;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.9rem;
}

/* ---------------- Steps ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 32px 24px 26px;
  border: 1px solid var(--color-border);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-navy);
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.02rem;
}

.step p {
  color: var(--color-text-soft);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ---------------- Service detail rows ---------------- */

.service-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.service-row:last-child {
  border-bottom: none;
}

.service-row .tag {
  display: inline-block;
  background: var(--color-sky-soft);
  color: var(--color-sky-deep);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.service-row ul {
  margin-top: 16px;
}

.service-row ul li {
  list-style: none;
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.service-row ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-sky-deep);
  font-weight: 700;
}

.service-visual {
  background: var(--color-sky-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ---------------- CTA band ---------------- */

.cta-band {
  background: linear-gradient(120deg, var(--color-sky) 0%, var(--color-yellow-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 0.4em;
}

.cta-band p {
  color: var(--color-navy);
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 28px;
}

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

/* ---------------- Info / contact blocks ---------------- */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list .label {
  flex: 0 0 120px;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.92rem;
}

.info-list .value {
  color: var(--color-text-soft);
}

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.map-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.notice-box {
  background: var(--color-yellow-soft);
  border: 1px solid var(--color-yellow);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--color-navy);
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: #4a3324;
  color: #f0dfca;
  padding: 64px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.site-footer p {
  color: #d8c3ac;
  font-size: 0.9rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #d8c3ac;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: #b39d84;
}

.footer-bottom a {
  color: #b39d84;
}

/* ---------------- Page hero (sub pages) ---------------- */

.page-hero {
  padding: 56px 0 40px;
  background: var(--color-sky-soft);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 0.3em;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--color-text-soft);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .hero {
    padding: 56px 0 64px;
    background:
      linear-gradient(180deg, rgba(255,248,228,0.88) 0%, rgba(255,248,228,0.80) 60%, rgba(255,248,228,0.55) 100%),
      url("../images/hero-800.jpg") 60% center / cover no-repeat;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-block {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-width: 260px;
    margin: 0 auto;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .service-row .service-visual {
    order: -1;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    padding: 16px;
    text-align: center;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
