@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/* ==================================================
   共通CSS 目次
   01. ヘッダー・アピールエリア
   02. 固定ページのタイトル・日付・筆者
   03. 本文の見出し
   04. 表の共通枠線
   05. お問い合わせフォーム（Contact Form 7）
   06. 共通ユーティリティ
   07. reCAPTCHA
   08. 採用・定着・育成LP（固定ページ ID：1864）
   09. サイドバー
   10. モバイルスライドインメニュー
   11. モバイルフッターボタン
================================================== */

/* ==================================================
   01. ヘッダー・アピールエリア
================================================== */

/* キャッチコピー：透明背景・文字色・余白 */
.tagline {
  background: #3330;
  margin: 0;
  padding: 0.7em 1em;
  color: #6c6c6c;
  line-height: 1.5em;
}

/* モバイル表示：タグラインを非表示にする（PCは維持） */
@media screen and (max-width: 1023px) {
  .tagline {
    display: none;
  }
}

/* グローバルナビ：文字サイズを15pxにする */
#navi .navi-in a {
  font-size: 15px;
}


/* ==================================================
   02. 固定ページのタイトル・日付・筆者
================================================== */

/* 固定ページの自動タイトル・日付と、トップページの投稿日・更新日 */
.page .entry-title,
.page .date-tags,
.home.page .post-date,
.home.page .post-update {
  display: none;
}

/* グローバルナビの固定ページ：TOP・私たちについて・サービス案内・お客様の声・FAQ・無料相談の筆者表記 */
body.page-id-527 .footer-meta .author-info,
body.page-id-533 .footer-meta .author-info,
body.page-id-530 .footer-meta .author-info,
body.page-id-535 .footer-meta .author-info,
body.page-id-537 .footer-meta .author-info,
body.page-id-544 .footer-meta .author-info {
  display: none;
}

/* ブログ個別記事：H1を角飾りのない左揃えにする */
body.single-post #main h1.entry-title {
  margin: 16px 0;
  padding: 0;
  text-align: left;
}

body.single-post #main h1.entry-title::before,
body.single-post #main h1.entry-title::after {
  content: none;
}

@media (max-width: 834px) {
  body.single-post #main h1.entry-title {
    padding-bottom: 10px;
  }
}

@media (max-width: 480px) {
  body.single-post #main h1.entry-title {
    margin: 0 0 6px;
  }
}

/* ==================================================
   03. 本文の見出し
================================================== */

/* 固定ページのH2：採用LPとナビ固定ページで共通の中央揃え見出し */
body.page-id-527 .entry-content h2,
body.page-id-533 .entry-content h2,
body.page-id-530 .entry-content h2,
body.page-id-535 .entry-content h2,
body.page-id-537 .entry-content h2,
body.page-id-544 .entry-content h2,
body.page-id-1864 .article h2 {
  position: relative;
  margin: 0 0 50px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.7em;
  font-weight: 600;
  text-align: center;
  box-shadow: unset;
}

/* ナビ固定ページのH2：上余白30px。採用LPの上余白0は維持 */
body.page-id-527 .entry-content h2,
body.page-id-533 .entry-content h2,
body.page-id-530 .entry-content h2,
body.page-id-535 .entry-content h2,
body.page-id-537 .entry-content h2,
body.page-id-544 .entry-content h2 {
  margin-top: 30px;
}

/* 固定ページのH2：中央に配置する薄いオレンジの短い下線 */
body.page-id-527 .entry-content h2::after,
body.page-id-533 .entry-content h2::after,
body.page-id-530 .entry-content h2::after,
body.page-id-535 .entry-content h2::after,
body.page-id-537 .entry-content h2::after,
body.page-id-544 .entry-content h2::after,
body.page-id-1864 .article h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin: 16px auto 0;
  background-color: #ffd19c;
}

