:root {
  --font-b: "Zen Kaku Gothic New", "Yu Gothic Medium", "游ゴシック Medium",
    "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  --font-tel: Helvetica, sans-serif;
  --font-gothic: "Zen Kaku Gothic New", "Yu Gothic Medium", "游ゴシック Medium",
    "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  /* base color */
  --color-base: #266455;
  --color-text: #333;
  --color-green: #74ab4d; /* 見出し・ボタン（明るい緑） */
  --color-green-dark: #266455; /* 濃い緑 */
  --color-green-mid: #497a59;
  --color-teal: #509685;
  --color-yellow: #e6b600; /* メールボタン */
  --color-badge: #fae48a; /* 理由バッジ */
  --color-bg-green: #e7f1e8;
  --color-bg-cream: #faf7e8;
  --color-mail: var(--color-yellow);
  --gradient-btn: linear-gradient(90deg, #74ab4d 0%, #4e8a5c 100%);
  --color-red: #f00;
  --color-gray: #ccc;
  --color-em: #dc3a12;
  --line-height-base: 1.7;
  /* 中ページ本文（PC）
  /souzoku/index.pdf「文字サイズ・行間指示書」の数値 */
  --font-size-article: 18px;
  --line-height-article: 2;
  --font-size-h1: 40px;
  --font-size-h1-sub: 24px;
  --font-size-h2: 32px;
  --font-size-h3: 24px;
  --font-size-h4: 18px;
  --font-size-note: 16px;
  --line-height-heading: 1.6;
  --line-height-li: 1.75;
  --line-height-table: 1.7;
  --line-height-note: 1.8;
  --letter-spacing-article: 0.04em;
  --color-note: #444;
  --color-heading-line: #a9cb97; /* 見出し下線・区切り（淡緑） */
  --space-section: 96px; /* セクション（h2）の前 */

  --wrapper-width: 1100px;
  --window-width: 100vw;
  --indent-width: 10px;
}

/* 中ページ本文（スマホ） */
@media screen and (max-width: 768px) {
  :root {
    --font-size-article: 16px;
    --font-size-h1: 24px;
    --font-size-h1-sub: 16px;
    --font-size-h2: 24px;
    --font-size-h3: 20px;
    --font-size-h4: 16px;
    --font-size-note: 12px;
    --space-section: 64px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: var(--line-height-base);
  font-family: var(--font-gothic);
  font-weight: 500;
  color: var(--color-text);
  background: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b,
em,
label,
legend,
caption,
th,
dt {
  font-family: var(--font-b);
  font-weight: 700;
}

strong {
  color: var(--color-em);
}

blockquote {
  border: solid 1px #cccccc;
  background: #f0f0f0;
  margin: 1em;
  padding: 1em;
}

ul,
ol {
  margin: 1em 0 1em 2em;
  padding: 0;
}

p {
  margin: 1em 0;
}

a {
  text-decoration: underline;
}

a img {
  vertical-align: middle;
}

a[href] {
  word-break: break-all;
}

a:not([href]) {
  pointer-events: none;
  text-underline-offset: -0.5em;
}

input[type="text"]:focus,
textarea:focus {
  background-color: #ffc;
}

/* lazyload */
.fade {
  opacity: 0;
  transition: opacity 0.5s;
}

.fade.lazyloaded {
  opacity: 1;
}

.fadeUp {
  opacity: 0;
  transform: translateY(50px);
  transition: 0.5s;
}

.fadeUp.lazyloaded {
  transform: translateY(0);
  opacity: 1;
}

.zoom {
  opacity: 0;
  transform: scale(0.9);
  transition: 0.5s;
}

.zoom.lazyloaded {
  transform: scale(1);
  opacity: 1;
}

/* clearfix */
.pkg:after {
  content: "";
  display: block;
  clear: both;
  height: 0;
}

/* content */
blockquote .cite {
  text-align: right;
}

a.img {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.img {
  display: block;
  position: relative;
  background-repeat: no-repeat;
  white-space: nowrap;
  overflow: hidden;
  text-indent: 100%;
}

.img *:not(:has([class], [style])) {
  border: none;
  margin: 0;
  padding: 0;
  background: initial;
  list-style-type: none;
  white-space: nowrap;
  overflow: hidden;
  text-indent: 100%;
}

.img br {
  display: none;
}

.img a {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

table.img {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

table.img tr,
table.img th,
table.img td {
  background-color: transparent !important;
}

.clr {
  clear: both;
}

.img2 {
  text-align: center;
  text-indent: 0;
}

.imgList {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

div.att {
  margin-top: 1em;
}

div.att > p,
p.att {
  margin-top: 1em;
  text-indent: -1em;
  padding-left: 1em;
  text-align: left;
}

div.att p {
  margin: 0;
}

div.att > p > span:first-child,
.att > span:first-child {
  color: red;
  font-style: normal;
}

span.att {
  text-indent: 0;
  padding: 0;
}

.att2 {
  color: red;
}

.btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1em auto;
  & a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 1px #666;
    margin: 0 auto;
    padding: 8px 24px;
    height: 48px;
    color: currentColor;
    font-weight: bold;
    text-align: center;
    text-decoration: none;

    &::after {
      content: "";
      border-right: solid 3px currentColor;
      border-bottom: solid 3px currentColor;
      margin-left: 16px;
      width: 8px;
      height: 8px;
      background-image: linear-gradient(
        to bottom left,
        transparent calc(50% - 1.5px),
        currentColor calc(50% - 1.5px),
        currentColor calc(50% + 1.5px),
        transparent calc(50% + 1.5px)
      );
      transform: rotate(-45deg);
    }
    &:hover {
      border-radius: 6px;
    }

    &[target="_blank"]::after {
      content: "";
    }
  }
}

.b2 {
  color: red;
}

.b3 {
  background-image: linear-gradient(transparent 80%, #ff0 80%);
  font-weight: bold;
}

.b4 {
  padding-top: 0.6em;
  text-emphasis: filled circle red;
  font-size: 119.05%;
}

/* 画像以外で target="_blank" ならアイコン付与 */
a[target="_blank"]:not(:has(img)):after {
  content: "";
  display: inline-block;
  width: auto;
  height: 0.7em;
  margin-left: 8px;
  aspect-ratio: 17/16;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-image: url(openwindow.min.svg);
}

/* 画像以外で pdf ファイルへのリンクならアイコン付与 */
a[href$=".pdf"]:not(:has(img)):after {
  content: url(pdf_small.png);
  margin-right: 2px;
}

input[type="search"] {
  border-radius: 20px;
  border: solid 1px #ccc;
  background: url(search.svg) no-repeat 4px 50%/16px 16px;
  padding-left: 20px;
  box-sizing: border-box !important;
}

/* table */
.table {
  margin: 1em auto 0;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px;
  border: solid 1px #ccc;
}

.table th {
  font-weight: normal;
  vertical-align: middle;
  text-align: center;
}

.odd,
.table > tbody > tr > td {
  background: #fff;
}

.even,
.table2 > tbody > tr:nth-of-type(2n) > td,
.table2 > tbody > tr:nth-of-type(2n + 1) > th,
.table > tbody > tr > th {
  background-color: #f7f7f7;
}

.table2 > tbody > tr:nth-of-type(2n) > th {
  background-color: #eee;
}

.table thead th {
  background-color: #ddd;
  font-weight: bold;
}

caption,
tr.caption > th {
  background: #6d9923;
  background: linear-gradient(to bottom, #6d9923 0%, #588217 100%);
  color: #fff;
  text-align: left !important;
  padding: 2px 5px;
  text-shadow: 1px 1px 1px #000;
}

table.fee {
  margin: 1em auto 0;
  width: 100%;
}

.fee > tbody > tr > th,
.fee > tbody > tr > td,
.table .val {
  vertical-align: middle;
  text-align: center;
}

.table .text {
  text-align: left !important;
}

table.list {
  width: 100%;
  margin-top: 1em;
}

table.list th,
table.list td {
  vertical-align: top;
  text-align: left;
}

table.list .head td {
  text-align: center;
}

.history {
  border: none;
  width: 100%;
  margin-top: 1em;
}

.history th {
  font-weight: normal;
  width: 7em;
}

.history th,
.history td {
  border: none;
  text-align: left;
  vertical-align: top;
  border-top: dashed 1px silver;
  padding: 2px 0;
}

.history tr:first-child th,
.history tr:first-child td {
  border: none;
}

.table td :first-child {
  margin-top: 0;
  margin-bottom: 0;
}

.large {
  font-size: 112%;
}

.larger {
  font-size: 125%;
}

.mark,
.mark-table td {
  text-align: center;
  font-family: "MS PGothic";
}

.mailform {
  & th {
    border: none;
    padding: 16px;
    background: unset !important;
    vertical-align: top;
  }
  & td {
    border: none;
    padding: 16px;
    vertical-align: top;
  }
}
.mailaddress {
  vertical-align: middle;
}
@media screen and (max-width: 768px) {
  .scroll {
    width: var(--wrapper-width);
  }

  table.transform {
    display: block;
  }

  table.transform caption,
  table.transform tbody,
  table.transform tr,
  table.transform th,
  table.transform td {
    display: block;
    box-sizing: border-box;
    width: 100%;
  }

  .scroll-wrapper {
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}
/*************************
|
* スケジュール等のテーブル
|
*************************/
table.schedule {
  & caption {
    padding: 16px;
    background: var(--color-base);
    color: currentColor;
    font-size: 28px;
    text-align: center;
  }
  & th,
  & td {
    padding: 20px 10px;
  }
  & th:first-child {
    position: relative;
    width: 180px;
    height: 100%;
    &::before {
      content: "";
      position: absolute;
      left: 0;
      top: calc(50% - 6px);
      border-radius: 50%;
      width: 12px;
      height: 12px;
      background: var(--color-base);
    }
    &::after {
      content: "";
      position: absolute;
      left: 4px;
      top: 0;
      bottom: 0;
      width: 1px;
      background: var(--color-base);
    }
    & .period {
      position: absolute;
      left: 40px;
      top: calc(50% - 19px);
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 8px;
      width: 128px;
      height: 38px;
      background: var(--color-base);
      color: #fff;
      font-size: 20px;
    }
  }
  & td {
    border-bottom: solid 1px #999;
    & .proc {
      margin: 0;
      list-style-type: none;

      & .head {
        font-size: 22px;
        font-weight: normal;
      }
    }
  }
}
/*  */
.gmap {
  position: relative;
  margin: 20px auto;
  width: 600px;
  height: 600px;
}

.gmap iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
@media screen and (max-width: 768px) {
  .gmap {
    position: relative;
    margin: 20px auto;
    max-width: 100%;
    height: 100vw;
  }

  .gmap iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 100% !important;
  }

  .gmap small {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100% !important;
    height: 2em;
  }
}

/* content */
#gotop {
  display: block;
  position: fixed;
  width: 100%;
  height: 0;
  top: auto;
  bottom: 20px;
  z-index: 9999;
}

#gotop a {
  margin-top: -100px;
  margin-right: -15mm;
}

.gotop a {
  position: relative;
  float: right;
  background: #666;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-indent: -9999px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;

  &.is-show {
    opacity: 1;
    visibility: visible;
  }
}

.gotop a:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -7px;
  margin-top: -4px;
  border-style: solid;
  border-width: 4px 0 0 4px;
  border-color: #fff;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
}

/* wordpress */
.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
  max-width: 100%;
}

.alignright {
  float: right;
  margin-bottom: 1em;
  margin-left: 1em;
}

.alignleft {
  float: left;
  margin-right: 1em;
  margin-bottom: 1em;
}

.drop-down-category {
  margin: 1em auto;
}

.pagination {
  display: block;
  clear: both;
  margin: 20px 0;
  font-size: 75%;
  line-height: 2;
}

.pagination:after {
  clear: both;
  display: block;
  content: " ";
  height: 0;
}

.pagination > * {
  float: left;
  margin: 2px 2px 2px 0;
  padding: 6px 9px 5px 9px;
  text-decoration: none;
  width: auto;
  color: #fff;
  background: #555;
}

.pagination a:hover,
.pagination .current {
  background-color: var(--color-base);
  color: #fff;
}

/*

wordpress plugin

*/
.yarpp h3 {
  margin: 1em 0;
  padding: 0;
  background: transparent;
  color: #198040;
  font-size: 18px;
  line-height: 1.5;

  &:before,
  &:after {
    content: none;
  }
}

.yarpp-thumbnails-horizontal {
  display: flex;
  flex-wrap: wrap;
}

.yarpp-thumbnails-horizontal > * {
  border: none !important;
  margin: 10px 0 0 10px !important;
  width: calc(25% - 10px) !important;
}

.yarpp-thumbnail > img,
.yarpp-thumbnail-default {
  height: auto !important;
}

/* table of content */
#ez-toc-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-style: dotted;
  margin: 1em auto;
  background: #fff;
  box-sizing: border-box;
  width: fit-content !important;
}

#ez-toc-container li {
  border-top: solid 1px #ccc;
}

#ez-toc-container li:first-child {
  border-top: none;
}

