@charset "UTF-8";
/* =============================================
  カスタム追加CSS
  ・メニューページのジャンプ機能(メニュー検索パネル)
  ・PC用ヘッダーナビ(常時表示)
  ・メニュー詳細ページ(専用ページ)のスタイル
  ※テーマ本体の layout.css には手を加えず、追加分はこのファイルにまとめています
============================================= */

/* ----- 共通: ページ内ジャンプ時に固定ヘッダー分の余白を確保 ----- */
.c-row-list__item {
  scroll-margin-top: 96px;
}

/* ----- 共通: ページ読み込み時の「％」カウンター表示を非表示にする -----
   (main.js側でもカウントアップ演出を即時化済み。読み込みの仕組み自体は変えず、見た目だけ消しています) */
#js-opening-loader {
  display: none !important;
}

/* ----- メニューページ: メニュー検索(プルダウン)パネル ----- */
.p-menu-finder {
  background: #fff;
  border: 2px solid #008000;
  border-radius: 8px;
  margin: 0 auto 48px;
  max-width: 840px;
  padding: 24px 20px;
}

.p-menu-finder__title {
  color: #008000;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: center;
}

/* 2つのプルダウンを横並び(スマホでは縦積み) */
.p-menu-finder__selects {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .p-menu-finder__selects {
    flex-direction: row;
    gap: 16px;
  }
}

.p-menu-finder__field {
  flex: 1;
}

.p-menu-finder__label {
  color: #333;
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 6px;
}

.p-menu-finder__select {
  appearance: none;
  -webkit-appearance: none;
  background: #fafafa url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23008000' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #333;
  cursor: pointer;
  display: block;
  font-size: 14px;
  padding: 12px 40px 12px 14px;
  width: 100%;
}

.p-menu-finder__select:focus {
  border-color: #008000;
  outline: none;
}

