@charset "UTF-8";
/* ==========================================================================
   トップページ専用スタイル（front-page.php）
   functions.php で is_front_page() のときだけ style.css の後に読み込む。
   クラス名はすべて top- 接頭辞。色・ボタン・見出し装飾は既存テーマ（style.css）に合わせる。
   ブレークポイント：sp 767px / tab 1024px / tab2 1200px（sass/global/mixin/_breakpoint.scss と同じ）
   ========================================================================== */

:root {
  --top-navy: #20508B;   /* ヘッダーの「採用サイトはこちら」ボタンと同じ青（.recruit-btn） */
  --top-green: #8BC15F;  /* 既存テーマのボタン色 */
  --top-bg: #FEFFF6;     /* 既存テーマの淡い背景 */
  --top-bg2: #F8F8F8;
  --top-border: #DDDDDD;
  --top-muted: #4f5d67;
}

/* --------------------------------------------------------------------------
   共通
   -------------------------------------------------------------------------- */
.top-section {
  padding: 5rem 0;
}
.top-section--alt {
  background-color: var(--top-bg);
}
.top-eyebrow {
  text-align: center;
  color: #64727d;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
}
.top-eyebrow--light {
  color: #cddce6;
}
.top-title .top-eyebrow {
  margin-bottom: 0.75rem;
}
.top-lead {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--top-muted);
  line-height: 2;
}
.top-title + .top-lead {
  margin-top: -2.5rem;
}
.top-lead--tight {
  margin-bottom: 0;
}
.top-note {
  font-size: 0.75rem;
  color: #666;
}
.top-textlink,
.top-links a,
.top-links__inline a {
  color: var(--top-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 既存の緑ボタン（.news-btn）をカード内で使うときの調整 */
.top-btn {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  padding: 10px 2.75rem 10px 1.5rem;
}
.top-btn.has-arrow::before {
  font-size: 12px;
}

@media screen and (max-width: 767px) {
  .top-section {
    padding: 3rem 0;
  }
  .top-title + .top-lead {
    margin-top: -1rem;
  }
  .top-lead {
    margin-bottom: 1.5rem;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   1. HERO
   -------------------------------------------------------------------------- */
.top-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.top-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center; /* 右側のノートPCが見えるように */
  z-index: -2;
}
.top-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* 左は文字が読める濃さ、右側（ノートPC）は 62% 以降ほぼ素の写真にする */
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.86) 38%, rgba(255, 255, 255, 0.45) 55%, rgba(255, 255, 255, 0.04) 68%, rgba(255, 255, 255, 0) 100%);
}
.top-hero__inner {
  /* 文字の左端をヘッダーのロゴ左端（.header-contents の左右 padding）に合わせる */
  width: 100%;
  margin: 0 auto;
  padding: 4rem 11.5%;
}
@media screen and (min-width: 1025px) and (max-width: 1279px) {
  .top-hero__inner {
    padding: 4rem 6%;
  }
}
.top-hero__title {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem);
  line-height: 1.35;
  color: var(--top-navy);
  margin: 0 0 1.25rem;
  max-width: 860px;
}
.top-hero__eyebrow {
  display: block;
  font-size: clamp(0.875rem, 0.8rem + 0.4vw, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--top-navy);
  margin-bottom: 0.5em;
}
.top-hero__lead {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  line-height: 1.9;
  max-width: 820px;
  margin: 0 0 1.5rem;
}
.top-hero__message {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  color: var(--top-navy);
  margin: 0;
}
@media screen and (max-width: 1024px) {
  .top-hero {
    margin-top: 60px; /* ヘッダーが固定表示になるぶん */
    min-height: 0;
  }
  .top-hero::before {
    /* タブレット・スマホ：写真が見える程度に白を抑え、文字側に白いにじみを付けて可読性を確保 */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.66) 55%, rgba(255, 255, 255, 0.5) 100%);
  }
  .top-hero__title,
  .top-hero__lead,
  .top-hero__message {
    text-shadow: 0 0 6px #fff, 0 0 12px #fff, 0 1px 2px rgba(255, 255, 255, 0.9);
  }
  .top-hero__inner {
    width: 85%;
    padding: 3rem 0;
  }
}
@media screen and (max-width: 767px) {
  .top-hero__inner {
    width: 90%;
    padding: 2.5rem 0;
  }
  .top-hero__img {
    object-position: 82% 70%; /* 縦長の切り抜きでもノートPCとデスクが入るように */
  }
}

/* --------------------------------------------------------------------------
   2. PROOF（実績帯）
   -------------------------------------------------------------------------- */
.top-proof {
  background-color: var(--top-navy);
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
}
.top-proof__title {
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 700;
  margin: 0;
}
.top-proof__sub,
.top-proof__note {
  font-size: 0.8rem;
  opacity: 0.9;
  margin: 0.35rem 0 0;
}