#ez-toc-container li a {
  display: block;
  color: #005a49;
}

#ez-toc-container.counter-decimal ul.ez-toc-list li a::before,
.ez-toc-widget-container.counter-decimal ul.ez-toc-list li a::before {
  content: counters(item, "-") ". " !important;
  counter-increment: item !important;
}

/* contact form 7 */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
}

.wpcf7 *:focus {
  background-color: #ffc;
}

.wpcf7 input,
.wpcf7 textarea {
  font-weight: normal;
}

.wpcf7 input.name {
  width: 20em;
}

.wpcf7 input.tel {
  width: 14em;
}

.wpcf7 input.mail {
  width: 30em;
}

.wpcf7 input.zip {
  width: 8em;
}

.wpcf7 input.pref {
  width: 8em;
}

.wpcf7 input.address {
  box-sizing: border-box;
  width: 100%;
}

.wpcf7 textarea {
  box-sizing: border-box;
  width: 100%;
  height: 8em;
}

.wpcf7 label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-weight: bold;

  & b:is(.any, .require),
  & span:not([class]),
  & span:is(.any, .require) {
    flex-shrink: 0;
    display: block;
    border-radius: 16px;
    margin-left: 1em;
    padding: 1px 16px;
    background: #01b3cd;
    color: #fff;
    font-size: 12px;
    text-align: center;

    &.any {
      background: #01b3cd;
    }

    &.require {
      background: #df1014;
    }
  }
}

.wpcf7-radio {
  & label {
    flex-wrap: nowrap;
    align-items: flex-start;
  }
}

.wpcf7 .has-free-text {
  display: flex !important;

  & input[type="text"] {
    margin-left: 8px;
  }
}

.wpcf7 fieldset {
  background: transparent;
  margin: 1em 0 0;
  padding: 10px 15px;
}

.wpcf7 fieldset label {
  font-weight: normal;
  white-space: nowrap;
  float: left;
  margin-right: 1em;
}

.wpcf7 legend {
  font-weight: bold;
  color: #000;
}

.wpcf7 select {
  max-width: 100%;
}

.wpcf7-checkbox {
  display: block;
  clear: both;
}

.wpcf7 .wpcf7-list-item {
  display: block;

  & input {
    margin-right: 8px;
  }
}

.wpcf7-checkbox label {
  font-weight: normal;
}

.wpcf7-checkbox:after {
  display: block;
  clear: both;
  content: " ";
  height: 0;
}

.wpcf7-radio label {
  font-weight: normal;
}

.wpcf7 .mf_month,
.wpcf7 .mf_day,
.wpcf7 .mf_hour,
.wpcf7 .mf_month2,
.wpcf7 .mf_day2,
.wpcf7 .mf_hour2,
.wpcf7 .mf_month3,
.wpcf7 .mf_day3,
.wpcf7 .mf_hour3 {
  display: inline;
}

.wpcf7 .mf_privacy {
  position: static;
  display: inline;
  margin-right: 1em;
}

.wpcf7 #mf_privacy {
  position: relative;
  & label {
    justify-content: center;
  }
}

.wpcf7 #mf_privacy input[type="checkbox"] {
  margin: 8px 8px 0 0;
}

.wpcf7 #mf_privacy .wpcf7-not-valid-tip {
  position: absolute;
  left: 0;
  bottom: -1em;
  width: 100%;
}

.wpcf7 #mf_privacy .wpcf7-form-control-wrap {
  display: inline;
}

.wpcf7 .wpcf7-not-valid {
  background: pink;
}

.wpcf7 input[type="submit"] {
  display: block;
  border: none;
  margin: 1em auto;
  padding: 16px;
  width: fit-content;
  background: #f2ba52;
  color: #fff;

  &:active {
    border: inset 2px #ccc;
    transform: translate(1px, 1px);
  }
}

@media screen and (max-width: 768px) {
  .wpcf7 .table th,
  .wpcf7 .table td {
    display: block;
    padding: 0;
    border: none;
  }

  .wpcf7 .table th {
    margin-top: 1em;
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 textarea {
    box-sizing: border-box;
    width: 100%;
  }
}
/* mw wp form */
.mw_wp_form {
  & p.submit {
    display: flex;
    justify-content: center;
    column-gap: 16px;

    & button[type="submit"] {
      display: block;
      margin: 1em 0;
      width: fit-content;
    }
  }
}
/******************
widget
******************/
*[class*="widget"] h2,
*[class*="widget"] h3,
*[class*="widget"] h4 {
  margin: 0;
}

#contents *[class*="widget"] {
  margin-top: 10px;
  margin-bottom: 10px;
}

#contents *[class*="widget"]:first-child {
  margin-top: 0;
}

#contents *[class*="widget"]:last-child {
  margin-bottom: 0;
}

.widget-privacy-policy {
  margin: 1em 0 0;
  border: solid 1px #ccc;
  padding: 9px;
  height: 200px;
  overflow: auto;
}

.widget-privacy-policy > *:first-child {
  margin-top: 0;
}

/* アコーディオン（js版） */
.widget-acc {
  & .head {
    display: flex;
    justify-content: space-between;
    cursor: pointer;

    &::after {
      content: "＋";
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 50%;
      width: 26px;
      height: 26px;
      background: unset;
      color: var(--color-base);
      font-size: 28px;
      line-height: 26px;
      text-align: center;
      vertical-align: middle;
    }

    &.open::after {
      content: "－";
    }
  }

  & .body {
    display: none;
  }
}

@media print, screen and (min-width: 769px) {
  :root {
    --header-height: 140px;
    /* ヘッダー通常高さ */
    --header-height-min: 100px;
    /* ヘッダー縮小時高さ */
    --header-menu-height: 66px;
    /* ヘッダーメニュー高さ */
  }

  /* 固定メニューの高さ */
  html {
    scroll-padding-top: calc(
      var(--header-menu-height) + var(--wp-admin--admin-bar--height, 0px)
    ) !important;
    /* アンカーまでの余白 */
    scroll-behavior: smooth;
    overflow: auto;
    /* scroll-behavior:smooth のおまじない */
  }

  body {
    min-width: var(--wrapper-width);
  }

  a:hover {
    opacity: 0.5;
  }

  /* hidden */
  #sp-menu-state,
  .sp-menu-btn,
  #sp-site-menu,
  #navigation,
  .sp {
    display: none;
  }

  /* layout */
  .wrapper {
    width: var(--wrapper-width);
    margin-right: auto;
    margin-left: auto;
  }
}

@media screen and (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }

  .alignright,
  .alignleft {
    display: block;
    float: none;
    margin: 10px auto;
    padding: 0;
  }

  .img {
    background-size: contain !important;
  }

  .admin-bar #wpadminbar {
    position: fixed;
  }

  /* hidden */
  .pc {
    display: none;
  }

  /* ハンバーガーメニュー */
  #navigation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9997;
    box-sizing: border-box;
    width: 100%;
    max-height: 100vh;
    padding-top: 56px;
    overflow-y: auto;
    background: #fff;
  }
  .admin-bar #navigation {
    top: var(--wp-admin--admin-bar--height);
  }
  #navigation > ul {
    display: none;
  }

  #sp-menu-state:checked ~ #navigation > ul {
    display: block;
  }

  .sp-menu-btn {
    position: fixed;
    display: block;
    right: 8px;
    top: 8px;
    z-index: 9998;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    padding: 8px;
    background: var(--color-base);
    text-indent: 28px;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
  .admin-bar .sp-menu-btn {
    top: calc(var(--wp-admin--admin-bar--height) + 8px);
  }
  /* hamburger icon */
  .sp-menu-btn-icon,
  .sp-menu-btn-icon:before,
  .sp-menu-btn-icon:after {
    position: absolute;
    top: 50%;
    left: calc(50% - 12px);
    height: 2px;
    width: 24px;
    background: #bbb;
    -webkit-transition: all 0.25s;
    transition: all 0.25s;
  }
  .sp-menu-btn-icon:before {
    content: "";
    top: -7px;
    left: 0;
  }
  .sp-menu-btn-icon:after {
    content: "";
    top: 7px;
    left: 0;
  }
  /* x icon */
  #sp-menu-state:checked ~ .sp-menu-btn .sp-menu-btn-icon {
    height: 0;
    background: transparent;
  }
  #sp-menu-state:checked ~ .sp-menu-btn .sp-menu-btn-icon:before {
    top: 0;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
  #sp-menu-state:checked ~ .sp-menu-btn .sp-menu-btn-icon:after {
    top: 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  /* hide menu state checkbox (keep it visible to screen readers) */
  /* position: fixedでビューポート内に固定し、タップ時にフォーカスがページ下部の要素へスクロールしてしまう不具合を防止 */
  #sp-menu-state {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
  }

  /* スライドアップバー */
  #site-menu {
    display: block;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    z-index: 9999;
  }

  #site-menu img {
    vertical-align: top;
  }

  #sp-site-menu h4 {
    margin: 10px 0 0;
    padding: 0 10px;
  }

  #sp-site-menu ul {
    list-style-type: none;
    margin: 0;
    display: table;
    border-collapse: separate;
    border-spacing: 10px;
    width: 100%;
  }

  #sp-site-menu li {
    display: table-cell;
    vertical-align: top;
  }

  .headroom #site-menu {
    will-change: transform;
    transition: transform 200ms linear;
  }

  .headroom--pinned #site-menu {
    transform: translateY(0%);
  }

  .headroom--unpinned #site-menu {
    transform: translateY(100%);
  }

  /* footer */
  #copyright {
    border-top: solid 1px #fff;
    margin-top: -1px;
    font-size: 11px;
    padding: 10px 0;
    text-align: center;
  }

  #footer {
    border-top: solid 1px #fff;
    margin-top: -1px;
    text-align: center;
    font-size: 0.875rem;
  }

  #gotop {
    position: absolute;
    top: -40px;
    right: 0;
  }

  #gotop a {
    margin: 0;
  }
}

/* 電話番号（アイコン付き）
  svg によるマスク画像仕様
*/
.tel-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 1em;
  font-family: var(--font-tel);
  font-weight: 500;
  letter-spacing: -1px;

  &.lazyloaded {
    &::before {
      content: "";
      flex-shrink: 0;
      display: block;
      margin-right: 8px;
      width: auto;
      height: 0.8em;
      aspect-ratio: 1/1;
      background-repeat: no-repeat;
      background-size: contain;
      background-color: currentColor;
      mask-repeat: no-repeat;
      mask-size: contain;
      mask-image: url(tel_icon.min.svg);
      /* background-image: image-set(url(tel_icon.webp), url(tel_icon@2x.webp) 2x); */
    }
  }

  & a {
    color: inherit;
    text-decoration: none;
  }
}
/*

メールボタン

*/
.mail-btn {
  display: flex;
  justify-content: center;
  margin: 1em auto;
  & a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-mail);
    color: #fff;
    text-decoration: none;
    text-align: center;

    &::before {
      content: "";
      display: block;
      aspect-ratio: 62/38;
      width: auto;
      height: 1em;
      background-repeat: no-repeat;
      background-size: contain;
      background-color: #fff;
      mask-repeat: no-repeat;
      mask-image: url(mail_icon.min.svg);
    }
  }
}
/* .blogcard */
.blogcard {
  line-height: 1;
  background-color: #fff;
  border: 1px solid #eee;
  word-wrap: break-word;
  margin: 40px;
  box-shadow: 0 0 10px 6px rgba(0, 0, 0, 0.025);
}

