@charset "UTF-8";
/* ==========================================================================
   社会保険労務士 川村事務所 – 1ページ LP
   https://morioka-shougai.jp/
   ========================================================================== */

/* ---------- カスタムプロパティ ---------- */
:root {
  --c-green:        #3f7a34;   /* メイングリーン（見出し・ボタン） */
  --c-green-dark:   #2d5a25;
  --c-green-light:  #6aa84f;
  --c-green-pale:   #eef5e9;
  --c-cream:        #fbf7e8;   /* ご相談の流れ 背景 */
  --c-ink:          #2f3330;
  --c-ink-sub:      #5c635e;
  --c-line:         #e2e6e0;
  --c-bg:           #ffffff;
  --c-bg-soft:      #f7f9f5;
  --c-footer:       #46403a;
  --c-attention:    #c0563c;

  --container: 1080px;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, .10);
  --header-h: 64px;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-ink);
  background: var(--c-bg);
  overflow-wrap: break-word;
  padding-bottom: 68px; /* スマホ固定CTA分 */
}

h1, h2, h3, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-green-dark); }
button { font: inherit; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--c-green);
  color: #fff;
  padding: 10px 16px;
}
.skip-link:focus { left: 0; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--c-green-light);
  outline-offset: 2px;
}

/* ---------- 共通パーツ ---------- */
.section { padding: 64px 0; }

.heading {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  line-height: 1.5;
  color: var(--c-green);
  text-align: center;
  margin-bottom: 12px;
}
.heading::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--c-green-light);
  border-radius: 2px;
}
.heading--left { text-align: left; }
.heading--left::after { margin-inline: 0; }

.section-lead {
  text-align: center;
  color: var(--c-ink-sub);
  font-size: .95rem;
  margin-bottom: 36px;
}

.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

.email-icon { width: 1.5em; height: 1.5em; fill: currentColor; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn--primary {
  background: var(--c-green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--c-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--lg { font-size: 1.05rem; padding: 16px 36px; }
.btn--block { display: flex; width: 100%; text-align: center; align-items: start;}
.btn--block small {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  opacity: .9;
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__logo {
  display: block;
  text-decoration: none;
  color: var(--c-ink);
  line-height: 1.35;
  padding: 8px 0;
}
.header__logo-main { display: block; font-weight: 700; font-size: 1rem; }
.header__logo-sub  { display: block; font-size: .68rem; color: var(--c-ink-sub); }

.gnav { display: flex; align-items: center; gap: 24px; }
.gnav__list { display: flex; gap: 20px; }
.gnav__list a {
  text-decoration: none;
  color: var(--c-ink);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.gnav__list a:hover,
.gnav__list a.is-active {
  color: var(--c-green);
  border-bottom-color: var(--c-green-light);
}

.gnav__tel {
  display: block;
  text-decoration: none;
  color: var(--c-green-dark);
  text-align: right;
  line-height: 1.3;
}
.gnav__tel-num  { display: block; font-size: 1.05rem; font-weight: 700; }
.gnav__tel-time { display: block; font-size: .68rem; color: var(--c-ink-sub); }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--c-ink);
  transition: transform .3s, opacity .2s;
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- ① ファーストビュー ---------- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: min(72vh, 560px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 72px 20px;
  /* images/hero.jpg を置くと写真に差し替わります（無い場合は下のグラデーションのみ表示） */
  background-color: #7fa8c9;
  background-image:
    linear-gradient(180deg, rgba(20, 45, 25, .30) 0%, rgba(20, 45, 25, .55) 100%),
    url("../images/hero.jpg"),
    linear-gradient(180deg, #9fc4e0 0%, #cfe3ef 42%, #8fae76 62%, #5c8348 100%);
  background-size: cover;
  background-position: center;
}
.hero__inner { position: relative; max-width: 760px; }

.hero__title {
  font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.6rem);
  line-height: 1.5;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  margin-bottom: 20px;
}
.hero__title-strong { display: inline-block; }

.hero__lead {
  font-size: clamp(.95rem, .9rem + .3vw, 1.05rem);
  line-height: 1.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  margin-bottom: 28px;
}

.hero__cta { margin-bottom: 24px; }

.hero__points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  font-size: .82rem;
}
.hero__points li {
  background: rgba(255, 255, 255, .92);
  color: var(--c-green-dark);
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 14px;
}

.br-pc { display: none; }

/* ---------- ② 事務所について ---------- */
.about { background: var(--c-bg); }

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

.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 320px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #dfe7d9, #c7d6bf);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.about__photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.about__photo-fallback svg {
  width: 46%;
  fill: rgba(63, 122, 52, .28);
}
/* 画像が無い場合は img を隠してプレースホルダーを表示（JSが付与） */
.about__photo.is-noimg img { display: none; }

.about__text { margin-bottom: 16px; }

.about__profile {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
  font-size: .92rem;
}
.about__profile dt {
  font-size: .78rem;
  color: var(--c-ink-sub);
  letter-spacing: .04em;
}
.about__profile dd { margin: 0 0 12px; }
.about__profile dd:last-child { margin-bottom: 0; }
.about__name { font-size: 1.25rem; font-weight: 700; color: var(--c-green-dark); }

/* ---------- ③ 対応業務 ---------- */
.service { background: var(--c-bg-soft); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--c-green-light);
  box-shadow: var(--shadow-md);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--c-green-pale);
}
.card__icon svg { width: 32px; height: 32px; fill: var(--c-green); }
.card__title {
  font-size: 1.05rem;
  color: var(--c-green-dark);
  margin-bottom: 8px;
}
.card__text {
  font-size: .87rem;
  line-height: 1.8;
  color: var(--c-ink-sub);
}

