:root {
  --blue: #00a7db;
  --blue-dark: #00739e;
  --pink: #f19db5;
  --pink-dark: #c2335e;
  --ink: #333;
  --sub: #5f5f5f;
  --line: #e3e6e8;
  --bg-soft: #f2fafd;
  --bg-pink: #fdf1f5;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

a {
  color: var(--blue-dark);
}

a:focus-visible {
  outline: 3px solid var(--pink-dark);
  outline-offset: 2px;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ヘッダー */
header {
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 320px;
  max-width: 75vw;
  height: auto;
}

/* お知らせ */
.notice {
  background: var(--bg-soft);
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 28px 0;
}

.notice h1 {
  font-size: 1.25rem;
  margin: 0 0 6px;
  color: var(--blue-dark);
  line-height: 1.5;
}

.notice p {
  margin: 0;
}

.updated {
  margin-top: 6px !important;
  font-size: .85rem;
  color: var(--sub);
}

/* インスタ */
.insta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin: 0 0 28px;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--bg-pink);
  border: 1px solid #f5c9d7;
}

.insta p {
  margin: 4px 0 0;
}

.insta .insta-h {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pink-dark);
}

.insta a.insta-btn {
  background: #fff;
  color: var(--pink-dark);
  border: 2px solid var(--pink-dark);
  gap: 8px;
}

.ig {
  flex: none;
}

.lead {
  margin: 0 0 8px;
}

h2 {
  font-size: 1.3rem;
  margin: 40px 0 14px;
  padding-left: 12px;
  border-left: 5px solid var(--blue);
  line-height: 1.5;
}

/* お問い合わせ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 680px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

.box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.box h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.tel-big {
  display: inline-block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--blue-dark);
  text-decoration: none;
  line-height: 1.3;
  letter-spacing: .02em;
  min-height: 44px;
}

.hours {
  margin: 6px 0 0;
  font-size: .95rem;
  color: var(--sub);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  background: var(--pink-dark);
  color: #fff;
}

.btn.blue {
  background: var(--blue-dark);
}

.btn:hover {
  opacity: .9;
}

.note {
  font-size: .88rem;
  color: var(--sub);
  margin-top: 8px;
}

.policy-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--blue-dark);
  text-decoration: underline;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
}

.policy-link-btn:hover {
  opacity: .8;
}

/* 事業所一覧 */
.jump {
  margin: 0 0 8px;
}

.jump p {
  margin: 0 0 6px;
  font-size: .9rem;
  color: var(--sub);
}

.jump ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  text-decoration: none;
  color: var(--blue-dark);
  background: #fff;
  font-size: .95rem;
}

.jump a:hover {
  background: var(--bg-soft);
}

.area {
  margin: 18px 0 8px;
  font-weight: bold;
  color: var(--sub);
}

.area[id],
#careplan {
  scroll-margin-top: 12px;
}

.offices {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.offices li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.offices h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.offices p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.7;
}

.offices .map {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9rem;
}

.offices .tf {
  font-size: .88rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
}

.offices .tf a {
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
}

.offices .tf .fax {
  color: var(--sub);
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0 12px;
}

.cols .offices.one {
  grid-template-columns: 1fr;
}

h3.sub {
  font-size: 1.05rem;
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

/* 採用情報 */
.recruit {
  background: var(--bg-pink);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.recruit p {
  margin: 0;
}

/* 会社概要 */
.company-profile {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.company-profile h2 {
  margin-top: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 24px;
  font-size: .88rem;
  margin: 0;
}

.profile-item {
  display: flex;
  border-bottom: 1px dashed var(--line);
  padding: 6px 0;
}

.profile-item dt {
  width: 90px;
  font-weight: bold;
  color: var(--sub);
  flex-shrink: 0;
}

.profile-item dd {
  margin: 0;
  flex: 1;
}

/* フッター */
footer {
  margin-top: 48px;
  background: #f6f7f8;
  border-top: 1px solid var(--line);
  padding: 28px 0 96px;
  font-size: .85rem;
  color: var(--sub);
}

footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer a,
footer button {
  color: var(--sub);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.copy {
  margin-top: 8px;
  font-size: .78rem;
}

/* モーダルウィンドウ（iOS Safari安定動作版） */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-window {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
  border: none;
  padding: 0;
  color: var(--blue-dark);
}

.modal-close {
  background: #e9ecef;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--ink);
}

.modal-body {
  padding: 24px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: .88rem;
  line-height: 1.75;
}

.modal-body h3 {
  font-size: 1rem;
  color: var(--blue-dark);
  margin: 20px 0 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body ol,
.modal-body ul {
  padding-left: 20px;
  margin: 6px 0;
}

.modal-body li {
  margin-bottom: 6px;
}

/* SP固定ボタン */
.sp-tel {
  display: none;
}

@media (max-width: 680px) {
  .sp-tel {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
  }
  .sp-tel a {
    flex: 1;
    text-align: center;
    padding: 10px 6px 12px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    line-height: 1.35;
  }
  .sp-tel a small {
    display: block;
    font-weight: normal;
    font-size: .78rem;
  }
  .sp-tel .t {
    background: var(--blue-dark);
  }
  .sp-tel .f {
    background: var(--pink-dark);
  }
}