.blogcard.ex {
  background-color: #f7f7f7;
}

.blogcard a {
  display: flex;
  text-decoration: none;
  opacity: 1;
  transition: all 0.2s ease;
}

.blogcard a:hover {
  opacity: 0.6;
}

.blogcard_thumbnail {
  float: left;
  padding: 20px;
}

.blogcard_title {
  font-size: 1em;
  font-weight: bold;
  line-height: 1.4;
  padding: 17px 20px 10px;
}

.blogcard_excerpt {
  font-size: 0.85em;
  line-height: 1.6;
  padding: 0 17px 15px 20px;
}

.blogcard_link {
  font-size: max(12px, 0.65em);
  padding: 0 17px 15px 20px;
  text-align: left;
}

.blogcard_link .favicon {
  margin-bottom: -4px;
}

.blogcard_link .icon-external-link-alt::before {
  font-size: 0.75em;
}

@media screen and (max-width: 768px) {
  .blogcard {
    margin: 40px 0;
  }

  .blogcard_thumbnail img {
    width: 90px;
  }

  .blogcard_title {
    font-size: 0.95em;
    padding-bottom: 17px;
  }

  .blogcard_excerpt {
    display: none;
  }
}

/**********************
クリップで止めた3枚の紙
**********************/
.widget-note {
  grid-area: note;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    left: 16px;
    top: -10px;
    width: 36px;
    height: 62px;
    z-index: 9999;
  }

  &.lazyloaded::before {
    /* background-image: image-set(url(clip.webp), url(clip@2x.webp) 2x); */
  }

  & .inner {
    position: relative;
    border: solid 1px #666;
    padding: 16px;
    background: #fff;

    &::before,
    &::after {
      content: "";
      position: absolute;
      display: block !important;
      border: solid 1px #666;
      width: 100%;
      height: 100%;
      background: #fff;
    }

    &::before {
      left: 4px;
      top: 4px;
      z-index: -1;
    }

    &::after {
      left: 8px;
      top: 8px;
      z-index: -2;
    }
  }
}
/*

header

*/
/*

footer

*/
@media screen and (max-width: 768px) {
  /* sp */
  #footer-menu {
    display: none;
  }
}
/*

main

*/
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  width: var(--wrapper-width);

  /* 下層ページ見出し
  ウィンドウ幅一杯（左右50pxの余白）に広げ、.wrapper 幅未満にはしない
  --window-width はJSによってclientWidthを取得
  */
  & > header {
    --header-width: max(
      var(--wrapper-width),
      calc(var(--window-width) - 100px)
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 calc(50% - var(--header-width) / 2);
    border-radius: 20px;
    padding: 40px 490px 40px
      clamp(60px, calc(var(--header-width) - 1300px), 200px);
    width: var(--header-width);
    min-height: 280px;
    background:
      url(naka_h1.min.svg) no-repeat right 36px top 92px / 450px auto,
      radial-gradient(
          circle 297px at calc(100% - 288px) 50%,
          #c3dab7 296px,
          transparent 297px
        )
        no-repeat,
      var(--color-bg-green);
    color: var(--color-text);

    & h1,
    & .lead {
      margin: 0;
      border: none;
      padding: 0;
      background: none;
      font-family: var(--font-b);
      font-size: 28px;
      font-weight: bold;
      line-height: 1.9;
      letter-spacing: 0.05em;
    }

    /* ページタイトル（1行目） */
    & h1 {
      color: var(--color-green-dark);
      font-size: var(--font-size-h1);
      line-height: 1.4;
      letter-spacing: 0.08em;
    }

    /* 副題（2行目） */
    & .lead {
      margin-top: 16px;
      font-size: var(--font-size-h1-sub);
      line-height: 1.4;
    }
  }
}
#breadcrumbs {
  align-self: flex-start;
  margin: 0;
  padding: 10px 0;
  font-size: 12px;
}

#breadcrumbs ul {
  display: inline;
  margin: 0;
}

#breadcrumbs,
#breadcrumbs ul {
  list-style-type: none;
}

#breadcrumbs li {
  display: inline;
}

#breadcrumbs ul li {
  margin-left: 0.5em;
}

#breadcrumbs ul ul:before {
  content: ">";
  margin-left: 0.5em;
}

article {
  width: 832px;
  box-sizing: border-box;
  padding: 0 var(--indent-width) 64px;
  font-size: var(--font-size-article);
  line-height: var(--line-height-article);

  & *:first-child {
    margin-top: 0;
  }

  & *:last-child {
    margin-bottom: 0;
  }

  & h2 {
    display: block;
    margin: var(--space-section) auto 36px;
    width: fit-content;
    color: var(--color-base);
    font-size: var(--font-size-h2);
    font-weight: 700;
    line-height: var(--line-height-heading);
    text-align: center;

    &::after {
      content: "";
      display: block;
      margin: 18px auto 0;
      width: 56px;
      height: 2px;
      background: var(--color-heading-line);
    }
    & a {
      display: flex;
      justify-content: center;
      color: inherit;
      text-decoration: none;
      &::after {
        content: "";
        display: block;
        margin-top: 0.6em;
        margin-left: 8px;
        border-style: solid;
        border-width: 3px 3px 0 0;
        border-color: var(--color-base);
        width: 10px;
        height: 10px;
        transform: rotate(45deg);
      }
    }
  }

  & h3 {
    display: flex;
    align-items: center;
    gap: 0 12px;
    border-bottom: solid 1px var(--color-base);
    margin: 40px 0 20px;
    padding: 0 0 8px 4px;
    font-size: var(--font-size-h3);
    font-weight: 700;
    line-height: var(--line-height-heading);
    &::before {
      content: "";
      flex-shrink: 0;
      display: block;
      width: 8px;
      height: 8px;
      background: var(--color-base);
    }
  }

  & h4 {
    margin: 2em 0 1em;
    color: var(--color-base);
    font-size: var(--font-size-h4);
    font-weight: 700;
    line-height: var(--line-height-heading);
  }

  & h5 {
    margin: 2em 0 1em;
    color: var(--color-base);
    font-size: 22px;
  }

  & h6 {
    margin: 1em 0;
    font-size: 22px;
    color: #000;
  }

  & h1 + h2,
  & h1 + h3,
  & h2 + h3 {
    margin-top: 1em;
  }

  & .entry-header {
    margin: 0 0 1em;
    font-size: 12px;
    text-align: right;
  }

  & .entry-meta dt,
  & .entry-meta dd {
    display: inline;
  }

  & .entry-meta .date {
    font-size: 12px;
  }

  & .entry-footer {
    clear: both;
    margin: 1em 0 0;
    border: dotted 1px #ccc;
    padding: 5px;
  }

  & .entry-date {
    text-align: center;
  }

  & section {
    margin: 0 calc(50% - calc(var(--window-width) / 2));
    padding: 64px 0;
    width: var(--window-width);
  }
}

.home article {
  padding-bottom: 0;
  width: auto;
}
/* 本文の文字サイズ・行間
  要素セレクタだけの弱い指定（:where で詳細度を上げない）。
  ページ別CSS・ウィジェットの指定があればそちらが優先される */
:where(body) article {
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-article);

  & p {
    margin: 0 0 22px;
    line-height: var(--line-height-article);
  }

  & p strong {
    font-weight: 700;
    background: linear-gradient(transparent 62%, #ffe582 62%);
  }

  & p a {
    color: var(--color-green-dark);
    text-decoration: underline;

    &:hover {
      color: #1a4a3e;
    }
  }

  & li {
    line-height: var(--line-height-li);
  }

  & th,
  & td {
    padding: 16px 22px;
    font-size: var(--font-size-article);
    line-height: var(--line-height-table);
  }

  & .note {
    font-size: var(--font-size-note);
    line-height: var(--line-height-note);
    color: var(--color-note);
  }
}

/* 共通パーツ /souzoku/index.pdf の数値 */
body {
  & #breadcrumbs {
    color: #555;
    line-height: 1.9;
  }

  /* CTA（クリームの枠） */
  & .widget-inquiry2 {
    & .head {
      font-size: 32px;
      font-weight: 500;
      line-height: 1.4;
    }

    & .call {
      & .title,
      & .hour {
        font-size: 14px;
        line-height: 1.2;
      }

      & .tel-number {
        font-size: 40px;
        line-height: 1.2;
      }
    }

    & .mail a.mail-btn {
      width: 300px;
      height: 56px;
      font-size: 16px;
      font-weight: 500;

      &::before {
        width: 24px;
      }
    }

    & .att {
      font-size: 12px;
      line-height: 1.75;
      color: var(--color-note);
    }
  }
}

@media screen and (max-width: 768px) {
  body .widget-inquiry2 {
    padding-right: 10px !important;
    padding-left: 10px !important;
    & .head {
      font-size: 24px;
    }

    & .call .tel-number {
      font-size: 32px;
    }
  }
}
@media screen and (max-width: 1100px) {
  #gotop {
    width: 100%;
  }

  #gotop .wrapper {
    width: 100%;
  }

  #gotop a {
    margin-right: 0;
  }

  section,
  section h2 {
    margin-right: -10px;
    margin-left: -10px;
    box-sizing: border-box;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --indent-width: 10px;
  }

  main {
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 0 var(--indent-width);
    width: 100%;
  }
  #breadcrumbs {
    overflow: auto;
  }
  /* 下層ページ見出し（イラストは文字の下に配置） */
  main > header {
    margin: 0;
    border-radius: 12px;
    padding: 24px 20px 150px;
    width: auto;
    min-height: 0;
    background:
      url(naka_h1.min.svg) no-repeat right 16px bottom -10px / 280px auto,
      radial-gradient(
          circle 170px at calc(100% - 150px) calc(100% + 40px),
          #c3dab7 169px,
          transparent 170px
        )
        no-repeat,
      var(--color-bg-green);

    & h1,
    & .lead {
      line-height: 1.4;
    }

    & h1 {
      font-size: var(--font-size-h1);
    }

    & .lead {
      margin-top: 8px;
      font-size: var(--font-size-h1-sub);
    }
  }
  /* 中ページ */
  article {
    --indent-width: 10px;
    padding: 0 0 20px;
    width: auto;
    font-size: var(--font-size-article);
    line-height: var(--line-height-base);

    & h1 {
      margin-right: -10px;
      margin-left: -10px;
      font-size: var(--font-size-h1);
    }

    & h2 {
      margin: var(--space-section) auto 24px;
      font-size: var(--font-size-h2);
    }

    & h3 {
      margin: 1em 0;
      font-size: var(--font-size-h3);
    }

    & h4 {
      font-size: var(--font-size-h4);
    }

    & section {
      margin-right: calc(50% - calc(var(--window-width) / 2));
      margin-left: calc(50% - calc(var(--window-width) / 2));
    }
  }
}

/*************************************************

  サイト共通：ヘッダー

*************************************************/
#header {
  position: relative;
  background: #fff;
  z-index: 100;

  & .wrapper {
    box-sizing: border-box;
    width: auto;
    padding: 0 14px 0 36px;
  }
}

#header-content {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas:
    "desc tel mail"
    "logo tel mail";
  align-items: start;
  column-gap: 14px;
  box-sizing: border-box;
  height: 135px;
  padding-top: 18px;
}

#site-name {
  grid-area: logo;
  grid-row: 1 / -1;
  align-self: center;
  margin: 0;
  min-height: 0;
  width: fit-content;
  font-size: 1em;
  line-height: 1;

  & img {
    display: block;
    width: 385px;
    height: auto;
  }
}

#blogdescription {
  grid-area: desc;
  margin-left: 8px;
  width: fit-content;
  color: var(--color-green);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

