@charset "utf-8";

/* =========================================================
 * トップページ レイアウト（body.home のみ）
 * ========================================================= */

body.home .site-main > .wrapper,
body.home section > .wrapper,
body.home .bgTopad1 > .wrapper {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.home .bgWhite,
body.home .bgColor,
body.home .bgNews,
body.home .bgTopad1 {
  padding-top: 72px;
  padding-bottom: 72px;
}

body.home h2 {
  text-align: center;
}

body.home h2::after {
  width: 56px;
}

/* --- 1. ヒーロー --- */
body.home #mainVisual {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(420px, 38vw, 480px);
  min-height: clamp(420px, 38vw, 480px);
}

body.home #mainVisual .hero-slider,
body.home #mainVisual .hero-slider .slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
}

body.home #mainVisual .mainCatch.home-top-hero-catch {
  top: 50%;
  left: 50%;
  right: auto;
  font-size: clamp(1.05rem, 1.75vw, 1.45rem);
  text-align: center;
  letter-spacing: 0.03em;
  font-family: 'Noto Serif JP', serif;
  color: #333;
  text-shadow:
    0 0 1px #fff,
    0 0 2px #fff,
    0 0 4px #fff,
    0 0 6px #fff,
    0 0 8px #fff,
    0 0 10px #fff,
    0 0 12px #fff,
    0 0 14px #fff,
    0 0 16px #fff,
    0 0 18px #fff;
}

body.home #mainVisual .hero-slider .slide-item img,
body.home #mainVisual > .pcONspOFF,
body.home #mainVisual > .pcOFFspON {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.home #mainVisual .home-top-hero-catch {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  width: min(580px, 62%);
  max-width: calc(100% - 3rem);
  margin: 0;
  padding: 0.5rem 0.25rem;
  box-sizing: border-box;
  overflow: hidden;
  font-size: clamp(1.05rem, 1.75vw, 1.45rem);
  line-height: 1.55;
  letter-spacing: 0.03em;
  font-weight: 800;
  text-align: center;
  font-family: 'Noto Serif JP', serif;
  color: #333;
  background: none;
  border-radius: 0;
  box-shadow: none;
  text-shadow:
    0 0 1px #fff,
    0 0 2px #fff,
    0 0 4px #fff,
    0 0 6px #fff,
    0 0 8px #fff,
    0 0 10px #fff,
    0 0 12px #fff,
    0 0 14px #fff,
    0 0 16px #fff,
    0 0 18px #fff;
}

body.home #mainVisual .home-top-hero-catch .flex {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.home #mainVisual .home-top-hero-catch p {
  margin: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
}

body.home #mainVisual .home-top-hero-catch .home-top-hero-sub {
  display: block;
  margin-top: 0.55em;
  font-size: 0.78em;
  line-height: 1.55;
  font-weight: 700;
  color: inherit;
}

/* --- 2. 私たちについて --- */
body.home .home-top-about .home-top-about__inner {
  max-width: 800px;
  margin: 0 auto;
}

body.home .home-top-about .home-top-lead,
body.home .home-top-about .home-top-about__text {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  color: #334155;
  text-align: left;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

body.home .home-top-about .home-top-lead {
  margin-bottom: 14px;
}

body.home .home-top-about .home-top-about__text {
  margin-top: 0;
}

body.home .home-top-about br {
  display: none;
}

/* --- 3. お困りごと --- */
body.home .home-top-pains-section .home-top-lead {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body.home .home-top-pains {
  max-width: 860px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
}

body.home .home-top-pains li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 10px;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  line-height: 1.65;
  color: #334155;
  background: #fff;
  border-radius: 0.35rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

body.home .home-top-pains li::before {
  content: "?";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
  color: #fff;
  background: #0068b7;
  border-radius: 50%;
}

body.home .home-top-pains li:last-child {
  margin-bottom: 0;
}

/* --- 4. ご相談カード --- */
body.home .home-top-consult > .wrapper {
  max-width: 1120px;
}

body.home .home-top-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  max-width: 1080px;
  margin: 0.5rem auto 0;
}

body.home .home-top-service {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
  padding: 28px 26px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  box-sizing: border-box;
}

body.home .home-top-service__title {
  margin: 0 0 1.1rem;
  font-size: clamp(0.98rem, 1.05vw, 1.12rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: #0b2f4a;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  text-wrap: balance;
}

body.home .home-top-service__items {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
}

body.home .home-top-service__item {
  padding: 0.55rem 0;
  border-bottom: 1px dotted #cbd5e1;
  line-height: 1.7;
  color: #334155;
}

body.home .home-top-service__item:last-child {
  border-bottom: 0;
}

body.home .home-top-service__note {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #64748b;
}

body.home .home-top-service__link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 700;
}

body.home .home-top-service__link a {
  color: #0068b7;
  text-decoration: none;
}

body.home .home-top-service__link a:hover {
  text-decoration: underline;
}

/* --- 5. 選ばれる理由 --- */
body.home .home-top-why__layout {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 2.5rem;
  align-items: center;
}

body.home .home-top-why__media {
  margin: 0;
}

body.home .home-top-why__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.35rem;
}