.service__note {
  margin-top: 24px;
  font-size: .78rem;
  line-height: 1.8;
  color: var(--c-ink-sub);
  text-align: center;
}

/* ---------- ④ ご相談の流れ ---------- */
.flow { background: var(--c-cream); }

.flow__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.flow__item {
  position: relative;
  text-align: center;
  padding: 0 8px;
}
/* PC時のみ矢印を表示 */
.flow__item::after {
  content: "";
  display: none;
  position: absolute;
  top: 34px;
  right: -16px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #c9c3a8;
  border-right: 2px solid #c9c3a8;
  transform: rotate(45deg);
}
.flow__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.flow__icon svg { width: 34px; height: 34px; fill: var(--c-green); }
.flow__num {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--c-green-light);
}
.flow__title { font-size: 1rem; margin-bottom: 6px; }
.flow__text {
  font-size: .84rem;
  line-height: 1.8;
  color: var(--c-ink-sub);
}

/* ---------- ⑤ お問い合わせ ---------- */
.contact { background: var(--c-bg); }

.contact__grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.contact__tel {
  background: var(--c-green-pale);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.contact__tel-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--c-green-dark);
  margin-bottom: 4px;
}
.contact__tel-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.2rem);
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
  letter-spacing: .02em;
}
.contact__tel-num:hover { color: var(--c-green); }
.contact__tel-time {
  font-size: .8rem;
  color: var(--c-ink-sub);
  margin-bottom: 20px;
}

.contact__office {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}
.contact__office-name {
  font-size: 1rem;
  color: var(--c-green-dark);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}
.contact__office-list { font-size: .88rem; }
.contact__office-list dt {
  font-size: .74rem;
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: .04em;
}
.contact__office-list dd { margin: 0 0 14px; line-height: 1.7; }
.contact__office-list dd:last-child { margin-bottom: 0; }
.contact__office-list small { font-size: .78rem; color: var(--c-ink-sub); }

/* ---------- フォーム ---------- */
.formbox {
  margin-top: 40px;
  background: var(--c-bg-soft);
  border-radius: var(--radius);
  padding: 32px 20px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.formbox__title {
  font-size: 1.15rem;
  color: var(--c-green-dark);
  text-align: center;
  margin-bottom: 6px;
}
.formbox__lead {
  font-size: .84rem;
  color: var(--c-ink-sub);
  text-align: center;
  margin-bottom: 28px;
}

.form { max-width: 680px; margin-inline: auto; }
.form__row { margin-bottom: 20px; }
.form__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.req {
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-attention);
  border-radius: 3px;
  padding: 2px 6px;
  line-height: 1.4;
}
.form__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--c-ink);
  background: #fff;
  border: 1px solid #cfd6cb;
  border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
}
.form__input:focus {
  border-color: var(--c-green-light);
  box-shadow: 0 0 0 3px rgba(106, 168, 79, .18);
  outline: none;
}
.form__textarea { resize: vertical; line-height: 1.8; }