#header-tel a {
  grid-area: tel;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  color: var(--color-text);
  text-decoration: none;

  & .tel-number {
    font-family: var(--font-tel);
    font-size: 30px;
  }

  & .hour {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1;
  }
}

#header-mail {
  grid-area: mail;
  margin-top: 7px;

  & .mail-btn {
    gap: 14px;
    width: 182px;
    height: 55px;
    font-size: 16px;
  }
}

/* グローバルメニュー */
#header-menu {
  position: absolute;
  top: calc(88px + var(--wp-admin--admin-bar--height, 0px));
  right: 14px;
  z-index: 101;

  & > .sm-simple {
    border: none;
    background: transparent;
    box-shadow: none;

    & > li {
      border: none;
    }

    & a,
    & a:hover,
    & a:focus,
    & a:active {
      /* padding: 8px 24px;
      background: transparent; */
      color: var(--color-text);
      /* font-family: var(--font-b);
      font-size: 15px;
      line-height: 1.4; */
    }

    & > li:last-child > a {
      padding-right: 0;
    }

    & a.has-submenu {
      padding-right: 40px;
    }

    /* サブメニュー矢印（緑のV字） */
    & a .sub-arrow {
      top: 50%;
      right: 20px;
      margin-top: -7px;
      width: 12px;
      height: 12px;
      background: transparent;

      &::before {
        content: "";
        display: block;
        margin: 1px auto 0;
        border-right: solid 2px var(--color-green);
        border-bottom: solid 2px var(--color-green);
        width: 7px;
        height: 7px;
        transform: rotate(45deg);
      }
    }

    & ul {
      border: solid 1px #ddd;
      background: #fff;

      & a {
        padding: 10px 20px;
        font-size: 14px;
      }
    }
  }
}

/*************************************************

  共通パーツ

*************************************************/
/* PC（iOS/Android 以外）では電話リンクを無効化
  body.mobile は js/pokerface.js で iOS/Android の場合のみ付与 */
body:not(.mobile) a[href^="tel:"] {
  pointer-events: none;
  cursor: default;
}

/* メールボタン（a.mail-btn） */
a.mail-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  box-sizing: border-box;
  margin: 0;
  border-radius: 2px;
  width: 302px;
  height: 56px;
  background: var(--color-mail);
  color: #fff;
  font-family: var(--font-b);
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-decoration: none;

  &::before {
    content: "";
    flex-shrink: 0;
    display: block;
    width: 1.5em;
    aspect-ratio: 184/129.5;
    background: currentColor;
    mask: url(mail_icon.min.svg) no-repeat center / contain;
  }
}

/* 問い合わせボックス */
.widget-inquiry {
  box-sizing: border-box;
  margin: 0 auto;
  border-radius: 8px;
  padding: 20px 40px 22px;
  width: 805px;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);

  & .head {
    margin: 0 0 12px;
    color: var(--color-green);
    font-family: var(--font-b);
    font-size: 22px;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 0.03em;
  }

  & .outer,
  & .content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 46px;

    & > .head,
    & > .att {
      flex-basis: 100%;
    }
  }

  & .call {
    & a {
      display: flex;
      flex-direction: column;
      align-items: center;
      color: var(--color-text);
      text-decoration: none;
    }
    & .tel-number {
      font-family: var(--font-tel);
      font-size: 48px;
    }

    & .hour {
      margin-top: 10px;
      font-size: 14px;
      line-height: 1;
    }
  }

  & .mail {
    margin: 0 0 10px;
  }

  & div.att {
    margin: 14px 0 0;
    font-size: 13px;
    text-align: center;
  }
}

/* ※ を赤にしない */
.widget-inquiry .att > span:first-child,
#footer-inquiry .att > span,
#footer-inquiry .att span > span:first-child,
section.fee .att > span:first-child {
  margin-right: 0.5em;
  color: inherit;
}