/* 固定ページ本文のH3：ブランドカラーと薄い灰色をつなぐ下線 */
.page .entry-content h3 {
  border: none;
  padding: 0 0 16px;
  background-image: linear-gradient(to right, var(--wp--preset--color--key-color, #ffcdb9) 56px, #e5e5e5 56px);
  background-position: left bottom;
  background-size: 100% 4px;
  background-repeat: no-repeat;
}

/* 固定ページのH2・H3：767px以下では文字部分だけを幅内に縮小する */
@media screen and (max-width: 767px) {
  body.page .entry-content h2 > .page-heading-fit-text,
  body.page .entry-content h3 > .page-heading-fit-text {
    display: inline-block;
    width: max-content;
    max-width: none;
    white-space: nowrap;
    vertical-align: top;
    zoom: var(--page-heading-scale, 1);
  }

  /* 文字部分を一括縮小し、ブロックに入力された手動改行は残す */
  body.page .entry-content h2 > .page-heading-fit-text br,
  body.page .entry-content h3 > .page-heading-fit-text br {
    display: initial;
  }
}

/* 本文のH4〜H6：共通する下罫線と余白を解除 */
.article h4,
.article h5,
.article h6 {
  border-bottom: none;
  padding: 0;
}

/* 本文のH4：上罫線を解除し、既存の文字サイズを維持 */
.article h4 {
  border-top: none;
  font-size: 16px;
}

/* ==================================================
   04. 表の共通枠線
================================================== */

/* 本文内の表全般と、お問い合わせ表の行に適用する既存の枠線 */
.entry-content .inquiry tr,
.entry-content table {
  border: solid 1px #d7d7d7;
}

/* ==================================================
   05. お問い合わせフォーム（Contact Form 7）
================================================== */

/* お問い合わせ表：見出しセル */
.inquiry th {
  text-align: left;
  font-size: 16px;
  color: #444;
  padding-right: 5px;
  width: 30%;
  background: #f7f7f7;
  border: solid 1px #d7d7d7;
}

/* お問い合わせ表：入力欄のセル */
.inquiry td {
  font-size: 16px;
  padding: 30px 20px 0;
  border: solid 1px #d7d7d7;
}

/* テキスト・メールアドレス・URL・本文の入力欄 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 textarea {
  background: #e8e8e8;
  color: #1a1a1a;
  width: 100%;
  border: none;
  font-size: 100%;
  padding: 1em;
  border-radius: 3px;
}

/* 必須・任意ラベル：共通する文字・余白・形状・位置 */
.haveto,
.any {
  font-size: 7px;
  padding: 5px;
  color: #fff;
  border-radius: 2px;
  margin-right: 10px;
  position: relative;
  bottom: 1px;
}

/* 必須ラベル：背景色 */
.haveto {
  background: #ff9393;
}

/* 任意ラベル：背景色 */
.any {
  background: #93c9ff;
}

/* 縦並び指定の選択項目 */
.verticallist .wpcf7-list-item {
  display: block;
}

/* 送信ボタン：通常時 */
#formbtn {
  display: block;
  padding: 1em 0;
  margin-top: 30px;
  width: 100%;
  background: #1a66ff;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border-radius: 2px;
  border: none;
}

/* 送信ボタン：ホバー時 */
#formbtn:hover {
  background: #1a66ff;
  color: #ffaa56;
}

/* お問い合わせ表：500px以下では見出しと入力欄を縦に並べる */
@media (max-width: 500px) {
  .inquiry th,
  .inquiry td {
    display: block !important;
    width: 100% !important;
    border-top: none !important;
    box-sizing: border-box !important;
  }

  .inquiry tr:first-child th {
    border-top: 1px solid #d7d7d7 !important;
  }

  .inquiry .haveto,
  .inquiry .any {
    font-size: 12px;
  }
}

/* ==================================================
   06. 共通ユーティリティ
================================================== */

/* 明朝系フォント：必要なブロックに mincho クラスを付けて使用 */
.mincho {
  font-family: "Hiragino Mincho ProN", "游明朝", "Yu Mincho", "MS Mincho", serif;
}

/* プロフィール：Cocoonのリンクを記事下と同じ枠線ボタンにする */
#sidebar .widget_author_box .author-description > p:last-of-type > a:only-child {
  display: table;
  max-width: 100%;
  margin-top: 24px;
  margin-inline: auto;
  padding: 10px 18px;
  border: 2px solid #e87300;
  border-radius: 5px;
  background-color: #ffffff;
  color: #e87300;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

/* 共通ボタン：TOP・特設ページ案内・プロフィールの反転を0.8秒で切り替える */
.home-outline-button .wp-block-button__link,
.orange-outline-button .wp-block-button__link,
#sidebar .widget_author_box .author-description > p:last-of-type > a:only-child {
  transition: background-color 0.8s ease, color 0.8s ease, border-color 0.8s ease;
}