body.home .home-top-reasons {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
}

body.home .home-top-reason {
  position: relative;
  margin: 0 0 20px;
  padding-left: 1.75em;
}

body.home .home-top-reason:last-child {
  margin-bottom: 0;
}

body.home .home-top-reason::before {
  font-family: "Font Awesome 5 Free";
  content: "\f14a";
  color: var(--basic-color);
  position: absolute;
  left: 0;
  top: 0.2em;
  font-weight: 900;
}

body.home .home-top-reason__title {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #0b2f4a;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  text-wrap: pretty;
}

body.home .home-top-reason__text {
  display: block;
  font-size: 0.95rem;
  line-height: 1.85;
  color: #334155;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  text-wrap: pretty;
}

/* --- 6. サービスバナー --- */
body.home .home-top-banners.bgcolorTopBnr {
  padding-top: 72px;
  padding-bottom: 72px;
}

body.home .home-top-banners .f-wrap-HU {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

body.home .home-top-banners .bnrPic3Box {
  width: 100%;
  margin-bottom: 0;
  float: none;
}

body.home .home-top-banners .bnrPicInner {
  min-height: 100%;
}

body.home .home-top-banners .gridCenter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem 2.5rem 1rem 1rem;
  box-sizing: border-box;
  text-align: center;
}

body.home .home-top-banners .gridCenter > * {
  display: block;
  width: auto;
  max-width: 100%;
  text-align: center;
}

body.home .home-top-banners .home-top-bnr__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
}

body.home .home-top-banners .gridCenter a {
  display: inline-block;
  color: #000;
  text-decoration: none;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  line-height: 1.35;
  white-space: nowrap;
  word-break: keep-all;
  text-shadow: 0 0 2px #fff, 0 0 4px #fff, 0 0 6px #fff, 0 0 8px #fff, 0 0 10px #fff;
}

body.home .home-top-banners .home-top-bnr__sub {
  display: block;
  margin-top: 0;
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  line-height: 1.45;
  font-weight: 400;
  color: #1a1a1a;
  text-align: center;
  word-break: keep-all;
  text-wrap: balance;
  opacity: 0.92;
  text-shadow: 0 0 2px #fff, 0 0 4px #fff, 0 0 6px #fff;
}

/* --- 7. 代表挨拶（手紙風・写真重なり） --- */
body.home .home-top-greeting.bgColor {
  background-color: #f3f0ea;
}

body.home .home-top-greeting__scene {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
  align-items: center;
  max-width: 980px;
  margin: 1.75rem auto 0;
  padding: 0;
  min-height: 0;
}

/* 左：大きめ写真（少し右上がり・右端だけ文字カードにかぶる） */
body.home .home-top-greeting__photo {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: 100%;
  max-width: 400px;
  margin: 0 -28px 0 0;
  transform: rotate(2.5deg);
  transform-origin: 55% 50%;
  pointer-events: none;
}

body.home .home-top-greeting .representative-greeting__photo {
  margin: 0;
  max-width: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(11, 47, 74, 0.18);
  border: 4px solid #fff;
  background: #fff;
}

body.home .home-top-greeting .representative-greeting__photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* 右：文字カード（通常余白・写真と同程度の高さ感） */
body.home .home-top-greeting__letter {
  position: relative;
  z-index: 1;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 30px 34px 32px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(11, 47, 74, 0.08);
  box-sizing: border-box;
}

body.home .home-top-greeting__letter::before,
body.home .home-top-greeting__letter::after {
  display: none;
}

body.home .home-top-greeting__letter p.mb10,
body.home .home-top-greeting__letter .txtSign {
  position: relative;
  z-index: 1;
  margin-left: 0;
  margin-right: 0;
}