/*************************************************

  トップページ

*************************************************/
.home #breadcrumbs,
.home .entry-footer {
  display: none;
}
#contents > article {
  /* 記事用の見出しスタイルを打ち消す */
  & section {
    position: relative;
    box-sizing: border-box;
    /* padding: 64px max(16px, calc(var(--window-width) / 2 - 550px)); */
    padding: 64px 0;
  }

  & section h2 {
    display: block;
    margin: 0;
    border: none;
    padding: 0;
    min-height: 0;
    width: auto;
    background: none;
    color: var(--color-green-dark);
    font-size: var(--font-size-h2);
    font-weight: 700;
    line-height: var(--line-height-heading);
    text-align: center;
    letter-spacing: var(--letter-spacing-article);

    &::before,
    &::after {
      content: none;
    }
  }

  & section h3 {
    margin: 0;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
  }

  & section > .lead {
    margin-top: 24px;
    font-size: var(--font-size-article);
    line-height: var(--line-height-article);
    text-align: center;
    letter-spacing: var(--letter-spacing-article);
  }

  & img {
    max-width: 100%;
    height: auto;
  }

  /* もっと見るボタン */
  & .more {
    margin-top: 40px;
    text-align: center;

    & a {
      position: relative;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      box-sizing: border-box;
      /* border-radius: 34px; */
      padding: 0 64px 0 48px;
      min-width: 310px;
      height: 56px;
      background: var(--gradient-btn);
      color: #fff;
      font-family: var(--font-b);
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-decoration: none;

      &::after {
        content: "";
        position: absolute;
        right: 24px;
        top: calc(50% - 8px);
        width: 20px;
        height: 16px;
        background: currentColor;
        mask: url(arrow.min.svg) no-repeat center / contain;
      }
    }
  }

  /* 小さいボタン */
  & .stage .more,
  & .intro .more {
    margin-top: 20px;

    & a {
      border-radius: 24px;
      padding: 0 52px 0 36px;
      min-width: 232px;
      height: 48px;

      &::after {
        right: 20px;
        top: calc(50% - 7px);
        width: 18px;
        height: 14px;
      }
    }
  }

  /*----------------------------------
    メインビジュアル
  ----------------------------------*/
  & .hero {
    padding-top: 88px;
    padding-bottom: 0;
    background:
      image-set(url(main_img.webp) 1x, url(main_img@2x.webp) 2x) no-repeat right
        0 top 45px / min(834px, 52%) auto,
      linear-gradient(var(--color-bg-green), var(--color-bg-green)) no-repeat 0
        0 / 100% 600px;

    & .wrapper {
      position: relative;
      width: auto;
      max-width: var(--wrapper-width);
    }

    & h2 {
      color: var(--color-text);
      font-size: 36px;
      font-weight: 500;
      line-height: 1.3;
      text-align: left;
      letter-spacing: 0.02em;
      &::before,
      &::after {
        content: none;
      }
      /* 2行目：<span>揉める前からの<em>相続手続</em>を、金沢で。</span> */
      & span {
        display: block;
        margin-top: 8px;
        color: var(--color-green-mid);
        font-size: 48px;
        font-weight: 900;
        line-height: 1.3;
      }

      & em {
        color: var(--color-yellow);
        font-size: 1.25em;
        font-style: normal;
      }
    }

    & .lead {
      margin: 20px 0 0;
      max-width: 20em;
      font-size: 22px;
      line-height: 1.9;
      text-align: left;
      letter-spacing: 0;
    }

    & ul {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin: 28px 0 0;
      padding: 0;
      list-style-type: none;
    }

    & li {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      box-sizing: border-box;
      border: solid 1px var(--color-green);
      border-radius: 50%;
      padding: 20px 0 0;
      width: 158px;
      height: 158px;
      background: #fff;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
      font-family: var(--font-b);
      font-size: 18px;
      line-height: 1.35;
      text-align: center;

      &::before {
        content: "";
        flex-shrink: 0;
        display: block;
        margin-bottom: 14px;
        aspect-ratio: 64/54;
        width: auto;
        height: 40px;
        background: no-repeat center / contain;
      }

      &:nth-child(1)::before {
        background-image: url(main_img01.min.svg);
      }
      &:nth-child(2)::before {
        background-image: url(main_img02.min.svg);
      }
      &:nth-child(3)::before {
        background-image: url(main_img03.min.svg);
      }
      &:nth-child(4)::before {
        background-image: url(main_img04.min.svg);
      }

      & span {
        margin-top: 8px;
        font-size: 14px;
      }
    }

    & .widget-inquiry {
      margin-top: 32px;
    }
  }

  /*----------------------------------
    あなたの状況に合わせて
  ----------------------------------*/
  & section.stage {
    /* <h2><span>あなたの状況</span>に合わせて</h2> */
    & h2 {
      &::after {
        content: none;
      }
      & span {
        color: var(--color-green-mid);
      }
    }

    & > .lead {
      margin-right: auto;
      margin-left: auto;
      max-width: 29em;
    }

    & .content {
      display: flex;
      justify-content: center;
      gap: 21px;
      margin-top: 40px;
    }

    & .stage {
      --stage-color: var(--color-green);
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      border: solid 1px var(--color-green);
      border-radius: 4px;
      padding: 12px 16px 24px;
      width: 352px;
      background: #fff;
      box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
      text-align: center;

      &.s2 {
        --stage-color: var(--color-green-mid);
      }
      &.s3 {
        --stage-color: var(--color-teal);
      }

      & .thumb {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        height: 170px;

        & img {
          width: auto;
          max-height: 100%;
        }
      }

      & .head {
        margin-top: 14px;
        color: var(--stage-color);
        font-family: var(--font-b);
        font-size: var(--font-size-h3);
        font-weight: 700;
        line-height: var(--line-height-heading);
        &::before {
          content: none;
        }
      }

      & .body {
        flex-grow: 1;
        margin-top: 12px;
        font-size: var(--font-size-article);
        line-height: var(--line-height-article);
        text-align: left;
      }

      & .more a {
        background: var(--stage-color);
      }
    }
  }

  /*----------------------------------
    対応サービス
  ----------------------------------*/
  & section.service {
    /* 親（中ページの article 832px）より広いため auto では中央にならない。親の中心基準で配置 */
    --service-width: min(1300px, calc(var(--window-width) - 32px));
    margin: 0 calc(50% - var(--service-width) / 2);
    border-radius: 24px;
    padding: 72px 100px 64px;
    width: var(--service-width);
    background:
      image-set(url(service_bg.webp) 1x, url(service_bg@2x.webp) 2x) no-repeat
        right top / 845px auto,
      var(--color-green-dark);
    color: #fff;

    & h2 {
      color: #fff;
      text-align: left;
    }

    & > .lead {
      margin-top: 24px;
      max-width: 25em;
      text-align: left;
    }

    & .content {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 24px 20px;
      margin-top: 56px;
    }

    & .service {
      grid-column: span 3;
      display: grid;
      grid-template-columns: 90px 1fr;
      grid-template-rows: auto 1fr auto;
      column-gap: 20px;
      box-sizing: border-box;
      border-radius: 4px;
      padding: 24px 16px 16px 20px;
      background: #fff;
      color: var(--color-text);

      /* 下段3枚 */
      &:nth-child(n + 5) {
        grid-column: span 2;
        grid-template-columns: 76px 1fr;
        column-gap: 14px;
        padding-left: 14px;

        /* 3列で幅が狭いため 20px（24px だと「遺言書作成・生前対策」が折り返す） */
        & .head {
          font-size: 20px;
        }
      }

      & .thumb {
        grid-row: 1 / 4;
        align-self: center;
        text-align: center;

        & img {
          width: 100%;
          max-height: 80px;
          object-fit: contain;
        }
      }

      & .head {
        color: var(--color-green);
        font-family: var(--font-b);
        font-size: var(--font-size-h3);
        font-weight: 700;
        line-height: var(--line-height-heading);
        &::before {
          content: none;
        }
      }

      & .body {
        margin-top: 10px;
        font-size: var(--font-size-article);
        line-height: var(--line-height-article);
      }

      /* 詳しく見る（丸矢印付き） */
      & .more {
        justify-self: end;
        margin-top: 6px;

        & a {
          border-radius: 16px;
          padding: 0 40px 0 30px;
          min-width: 154px;
          height: 32px;
          background: var(--color-green);
          font-size: 16px;

          &::after {
            content: "→";
            right: 4px;
            top: calc(50% - 10px);
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            background: #fff;
            color: var(--color-green);
            font-size: 12px;
            line-height: 1;
            mask: none;
          }
        }
      }
    }
  }

  /* 中ページ（/service/ など）：見出し・リード・背景なし */
  body:not(.home) & section.service {
    padding-top: 0;
    padding-bottom: 0;
    background: none;

    & > h2,
    & > .lead {
      display: none;
    }

    & .content {
      margin-top: 0;
    }

    & .service {
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    }
  }

  /*----------------------------------
    問い合わせ（中間）
  ----------------------------------*/
  & section.inquiry {
    & .widget-inquiry {
      background: var(--color-bg-cream);
    }
  }

  & section.inquiry2 {
    padding-top: 0;
    padding-bottom: 88px;
    background: var(--color-bg-cream);
  }

  /*----------------------------------
    選ばれる理由
  ----------------------------------*/
  & section.riyu {
    background: linear-gradient(#fff 60px, var(--color-bg-green) 700px);

    /* <h2><span>当事務所が</span>選ばれる理由</h2> */
    & h2 {
      margin-top: 10px;
      &::after {
        content: none;
      }
      & span {
        display: block;
        color: var(--color-text);
        font-size: var(--font-size-h1-sub);
      }
    }

    & > .thumb {
      position: absolute;
      top: 55px;
      left: max(16px, calc(var(--window-width) / 2 - 580px));
      width: 272px;

      & img {
        display: block;
        width: 100%;
      }
    }

    & > .lead {
      margin-top: 30px;
      letter-spacing: 0.1em;
    }

    & .content {
      position: relative;
      box-sizing: border-box;
      margin: 56px auto 0;
      border-radius: 20px;
      padding: 32px 70px 36px;
      width: 1000px;
      max-width: 100%;
      background: #fff;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

    & .riyu {
      display: grid;
      grid-template-columns: 1fr 247px;
      grid-template-rows: auto 1fr;
      column-gap: 60px;
      border-bottom: solid 1px #666;
      padding: 28px 10px;

      &:first-child {
        padding-top: 0;
      }

      &:last-child {
        border-bottom: none;
        padding-bottom: 0;
      }

      & .head {
        display: flex;
        align-items: center;
        gap: 16px;
        color: var(--color-green-dark);
        font-family: var(--font-b);
        font-size: var(--font-size-h3);
        font-weight: 700;
        line-height: var(--line-height-heading);
        letter-spacing: var(--letter-spacing-article);
        &::before {
          content: none;
        }
        /* 「理由01」バッジ（2文字幅で折り返して2段表示） */
        & span:first-child {
          flex-shrink: 0;
          border-radius: 3px;
          padding: 4px 10px;
          width: 2.3em;
          background: var(--color-badge);
          color: var(--color-green);
          font-size: 16px;
          line-height: 1.3;
          text-align: center;
          word-break: break-all;
          letter-spacing: 0.05em;
        }
      }

      & .body {
        margin-top: 24px;
        font-size: var(--font-size-article);
        line-height: var(--line-height-article);
      }

      & .thumb {
        grid-column: 2;
        grid-row: 1 / 3;

        & img {
          display: block;
          border-radius: 8px;
        }
      }
    }
  }

  /*----------------------------------
    解決事例
  ----------------------------------*/
  & section.case {
    background: linear-gradient(
      var(--color-bg-green) 440px,
      var(--color-bg-cream) 440px
    );
    & h2 {
      &::after {
        content: none;
      }
    }
    & > .lead {
      letter-spacing: 0.1em;
    }

    & .content {
      display: flex;
      justify-content: center;
      gap: 18px;
      margin-top: 60px;
    }

    & .case {
      position: relative;
      overflow: hidden;
      border-radius: 6px;
      padding-bottom: 20px;
      width: 356px;
      background: #fff;
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);

      & .thumb img {
        display: block;
        width: 100%;
      }

      & .number {
        position: absolute;
        top: 22px;
        left: 0;
        border-radius: 0 4px 4px 0;
        padding: 4px 20px;
        background: var(--color-green-dark);
        color: #fff;
        font-family: var(--font-b);
        font-size: 16px;
        line-height: 1.4;
      }

      & .head {
        margin: 22px 22px 0;
        color: var(--color-green-dark);
        font-family: var(--font-b);
        font-size: var(--font-size-h3);
        font-weight: 700;
        line-height: var(--line-height-heading);
        letter-spacing: var(--letter-spacing-article);
        &::before {
          content: none;
        }
      }

      & .body {
        margin: 16px 22px 0;
        font-size: var(--font-size-article);
        line-height: var(--line-height-article);
      }
    }

    & > .more {
      margin-top: 66px;
    }
  }

  /*----------------------------------
    弁護士紹介
  ----------------------------------*/
  & section.intro {
    display: grid;
    grid-template-columns: 494px minmax(0, 560px);
    grid-template-rows: repeat(4, auto) 1fr;
    justify-content: center;
    column-gap: 46px;
    padding-top: 128px;
    padding-bottom: 128px;
    background: var(--color-bg-cream);

    /* 白い角丸ボックス */
    &::before {
      content: "";
      position: absolute;
      top: 64px;
      right: max(16px, calc(var(--window-width) / 2 - 620px));
      bottom: 64px;
      left: max(16px, calc(var(--window-width) / 2 - 620px));
      border-radius: 24px;
      background: #fff;
    }

    & > * {
      position: relative;
    }
    & .thumb {
      grid-row: 1 / 6;

      & img {
        display: block;
        border-radius: 16px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
      }
    }

    & h2 {
      margin-bottom: 24px;
      text-align: left;
      &::after {
        content: none;
      }
    }

    & .head {
      font-family: var(--font-b);
      font-size: var(--font-size-h3);
      font-weight: 700;
      line-height: var(--line-height-heading);
      &::before {
        content: none;
      }
    }

    & .data {
      margin-top: 10px;
      font-family: var(--font-b);
      font-size: var(--font-size-article);
    }

    & .body {
      margin-top: 16px;
      font-size: var(--font-size-article);
      line-height: var(--line-height-article);
    }

    & .more {
      justify-self: end;
      margin-top: 24px;
    }
  }

  /*----------------------------------
    弁護士費用
  ----------------------------------*/
  & section.fee {
    display: grid;
    grid-template-columns: 322px minmax(0, 748px);
    grid-template-rows: auto auto 1fr auto auto;
    justify-content: center;
    column-gap: 30px;
    padding-bottom: 52px;

    & h2 {
      grid-column: 1;
      grid-row: 1;
      text-align: left;
      &::after {
        content: none;
      }
    }

    & > .lead {
      grid-column: 1;
      grid-row: 2 / 4;
      margin-top: 18px;
      text-align: left;
      letter-spacing: 0;

      /* イラスト */
      &::after {
        content: "";
        display: block;
        margin-top: 80px;
        width: 100%;
        aspect-ratio: 418.501/193.186;
        background: url(fee_bg.min.svg) no-repeat center / contain;
      }
    }

    & .table {
      grid-column: 2;
      grid-row: 1 / 4;
      margin: 0;
      width: 100%;

      & th,
      & td {
        border: none;
        border-bottom: solid 1px #666;
        padding: 16px 22px;
        background: #fff;
        font-size: var(--font-size-article);
        line-height: var(--line-height-table);
        text-align: left;
        vertical-align: middle;
      }

      & tbody th {
        width: 44%;
        font-family: var(--font-gothic);
        font-weight: 700;
      }

      & tbody td {
        border-left: solid 1px #ccc;
      }

      & thead th {
        border-bottom: none;
        padding: 14px 16px;
        background: var(--color-green-dark);
        color: #fff;
        font-size: 18px;
        font-weight: bold;
        text-align: center;

        & + th {
          border-left: solid 1px rgba(255, 255, 255, 0.6);
        }
      }
    }

    & > .att {
      grid-column: 2;
      grid-row: 4;
      margin-top: 14px;
      color: var(--color-note);
      font-size: var(--font-size-note);
      line-height: var(--line-height-note);
    }

    & > .more {
      grid-column: 1 / -1;
      grid-row: 5;
      margin-top: 40px;
    }
  }

  /*----------------------------------
    相談の流れ
  ----------------------------------*/
  & section.flow {
    padding-top: 128px;
    background:
      image-set(url(flow_bg.webp) 1x, url(flow_bg@2x.webp) 2x) no-repeat center /
        cover,
      #7eae59;
    color: #fff;

    & h2 {
      color: #fff;
      &::after {
        content: none;
      }
    }

    & > .lead {
      margin-top: 30px;
      font-family: var(--font-b);
      font-weight: 700;
    }

    & .widget-flow {
      display: flex;
      justify-content: center;
      gap: 28px;
      margin: 68px 0 0;
    }

    & .widget-flow .step {
      position: relative;
      box-sizing: border-box;
      margin: 0;
      border-radius: 12px;
      padding: 18px 16px 20px;
      width: 254px;
      background: #fff;
      color: var(--color-text);
      text-align: center;

      &::before {
        content: none;
      }

      /* ステップ間の矢印 */
      &::after {
        content: "";
        position: absolute;
        top: calc(50% - 7px);
        right: -22px;
        left: auto;
        margin: 0;
        border: none;
        width: 16px;
        height: 13px;
        background: #fff;
        mask: url(arrow.min.svg) no-repeat center / contain;
      }

      &:last-child::after {
        content: none;
      }

      & .thumb img {
        width: auto;
        height: 54px;
      }

      & .head {
        justify-content: center;
        margin: 14px auto 0;
        border: none;
        padding: 0;
        background: none;
        color: var(--color-green);
        font-family: var(--font-b);
        font-size: var(--font-size-h3);
        font-weight: 700;
        line-height: var(--line-height-heading);

        &::before {
          content: none;
        }
      }

      & .body {
        margin-top: 6px;
        padding: 0;
        font-size: var(--font-size-article);
        line-height: var(--line-height-li);
      }
    }

    & > .more {
      margin-top: 68px;

      & a {
        background: #fff;
        color: var(--color-green);
      }
    }
  }

  /*----------------------------------
    よくある質問
  ----------------------------------*/
  & section.faq {
    & h2 {
      margin-bottom: 64px;
      &::after {
        content: none;
      }
    }

    & .widget-qa {
      margin: 0 auto;
      width: 980px;
      max-width: 100%;
    }

    & .qa {
      margin-top: 18px;
      border: solid 1px #999;
      border-radius: 6px;
      background: #fff;

      &:first-child {
        margin-top: 0;
      }
    }

    & .qa .head {
      position: relative;
      padding: 16px 72px 16px 96px;
      font-family: var(--font-b);
      font-size: var(--font-size-article);
      font-weight: 700;
      line-height: var(--line-height-heading);
      letter-spacing: var(--letter-spacing-article);
      cursor: pointer;

      &::before {
        content: "Q.";
        position: absolute;
        top: 16px;
        left: 50px;
        margin-top: 0;
        padding: 0;
        width: auto;
        height: auto;
        background: unset;
        color: var(--color-green);
        font-weight: 700;
      }

      /* ＋アイコン */
      &::after {
        content: "";
        position: absolute;
        top: calc(50% - 9px);
        right: 32px;
        width: 18px;
        height: 18px;
        background:
          linear-gradient(var(--color-green-dark), var(--color-green-dark))
            no-repeat center / 100% 2px,
          linear-gradient(var(--color-green-dark), var(--color-green-dark))
            no-repeat center / 2px 100%;
      }
    }

    /* －アイコン（開いている時。1件目は初期表示で開いている） */
    & .qa:not(:first-child) .head.open::after,
    & .qa:first-child .head:not(.open)::after {
      background: linear-gradient(
          var(--color-green-dark),
          var(--color-green-dark)
        )
        no-repeat center / 100% 2px;
    }

    & .qa .body {
      display: none;
      margin: 0 56px;
      border-top: solid 1px #666;
      padding: 20px 0 24px;
      font-size: var(--font-size-article);
      line-height: var(--line-height-article);

      &::before {
        content: "A.";
        margin-right: 4px;
        color: #c99a00;
        font-weight: 700;
      }
    }

    & .qa:first-child .body {
      display: block;
    }
  }

  /*----------------------------------
    事務所案内
  ----------------------------------*/
  & section.office {
    padding-top: 50px;
    padding-bottom: 67px;
    background:
      image-set(url(office_bg.webp) 1x, url(office_bg@2x.webp) 2x) no-repeat
        center bottom / cover,
      #a4e0fe;

    & h2 {
      margin-bottom: 40px;
      &::after {
        content: none;
      }
    }

    & .content {
      display: grid;
      grid-template-columns: 556px 1fr;
      column-gap: 30px;
      box-sizing: border-box;
      margin: 0 auto;
      border-radius: 20px;
      padding: 56px 32px 40px 48px;
      width: 1136px;
      max-width: 100%;
      background: #fff;
    }

    & .gmap {
      margin: 0;
      width: 100%;
      height: 100%;
    }

    & .table {
      align-self: start;
      margin: 0;
      width: 100%;

      & th,
      & td {
        border: none;
        border-bottom: solid 1px #666;
        padding: 14px 8px;
        background: transparent;
        font-size: var(--font-size-article);
        line-height: var(--line-height-table);
        text-align: left;
        vertical-align: top;
      }

      & th {
        width: 9.5em;
        font-weight: bold;
        white-space: nowrap;
      }

      & tr:first-child > * {
        padding-top: 0;
      }

      & tr:last-child > * {
        border-bottom: none;
      }
    }
  }

  /*----------------------------------
    相談の流れ（縦並び・STEP番号付き）
  ----------------------------------*/
  & section.flow2 {
    & .wrapper {
      counter-reset: flow2-step;
      box-sizing: border-box;
      margin: 0 auto;
      width: var(--wrapper-width);
      max-width: 100%;
    }

    & .step {
      counter-increment: flow2-step;
      position: relative;
      box-sizing: border-box;
      margin: 0 0 94px;
      border-radius: 20px;
      padding: 28px 72px 24px;
      background: var(--color-bg-green);

      /* ステップ間の下向き三角 */
      &::after {
        content: "";
        position: absolute;
        top: calc(100% + 34px);
        left: calc(50% - 42px);
        border-style: solid;
        border-width: 26px 42px 0;
        border-color: var(--color-green-dark) transparent transparent;
        width: 0;
        height: 0;
      }

      &:last-child {
        margin-bottom: 0;

        &::after {
          content: none;
        }
      }

      & .head {
        --badge-size: 56px;
        position: relative;
        display: flex;
        align-items: center;
        margin: 0;
        border: none;
        padding: 0 0 0 calc(var(--badge-size) + 16px);
        min-height: var(--badge-size);
        background: none;
        color: var(--color-green-dark);
        font-family: var(--font-b);
        font-size: var(--font-size-h3);
        font-weight: 700;
        line-height: var(--line-height-heading);
        letter-spacing: var(--letter-spacing-article);

        /* STEP番号（黄色の正方形。上段 STEP / 下段 番号） */
        &::before,
        &::after {
          position: absolute;
          left: 0;
          width: var(--badge-size);
          color: var(--color-green);
          font-family: var(--font-tel);
          font-weight: 500;
          line-height: 1;
          text-align: center;
          letter-spacing: 0.05em;
        }

        &::before {
          content: "STEP";
          top: calc(50% - var(--badge-size) / 2);
          box-sizing: border-box;
          border-radius: 4px;
          margin: 0;
          padding-top: calc(var(--badge-size) * 0.17);
          height: var(--badge-size);
          background: #fde27e;
          font-size: calc(var(--badge-size) * 0.25);
        }

        &::after {
          content: counter(flow2-step, decimal-leading-zero);
          top: calc(50% + var(--badge-size) * 0.02);
          font-size: calc(var(--badge-size) * 0.36);
        }
      }

      & .body {
        margin-top: 18px;
        padding: 0;
        font-size: var(--font-size-article);
        line-height: var(--line-height-article);
      }
    }
  }
}