.home-outline-button .wp-block-button__link:hover,
.home-outline-button .wp-block-button__link:focus-visible,
.orange-outline-button .wp-block-button__link:hover,
.orange-outline-button .wp-block-button__link:focus-visible,
#sidebar .widget_author_box .author-description > p:last-of-type > a:only-child:hover,
#sidebar .widget_author_box .author-description > p:last-of-type > a:only-child:focus-visible {
  background-color: #e87300 !important;
  color: #ffffff !important;
  border-color: #e87300 !important;
  opacity: 1;
}

.home-outline-button .wp-block-button__link:focus-visible,
.orange-outline-button .wp-block-button__link:focus-visible,
#sidebar .widget_author_box .author-description > p:last-of-type > a:only-child:focus-visible {
  outline: 2px solid #e87300;
  outline-offset: 3px;
}

/* 767px以下：中央揃えと手動改行を解除する共通クラス */
@media (max-width: 767px) {
  .sp-left-reset {
    text-align: left !important;
  }

  .sp-left-reset br {
    display: none !important;
  }
}

/* PC用・モバイル用の表示切り替え：767px以下の初期値 */
.pc-only {
  display: none;
}

.mobile-only {
  display: block;
}

/* PC用・モバイル用の表示切り替え：768px以上 */
@media (min-width: 768px) {
  .pc-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }
}

/* PC 上に戻るボタン サイズ調整 */
.go-to-top-button {
    width: 55px;
    height: 55px;
    border-radius: 88px;
    background-color: #11111142;
    color: #fff;
}


/*----------------------------------------
 　PCブログ記事一覧 リスト系
 -----------------------------------------*/

/* 記事一覧リスト 影と視覚効果 */
.entry-card-wrap {
	box-shadow: 0 0 1px 0 rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.2);
}
.entry-card-wrap:hover {
	transform: translateY(-2px);
}

/* 記事一覧 カラム間余白 */
.ect-vertical-card {
    column-gap: 3%;
}
.ect-vertical-card .entry-card-wrap {
	width: 48.5%; /* 余白と併せて100 */
}

/* 記事一覧 タイトル文字サイズ･余白 */
.related-entry-card-title, .entry-card-title {
    font-size: 16px;
    margin: 0.5em 0 0.8em 0;
}

/* 記事一覧 ページ送りボタン */
.pagination-next {
	display: none;
}
.page-numbers {
	border-radius: 25px;
}

/* カテゴリ一覧の表記 */
.archive-title {
    display: none;
}

/* 本文下の関連記事 タイトル文字サイズ */
.rect-vertical-card .related-entry-card-title {
    font-size: 14px;
}


/* ==================================================
   07. reCAPTCHA
================================================== */

/* 全ページ共通：バッジを非表示（各フォームに保護表記あり） */
.grecaptcha-badge {
  visibility: hidden;
}

/* ==================================================
   08. 採用・定着・育成LP（固定ページ ID：1864）
   既存のページ専用指定を維持
================================================== */

/* LP：ページ背景を白にする */
body.public-page.page-id-1864 {
  background-color: #ffffff !important;
}

/* LP：カバーを画面の左右いっぱいに広げる */
body.page-id-1864 .fullwide-cover {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* LP：フッターメタ情報を非表示にする */
body.page-id-1864 .footer-meta {
  display: none;
}

/* ==================================================
   09. サイドバー
================================================== */

/* カテゴリー一覧：項目ごとに薄い区切り線と余白を付ける */
#sidebar .widget_categories .cat-item > a {
  padding: 12px 8px;
  border-bottom: 1px solid #e5e5e5;
}

/* プロフィール：背景写真を枠の端まで広げる */
#sidebar .widget_author_box .author-box {
  padding: 0;
}

/* プロフィール：本文の左右・下余白は背景追加前の幅を保つ */
#sidebar .widget_author_box .author-content {
  padding-left: calc(10px + 0.5em);
  padding-right: calc(10px + 0.5em);
  padding-bottom: calc(20px + 1em);
}

/* プロフィール：保育室の背景写真（メディア内 hoikuen.jpg） */
#sidebar .widget_author_box .author-thumb {
  position: relative;
  float: none;
  width: 100%;
  height: 140px;
  margin: 0 0 64px;
  background-image: url("/wp-content/uploads/2026/07/hoikuen.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* プロフィール：丸い筆者写真を背景の下端に重ねる */
#sidebar .widget_author_box .author-thumb img {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 120px;
  height: 120px;
  margin: 0;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background-color: #ffffff;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

/* プロフィール：先頭段落の屋号・肩書きを本文と区切る */
#sidebar .widget_author_box .author-description > p:first-child {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6dfdb;
  color: #8b6a6a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

/* プロフィール：紹介文と詳細リンクの段落間を確保する */
#sidebar .widget_author_box .author-description > p + p {
  margin-top: 12px;
}