.p-menu-finder__result {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.p-menu-finder__result-label {
  color: #333;
  font-size: 13px;
  text-align: center;
  width: 100%;
}

.p-menu-finder__link {
  background: #008000;
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 22px;
  text-decoration: none;
  transition: opacity .3s;
}

.p-menu-finder__link::after {
  content: " ▼";
  font-size: 11px;
}

.p-menu-finder__link:hover {
  opacity: .75;
}

/* ----- メニューページ: 各メニューから専用ページへのリンクボタン ----- */
.p-menu-detail-link {
  margin-top: 16px;
  text-align: center;
}

.p-menu-detail-link__btn {
  background: #008000;
  border-radius: 6px;
  color: #fff;
  display: inline-block;
  font-size: 15px;
  font-weight: bold;
  padding: 12px 36px;
  text-decoration: none;
  transition: opacity .3s;
}

.p-menu-detail-link__btn::after {
  content: " »";
}

.p-menu-detail-link__btn:hover {
  opacity: .75;
}

/* ----- 全ページ共通: PC用ヘッダーナビ(常時表示) ----- */
/* 画面幅が狭いとき(拡大表示時を含む)は従来どおりハンバーガーメニューのみ表示。
   1240px以上で表示し、フォントサイズと間隔は画面幅に応じて自動調整(clamp)。 */
.p-header-nav {
  display: none;
}

@media (min-width: 1240px) {
  /* ロゴ(左端に絶対配置)とナビが重ならないよう、左側にロゴぶんの余白を確保 */
  .p-global-header__inner {
    padding-left: 250px;
  }

  /* ナビをロゴ〜電話番号の間いっぱいに広げ、項目を均等配置にする */
  .p-header-nav {
    display: block;
    flex: 1;
    margin-right: clamp(10px, 1.2vw, 20px);
    min-width: 0;
  }

  .p-header-nav__items {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(8px, 1vw, 16px);
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .p-header-nav__link {
    color: #333;
    font-size: clamp(13px, 1.15vw, 16px);
    font-weight: bold;
    letter-spacing: .02em;
    text-decoration: none;
    transition: color .3s;
    white-space: nowrap;
  }

  .p-header-nav__link:hover {
    color: #008000;
  }
}

/* ナビ表示中でも幅に余裕がない間は電話番号ブロックを隠してスペースを確保
   (電話番号はハンバーガーメニュー内・フッターには引き続き表示されます) */
@media (min-width: 1240px) and (max-width: 1519px) {
  .p-global-header__tel {
    display: none;
  }
}

/* ----- メニュー詳細ページ(専用ページ) ----- */
.p-menu-detail {
  background: #fff;
  border-radius: 8px;
  margin: 0 auto;
  max-width: 900px;
  padding: 40px 24px;
}

@media (min-width: 768px) {
  .p-menu-detail {
    padding: 56px 64px;
  }
}

.p-menu-detail__body h2 {
  border-left: 6px solid #008000;
  color: #008000;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  margin: 48px 0 20px;
  padding: 4px 0 4px 14px;
}

.p-menu-detail__body h2:first-child {
  margin-top: 0;
}

.p-menu-detail__body h3 {
  color: #333;
  font-size: 17px;
  font-weight: bold;
  margin: 32px 0 12px;
}

.p-menu-detail__body p {
  line-height: 2;
  margin-bottom: 1.5em;
}

.p-menu-detail__body ul,
.p-menu-detail__body ol {
  line-height: 2;
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}

.p-menu-detail__body ul li {
  list-style: disc;
}

.p-menu-detail__body ol li {
  list-style: decimal;
}

.p-menu-detail__body table {
  border-collapse: collapse;
  margin-bottom: 1.5em;
  width: 100%;
}

.p-menu-detail__body th,
.p-menu-detail__body td {
  border: 1px solid #ddd;
  padding: 12px 16px;
  text-align: left;
}

.p-menu-detail__body th {
  background: #f0f7f0;
  color: #008000;
  white-space: nowrap;
}

.p-menu-detail__cta {
  margin-top: 48px;
  text-align: center;
}

.p-menu-detail__cta-btn {
  background: #008000;
  border-radius: 6px;
  color: #fff !important;
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  padding: 16px 48px;
  text-decoration: none !important;
  transition: opacity .3s;
}

.p-menu-detail__cta-btn:hover {
  opacity: .75;
}

.p-menu-detail__back {
  margin-top: 40px;
  text-align: center;
}

.p-menu-detail__back a {
  color: #008000;
  font-size: 14px;
  text-decoration: underline;
}

/* ----- 自由編集ページ(page-free.php を使うページ共通) ----- */
.p-free-content {
  letter-spacing: .1em;
}

.p-free-content p {
  line-height: 2;
}

.p-free-content p + p {
  margin-top: 1.2em;
}

.p-free-content ul,
.p-free-content ol {
  line-height: 2;
  margin: 1em 0;
  padding-left: 1.5em;
}

.p-free-content ul li {
  list-style: disc;
}

.p-free-content ol li {
  list-style: decimal;
}

/* 見出し(セクション大見出しの c-headline を除く) */
.p-free-content h2.wp-block-heading:not(.c-headline) {
  border-left: 6px solid #008000;
  color: #008000;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  margin: 48px 0 16px;
  padding: 4px 0 4px 14px;
}

/* h3見出し(「見出し」ブロックでレベル3を選ぶだけで、テーマ標準の
   緑文字+マーカー下線の見た目になる。特別なクラス指定は不要) */
.p-free-content h3.wp-block-heading {
  background: linear-gradient(#fafafa 64%, transparent 64%), repeating-linear-gradient(-45deg, #fafafa, #fafafa 2px, #f2d561 2px, #f2d561 4px);
  color: #008000;
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: .1em;
  line-height: 1.6;
  margin: 40px 0 16px;
  padding-bottom: 2px;
}

/* 背景がグレー系のセクション(-bg-gray)ではマーカーの土台色を背景に合わせる
   (カード内は常にカード自体の背景色#fafafaなので、上のルールの!importantが優先される) */
.p-section.-bg-gray .p-free-content h3.wp-block-heading {
  background: linear-gradient(#e7ebf1 64%, transparent 64%), repeating-linear-gradient(-45deg, #fafafa, #fafafa 2px, #f2d561 2px, #f2d561 4px);
}

/* 区切り線 */
.p-free-content hr.wp-block-separator {
  border: none;
  border-top: 1px solid #ddd;
  margin: 8px 0 20px;
}

/* 表 */
.p-free-content .wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}

.p-free-content .wp-block-table th,
.p-free-content .wp-block-table td {
  border: 1px solid #ddd;
  line-height: 1.8;
  padding: 12px 16px;
  text-align: left;
}

.p-free-content .wp-block-table th {
  background: #f0f7f0;
  color: #008000;
  white-space: nowrap;
}

/* カード(緑ボーダーのボックス)内の余白 */
.p-free-content .p-card > * + * {
  margin-top: 24px;
}

.p-free-content .p-card + .p-card {
  margin-top: 40px;
}

/* カード内の見出し(「見出し」ブロックをそのまま使うだけで、テーマ標準の
   緑文字+マーカー下線の見た目になる。特別なクラス指定は不要) */
.p-free-content .p-card h2.wp-block-heading,
.p-free-content .p-card h3.wp-block-heading,
.p-free-content .p-card h4.wp-block-heading {
  background: linear-gradient(#fafafa 64%, transparent 64%), repeating-linear-gradient(-45deg, #fafafa, #fafafa 2px, #f2d561 2px, #f2d561 4px) !important;
  color: #008000;
  display: inline;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: .1em;
  line-height: 1.6;
  margin: 0;
  padding-bottom: 2px;
}

/* ----- 記事本文: 自動挿入される「お問い合わせはこちら」の余白 ----- */
.p-post-cta {
  margin: 40px 0;
  text-align: center;
}

/* ----- カテゴリーページ: 全ての記事を見るボタン ----- */
.p-category-all-link {
  margin-bottom: 32px;
  text-align: right;
}

.p-category-all-link__btn {
  border: 2px solid #008000;
  border-radius: 999px;
  color: #008000;
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 24px;
  text-decoration: none;
  transition: background .3s, color .3s;
}

.p-category-all-link__btn:hover {
  background: #008000;
  color: #fff;
}

/* ----- ブログ: オススメ記事3選 ----- */
.p-recommend-articles {
  background: #fff;
  border: 2px solid #dacc00;
  border-radius: 8px;
  margin-bottom: 40px;
  padding: 24px 20px;
}

.p-recommend-articles__title {
  color: #333;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
  text-align: center;
}

.p-recommend-articles__list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 767px) {
  .p-recommend-articles__list {
    grid-template-columns: 1fr;
  }
}

.p-recommend-articles__item {
  color: #333;
  display: block;
  text-decoration: none;
}

.p-recommend-articles__thumb {
  margin-bottom: 10px;
}

.p-recommend-articles__item-title {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.6;
}

/* ----- ブログ: 記事検索パネル ----- */
.p-article-search {
  background: #fff;
  border: 2px solid #008000;
  border-radius: 8px;
  margin-bottom: 40px;
  padding: 20px;
}

.p-article-search__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.p-article-search__field {
  flex: 1;
  min-width: 160px;
}

.p-article-search__field.-grow {
  flex: 2;
  min-width: 200px;
}

.p-article-search__label {
  color: #333;
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 6px;
}

.p-article-search__select,
.p-article-search__text {
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
  padding: 10px 12px;
  width: 100%;
}

.p-article-search__select:focus,
.p-article-search__text:focus {
  border-color: #008000;
  outline: none;
}

.p-article-search__radios {
  align-items: center;
  display: flex;
  gap: 16px;
  height: 100%;
  padding-top: 8px;
}

.p-article-search__radio {
  align-items: center;
  display: flex;
  font-size: 13px;
  gap: 4px;
}

.p-article-search__actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.p-article-search__submit {
  background: #008000;
  border: none;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  padding: 12px 40px;
  transition: opacity .3s;
}

.p-article-search__submit:hover {
  opacity: .75;
}

.p-article-search__clear {
  color: #666;
  font-size: 13px;
  text-decoration: underline;
}

/* ----- 2段組みリスト(お取引実績の業種別リストなど) -----
   使い方: 「グループ」ブロックを1つ作り、その中に段落を並べるだけ。
   項目数が奇数でも自動でバランス良く2段に分かれ、ズレは発生しません。 */
.p-two-col-list {
  column-count: 2;
  column-gap: 80px;
}

.p-two-col-list p {
  break-inside: avoid;
  margin: 0 0 1.4em;
}

@media (max-width: 599px) {
  .p-two-col-list {
    column-count: 1;
  }
}

/* 黄金比トリミング画像(テーマの c-golden-raito 相当) */
.p-free-content .u-golden img {
  aspect-ratio: 1.618 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* アクセスの地図の下の表 */
.p-free-content .p-access-item .wp-block-table {
  margin-top: 32px;
}

/* 白ボックス(旧お問い合わせテンプレートの枠と同じ見た目) */
.p-free-box {
  background: #fff;
  border-bottom: 4px solid #008000;
  border-top: 4px solid #008000;
  margin: auto;
  max-width: 960px;
  padding: 40px 20px;
}

@media (min-width: 768px) {
  .p-free-box {
    padding: 56px 5%;
  }
}

/* ----- お取引実績: ロゴを自動で均一サイズに揃えるグリッド -----
   ロゴを追加するときは、このグループの中に「画像」ブロックを置くだけでOK。
   サイズ指定は不要(自動で高さが揃います)。 */
/* 「グループ」ブロックは中に自動で inner-container の div が入り、
   そこに標準の縦積みレイアウトが適用されるため、外側だけでなく内側にも
   flex指定を当てて横並びにしている */
.c-logo-grid,
.c-logo-grid > .wp-block-group__inner-container {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
  justify-content: center;
  margin-bottom: 56px;
}

.c-logo-grid .wp-block-image {
  margin: 0;
  /* 1行に5枚前後並ぶ幅を確保しつつ、幅に応じて自動で折り返す */
  flex: 0 1 160px;
  text-align: center;
}

.c-logo-grid img {
  display: block;
  height: auto !important;
  margin: 0 auto;
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
  width: auto !important;
}

@media (max-width: 767px) {
  .c-logo-grid,
  .c-logo-grid > .wp-block-group__inner-container {
    gap: 20px 24px;
  }

  .c-logo-grid .wp-block-image {
    flex-basis: 110px;
  }

  .c-logo-grid img {
    max-height: 48px;
  }
}