/*************************************************

  フッター

*************************************************/
/* フッター上部 問い合わせ */
#footer-inquiry {
  display: grid;
  grid-template-columns: repeat(2, 470px);
  justify-content: center;
  column-gap: 18px;
  padding: 56px 16px 64px;
  background: var(--color-green-dark);
  color: #fff;
  text-align: center;

  & > .head,
  & > .lead,
  & > .att {
    grid-column: 1 / -1;
  }

  & .head {
    font-family: var(--font-b);
    font-size: 44px;
    line-height: 1.4;
  }

  & .lead {
    margin: 16px 0 54px;
    font-size: 18px;
  }

  & .call a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 108px;
    background: var(--color-bg-green);
    color: var(--color-text);
    text-decoration: none;

    & .tel-number {
      font-family: var(--font-tel);
      font-size: 48px;
    }

    & .hour {
      margin-top: 12px;
      font-size: 15px;
      line-height: 1;
    }
  }

  & .mail-btn {
    gap: 24px;
    width: 100%;
    height: 108px;
    box-shadow: 4px 6px 0 #644f00;
    font-size: 36px;
    font-weight: normal;

    &::before {
      width: 28px;
    }
  }

  & div.att {
    display: table;
    margin: 32px auto 0;
    font-size: 13px;
    line-height: 1.9;
  }
}

#footer {
  border-top: none;
  background: #fff;

  & .wrapper {
    display: grid;
    grid-template-columns: 1fr 650px;
    grid-template-rows: repeat(3, auto) 1fr;
    column-gap: 40px;
    padding-top: 40px;
  }

  & #footer-name {
    width: 350px;
    height: auto;
    /* max-width: 100%;
    aspect-ratio: 385/49;
    background: image-set(url(header-logo.webp) 1x, url(header-logo@2x.webp) 2x)
      no-repeat 0 0 / contain;
    white-space: nowrap;
    overflow: hidden;
    text-indent: 100%; */
  }

  & #footer-desc {
    margin-top: 12px;
    color: var(--color-green);
    font-size: 16px;
    line-height: 1.75;
  }

  & #footer-content {
    /* pre-line で生じる先頭の空行ぶんを詰める */
    margin-top: calc(10px - 1.85em);
    font-size: 15px;
    line-height: 1.85;
    white-space: pre-line;
  }

  & .more {
    margin-top: 10px;

    & a {
      position: relative;
      display: inline-flex;
      align-items: center;
      box-sizing: border-box;
      border-radius: 16px;
      padding: 0 52px 0 20px;
      height: 32px;
      background: var(--gradient-btn);
      color: #fff;
      font-family: var(--font-b);
      font-size: 13px;
      font-weight: bold;
      text-decoration: none;

      &::after {
        content: "";
        position: absolute;
        top: calc(50% - 7px);
        right: 14px;
        width: 18px;
        height: 14px;
        background: currentColor;
        mask: url(arrow.min.svg) no-repeat center / contain;
      }
    }
  }
}

#footer-menu {
  grid-column: 2;
  grid-row: 1 / 5;
  display: grid;
  grid-template-columns: 1fr 1fr auto;

  & .head {
    border-bottom: solid 1px #666;
    padding: 0 8px 2px;
    font-family: var(--font-b);
    font-size: 16px;
  }

  & ul {
    margin: 14px 0 0 18px;
    padding: 0;
    list-style-type: none;
  }

  & li {
    font-size: 16px;
    line-height: 1.75;
    white-space: nowrap;
  }

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

#copyright {
  margin-top: 18px;
  border-top: solid 1px #999;
  padding: 14px 0;
  font-size: 12px;
  text-align: center;
}