/* プロフィール：紹介文4段落の文字サイズを90％にする */
#sidebar .widget_author_box .author-description > p:not(:first-child):not(:last-child) {
  font-size: 87%;
}

/* ==================================================
   10. モバイルスライドインメニュー
================================================== */

@media screen and (max-width: 1023px) {
  #navi-menu-content {
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.90);
  }

  /* スライドイン：閉じるボタンを右寄せにする */
  #navi-menu-content .navi-menu-close-button {
    padding: 8px 16px 0;
    color: #8b6a6a;
    font-size: 24px;
    line-height: 1.4;
    text-align: right;
  }

  /* スライドイン：ブランドカラーの見出し帯 */
  #navi-menu-content .menu-drawer::before {
    content: "MENU";
    display: block;
    margin: 15px 0;
    padding: 7px;
    background-color: #e87300;
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
  }

  /* スライドイン：文字・項目の余白・区切り線 */
  #navi-menu-content .menu-drawer a {
    padding: 0.9em 0.7em;
    border-bottom: 1px solid #e6dfdb;
    color: #555555;
    font-size: 1em;
    font-weight: 600;
  }

  /* スライドイン：Font Awesomeの矢印を項目の先頭に付ける */
  #navi-menu-content .menu-drawer a::before {
    content: "\f054";
    margin-right: 7px;
    color: #e87300;
    font-family: "Font Awesome 5 Free";
    font-size: 0.8em;
    font-weight: 900;
  }

  /* スライドイン：ホバーとキーボード選択の背景色 */
  #navi-menu-content .menu-drawer a:hover,
  #navi-menu-content .menu-drawer a:focus-visible {
    background-color: #fff3e8;
  }

  /* スライドイン：キーボード選択位置を明示する */
  #navi-menu-content .menu-drawer a:focus-visible {
    outline: 2px solid #e87300;
    outline-offset: -2px;
  }
}

/* ログイン時：管理バーとスライドインの閉じるボタンの重なりを防ぐ */
@media screen and (max-width: 1023px) {
  .admin-bar #navi-menu-content {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
  }
}

/* ログイン時：600px以下でも管理バーの下にメニューボタンを配置する */
@media screen and (max-width: 600px) {
  .admin-bar #wpadminbar {
    position: fixed;
  }

  .admin-bar .mobile-header-menu-buttons {
    top: var(--wp-admin--admin-bar--height, 46px);
  }

  body.admin-bar.mblt-header-mobile-buttons,
  body.admin-bar.mblt-header-and-footer-mobile-buttons {
    margin-top: var(--cocoon--mobile-header-menu-buttons--height, 50px);
  }
}

/* ==================================================
   11. モバイルフッターボタン（電話・お問い合わせ）
   ひまわり社労士事務所の2分割CTAを移植。
   外観 → メニューの「フッターモバイルボタン」とセットで使用。
================================================== */

@media screen and (max-width: 1023px) {
  /* 全体：透過背景とiPhoneのホームバー用余白 */
  .mobile-footer-menu-buttons {
    display: flex;
    background: transparent;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* ボタン：左右半分ずつの幅 */
  .mobile-footer-menu-buttons > li {
    flex: 1 1 50%;
    width: 50%;
  }

  .mobile-footer-menu-buttons > li > a.menu-button-in {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    padding: 0 8px;
    box-sizing: border-box;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
  }

  /* 配色：電話は共通ボタンのオレンジ／お問い合わせは見出しのブラウン */
  .mobile-footer-menu-buttons > li:first-child > a {
    background: #e87300;
  }

  .mobile-footer-menu-buttons > li:last-child > a {
    background: #8b6a6a;
  }

  /* アイコンと文字を横並びにする */
  .mobile-footer-menu-buttons .custom-menu-icon {
    display: inline-flex;
    align-items: center;
    width: auto;
    flex: 0 0 auto;
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
  }

  .mobile-footer-menu-buttons .custom-menu-caption {
    width: auto;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.4;
  }

  /* スライドインの末尾も固定ボタンに隠れないようにする */
  body.mblt-footer-mobile-buttons #navi-menu-content .menu-drawer,
  body.mblt-header-and-footer-mobile-buttons #navi-menu-content .menu-drawer {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  /* 最下部の内容が固定ボタンに隠れないようにする */
  body.mblt-footer-mobile-buttons,
  body.mblt-header-and-footer-mobile-buttons {
    margin-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}


/* ==================================================
   フッターウィジェット（ナビ・バナー・事務所情報）
================================================== */

/* 3つのウィジェットをPC・スマホで共用する */
#footer .footer-widgets:has(.hoikuen-footer-office),
.hoikuen-footer-parts .hoikuen-footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 4vw, 54px);
}