/* --------------------------------------------------------------------------
   3. 2つの入口
   -------------------------------------------------------------------------- */
.top-entry__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.top-entry__card {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--top-border);
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.top-entry__num {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--top-navy);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.top-entry__card h3 {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  color: var(--top-navy);
  line-height: 1.4;
  margin: 0 0 0.5rem;
}
.top-entry__catch {
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.top-entry__card p {
  line-height: 1.9;
}
@media screen and (max-width: 767px) {
  .top-entry__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .top-entry__card {
    padding: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   4・5. お悩み（会社設立層／成長・承継層）
   -------------------------------------------------------------------------- */
#startup,
#growth {
  scroll-margin-top: 80px;
}
.top-worry__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.top-worry__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--top-border);
  border-radius: 1rem;
  padding: 1.5rem;
  background-color: #fff;
}
.top-worry__item img {
  width: 20px;
  height: auto;
  flex: none;
  margin-top: 4px;
}
.top-worry__item h3 {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
  color: var(--top-navy);
  line-height: 1.4;
  margin: 0 0 0.5rem;
}
.top-worry__item p {
  margin: 0;
  line-height: 1.9;
}
.top-links {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  border: 1px dashed #A5A5A5;
  background-color: #fff;
}
.top-section:not(.top-section--alt) .top-links {
  background-color: var(--top-bg2);
}
.top-links__title {
  font-weight: 700;
  color: var(--top-navy);
  margin: 0 0 0.75rem;
}
.top-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}
.top-links li a::before {
  content: "›";
  margin-right: 0.35em;
  color: var(--top-green);
  font-weight: 700;
}
@media screen and (max-width: 767px) {
  .top-worry__list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .top-worry__item {
    padding: 1.25rem;
  }
  .top-links {
    padding: 1.25rem;
  }
  .top-links ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   6. PHILOSOPHY
   -------------------------------------------------------------------------- */
.top-philosophy {
  background: linear-gradient(135deg, #20508B, #3a6fb0);
  color: #fff;
}
.top-philosophy__pre {
  text-align: center;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  color: #cddce6;
  margin: 0 0 0.5rem;
}
.top-philosophy__title {
  text-align: center;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 2rem);
  line-height: 1.5;
  margin: 0 0 2rem;
}
.top-philosophy__body {
  max-width: 920px;
  margin: 0 auto;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
}
.top-philosophy__body p {
  margin: 0 0 1rem;
  line-height: 2;
}
.top-philosophy__message {
  text-align: center;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem);
  font-weight: 700;
  margin: 2rem 0 0;
}

/* --------------------------------------------------------------------------
   7. CLIENT BENEFIT
   -------------------------------------------------------------------------- */