/*************************************************

  スマホ（sp-index.png 準拠：750px幅デザインの1/2）

*************************************************/
@media screen and (max-width: 768px) {
  /*----------------------------------
    ヘッダー
  ----------------------------------*/
  #header .wrapper {
    padding: 0 60px 0 10px;
  }

  #header-content {
    display: flex;
    flex-direction: column;
    height: 78px;
    padding-top: 9px;
  }

  #blogdescription {
    order: -1;
    margin-left: 6px;
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  #site-name {
    margin-top: 6px;

    & img {
      width: 275px;
      max-width: 100%;
    }
  }

  #header-tel,
  #header-mail,
  #header-menu {
    display: none;
  }

  /* ハンバーガーボタン（濃い緑の四角＋「メニュー」） */
  .sp-menu-btn {
    top: 6px;
    right: 10px;
    border-radius: 0;
    padding: 0;
    width: 40px;
    height: 40px;
    background: var(--color-green-dark);
    text-indent: 40px;

    &::after {
      content: "メニュー";
      position: absolute;
      left: 0;
      bottom: 3px;
      width: 100%;
      color: #fff;
      font-size: 7px;
      line-height: 1;
      text-align: center;
      text-indent: 0;
    }
  }

  .sp-menu-btn-icon,
  .sp-menu-btn-icon:before,
  .sp-menu-btn-icon:after {
    left: calc(50% - 11.5px);
    width: 23px;
    background: #fff;
  }

  .sp-menu-btn-icon {
    top: 16px;
  }

  .sp-menu-btn-icon:before {
    top: -8px;
    left: 0;
  }

  .sp-menu-btn-icon:after {
    top: 8px;
    left: 0;
  }

  #sp-menu-state:checked ~ .sp-menu-btn .sp-menu-btn-icon:before,
  #sp-menu-state:checked ~ .sp-menu-btn .sp-menu-btn-icon:after {
    top: 0;
  }

  /*----------------------------------
    共通パーツ
  ----------------------------------*/
  a.mail-btn {
    gap: 26px;
    width: 217px;
    height: 40px;
    font-size: 13px;

    &::before {
      width: 19px;
    }
  }

  .widget-inquiry {
    border-radius: 4px;
    padding: 22px 16px 26px;

    & .head {
      margin-bottom: 18px;
      font-size: 24px;
    }

    & .outer,
    & .content {
      flex-direction: column;
    }

    & .call {
      & .tel-number {
        font-size: 34px;
      }

      & .hour {
        margin-top: 8px;
        font-size: 12px;
      }
    }

    & .mail {
      margin: 22px 0 0;
    }

    & div.att {
      margin-top: 12px;
      font-size: 12px;
    }
  }

  /*----------------------------------
    トップページ
  ----------------------------------*/
  #contents > article {
    & section {
      padding: 32px 10px;
    }

    & section > .lead {
      margin-top: 14px;
    }

    & .more {
      margin-top: 40px;

      & a {
        border-radius: 28px;
        padding: 0 40px 0 32px;
        min-width: 250px;
        height: 56px;
        line-height: 1.3;

        &::after {
          right: 20px;
        }
      }
    }

    /* メインビジュアル */
    & .hero {
      padding: 167px 10px 0;
      background: linear-gradient(var(--color-bg-green), var(--color-bg-green))
        no-repeat 0 0 / 100% calc(100% - 168px);

      /* 写真（上部に配置） */
      &::before {
        content: "";
        position: absolute;
        top: 18px;
        right: 10px;
        left: 10px;
        height: 184px;
        background: image-set(url(main_img.webp) 1x, url(main_img@2x.webp) 2x)
          no-repeat 70% 20% / cover;
      }

      & h2 {
        position: relative;
        color: #fff;
        font-size: 4.8vw;
        line-height: 1.6;
        font-weight: bold;
        letter-spacing: 0;
        /* 写真の上でも読めるよう、影を重ねて濃く広くする */
        text-shadow:
          0 0 2px rgba(0, 0, 0, 0.9),
          0 0 6px rgba(0, 0, 0, 0.8),
          0 0 12px rgba(0, 0, 0, 0.6);

        & span {
          margin-top: 6px;
          font-size: 29px;
          line-height: 1.35;
          text-shadow: none;
        }

        & em {
          font-size: 1.28em;
        }
      }

      & .lead {
        margin-top: 6px;
        max-width: none;
        font-size: 15px;
        text-align: center;
        line-height: 1.5;
      }

      & ul {
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 22px;
      }

      & li {
        padding: 8px 0 0;
        width: calc((100% - 18px) / 4);
        height: auto;
        aspect-ratio: 1/1;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        font-size: 12px;
        line-height: 1.3;
        letter-spacing: -0.02em;

        &::before {
          margin-bottom: 6px;
          width: 28px;
          height: 26px;
        }

        & span {
          display: none;
        }
      }

      & .widget-inquiry {
        margin-top: 12px;
      }
    }

    /* あなたの状況に合わせて */
    & section.stage {
      padding-top: 46px;

      & > .lead {
        max-width: none;
        text-align: center;
      }

      & .content {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 36px;
      }

      & .stage {
        padding: 20px 14px 22px;
        width: 100%;
        max-width: 306px;

        & .thumb {
          height: 140px;
        }

        & .head {
          margin-top: 16px;
        }

        & .body {
          margin-top: 10px;
        }

        & .more {
          margin-top: 18px;

          & a {
            padding: 0 44px 0 28px;
            min-width: 200px;
          }
        }
      }
    }

    /* 対応サービス（画面幅いっぱい） */
    & section.service {
      margin: 22px -10px 0;
      border-radius: 0;
      padding: 22px 10px 28px;
      width: auto;
      background-size:
        100% auto,
        auto;

      & > .lead {
        margin-top: 10px;
        max-width: none;
      }

      & .content {
        grid-template-columns: 1fr 1fr;
        gap: 5px 6px;
        margin-top: 16px;
      }

      & .service {
        grid-column: 1 / -1;
        grid-template-columns: 65px 1fr;
        column-gap: 20px;
        border-radius: 3px;
        padding: 16px 10px 12px;

        & .thumb img {
          max-height: 50px;
        }

        & .body {
          margin-top: 8px;
        }

        & .more {
          margin-top: 4px;

          & a {
            border-radius: 14px;
            padding: 0 32px 0 18px;
            min-width: 101px;
            height: 28px;
            font-size: 14px;

            &::after {
              right: 3px;
              top: calc(50% - 7px);
              width: 14px;
              height: 14px;
              font-size: 12px;
            }
          }
        }

        /* 下段3枚も1列（2列だと本文16pxが1行6文字程度になり読みにくいため） */
        &:nth-child(n + 5) {
          grid-column: 1 / -1;
          grid-template-columns: 65px 1fr;
          column-gap: 20px;
          padding: 16px 10px 12px;

          & .head {
            font-size: var(--font-size-h3);
          }
        }
      }
    }

    /* 問い合わせ（中間） */
    & section.inquiry {
      padding-top: 31px;
    }

    & section.inquiry2 {
      padding: 27px 10px 49px;
      background: #fff;
    }

    /* 選ばれる理由 */
    & section.riyu {
      padding-top: 56px;
      padding-bottom: 55px;

      & h2 {
        margin-top: 0;
      }

      & > .lead {
        margin: 26px auto 0;
      }

      & > .thumb {
        position: static;
        margin: 18px auto 0;
        width: 136px;
      }

      & .content {
        margin-top: 0;
        border-radius: 12px;
        padding: 10px 10px 30px;
      }

      & .riyu {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        border-bottom: none;
        padding: 22px 0;
        background: linear-gradient(#666, #666) no-repeat center bottom /
          calc(100% - 56px) 1px;

        &:first-child {
          padding-top: 0;
        }

        &:last-child {
          padding-bottom: 0;
          background: none;
        }

        & .head {
          gap: 12px;

          & span:first-child {
            padding: 3px 8px;
            font-size: 13px;
          }
        }

        & .thumb {
          grid-column: 1;
          grid-row: 2;
          margin-top: 2px;
          text-align: center;

          & img {
            display: inline-block;
            width: 193px;
          }
        }

        & .body {
          margin: 20px 10px 0;
        }
      }
    }

    /* 解決事例（横長カード・本文非表示） */
    & section.case {
      padding-bottom: 53px;
      background: #fff;

      & > .lead {
        text-align: center;
      }

      & .content {
        flex-direction: column;
        gap: 16px;
        margin-top: 40px;
      }

      & .case {
        display: grid;
        grid-template-columns: 134px 1fr;
        column-gap: 13px;
        border-radius: 4px;
        padding: 6px 10px 24px;
        width: auto;

        & .number {
          position: static;
          grid-column: 1;
          grid-row: 1;
          justify-self: start;
          margin: 0 0 11px;
          border-radius: 0;
          padding: 2px 10px;
          font-size: 12px;
        }

        & .thumb {
          grid-column: 1;
          grid-row: 2;

          & img {
            aspect-ratio: 134/72;
            object-fit: cover;
          }
        }

        & .head {
          grid-column: 2;
          grid-row: 2;
          margin: 0;
          /* 写真の横で幅が狭いため h4 と同じ 16px */
          font-size: var(--font-size-h4);
        }

        & .body {
          display: none;
        }
      }

      & > .more {
        margin-top: 40px;
      }
    }

    /* 弁護士紹介 */
    & section.intro {
      grid-template-columns: 1fr;
      grid-template-rows: none;
      padding: 64px 30px 86px;

      &::before {
        top: 40px;
        right: 10px;
        bottom: 43px;
        left: 10px;
        border-radius: 15px;
      }

      & .thumb {
        grid-row: auto;
        justify-self: center;
        width: 247px;

        & img {
          border-radius: 12px;
        }
      }

      & h2 {
        margin: 24px 0 14px;
      }

      & .data {
        margin-top: 6px;
      }

      & .body {
        margin-top: 12px;
      }

      & .more {
        justify-self: center;
        margin-top: 40px;

        & a {
          min-width: 250px;
        }
      }
    }

    /* 弁護士費用 */
    & section.fee {
      grid-template-columns: 1fr;
      padding-top: 48px;
      padding-bottom: 41px;

      & h2,
      & > .lead,
      & .table,
      & > .att,
      & > .more {
        grid-column: 1;
        grid-row: auto;
      }

      & > .lead {
        margin-top: 14px;

        &::after {
          margin: 30px auto 31px;
          width: 160px;
        }
      }

      & .table {
        & th,
        & td {
          padding: 10px 16px;
          height: 20px;
        }

        & thead th {
          padding: 8px;
          font-size: var(--font-size-article);
        }
      }

      & > .att {
        margin-top: 10px;
      }

      & > .more {
        margin-top: 36px;
      }
    }

    /* 相談の流れ（縦並び・横長カード） */
    & section.flow {
      padding-top: 26px;
      padding-bottom: 58px;

      & > .lead {
        margin-top: 12px;
      }

      & .widget-flow {
        flex-direction: column;
        align-items: center;
        gap: 44px;
        margin-top: 32px;
      }

      & .widget-flow .step {
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto;
        column-gap: 18px;
        align-items: center;
        border-radius: 10px;
        padding: 10px 20px 10px 28px;
        width: 100%;
        max-width: 305px;
        text-align: left;

        /* 下向き矢印 */
        &::after {
          top: auto;
          right: calc(50% - 8px);
          bottom: -32px;
          width: 16px;
          height: 20px;
          transform: rotate(90deg);
        }

        & .thumb {
          grid-row: 1 / 3;

          & img {
            width: 48px;
            height: auto;
          }
        }

        & .head {
          margin: 0;
        }

        & .body {
          margin-top: 0;
        }
      }

      & > .more {
        margin-top: 44px;
      }
    }

    /* 相談の流れ（縦並び・STEP番号付き） */
    & section.flow2 {
      & .step {
        margin-bottom: 56px;
        border-radius: 12px;
        padding: 18px 20px 20px;

        &::after {
          top: calc(100% + 20px);
          left: calc(50% - 26px);
          border-width: 16px 26px 0;
        }

        & .head {
          --badge-size: 46px;
          padding-left: calc(var(--badge-size) + 12px);
        }

        & .body {
          margin-top: 12px;
        }
      }
    }

    /* よくある質問 */
    & section.faq {
      /* padding: 40px 10px 46px; */

      & h2 {
        margin-bottom: 36px;
      }

      & .qa {
        margin-top: 10px;
        border-radius: 6px;
      }

      & .qa .head {
        padding: 15px 44px 15px 42px;

        &::before {
          top: 15px;
          left: 16px;
        }

        &::after {
          right: 18px;
          top: calc(50% - 6px);
          width: 12px;
          height: 12px;
        }
      }

      & .qa .body {
        margin: 0 8px;
        padding: 14px 10px 12px;
      }

      & > .more {
        margin-top: 48px;
      }
    }

    /* 事務所案内 */
    & section.office {
      padding-top: 25px;
      padding-bottom: 47px;

      & h2 {
        margin-bottom: 22px;
      }

      & .content {
        grid-template-columns: 1fr;
        border-radius: 15px;
        padding: 29px 10px 30px;
      }

      & .gmap {
        margin: 0 auto;
        width: 100%;
        max-width: 278px;
        height: 143px;
      }

      & .table {
        justify-self: center;
        margin-top: 18px;
        width: 100%;

        & th,
        & td {
          padding: 7px 4px;
        }

        & th {
          width: 5em;
          white-space: normal;
        }

        & tr:first-child > * {
          padding-top: 7px;
        }
      }
    }
  }

  /*----------------------------------
    フッター
  ----------------------------------*/
  #footer-inquiry {
    grid-template-columns: minmax(0, 320px);
    row-gap: 19px;
    padding: 25px 8px 31px;

    & .head {
      font-size: 26px;
      line-height: 1.9;
    }

    & .lead {
      margin: 0 0 9px;
      font-size: 16px;
      line-height: 1.55;
    }

    & .call a {
      height: 73px;

      & .tel-number {
        font-size: 40px;
      }

      & .hour {
        margin-top: 4px;
        font-size: 10px;
      }
    }

    & .mail-btn {
      gap: 18px;
      height: 73px;
      box-shadow: 0 4px 0 #644f00;
      font-size: 24px;

      &::before {
        width: 19px;
      }
    }

    & div.att {
      margin-top: 4px;
      font-size: 10.5px;
      line-height: 1.4;

      & > span {
        display: block;
      }

      & br {
        display: none;
      }
    }
  }

  /* デザイン上、SPのフッターはコピーライトのみ */
  #footer {
    font-size: inherit;

    & .wrapper {
      display: none;
    }
  }

  #copyright {
    margin: 0;
    border-top: none;
    padding: 9px 0 calc(43px + 9px);
    font-size: 10px;
  }

  /* 画面下固定バー（電話／メール） */
  #sp-site-menu ul {
    display: flex;
    border-spacing: 0;
  }

  #sp-site-menu li {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 43px;

    &.call {
      background: var(--color-green);

      & a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        color: #fff;
        text-decoration: none;
      }

      & .tel-number {
        font-family: var(--font-tel);
        font-size: 18px;

        &.lazyloaded::before {
          margin-right: 6px;
          height: 0.85em;
        }
      }

      & .hour {
        margin-top: 3px;
        font-size: 9px;
        line-height: 1;
      }
    }

    &.mail {
      background: var(--color-yellow);

      & a.mail-btn {
        gap: 10px;
        border-radius: 0;
        width: 100%;
        height: 100%;
        font-size: 12px;
        letter-spacing: 0.08em;
      }
    }
  }
}
/*

問い合わせバナー

*/
.widget-inquiry2 {
  box-sizing: border-box;
  margin: 0 auto;
  border-radius: 8px;
  padding: 44px 60px 30px;
  /* width: 1100px; */
  max-width: 100%;
  background: var(--color-bg-cream);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: center;

  & .head {
    margin: 0 0 18px;
    color: var(--color-green);
    font-family: var(--font-b);
    font-size: 34px;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 0.03em;
  }

  & .content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 58px;
  }

  & .call {
    & a {
      display: flex;
      flex-direction: column;
      align-items: center;
      color: var(--color-text);
      text-decoration: none;
    }

    & .title {
      margin-bottom: 12px;
      font-size: 14px;
      line-height: 1;
      letter-spacing: 0.1em;
    }

    & .tel-number {
      font-size: 60px;
    }

    & .hour {
      margin-top: 8px;
      font-size: 14px;
      line-height: 1;
    }
  }

  & .mail a.mail-btn {
    gap: 34px;
    border-radius: 4px;
    width: 420px;
    height: 78px;
    font-size: 20px;

    &::before {
      width: 36px;
    }
  }

  & .att {
    flex-basis: 100%;
    margin: 30px 0 0;
    font-size: 14px;
    line-height: 1.8;
  }
}

