/* 株式会社ニューヘルスケアデザイン 仮サイト(トップページ) */
:root {
  --text: #4a4a4a;
  --muted: #717070;
  --accent: #0a96dc;
  --line: #abc3d6;
  --bg-soft: #f7f7f7;
  --bg-footer: #f5f5f5;
  --max: 1000px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: #fff;
  word-break: break-word;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: bottom; }
a { color: #333; }
.ov_hover img { transition: opacity .3s; }
.ov_hover:hover img { opacity: .7; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.text_center { text-align: center; }

/* ヘッダー */
.header { background: var(--bg-soft); border-bottom: 3px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.header .logo img { width: 182px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.nav a {
  display: block; padding: 8px 16px; text-decoration: none; color: #333;
  font-size: 15px; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }
.nav small { display: block; font-size: 10px; color: var(--muted); letter-spacing: .06em; line-height: 1.2; }

/* メインビジュアル */
.hero { background: #06204f; }
.hero img { width: 100%; max-width: 1400px; margin: 0 auto; display: block; min-height: 150px; object-fit: cover; object-position: right center; }

/* スライド */
.slider {
  position: relative; width: 100%; max-width: 1000px; margin: 50px auto 0;
  aspect-ratio: 1000 / 270; overflow: hidden;
}
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; background-size: 100% 100%;
}
.slide.is-active { opacity: 1; }
.slide img { position: absolute; opacity: 0; transition: opacity .6s ease 0s; }
.slide.is-active img { opacity: 1; transition-delay: 1s; }
.s1 { background-image: url(../images/slide_01.jpg); }
.s2 { background-image: url(../images/slide_02.jpg); }
.s3 { background-image: url(../images/slide_03.jpg); }
.s4 { background-image: url(../images/slide_04.jpg); }
.s1 img { left: 3%; bottom: 1.5%; width: 26.6%; }
.s2 img { left: 3%; top: 11%; width: 27.3%; }
.s3 img { left: 1.5%; bottom: 1.5%; width: 28.6%; }
.s4 .i1 { left: 19.3%; top: 13%; width: 12.2%; }
.s4 .x1 { left: 35.2%; top: 26.3%; width: 3.5%; }
.s4 .i2 { left: 44.2%; top: 7.4%; width: 10.3%; }
.s4 .x2 { right: 35.2%; top: 26.3%; width: 3.5%; }
.s4 .i3 { right: 19.2%; top: 11.1%; width: 10.1%; }
.s4.is-active .i1 { transition-delay: .7s; }
.s4.is-active .x1 { transition-delay: 1s; }
.s4.is-active .i2 { transition-delay: 1.3s; }
.s4.is-active .x2 { transition-delay: 1.6s; }
.s4.is-active .i3 { transition-delay: 1.9s; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.dots button {
  width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 1px solid var(--accent);
  background: #fff; cursor: pointer;
}
.dots button[aria-current="true"] { background: var(--accent); }
.dots button:focus-visible { outline: 2px solid #333; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .slide, .slide img { transition: none; }
}

/* サービス */
.block-1 { padding: 67px 0 65px; }
.block-1 .title { text-align: center; margin-bottom: 38px; }
.block-1 .list-item { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 64px; }
.block-1 .list-item li { position: relative; }
.block-1 .list-item li + li::before {
  content: ""; position: absolute; top: 118px; left: -54px; width: 44px; height: 44px;
  background: url(../images/icon-1.png) no-repeat center / contain;
}
.block-1 .lead { font-size: 20px; margin: 45px 0; text-align: center; line-height: 1.9; }

/* メディカル/ヘルスケア */
.block-2 { display: flex; flex-wrap: wrap; }
.block-2 .box { flex: 1 1 50%; min-width: 300px; min-height: 270px; padding: 52px 16px 45px; text-align: center; background-size: cover; }
.block-2 .box-1 { background-image: url(../images/bg-1.jpg); background-position: top right; }
.block-2 .box-2 { background-image: url(../images/bg-2.jpg); background-position: top left; }
.block-2 .title { margin-bottom: 13px; }
.block-2 .btn { margin-top: 30px; }

/* お問い合わせ / 会社情報 */
.block-3 { margin: 70px 0; }
.block-3 .frame { background: url(../images/bg-3.jpg) repeat-x top left; padding: 10px; }
.block-3 .row { display: flex; flex-wrap: wrap; background: #fff; padding: 45px 16px; }
.block-3 .col { flex: 1 1 340px; padding: 0 32px; text-align: left; }
.block-3 .col + .col { border-left: 1px solid #c6c6c6; }
.block-3 .col .title { margin-bottom: 25px; }
.block-3 .col .desc { font-size: 18px; margin-bottom: 30px; }
@media (max-width: 720px) {
  .block-3 .col + .col { border-left: 0; border-top: 1px solid #c6c6c6; margin-top: 32px; padding-top: 32px; }
  .block-1 .list-item li + li::before { display: none; }
  .hero img { min-height: 0; }
  .block-1 .lead { font-size: 17px; text-align: left; }
  .block-1 .lead br { display: none; }
}

/* フッター */
.footer { background: var(--bg-footer); padding: 67px 0 54px; position: relative; }
.footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer .add { margin-top: 10px; font-size: 14px; }
.footer .nav { justify-content: flex-end; }
.footer .f_bnrs { display: flex; gap: 16px; justify-content: flex-end; margin-top: 48px; align-items: center; }
.footer .f_bnrs img { height: 60px; width: auto; }
.copy { color: #9a9a9a; text-align: right; margin-top: 20px; font-size: 13px; }
.pagetop { position: fixed; right: 24px; bottom: 24px; z-index: 99; opacity: 0; pointer-events: none; transition: opacity .3s; }
.pagetop.is-show { opacity: 1; pointer-events: auto; }

/* お問い合わせフォーム(追加) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-btn { background: none; border: 0; padding: 0; cursor: pointer; }
.submit-btn:disabled { opacity: .5; cursor: default; }
.form-msg { min-height: 1.8em; margin: 12px 0; font-weight: bold; }
.form-msg.is-ok { color: #2a7a3b; }
.form-msg.is-ng { color: #c00; }
.cf-turnstile { margin: 12px 0; display: flex; justify-content: center; }
.main { min-height: 40vh; }

/* ナビ(画像ボタン) */
.nav a { padding: 0; border-bottom: 0; }
.nav a[aria-current="page"] img { filter: none; }
.nav a[aria-current="page"] { box-shadow: 0 5px 0 var(--accent); }
.nav img { display: block; }

/* サブページ本文: 現行サイトの設計(幅=content-box、文字14px、行間標準)に合わせる */
main.main, main.main * { box-sizing: content-box; }
main.main { font-size: 14px; line-height: normal; }
main.main img { max-width: none; }

/* 送信ボタン(確認画面なしの直接送信に合わせた文言) */
.submit-btn { display: inline-block; min-width: 200px; height: 50px; padding: 0 24px; background: #8f8f8f; color: #fff; font-size: 18px; font-weight: bold; font-family: inherit; border: 0; cursor: pointer; transition: opacity .3s; }
.submit-btn:hover:not(:disabled) { opacity: .7; }
.submit-btn:focus-visible { outline: 2px solid #333; outline-offset: 2px; }