#footer .footer-widgets:has(.hoikuen-footer-office) {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 20px;
}

#footer .footer-widgets:has(.hoikuen-footer-office)::before,
#footer .footer-widgets:has(.hoikuen-footer-office)::after {
  display: none;
}

#footer .footer-widgets:has(.hoikuen-footer-office) > div {
  width: auto;
  min-width: 0;
  padding: 0;
}

#footer .footer-widgets:has(.hoikuen-footer-office) .widget {
  margin-bottom: 0;
}

/* 保守用パーツではフッターと同じ色で表示する */
.hoikuen-footer-parts {
  padding: clamp(18px, 3vw, 32px);
  background-color: #5b2903;
  color: #ffffff;
}

.hoikuen-footer-parts .hoikuen-footer-columns {
  margin: 0;
}

/* ナビゲーションは2列、子項目は親と同じ列に置く */
#footer .footer-center .widget_nav_menu .footer-title,
.hoikuen-footer-parts .hoikuen-footer-nav-title {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

/* 内側の2列：採用・定着・育成サポートの幅を確保する */
#footer .footer-center .widget_nav_menu,
.hoikuen-footer-parts .hoikuen-footer-nav-preview {
  container: hoikuen-footer-nav / inline-size;
}

#footer .footer-center .widget_nav_menu ul.menu,
.hoikuen-footer-parts .hoikuen-footer-nav-list {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(0, 1fr);
  grid-auto-flow: row dense;
  column-gap: 16px;
  margin: 0;
  padding: 0;
}

/* HOME〜お客様の声を左、ブログ以降を右に並べる */
#footer .footer-center .widget_nav_menu ul.menu > li,
.hoikuen-footer-parts .hoikuen-footer-nav-list > li {
  grid-column: 1;
}

#footer .footer-center .widget_nav_menu ul.menu > li:nth-child(n + 5),
.hoikuen-footer-parts .hoikuen-footer-nav-list > li:nth-child(n + 5) {
  grid-column: 2;
}

#footer .footer-center .widget_nav_menu ul.menu > li:has(> ul),
.hoikuen-footer-parts .hoikuen-footer-nav-list > li:has(> ul) {
  grid-row: span 2;
}

@container hoikuen-footer-nav (width < 250px) {
  #footer .footer-center .widget_nav_menu ul.menu,
  .hoikuen-footer-parts .hoikuen-footer-nav-list {
    display: block;
  }
}

#footer .footer-center .widget_nav_menu li,
.hoikuen-footer-parts .hoikuen-footer-nav-list li {
  break-inside: avoid;
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer .footer-center .widget_nav_menu .sub-menu,
.hoikuen-footer-parts .hoikuen-footer-nav-list ul {
  margin: 0;
  padding-inline-start: 10px;
  border-inline-start: 1px solid #ffffff50;
}

/* 狭いフッターでも列の間隔を維持する */
@container hoikuen-footer-nav (width < 310px) {
  #footer .footer-center .widget_nav_menu .sub-menu,
  .hoikuen-footer-parts .hoikuen-footer-nav-list ul {
    padding-inline-start: 5px;
  }
}

#footer .footer-center .widget_nav_menu li a,
.hoikuen-footer-parts .hoikuen-footer-nav-list a {
  display: block;
  padding: 5px 0;
  color: inherit;
  font-size: clamp(11.25px, calc((100cqi - 23px) / 20), 14px);
  line-height: 1.55;
  text-decoration: none;
}

#footer .footer-center .widget_nav_menu li a:hover,
.hoikuen-footer-parts .hoikuen-footer-nav-list a:hover,
.hoikuen-footer-office .hoikuen-footer-phone a:hover {
  background: transparent;
  color: #ffded1;
  text-decoration: underline;
}

#footer .footer-center .widget_nav_menu a[href$="/hoikusi-teityaku-ikusei/"],
.hoikuen-footer-parts .hoikuen-footer-nav-list a[href$="/hoikusi-teityaku-ikusei/"] {
  white-space: nowrap;
}

#footer .footer-center .widget_nav_menu li a::before {
  content: none;
}

#footer #footer-in:has(.hoikuen-footer-office) > .footer-bottom {
  margin-top: 8px;
}