@media screen and (max-width: 768px) {
  .widget-inquiry2 {
    border-radius: 4px;
    padding: 24px 16px 22px;

    & .head {
      margin-bottom: 16px;
      font-size: 20px;
    }

    & .content {
      flex-direction: column;
      row-gap: 18px;
    }

    & .call {
      & .title {
        margin-bottom: 8px;
        font-size: 12px;
      }

      & .tel-number {
        font-size: 36px;
      }

      & .hour {
        font-size: 12px;
      }
    }

    /* 縦並び＋中央揃えの flex アイテムは中身の幅（ボタン 302px）になり、
      ボタンの max-width: 100% が効かないため、親側も画面幅に収める */
    & .mail {
      max-width: 100%;
    }

    & .mail a.mail-btn {
      gap: 18px;
      width: 302px;
      max-width: 100%;
      height: 56px;
      font-size: 16px;

      &::before {
        width: 24px;
      }
    }

    & .att {
      margin-top: 18px;
      padding: 0;
      font-size: 12px;
    }
  }
}

/*

お問い合わせ方法（電話・フォーム）

*/
.widget-contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 0 auto;
  width: 872px;
  max-width: 100%;

  & .item {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border: solid 1px #ddd;
    border-top: solid 4px var(--color-green-dark);
    border-radius: 10px;
    padding: 28px 30px 28px;
    background: #fff;

    &.tel {
      --icon: url(widget/contact_tel.min.svg);
    }

    &.form {
      --icon: url(widget/contact_mail.min.svg);
      border-top-color: var(--color-green);
    }
  }

  & .head {
    --circle-size: 54px;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 0 18px;
    border: none;
    padding: 0 0 0 calc(var(--circle-size) + 14px);
    min-height: var(--circle-size);
    color: var(--color-green-dark);
    /* 2カラムで幅が狭いため 20px（24px だと「お問い合わせフォームから」の末尾1文字が折り返す） */
    font-size: 20px;
    font-weight: 700;
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-article);

    /* 円 + アイコン */
    &::before,
    &::after {
      content: "";
      position: absolute;
      top: calc(50% - var(--circle-size) / 2);
      left: 0;
      margin: 0;
      width: var(--circle-size);
      height: var(--circle-size);
    }

    &::before {
      border-radius: 50%;
      background: var(--color-bg-green);
    }

    &::after {
      background: var(--color-green-dark);
      mask: var(--icon) no-repeat center / 40% 40%;
    }
  }

  & .tel-number {
    text-align: center;
  }

  & .tel-number a {
    color: var(--color-text);
    font-family: var(--font-tel);
    font-size: 34px;
    line-height: 1.3;
    text-decoration: none;
  }

  & .hour {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 8px;
    margin-top: 12px;
    font-size: 12px;

    /* 時計アイコン */
    &::before {
      content: "";
      display: block;
      box-sizing: border-box;
      border: solid 1.5px currentColor;
      border-radius: 50%;
      width: 13px;
      height: 13px;
      background:
        linear-gradient(currentColor, currentColor) no-repeat 50% 2px / 1.5px
          4px,
        linear-gradient(currentColor, currentColor) no-repeat 5px 4.5px / 3px
          1.5px;
    }
  }

  & .note {
    margin-top: 16px;
    border-radius: 6px;
    padding: 14px 16px;
    background: var(--color-bg-cream);
    color: var(--color-note);
    font-size: var(--font-size-note);
    line-height: var(--line-height-note);
  }

  & p {
    margin: 0;
    line-height: var(--line-height-article);
  }
}

/* 小さいボタン（#contents > article .more より優先させる） */
#contents .widget-contact .more {
  margin-top: auto;
  padding-top: 28px;

  & a {
    border-radius: 24px;
    padding: 0 52px 0 34px;
    min-width: 240px;
    height: 48px;
    font-size: 16px;
    font-weight: 700;

    &::after {
      right: 22px;
      top: calc(50% - 7px);
      width: 16px;
      height: 14px;
    }
  }

  /* 下向き矢印 */
  &.down a::after {
    transform: rotate(90deg);
  }
}

@media screen and (max-width: 768px) {
  .widget-contact {
    grid-template-columns: 1fr;
    gap: 16px;

    & .item {
      padding: 20px 16px 22px;
    }

    & .head {
      --circle-size: 44px;
    }

    & .tel-number a {
      font-size: 30px;
    }
  }

  #contents .widget-contact .more {
    padding-top: 20px;
  }
}

/*************************************************

  コラム（/souzoku/column/〇〇/）
  body.column で限定（サービスページと同じ sv-* クラス名を使うため）

*************************************************/
/* 下層ページ見出し（副題なし。下線は h1 に付ける。イラストは共通指定） */
.column main > header {
  /* タイトルが長いため PC は 32px（指示書の「長い場合」） */
  & h1 {
    color: var(--color-green-dark);
    font-size: 32px;
    line-height: 1.4;
    letter-spacing: 0.08em;

    &::after {
      content: "";
      display: block;
      margin-top: 18px;
      width: 56px;
      height: 3px;
      background: var(--color-green);
    }
  }
}

.column #contents > article {
  /* 見出し */
  & > h2,
  & section.sv-bg h2 {
    margin: var(--space-section) auto 36px;
    width: fit-content;
    color: var(--color-green-dark);
    font-size: var(--font-size-h2);
    font-weight: 700;
    line-height: var(--line-height-heading);
    text-align: center;
    letter-spacing: var(--letter-spacing-article);

    &::after {
      content: "";
      display: block;
      margin: 18px auto 0;
      width: 56px;
      height: 2px;
      background: var(--color-heading-line);
    }
  }

  /* 小見出し（■ 付き / 番号付き） */
  & .sv-about h3,
  & .sv-merit h3 {
    display: flex;
    align-items: center;
    gap: 0 12px;
    margin: 40px 0 20px;
    border-bottom: solid 1px var(--color-green-dark);
    padding: 0 0 8px 4px;
    color: var(--color-text);
    font-size: var(--font-size-h3);
    font-weight: 700;
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-article);
  }

  /* 四角のマーク */
  & .sv-about h3::before {
    content: "";
    flex-shrink: 0;
    display: block;
    margin: 0;
    width: 8px;
    height: 8px;
    background: var(--color-green-dark);
  }

  /* 番号付き（01〜03） */
  & .sv-merit h3 {
    &::before {
      content: none;
    }

    & .num {
      color: var(--color-green);
      font-size: var(--font-size-h3);
      font-weight: 700;
    }
  }

  /* 本文 */
  & .sv-intro,
  & .sv-text {
    margin-right: auto;
    margin-left: auto;
    width: 832px;
    max-width: 100%;
  }

  & .sv-intro {
    margin-top: 48px;
    margin-bottom: 64px;
  }

  & .sv-intro,
  & .sv-text,
  & section.sv-bg {
    & p {
      margin: 0 0 22px;
      line-height: var(--line-height-article);
    }
  }

  /* CTA の上の導入文（CTA の枠まで 32px） */
  & .sv-cta-lead {
    margin-top: var(--space-section);
    margin-bottom: 32px;
    padding: 0 12px;
    box-sizing: border-box;
  }

  /* 問い合わせバナー（文字サイズは共通指定） */
  & .widget-inquiry2 {
    width: 832px;
  }

  /*----------------------------------
    全幅背景のセクション
  ----------------------------------*/
  & section.sv-bg {
    margin-top: var(--space-section);
    padding: 88px 0;
    background: #f3f8f2;

    & .wrapper {
      margin: 0 auto;
      width: 872px;
      max-width: 100%;
    }

    & h2 {
      margin-top: 0;
    }

    & .wrapper > p:last-child {
      margin-bottom: 0;
    }
  }

  /*----------------------------------
    関連ページへのボタン（枠線）
  ----------------------------------*/
  & .more {
    margin-top: 32px;
    text-align: center;
  }

  & .more a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    border: solid 1.5px var(--color-green);
    border-radius: 24px;
    padding: 0 22px;
    height: 48px;
    background: #fff;
    color: var(--color-green-dark);
    font-family: var(--font-b);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: var(--letter-spacing-article);
    text-decoration: none;
    transition: background 0.2s;

    &::after {
      content: "";
      flex-shrink: 0;
      position: static;
      width: 12px;
      height: 10px;
      background: currentColor;
      mask: url(arrow.min.svg) no-repeat center / contain;
    }

    &:hover {
      background: var(--color-bg-green);
    }
  }

  /* リンク先未定の仮表示（顧問サイト公開後に通常の .more a へ差し替え） */
  & .more-tbd span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border: dashed 1px #ccc;
    border-radius: 24px;
    padding: 0 32px;
    min-height: 48px;
    color: #777;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: var(--letter-spacing-article);
  }

  /*----------------------------------
    解決事例
  ----------------------------------*/
  & .sv-case {
    & .item {
      margin: 22px 0;
      border: solid 1px #e3e3e3;
      border-radius: 10px;
      padding: 28px 32px;
      background: #fff;

      & p:last-child {
        margin-bottom: 0;
      }
    }

    /* カード内の h3 */
    & .item h3 {
      display: flex;
      align-items: center;
      gap: 16px;
      margin: 0 0 20px;
      border-bottom: solid 1px #e3e3e3;
      padding: 0 0 16px;
      color: var(--color-green-dark);
      font-size: var(--font-size-h3);
      font-weight: 700;
      line-height: var(--line-height-heading);
      letter-spacing: var(--letter-spacing-article);
      &::before,
      &::after {
        content: none;
      }
    }

    & .badge {
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border-radius: 2px;
      width: 50px;
      height: 50px;
      background: var(--color-badge);
      color: var(--color-green-dark);
      font-size: 12px;
      font-weight: normal;
      line-height: 1.2;
      letter-spacing: 0.05em;

      & span {
        font-size: 18px;
        font-weight: 700;
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .column main > header {
    & h1 {
      font-size: var(--font-size-h1);

      &::after {
        margin-top: 12px;
        width: 40px;
      }
    }
  }

  .column #contents > article {
    & > h2,
    & section.sv-bg h2 {
      margin-bottom: 24px;
    }

    & .sv-about h3,
    & .sv-merit h3 {
      gap: 0 10px;
      margin: 32px 0 16px;
      padding: 0 0 8px 2px;
    }

    & .sv-intro {
      margin-top: 28px;
      margin-bottom: 40px;
    }

    & .sv-cta-lead {
      margin-bottom: 24px;
      padding: 0;
    }

    & .widget-inquiry2 {
      & .att {
        padding: 0;
      }
    }

    & section.sv-bg {
      padding: 56px 10px;
      box-sizing: border-box;
    }

    & .more a {
      height: auto;
      min-height: 48px;
      padding: 10px 22px;
    }

    & .more-tbd span {
      padding: 8px 20px;
    }

    & .sv-case {
      & .item {
        padding: 20px 16px;
      }

      & .item h3 {
        align-items: flex-start;
        gap: 12px;
      }

      & .badge {
        width: 42px;
        height: 42px;

        & span {
          font-size: 15px;
        }
      }
    }
  }
}
/* =================
コラムリスト
===================*/
.column-list {
  margin: 1em auto;
  list-style-type: none;
  & li {
    padding: 8px;
    border-bottom: solid 1px #ccc;
    & > * {
      display: block;

      &.cats {
        display: flex;
        flex-wrap: wrap;
        gap: 1px;
        & a {
          display: block;
          padding: 1px 8px;
          background: var(--color-base);
          color: #fff;
          font-size: 14px;
          text-decoration: none;
        }
      }

      &.title {
        color: currentColor;
        text-decoration: none;
      }
    }
  }
}