body.home .home-top-greeting__letter p.mb10 {
  margin-bottom: 1rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: #334155;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

body.home .home-top-greeting__letter .txtSign {
  margin-top: 1rem;
  line-height: 1.8;
  color: #0b2f4a;
}

/* --- 8. FAQ --- */
body.home .home-top-faq > .wrapper {
  max-width: 860px;
}

body.home .home-top-faq .dd-faq-summary {
  line-height: 1.65;
}

body.home .home-top-faq .dd-faq-a {
  line-height: 1.8;
}

/* --- 9. CTA --- */
body.home .home-top-cta > .wrapper {
  max-width: 1120px;
}

body.home .home-top-cta .home-top-lead {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  line-height: 1.85;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

body.home .home-top-cta__actions.contactBtnWrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  margin-top: 1rem;
}

body.home .home-top-cta__actions .contactBtn {
  flex: 1 1 220px;
  max-width: 280px;
  margin: 0;
}

body.home .home-top-cta__actions .txtContacBnr,
body.home .home-top-cta__actions .txtContacBnr a {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

body.home .home-top-cta__actions .txtContacBnr a {
  min-height: 44px;
  padding: 0.75rem 1rem;
  line-height: 1.45;
  font-size: 0.95rem;
}

body.home .home-top-cta__btn--line {
  flex: 1.2 1 240px;
  max-width: 300px;
}

body.home .home-top-cta__btn--line .txtContacBnr a {
  background-color: #06c755 !important;
}

body.home .home-top-cta__btn--line .txtContacBnr a:hover {
  background-color: #05b04c !important;
}

body.home .home-top-cta__btn:not(.home-top-cta__btn--line):not(.home-top-cta__btn--outline) .txtContacBnr a {
  background-color: var(--basic-color, #0068b7);
}

body.home .home-top-cta__btn--outline .txtContacBnr a {
  background-color: #fff;
  color: #0b2f4a;
  border: 2px solid #cbd5e1;
}

body.home .home-top-cta__note {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #64748b;
  text-align: center;
}

/* --- 10. 新着情報 --- */
body.home .home-top-news {
  padding-top: 72px;
  padding-bottom: 72px;
}

body.home .home-top-news .indexNews {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

body.home .home-top-news .news-item {
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 0;
}

body.home .home-top-news .news-item .date,
body.home .home-top-news .news-item .title {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- 11. 会社案内 --- */
body.home .home-top-company > .wrapper {
  max-width: 1120px;
}

body.home .home-top-company__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

body.home .home-top-company table.table3Dot {
  width: 100%;
  margin-bottom: 0;
}

body.home .home-top-company table.table3Dot th,
body.home .home-top-company table.table3Dot td {
  font-size: 0.96rem;
  line-height: 1.6;
  padding: 0.55em 0.45em;
}

body.home .home-top-company table.table3Dot th {
  font-weight: 600;
  width: 6rem;
}

body.home .home-top-company__map {
  display: flex;
  min-height: 100%;
  border-radius: 0.35rem;
  overflow: hidden;
}

body.home .home-top-company__map iframe {
  display: block;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 0.35rem;
}

body.home .home-top-company {
  padding-bottom: 88px;
}

/* --- タブレット 769–1024 --- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  body.home #mainVisual .home-top-hero-catch {
    left: 50%;
    width: min(520px, 78%);
  }

  body.home .home-top-why__layout {
    grid-template-columns: 52% 48%;
    gap: 1.5rem;
  }

  body.home .home-top-greeting__scene {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    max-width: 900px;
  }

  body.home .home-top-greeting__photo {
    max-width: 320px;
    margin-right: -20px;
    transform: rotate(2deg);
  }

  body.home .home-top-greeting__letter {
    padding: 26px 28px 28px;
  }

  body.home .home-top-company__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* --- スマホ 768以下 --- */
@media screen and (max-width: 768px) {
  body.home .bgWhite,
  body.home .bgColor,
  body.home .bgNews,
  body.home .bgTopad1 {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  body.home section > .wrapper,
  body.home .home-top-news .indexNews {
    padding-left: 24px;
    padding-right: 24px;
  }

  body.home #mainVisual {
    height: clamp(360px, 105vw, 420px);
    min-height: clamp(360px, 105vw, 420px);
  }

  body.home #mainVisual .home-top-hero-catch {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100% - 48px) !important;
    max-width: 520px !important;
    padding: 0.35rem 0.15rem;
    font-size: clamp(0.92rem, 3.8vw, 1.1rem);
  }

  body.home #mainVisual .home-top-hero-catch .catch-nobreak {
    white-space: normal;
  }

  body.home .home-top-about .home-top-lead,
  body.home .home-top-about .home-top-about__text {
    max-width: none;
  }

  body.home .home-top-services {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.home .home-top-why__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  body.home .home-top-why__media img {
    height: 240px;
  }

  body.home .home-top-banners.bgcolorTopBnr {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  body.home .home-top-banners .f-wrap-HU {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.home .home-top-banners .gridCenter a {
    white-space: normal;
    text-wrap: balance;
  }

  body.home .home-top-greeting__scene {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: none;
    margin-top: 1.25rem;
    padding: 0;
  }

  body.home .home-top-greeting__photo {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    transform: none;
  }

  body.home .home-top-greeting .representative-greeting__photo {
    transform: none;
  }

  body.home .home-top-greeting__letter {
    width: 100%;
    margin: 0;
    padding: 28px 24px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(11, 47, 74, 0.08);
  }

  body.home .home-top-greeting__letter::before,
  body.home .home-top-greeting__letter::after {
    display: none;
  }

  body.home .home-top-greeting__letter p.mb10,
  body.home .home-top-greeting__letter .txtSign {
    margin-left: 0;
    margin-right: 0;
    padding-top: 0;
  }

  body.home .home-top-cta__actions.contactBtnWrap {
    flex-direction: column;
    align-items: stretch;
  }

  body.home .home-top-cta__actions .contactBtn {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }

  body.home .home-top-company__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  body.home .home-top-company__map iframe {
    height: 280px;
  }

  body.home .home-top-news .news-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.25rem 0.6rem;
  }

  body.home .home-top-news .news-item .cpt-label {
    grid-column: 1;
    grid-row: 1;
  }

  body.home .home-top-news .news-item .date {
    grid-column: 2;
    grid-row: 1;
  }

  body.home .home-top-news .news-item .title {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