/* 無料相談の横長バナー */
.hoikuen-footer-banner {
  width: min(100%, 580px);
  margin: 0 auto;
}

.hoikuen-footer-banner a,
.hoikuen-footer-banner img {
  display: block;
  width: 100%;
  border-radius: 4px;
}

/* 青木労務管理事務所の情報とお問い合わせボタン */
.hoikuen-footer-office {
  container-type: inline-size;
}

.hoikuen-footer-office .hoikuen-footer-office-name {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.5;
}

.hoikuen-footer-office .hoikuen-footer-phone {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.hoikuen-footer-office .hoikuen-footer-phone a {
  color: inherit;
  text-decoration: none;
}

.hoikuen-footer-office .hoikuen-footer-phone .fz-32px {
  font-size: clamp(15px, calc((100cqi - 118px) / 6.7), 32px) !important;
}

.hoikuen-footer-office .hoikuen-footer-address {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.hoikuen-footer-office .hoikuen-footer-actions {
  margin: 18px 0 0;
}

:is(#footer, .hoikuen-footer-parts) .hoikuen-footer-office .hoikuen-footer-contact .wp-block-button__link {
  padding: 9px 22px;
  border: 1px solid #ffded1;
  border-radius: 4px;
  background-color: #ffded1;
  color: #5b2903;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

:is(#footer, .hoikuen-footer-parts) .hoikuen-footer-office .hoikuen-footer-contact .wp-block-button__link:hover,
:is(#footer, .hoikuen-footer-parts) .hoikuen-footer-office .hoikuen-footer-contact .wp-block-button__link:focus-visible {
  background-color: transparent;
  color: #ffded1;
  opacity: 1;
}

#footer .footer-widgets a:focus-visible,
.hoikuen-footer-parts a:focus-visible {
  outline: 2px solid #ffded1;
  outline-offset: 3px;
}

/* PCのフッターナビ：バナーとお問い合わせボタンの下端に近づける */
@media (min-width: 901px) {
  #footer .footer-center .widget_nav_menu li a,
  .hoikuen-footer-parts .hoikuen-footer-nav-list a {
    padding-block: clamp(5px, calc(1.67vw - 10px), 9.5px);
  }
}

/* タブレットではバナーを上段に、スマホでは3枠を縦に並べる */
@media (max-width: 900px) {
  #footer .footer-widgets:has(.hoikuen-footer-office),
  .hoikuen-footer-parts .hoikuen-footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #footer .footer-widgets > .footer-left,
  .hoikuen-footer-parts .hoikuen-footer-columns > .wp-block-column:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  #footer .footer-widgets:has(.hoikuen-footer-office),
  .hoikuen-footer-parts .hoikuen-footer-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  #footer .footer-widgets:has(.hoikuen-footer-office) {
    padding: 30px 20px 12px;
  }

  .hoikuen-footer-office {
    text-align: center;
  }

  .hoikuen-footer-office .hoikuen-footer-actions {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(#footer, .hoikuen-footer-parts) .hoikuen-footer-office .hoikuen-footer-contact .wp-block-button__link {
    transition: none;
  }
}


/* フッターロゴ：事務所情報の先頭に表示する */
#footer #footer-in:has(.hoikuen-footer-logo) .footer-bottom-logo {
  display: none;
}

.hoikuen-footer-office .hoikuen-footer-logo {
  width: min(100%, 282px);
  margin: 0 0 14px;
}

.hoikuen-footer-office .hoikuen-footer-logo a,
.hoikuen-footer-office .hoikuen-footer-logo img {
  display: block;
  width: 100%;
}

.hoikuen-footer-office .hoikuen-footer-logo img {
  height: auto;
}

@media (max-width: 640px) {
  .hoikuen-footer-office .hoikuen-footer-logo {
    margin-inline: auto;
  }
}