.top-benefit__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.top-benefit__card {
  border: 1px solid var(--top-border);
  border-top: 4px solid var(--top-navy);
  border-radius: 1rem;
  padding: 1.5rem;
  background-color: #fff;
}
.top-benefit__card h3 {
  color: var(--top-navy);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.top-benefit__card p {
  margin: 0;
  line-height: 1.9;
}
@media screen and (max-width: 767px) {
  .top-benefit__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   8. freee×AI フロー
   -------------------------------------------------------------------------- */
.top-flow__grid {
  margin: 0;
  padding: 0; /* 既存リセットは ul のみ対象で、ol の左余白が残るため */
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: top-flow;
}
.top-flow__step {
  position: relative;
  border: 1px solid var(--top-border);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  background-color: #fff;
  text-align: center;
}
.top-flow__step::before {
  counter-increment: top-flow;
  content: "STEP " counter(top-flow);
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--top-green);
  border-radius: 2rem;
  padding: 2px 12px;
  margin-bottom: 0.75rem;
}
.top-flow__step:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  text-align: center;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: var(--top-green);
}
.top-flow__step h3 {
  font-size: 1.125rem;
  color: var(--top-navy);
  line-height: 1.4;
  margin: 0 0 0.5rem;
}
.top-flow__step p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
}
@media screen and (max-width: 1024px) {
  .top-flow__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top-flow__step:nth-child(2)::after {
    display: none;
  }
}
@media screen and (max-width: 767px) {
  .top-flow__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .top-flow__step::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   9. 強み（4枚）
   -------------------------------------------------------------------------- */
.top-feature__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.top-feature__card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
  padding: 1.5rem 1.25rem;
  background-color: #fff;
  text-align: center;
}
.top-feature__card img {
  width: 110px;
  height: auto;
  margin: 0 auto 1rem;
}
.top-feature__card h3 {
  font-size: 1.125rem;
  color: var(--top-navy);
  line-height: 1.4;
  margin: 0 0 0.75rem;
}
.top-feature__card p {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: left;
}
.top-feature__card .top-btn {
  width: 100%;
  margin: 1.25rem auto 0;
  padding: 0.5rem 1.75rem 0.5rem 0.75rem;
  font-size: 0.95rem;
  text-align: center;
}
@media screen and (max-width: 1200px) {
  .top-feature__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 767px) {
  .top-feature__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   10. ABOUT
   -------------------------------------------------------------------------- */
.top-about__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: center;
}
.top-about__catch {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 700;
  color: var(--top-navy);
  margin: 0 0 1rem;
}
.top-about__text p {
  line-height: 2;
  margin: 0 0 1rem;
}
.top-about__img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.top-about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
}
.top-about__actions .top-btn {
  margin: 0;
}
.top-links__inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.top-about__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.top-about__stats li {
  border: 1px solid var(--top-border);
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  background-color: #fff;
  font-weight: 700;
  color: var(--top-navy);
}
@media screen and (max-width: 767px) {
  .top-about__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .top-about__img {
    max-width: 320px;
    margin: 0 auto;
  }
  .top-about__stats li {
    width: 100%;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   11. 事務所紹介（YouTube）
   -------------------------------------------------------------------------- */
.top-office__video {
  max-width: 780px;
  margin: 0 auto 2rem;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
}
.top-office__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   12. メンバー
   -------------------------------------------------------------------------- */
.top-member__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.top-member__card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid var(--top-border);
  border-radius: 14px;
  padding: 1.5rem;
  background-color: #fff;
}
.top-member__card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.top-member__role {
  display: inline-block;
  background-color: #e9eef6;
  color: var(--top-navy);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.top-member__card h3 {
  font-size: 1.375rem;
  margin: 0 0 0.5rem;
}
.top-member__card p {
  margin: 0 0 0.75rem;
  line-height: 1.8;
}
@media screen and (max-width: 1024px) {
  .top-member__grid {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 767px) {
  .top-member__card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .top-member__card img {
    max-width: 170px;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   13. お客様の声
   -------------------------------------------------------------------------- */
.top-voice__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.top-voice__card {
  border: 1px solid var(--top-border);
  border-radius: 1rem;
  padding: 1.5rem;
  background-color: #fff;
  text-align: center;
  font-size: 1.125rem;
}
.top-voice__card img {
  width: 100%;
  height: auto;
  aspect-ratio: 340 / 224;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1rem;
}
.top-voice__card p {
  margin: 0;
}
@media screen and (max-width: 767px) {
  .top-voice__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* 14. お知らせ／15. ブログ は既存の .top-news / .news.blog のスタイル（style.css）をそのまま使用 */

/* --------------------------------------------------------------------------
   16. CTA
   -------------------------------------------------------------------------- */
.top-cta {
  background-color: var(--top-navy);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}
.top-cta h2 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  margin: 0 0 1rem;
}
.top-cta p {
  max-width: 850px;
  margin: 0 auto 1.5rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  line-height: 2;
}
.top-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 2rem;
}
.top-cta__btn {
  display: inline-block;
  background-color: #fff;
  color: var(--top-navy);
  font-weight: 700;
  font-size: 1.125rem;
  padding: 12px 2.5rem;
  border-radius: 2rem;
}
.top-cta__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media screen and (max-width: 767px) {
  .top-cta {
    padding: 3rem 0;
  }
}

/* PC のヘッダー固定と TOPへ戻るボタンは全ページ共通の css/global.css に移動（2026-10-26） */
.home #startup,
.home #growth {
  scroll-margin-top: 140px;
}

/* 9b. 業種別サポート */
.top-industry__list{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem .7rem;margin:2rem auto 0;padding:0;list-style:none;max-width:1000px}
.top-industry__list li{margin:0}
.top-industry__list a{display:inline-block;padding:.55em 1.1em;border:1px solid #c6d6ea;border-radius:999px;background:#fff;color:var(--top-navy);font-size:.95rem;font-weight:600;text-decoration:none;line-height:1.4;transition:background .2s,border-color .2s,color .2s}
.top-industry__list a:hover{background:var(--top-navy);border-color:var(--top-navy);color:#fff}
.top-industry__more{text-align:center;margin-top:2rem}
.top-industry__more .top-btn{margin:0 auto}
@media (max-width:767px){.top-industry__list a{font-size:.85rem;padding:.5em .9em}}

/* 10. ABOUT：事務所の実写3枚（外観を大きく、打ち合わせスペースと案内板を右に） */
.top-about__photos {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  aspect-ratio: 1 / 1;
  width: 100%;
}
.top-about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.top-about__photo--main {
  grid-row: 1 / 3;
}
@media screen and (max-width: 767px) {
  .top-about__photos {
    aspect-ratio: 4 / 3;
    gap: 8px;
  }
}

/* メンバーは代表1名の表示（2026-11-09 社労士の欄を削除） */
.top-member__grid{grid-template-columns:minmax(0,600px);justify-content:center}