.form__input.is-invalid {
  border-color: var(--c-attention);
  background: #fdf6f4;
}
.form__error {
  display: none;
  font-size: .8rem;
  color: var(--c-attention);
  margin-top: 6px;
}
.form__error.is-shown { display: block; }

.form__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  cursor: pointer;
}
.form__check input { width: 18px; height: 18px; accent-color: var(--c-green); }
.form__check span { display: inline-flex; align-items: center; gap: 6px; }

.form__note {
  font-size: .76rem;
  color: var(--c-ink-sub);
  margin-top: 8px;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit { text-align: center; margin-top: 28px; }

.form__status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: .88rem;
  line-height: 1.8;
  text-align: center;
}
.form__status.is-shown { display: block; }
.form__status.is-success {
  background: var(--c-green-pale);
  border: 1px solid var(--c-green-light);
  color: var(--c-green-dark);
}
.form__status.is-error {
  background: #fdf1ee;
  border: 1px solid #e0b4a7;
  color: #9c4029;
}

/* ---------- フッター ---------- */
.footer {
  background: var(--c-footer);
  color: rgba(255, 255, 255, .88);
  padding: 32px 0;
  text-align: center;
}
.footer__name { font-weight: 700; margin-bottom: 12px; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: .84rem;
  margin-bottom: 16px;
}
.footer__nav a {
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
}
.footer__nav a:hover { text-decoration: underline; }
.footer__copy { font-size: .76rem; color: rgba(255, 255, 255, .65); }

/* ---------- スマホ固定CTA ---------- */
.fixed-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1px;
  background: rgba(0, 0, 0, .08);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .12);
}
.fixed-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.fixed-cta svg { width: 18px; height: 18px; fill: currentColor; }
.fixed-cta__tel  { background: #fff; color: var(--c-green-dark); }
.fixed-cta__form { background: var(--c-green); color: #fff; }

/* ---------- トップへ戻る ---------- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 41;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(63, 122, 52, .9);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; fill: #fff; }

/* ---------- スクロールアニメーション ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 899px) {
  .gnav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    padding: 8px 20px 24px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .gnav.is-open { opacity: 1; visibility: visible; transform: none; }

  .gnav__list { flex-direction: column; gap: 0; }
  .gnav__list a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--c-line);
    font-size: .95rem;
  }
  .gnav__list a:hover, .gnav__list a.is-active { border-bottom-color: var(--c-line); }

  .gnav__tel { text-align: center; margin-top: 20px; }
  .gnav__tel-num { font-size: 1.4rem; }

  .hamburger { display: block; }
}

@media (min-width: 600px) {
  .br-pc { display: inline; }
  .fixed-cta { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .section { padding: 84px 0; }

  .about__inner {
    grid-template-columns: 320px 1fr;
    gap: 44px;
    align-items: center;
  }
  .about__photo { margin-inline: 0; }

  .contact__grid { grid-template-columns: 1.15fr 1fr; gap: 32px; }
  .formbox { padding: 40px; }
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }

  body { padding-bottom: 0; }
  .fixed-cta { display: none; }
  .to-top { bottom: 24px; }

  .header__logo-main { font-size: 1.12rem; }
  .header__logo-sub  { font-size: .72rem; }

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

  .flow__list { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .flow__item::after { display: block; }
  .flow__item:last-child::after { display: none; }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 印刷 ---------- */
@media print {
  .header, .fixed-cta, .to-top, .hero__cta, .formbox { display: none !important; }
  body { padding: 0; }
  .hero { margin-top: 0; color: #000; background: none; min-height: auto; }
  .hero__title, .hero__lead { text-shadow: none; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
