/* =========================================
   掛川総合法律事務所 スマホ用下層ページ v2
   ========================================= */

:root {
  --green: #158025;
  --green-2: #22a63a;
  --green-soft: #f4fbf5;
  --green-border: #cfe8d2;
  --text: #222;
  --muted: #666;
  --line: #e8e8e8;
  --bg: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

body {
  padding-bottom: 68px;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
iframe {
  max-width: 100%;
}

.sp-site-header {
  border-top: 6px solid var(--green-2);
  background: var(--green-soft);
  padding: 18px 18px 16px;
}

.sp-site-name {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
}

.sp-site-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.sp-header-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.sp-page-hero {
  padding: 24px 18px 20px;
  border-bottom: 1px solid var(--line);
}

.sp-page-hero h1 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 25px;
  line-height: 1.35;
}

.sp-page-hero p {
  margin: 0;
  color: #333;
  font-size: 16px;
}

.sp-section {
  padding: 24px 18px;
  border-bottom: 1px solid var(--line);
}

.sp-section h2 {
  margin: 0 0 16px;
  padding-left: 10px;
  border-left: 5px solid var(--green-2);
  color: var(--green);
  font-size: 21px;
  line-height: 1.45;
}

.sp-section h3 {
  margin: 20px 0 10px;
  color: var(--green);
  font-size: 18px;
  line-height: 1.45;
}

.sp-section p {
  margin: 0 0 13px;
}

.sp-lead {
  font-size: 16px;
}

.sp-muted {
  color: var(--muted);
  font-size: 14px;
}

.sp-btn {
  display: block;
  padding: 12px 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.sp-btn-primary {
  color: #fff;
  background: var(--green-2);
}

.sp-btn-secondary {
  color: var(--green);
  background: #fff;
  border: 1px solid var(--green-2);
}

.sp-btn-light {
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid var(--green-border);
}

.sp-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sp-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--green-border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}

.sp-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 18px;
  line-height: 1.45;
}

.sp-card span {
  display: block;
  color: #444;
  font-size: 14px;
  line-height: 1.65;
}

.sp-anchor-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.sp-anchor-nav a {
  display: block;
  padding: 10px 8px;
  border: 1px solid var(--green-border);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.sp-box {
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid var(--green-border);
  border-radius: 10px;
  background: var(--green-soft);
}

.sp-box h3 {
  margin-top: 0;
}

.sp-list,
.sp-check-list {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.sp-list li,
.sp-check-list li {
  margin: 0 0 7px;
}

.sp-check-list {
  padding-left: 0;
  list-style: none;
}

.sp-check-list li {
  position: relative;
  padding-left: 1.45em;
}

.sp-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-2);
  font-weight: 700;
}

.sp-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-info-list li {
  margin: 0 0 10px;
}

.sp-info-list strong {
  display: inline-block;
  min-width: 5.5em;
}

.sp-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.sp-flow li {
  position: relative;
  margin: 0 0 14px;
  padding: 14px 14px 14px 52px;
  border: 1px solid var(--green-border);
  border-radius: 10px;
  background: #fff;
}

.sp-flow li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.sp-flow strong {
  display: block;
  color: var(--green);
  font-size: 17px;
  margin-bottom: 4px;
}

.sp-return {
  margin-top: 18px;
  text-align: right;
}

.sp-return a {
  font-size: 14px;
  color: var(--muted);
}

.sp-map-frame {
  overflow: hidden;
  border: 1px solid var(--green-border);
  border-radius: 10px;
  background: #f7f7f7;
}

.sp-map-frame iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

.sp-footer {
  padding: 22px 18px 28px;
  background: var(--green-soft);
  color: #333;
}

.sp-footer p {
  margin: 0 0 8px;
  font-size: 14px;
}

.sp-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  font-size: 14px;
}

.sp-fixed-contact {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  background: #fff;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

.sp-fixed-contact a {
  flex: 1;
  display: block;
  padding: 12px 4px;
  color: #fff;
  background: var(--green-2);
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

.sp-fixed-contact a:last-child {
  border-right: none;
}

@media screen and (min-width: 769px) {
  body {
    max-width: 760px;
    margin: 0 auto;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}
.sp-profile-box {
  margin: 22px 0 0;
  padding: 18px;
  border: 1px solid #cfe8d3;
  border-radius: 10px;
  background: #f8fcf8;
}

.sp-profile-box h3 {
  margin: 0 0 14px;
  color: #0b7f28;
  font-size: 20px;
  line-height: 1.5;
}

.sp-profile-row {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #e1efe3;
}

.sp-profile-row:last-child {
  border-bottom: none;
}

.sp-profile-label {
  margin-bottom: 4px;
  color: #0b7f28;
  font-weight: bold;
  font-size: 15px;
}

.sp-profile-text {
  font-size: 16px;
  line-height: 1.7;
}

.sp-profile-list {
  margin: 0;
  padding-left: 1.2em;
}

.sp-profile-list li {
  margin: 0 0 10px;
  line-height: 1.7;
}

.sp-profile-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.sp-profile-link-grid a {
  display: block;
  padding: 12px 8px;
  border: 1px solid #cfe8d3;
  border-radius: 8px;
  background: #fff;
  color: #0b7f28;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  line-height: 1.45;
}

.sp-profile-link-grid a:active {
  background: #f0faf2;
}

@media screen and (max-width: 420px) {
  .sp-profile-link-grid {
    grid-template-columns: 1fr;
  }
}

/* プロフィールページ：主な取扱い分野ボタン */
.sp-profile-button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.sp-profile-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 8px;
  border: 1px solid #cfe8d3;
  border-radius: 10px;
  background: #fff;
  color: #0b7f28;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.sp-profile-button:visited {
  color: #0b7f28;
}

.sp-profile-button:active {
  background: #f0faf2;
}

@media screen and (max-width: 360px) {
  .sp-profile-button-grid {
    grid-template-columns: 1fr;
  }
}