/*
Theme Name: Zaikan Shikoku Theme
Theme URI: https://zaikan459.link/
Author: Zaikan Shikoku
Description: 一般社団法人在宅看護センター四国 既存HTML移行用テーマ
Version: 1.0.0
Text Domain: zaikan-shikoku
*/
  :root {
    --bg: #fffaf7;
    --text: #333;
    --muted: #666;
    --accent: #e7a9a9;
    --accent2: #f3cfa6;
    --gold: #c7a869;
    --border: #eadfd8;
    --link: #b76e79;
    --maxw: 960px;
  }
  html,body { margin:0; padding:0; background:var(--bg); color:var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; line-height:1.75; }
  a { color: var(--link); text-decoration: underline; }
  a:hover { opacity: .85; }
  img { max-width:100%; height:auto; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 1.25rem; }
  header { border-bottom: 1px solid var(--border); background: #fffefe; padding-top: 0rem; /* この行を追加 */ }
  .brand { display:flex; flex-direction: column; align-items:flex-start; gap:.2rem; }
  .brand h1 { margin:.5rem 0 0; font-size:1.00rem; }
  .brand small { color:var(--muted); }
  nav { margin:.5rem 0 1rem; }
  nav ul { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:.75rem 1rem; }
  nav a { text-decoration:none; border-bottom:2px solid transparent; padding-bottom:.2rem; }
  nav a[aria-current="page"] { border-color: var(--accent); }
  main { padding: 1rem 0 2rem; }
  section + section { margin-top: 1rem; }
  h2 { font-size:1.2rem; border-left: 4px solid var(--accent2); padding-left:.5rem; }
  .card { background:#fff; border:1px solid var(--border); border-radius:.5rem; padding:1rem; }
  .grid { display:grid; gap:1rem; }
  @media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
  footer { border-top:1px solid var(--border); background:#fff; color:var(--muted); }
  .muted { color:var(--muted); }
  .btn { display:inline-block; background:var(--accent); color:#fff; padding:.6rem 1rem; border-radius:.4rem; text-decoration:none; }
  .btn:hover { filter:brightness(.97); }
  .pill { display:inline-block; padding:.1rem .5rem; border:1px solid var(--gold); border-radius:999px; color:#7d6a3d; background:#fff; font-size:.85rem; }
  /* 修正したCSS */
  .btn.fixed-top-right {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
  }

/* モバイルで読みやすい最小限のスタイル */
#mid-career { margin: 1.25rem 0; }
#mid-career h2 { font-size: 1.25rem; margin: .25rem 0 1rem; }

.job-card {
  background: #fff;
  border: 1px solid #eadfd8;
  border-radius: .5rem;
  padding: 1rem;
}

.job-dl {
  margin: 0;
}

.job-dl .row {
  display: grid;
  grid-template-columns: 1fr;       /* モバイルは縦並び */
  gap: .25rem;
  padding: .75rem 0;
  border-bottom: 1px solid #f0e8e4;
}
.job-dl .row:last-child { border-bottom: none; }

.job-dl dt {
  font-weight: 600;
  background: #ffeeee;              /* 元の見出し色に寄せる */
  padding: .35rem .5rem;
  border-radius: .35rem;
  width: fit-content;
}
.job-dl dd {
  margin: 0;
  padding: .1rem .1rem .1rem 0;
}

/* 横幅が広い時は2カラムにして情報を横並びに */
@media (min-width: 720px) {
  .job-dl .row { grid-template-columns: 220px 1fr; align-items: start; }
  .job-dl dt { margin-top: .2rem; }
}

/* 軽い余白とリンク */
.inquiry { margin-top: 1rem; }
#mid-career a { color: #b76e79; text-decoration: underline; }
#mid-career a:hover { opacity: .85; }

    /* 追加・修正したスタイル */
    .profile-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: .5rem;
      padding: 1rem;
    }
    .profile-dl {
      display: flex;
      flex-direction: column;
      gap: 0;
      margin: 0;
      padding: 0;
    }
    .profile-dl .row {
      display: flex;
      flex-direction: column;
      border-bottom: 1px solid var(--border);
    }
    .profile-dl .row:last-of-type {
      border-bottom: none;
    }
    .profile-dl dt {
      background: #ffeeee;
      padding: .75rem 1rem;
      font-weight: bold;
    }
    .profile-dl dd {
      margin: 0;
      padding: .75rem 1rem;
    }
    
    @media (min-width: 720px) {
      .profile-dl .row {
        flex-direction: row;
      }
      .profile-dl dt {
        flex-basis: 200px;
        flex-shrink: 0;
      }
      .profile-dl dd {
        flex-grow: 1;
        padding-left: 1rem;
      }
      .service-base-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    /* 以前のCSSは省略 */
    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .form-row {
      display: flex;
      flex-direction: column;
    }
    .form-row label {
      font-weight: bold;
      margin-bottom: 0.25rem;
    }
    .form-row input[type="text"],
    .form-row input[type="email"],
    .form-row textarea {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid var(--border);
      border-radius: 0.4rem;
      box-sizing: border-box;
    }
    .form-row input[type="submit"] {
      background: var(--accent);
      color: #fff;
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: 0.4rem;
      cursor: pointer;
      align-self: flex-end;
    }
    @media (min-width: 720px) {
      .form-row {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
      }
      .form-row label {
        flex-basis: 150px;
        margin-bottom: 0;
      }
    }

.zaikan-page{max-width:var(--maxw);margin:0 auto;padding:1.25rem;min-height:420px}.hero-image{display:block;margin:0 auto 1.5rem;max-width:100%;border-radius:.4rem}.site-notice{max-width:var(--maxw);margin:0 auto;padding:1rem 1.25rem;color:#ff5511;font-weight:700}.site-header-inner{max-width:var(--maxw);margin:0 auto;padding:1.25rem}.site-footer-inner{max-width:var(--maxw);margin:0 auto;padding:1.25rem}.current-menu-item a{border-color:var(--accent)}

/* Footer unified with original static site */
footer .site-footer-inner p {
  margin: 0 0 .25rem;
}
.footer-banners {
  display: flex;
  align-items: flex-end;
  gap: .4rem;
  margin-top: .35rem;
  flex-wrap: wrap;
}
.footer-banners a {
  display: inline-flex;
  align-items: flex-end;
  line-height: 0;
}
.footer-banners img {
  display: block;
  height: auto;
  max-width: 100%;
}
