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

@charset "UTF-8";

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* =========================================================
   BenriSite Common Layout Foundation
   Step 1 / Official Ver.1.0
   ========================================================= */

:root {
  --benri-content-max: 1320px;
  --benri-space-1: 4px;
  --benri-space-2: 8px;
  --benri-space-3: 12px;
  --benri-space-4: 16px;
  --benri-space-5: 24px;
  --benri-space-6: 32px;
  --benri-space-7: 48px;
  --benri-gap: 16px;
  --benri-radius-sm: 6px;
  --benri-radius: 8px;
  --benri-radius-lg: 12px;
  --benri-border-color: #e2e6ea;
  --benri-text-color: #222;
  --benri-subtext-color: #666;
  --benri-bg-color: #fff;
  --benri-soft-bg: #f7f9fb;
  --benri-font-small: 13px;
  --benri-font-link: 14px;
  --benri-font-body: 15px;
  --benri-font-category: 16px;
  --benri-font-section: 20px;
  --benri-font-page-title: 30px;
}

.benri-container {
  width: min(calc(100% - (var(--benri-space-4) * 2)), var(--benri-content-max));
  margin-inline: auto;
}

.benri-section {
  margin-block: var(--benri-space-6);
}

.benri-section + .benri-section {
  margin-top: var(--benri-space-7);
}

.benri-section-title {
  margin: 0 0 var(--benri-space-4);
  color: var(--benri-text-color);
  font-size: var(--benri-font-section);
  font-weight: 700;
  line-height: 1.4;
}

.benri-grid {
  display: grid;
  gap: var(--benri-gap);
  align-items: stretch;
}

.benri-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.benri-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.benri-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.benri-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.benri-card {
  min-width: 0;
  padding: var(--benri-space-4);
  background: var(--benri-bg-color);
  border: 1px solid var(--benri-border-color);
  border-radius: var(--benri-radius);
  box-shadow: none;
}

.benri-card-title {
  margin: 0 0 var(--benri-space-3);
  color: var(--benri-text-color);
  font-size: var(--benri-font-category);
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.benri-text {
  margin: 0;
  color: var(--benri-text-color);
  font-size: var(--benri-font-body);
  line-height: 1.7;
}

.benri-subtext {
  color: var(--benri-subtext-color);
  font-size: var(--benri-font-small);
  line-height: 1.6;
}

.benri-link {
  color: inherit;
  font-size: var(--benri-font-link);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.benri-link:hover,
.benri-link:focus-visible,
.benri-more-link:hover,
.benri-more-link:focus-visible {
  text-decoration: underline;
}

.benri-more-link {
  display: inline-flex;
  align-items: center;
  gap: var(--benri-space-1);
  font-size: var(--benri-font-link);
  font-weight: 600;
  text-decoration: none;
}

.benri-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--benri-border-color);
  border-radius: 999px;
  background: var(--benri-bg-color);
  color: var(--benri-text-color);
  font-size: var(--benri-font-small);
  line-height: 1.3;
  text-decoration: none;
}

.benri-chip:hover,
.benri-chip:focus-visible {
  background: var(--benri-soft-bg);
}

.benri-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--benri-soft-bg);
  font-size: 12px;
  line-height: 1.4;
}

.benri-pc-only { display: block; }
.benri-mobile-only { display: none; }

.benri-link:focus-visible,
.benri-more-link:focus-visible,
.benri-chip:focus-visible,
.benri-card a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* =========================================================
   BenriSite Layout
   Step 1 Official / Ver.1.0
   Target: body.benri-layout
   ========================================================= */

body.benri-layout #content {
  width: min(calc(100% - 32px), var(--benri-content-max));
  max-width: var(--benri-content-max);
  margin-left: auto;
  margin-right: auto;
}

body.benri-layout #main {
  width: 100%;
  max-width: none;
  float: none;
  margin-left: 0;
  margin-right: 0;
}

body.benri-layout .main,
body.benri-layout .entry-content {
  max-width: none;
}

body.benri-layout .benri-container {
  width: 100%;
  max-width: var(--benri-content-max);
  margin-left: auto;
  margin-right: auto;
}

body.benri-layout #sidebar,
body.benri-layout .entry-title,
body.benri-layout .sns-share,
body.benri-layout .sns-share-message,
body.benri-layout .sns-share-buttons,
body.benri-layout .sns-follow,
body.benri-layout .sns-follow-message,
body.benri-layout .sns-follow-buttons,
body.benri-layout .date-tags,
body.benri-layout .post-date,
body.benri-layout .post-update,
body.benri-layout .author-info,
body.benri-layout .entry-meta,
body.benri-layout .toc,
body.benri-layout .toc-widget-box,
body.benri-layout .toc-content,
body.benri-layout .breadcrumb {
  display: none !important;
}

body.benri-layout .article { padding-top: 0; }
body.benri-layout .entry-content { margin-top: 0; }

body.benri-layout .benri-container h2,
body.benri-layout .benri-container h3 {
  border: 0;
  background: none;
  box-shadow: none;
}

body.benri-layout .benri-section-title {
  margin: 0 0 var(--benri-space-4);
  padding: 0 0 0 10px;
  border: 0;
  border-left: 4px solid #1769d2;
  background: transparent;
  box-shadow: none;
  color: var(--benri-text-color);
  font-size: var(--benri-font-section);
  font-weight: 700;
  line-height: 1.4;
}

body.benri-layout .benri-card-title {
  margin: 0 0 var(--benri-space-3);
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--benri-text-color);
  font-size: var(--benri-font-category);
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media screen and (max-width: 1024px) {
  :root { --benri-font-page-title: 28px; }

  .benri-grid--5,
  .benri-grid--4,
  .benri-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.benri-layout #content {
    width: calc(100% - 32px);
  }
}

@media screen and (max-width: 767px) {
  :root {
    --benri-space-6: 24px;
    --benri-space-7: 32px;
    --benri-gap: 12px;
    --benri-font-body: 15px;
    --benri-font-link: 14px;
    --benri-font-category: 16px;
    --benri-font-section: 19px;
    --benri-font-page-title: 26px;
  }

  .benri-container {
    width: min(calc(100% - (var(--benri-space-4) * 2)), var(--benri-content-max));
  }

  .benri-grid--2,
  .benri-grid--3,
  .benri-grid--4,
  .benri-grid--5 {
    grid-template-columns: 1fr;
  }

  .benri-card { padding: var(--benri-space-3); }
  .benri-pc-only { display: none !important; }
  .benri-mobile-only { display: block !important; }

  body.benri-layout #content {
    width: calc(100% - 32px);
  }

  body.benri-layout .benri-section-title { font-size: 19px; }
  body.benri-layout .benri-card-title { font-size: 16px; }
}

/* =========================================================
   BenriSite Common Header
   Step 2 Official Ver.1.0
   Target: body.benri-layout
   ========================================================= */

body.benri-layout #header-container {
  background: #fff;
  border-bottom: 1px solid var(--benri-border-color);
  box-shadow: none;
}

body.benri-layout #header-container-in,
body.benri-layout #header {
  background: #fff;
}

body.benri-layout #header-in {
  width: min(calc(100% - 32px), var(--benri-content-max));
  max-width: var(--benri-content-max);
  min-height: 72px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 24px;
}

body.benri-layout #header-in.cf::after {
  content: none;
  display: none;
}

body.benri-layout #header-in > .logo-header {
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  flex-basis: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

body.benri-layout #header-in > .logo-header .site-name {
  width: auto !important;
  margin: 0 !important;
}

body.benri-layout .logo-header .site-name-text-link {
  display: inline-flex;
  align-items: center;
  color: var(--benri-text-color);
  text-decoration: none;
}

body.benri-layout .logo-header .site-name-text {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

body.benri-layout #header-in > .benri-header-tools {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 18px;
}

body.benri-layout .benri-header-search {
  margin: 0;
  display: flex;
  align-items: stretch;
}

body.benri-layout .benri-header-search--desktop {
  flex: 1 1 420px;
  min-width: 260px;
  max-width: 620px;
}

body.benri-layout .benri-header-search-input {
  width: 100%;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #cfd6dd;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #fff;
  color: var(--benri-text-color);
  font-size: 14px;
  line-height: 1;
  box-shadow: none;
}

body.benri-layout .benri-header-search-input:focus {
  border-color: #1769d2;
  outline: 2px solid rgba(23, 105, 210, 0.15);
  outline-offset: 0;
}

body.benri-layout .benri-header-search-button {
  flex: 0 0 auto;
  height: 42px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #1769d2;
  border-radius: 0 8px 8px 0;
  background: #1769d2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body.benri-layout .benri-header-nav {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.benri-layout .benri-header-nav-link,
body.benri-layout .benri-header-menu-button {
  min-height: 40px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
  text-decoration: none;
  white-space: nowrap;
}

body.benri-layout .benri-header-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
}

body.benri-layout .benri-header-nav-link:hover,
body.benri-layout .benri-header-nav-link:focus-visible,
body.benri-layout .benri-header-menu-button:hover,
body.benri-layout .benri-header-menu-button:focus-visible {
  background: var(--benri-soft-bg);
  text-decoration: none;
}

body.benri-layout .benri-header-mobile-search {
  display: none;
}

/* Tablet: 検索は維持し、補助リンクを隠して幅を確保 */
@media screen and (max-width: 1024px) {
  body.benri-layout #header-in {
    gap: 16px;
  }

  body.benri-layout .logo-header .site-name-text {
    font-size: 22px;
  }

  body.benri-layout .benri-header-nav-link--today,
  body.benri-layout .benri-header-nav-link--features {
    display: none;
  }

  body.benri-layout .benri-header-search--desktop {
    max-width: none;
  }
}

/* Smartphone: サイト名 + 検索 + メニュー */
@media screen and (max-width: 767px) {
  body.benri-layout #header-in {
    position: relative;
    width: calc(100% - 24px);
    min-height: 60px;
    padding: 8px 0;
    gap: 8px;
  }

  body.benri-layout .logo-header {
    min-width: 0;
    flex: 1 1 auto;
  }

  body.benri-layout .logo-header .site-name-text {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.benri-layout .benri-header-tools {
    flex: 0 0 auto;
    gap: 4px;
  }

  body.benri-layout .benri-header-search--desktop {
    display: none;
  }

  body.benri-layout .benri-header-nav {
    margin-left: 0;
    gap: 2px;
  }

  body.benri-layout .benri-header-menu-button {
    width: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
    line-height: 1;
  }

  body.benri-layout .benri-header-menu-text {
    display: none;
  }

  body.benri-layout .benri-header-mobile-search {
    position: static;
    display: block;
    order: -1;
    margin: 0;
  }

  body.benri-layout .benri-header-mobile-search > summary {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #333;
    cursor: pointer;
    list-style: none;
  }

  body.benri-layout .benri-header-mobile-search > summary::-webkit-details-marker {
    display: none;
  }

  body.benri-layout .benri-header-mobile-search > summary:hover,
  body.benri-layout .benri-header-mobile-search > summary:focus-visible {
    background: var(--benri-soft-bg);
  }

  body.benri-layout .benri-header-mobile-search-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--benri-border-color);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  }

  body.benri-layout .benri-header-search--mobile {
    width: 100%;
  }
}

/* =========================================================
   BenriSite Search UI
   Step 2 Official Ver.1.0
   Target: body.benri-layout
   ========================================================= */

body.benri-layout .benri-header-search-input::placeholder {
  color: #7a828a;
  opacity: 1;
}

body.benri-layout .benri-header-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

body.benri-layout .benri-header-search-button:hover,
body.benri-layout .benri-header-search-button:focus-visible {
  background: #1259b4;
  border-color: #1259b4;
}

body.benri-layout .benri-header-search-button:focus-visible {
  outline: 2px solid rgba(23, 105, 210, 0.30);
  outline-offset: 2px;
}

body.benri-layout .benri-search-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.benri-layout .benri-header-mobile-search[open] > summary {
  background: var(--benri-soft-bg);
}

body.benri-layout .benri-header-mobile-search-panel {
  box-sizing: border-box;
}

body.benri-layout .benri-header-search--mobile .benri-header-search-input {
  min-width: 0;
}

@media screen and (max-width: 767px) {
  body.benri-layout .benri-header-mobile-search-panel {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
  }
}



/* =========================================================
   BenriSite Common Menu
   Step 2 Official Ver.1.0
   Target: body.benri-layout
   ========================================================= */

body.benri-layout.benri-menu-open {
  overflow: hidden;
}

body.benri-layout .benri-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: rgba(20, 28, 38, 0.38);
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.benri-layout .benri-menu-overlay.is-open {
  opacity: 1;
}

body.benri-layout .benri-site-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9998;
  width: min(360px, calc(100vw - 32px));
  height: 100dvh;
  max-height: 100vh;
  padding: 0;
  overflow-y: auto;
  background: #fff;
  border-left: 1px solid var(--benri-border-color);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12);
  transform: translateX(105%);
  visibility: hidden;
  transition:
    transform 0.22s ease,
    visibility 0s linear 0.22s;
}

body.benri-layout .benri-site-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 0.22s ease,
    visibility 0s linear 0s;
}

body.benri-layout .benri-site-menu-header {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 64px;
  padding: 12px 16px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid var(--benri-border-color);
}

body.benri-layout .benri-site-menu-title {
  color: var(--benri-text-color);
  font-size: 18px;
  line-height: 1.4;
}

body.benri-layout .benri-site-menu-close {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

body.benri-layout .benri-site-menu-close:hover,
body.benri-layout .benri-site-menu-close:focus-visible {
  background: var(--benri-soft-bg);
}

body.benri-layout .benri-site-menu-nav {
  padding: 10px 16px 28px;
  display: flex;
  flex-direction: column;
}

body.benri-layout .benri-site-menu-nav a {
  min-height: 48px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #edf0f3;
  color: var(--benri-text-color);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

body.benri-layout .benri-site-menu-nav a::after {
  content: "›";
  margin-left: auto;
  padding-left: 16px;
  color: #8a929a;
  font-size: 22px;
  font-weight: 400;
}

body.benri-layout .benri-site-menu-nav a:hover,
body.benri-layout .benri-site-menu-nav a:focus-visible {
  background: var(--benri-soft-bg);
  color: #1769d2;
  text-decoration: none;
}

body.benri-layout .benri-header-menu-button[aria-expanded="true"] {
  background: var(--benri-soft-bg);
}

@media screen and (max-width: 767px) {
  body.benri-layout .benri-site-menu {
    width: min(320px, calc(100vw - 24px));
  }

  body.benri-layout .benri-site-menu-header {
    min-height: 60px;
  }

  body.benri-layout .benri-site-menu-nav {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.benri-layout .benri-site-menu-nav a {
    min-height: 50px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.benri-layout .benri-site-menu,
  body.benri-layout .benri-menu-overlay {
    transition: none;
  }
}

/* =========================================================
   BenriSite Menu Admin-Bar Offset
   Step 2 Official Ver.1.0
   ログイン中のWordPress管理バーで「メニュー / ×」が隠れないようにする
   ========================================================= */

body.admin-bar.benri-layout .benri-site-menu {
  top: 32px;
  height: calc(100dvh - 32px);
  max-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar.benri-layout .benri-site-menu {
    top: 46px;
    height: calc(100dvh - 46px);
    max-height: calc(100vh - 46px);
  }
}


/* =========================================================
   BenriSite Common Footer
   Step 2 Official Ver.1.0
   Target: body.benri-layout
   ========================================================= */

/* Cocoon標準フッターはBenriSite専用ページだけ非表示 */
body.benri-layout #footer {
  display: none !important;
}

body.benri-layout .benri-footer {
  margin-top: 56px;
  background: #f7f9fb;
  border-top: 1px solid var(--benri-border-color);
  color: var(--benri-text-color);
}

body.benri-layout .benri-footer-inner {
  width: min(calc(100% - 32px), var(--benri-content-max));
  max-width: var(--benri-content-max);
  margin: 0 auto;
  padding: 40px 0 20px;
}

body.benri-layout .benri-footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

body.benri-layout .benri-footer-column {
  min-width: 0;
}

body.benri-layout .benri-footer-heading {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--benri-text-color);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

body.benri-layout .benri-footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.benri-layout .benri-footer-links a {
  min-height: 36px;
  padding: 7px 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  color: #4b5560;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

body.benri-layout .benri-footer-links a:hover,
body.benri-layout .benri-footer-links a:focus-visible {
  color: #1769d2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.benri-layout .benri-footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--benri-border-color);
}

body.benri-layout .benri-footer-brand {
  color: var(--benri-text-color);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

body.benri-layout .benri-footer-brand:hover,
body.benri-layout .benri-footer-brand:focus-visible {
  color: #1769d2;
}

body.benri-layout .benri-footer-copyright {
  margin: 0;
  color: var(--benri-subtext-color);
  font-size: 12px;
  line-height: 1.5;
}

/* Tablet */
@media screen and (max-width: 1024px) {
  body.benri-layout .benri-footer {
    margin-top: 48px;
  }

  body.benri-layout .benri-footer-columns {
    gap: 32px;
  }
}

/* Smartphone */
@media screen and (max-width: 767px) {
  body.benri-layout .benri-footer {
    margin-top: 40px;
  }

  body.benri-layout .benri-footer-inner {
    width: calc(100% - 32px);
    padding: 30px 0 18px;
  }

  body.benri-layout .benri-footer-columns {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  body.benri-layout .benri-footer-heading {
    margin-bottom: 8px;
    font-size: 16px;
  }

  body.benri-layout .benri-footer-links a {
    min-height: 42px;
    padding: 9px 0;
    font-size: 15px;
  }

  body.benri-layout .benri-footer-bottom {
    margin-top: 26px;
    padding-top: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}




/* =========================================================
   BenriSite Mobile Fixed Bottom Navigation
   Step 2 Official Ver.1.0
   Target: body.benri-layout
   ========================================================= */

body.benri-layout .benri-mobile-bottom-nav {
  display: none;
}

@media screen and (max-width: 767px) {
  body.benri-layout {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  body.benri-layout .benri-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9996;
    min-height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--benri-border-color);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  body.benri-layout .benri-mobile-bottom-item {
    min-width: 0;
    min-height: 60px;
    padding: 6px 2px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: #414851;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  body.benri-layout .benri-mobile-bottom-item:hover,
  body.benri-layout .benri-mobile-bottom-item:focus-visible {
    background: var(--benri-soft-bg);
    color: #1769d2;
    text-decoration: none;
  }

  body.benri-layout .benri-mobile-bottom-item:focus-visible {
    outline: 2px solid #1769d2;
    outline-offset: -2px;
  }

  body.benri-layout .benri-mobile-bottom-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.benri-layout .benri-mobile-bottom-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.benri-layout .benri-mobile-bottom-item:nth-child(-n+4) .benri-mobile-bottom-icon svg path,
  body.benri-layout .benri-mobile-bottom-item:nth-child(-n+4) .benri-mobile-bottom-icon svg rect {
    vector-effect: non-scaling-stroke;
  }

  body.benri-layout .benri-mobile-bottom-label {
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body.benri-layout .go-to-top {
    display: none !important;
  }

  body.benri-layout.benri-menu-open .benri-mobile-bottom-nav {
    z-index: 9995;
  }
}

@media screen and (max-width: 360px) {
  body.benri-layout .benri-mobile-bottom-label {
    font-size: 9px;
  }

  body.benri-layout .benri-mobile-bottom-icon,
  body.benri-layout .benri-mobile-bottom-icon svg {
    width: 20px;
    height: 20px;
  }
}


/* =========================================================
   便利なサイトまとめ - よく使う定番サイト
   Step 3-1 / Official Candidate Ver.1.0
   ========================================================= */

body.benri-layout .benri-home-favorites {
  margin: 0 0 36px;
}

body.benri-layout .benri-home-favorites-head {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.benri-layout .benri-home-favorites-title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--benri-text-color);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

body.benri-layout .benri-home-favorites-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

body.benri-layout .benri-home-favorite-link {
  order: 0;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--benri-border-color);
  border-radius: var(--benri-radius);
  background: #fff;
  color: var(--benri-text-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

body.benri-layout .benri-home-favorite-link:hover,
body.benri-layout .benri-home-favorite-link:focus-visible {
  border-color: #aeb9c4;
  background: var(--benri-soft-bg);
  color: #1769d2;
  text-decoration: none;
}

body.benri-layout .benri-home-favorite-link:focus-visible {
  outline: 2px solid rgba(23, 105, 210, 0.30);
  outline-offset: 2px;
}

body.benri-layout .benri-home-favorite-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.benri-layout .benri-home-favorite-external {
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex: 0 0 16px;
  color: #7a828a;
}

body.benri-layout .benri-home-favorite-external svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media screen and (max-width: 1024px) {
  body.benri-layout .benri-home-favorites-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  body.benri-layout .benri-home-favorites {
    margin-bottom: 28px;
  }

  body.benri-layout .benri-home-favorites-head {
    margin-bottom: 12px;
  }

  body.benri-layout .benri-home-favorites-title {
    font-size: 17px;
  }

  body.benri-layout .benri-home-favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.benri-layout .benri-home-favorite-link[data-site-key="yahoo-japan"]   { order: 1; }
  body.benri-layout .benri-home-favorite-link[data-site-key="google"]        { order: 2; }
  body.benri-layout .benri-home-favorite-link[data-site-key="yahoo-news"]    { order: 3; }
  body.benri-layout .benri-home-favorite-link[data-site-key="chatgpt"]       { order: 4; }
  body.benri-layout .benri-home-favorite-link[data-site-key="youtube"]       { order: 5; }
  body.benri-layout .benri-home-favorite-link[data-site-key="x"]             { order: 6; }
  body.benri-layout .benri-home-favorite-link[data-site-key="amazon"]        { order: 7; }
  body.benri-layout .benri-home-favorite-link[data-site-key="rakuten"]       { order: 8; }
  body.benri-layout .benri-home-favorite-link[data-site-key="yahoo-weather"] { order: 9; }
  body.benri-layout .benri-home-favorite-link[data-site-key="google-maps"]   { order: 10; }

  body.benri-layout .benri-home-favorite-link {
    min-height: 46px;
    padding: 9px 10px;
    font-size: 13px;
  }
}

@media screen and (max-width: 360px) {
  body.benri-layout .benri-home-favorite-link {
    font-size: 12px;
  }
}


/* =========================================================
   便利なサイトまとめ - 26カテゴリー本体
   Step 3-7 Home Health Family Ver.1.0
   ========================================================= */

body.benri-layout .benri-home-category-group {
  margin: 0 0 42px;
}

body.benri-layout .benri-home-category-group-head {
  margin: 0 0 14px;
}

body.benri-layout .benri-home-category-group-title {
  margin: 0;
  padding: 0 0 0 10px;
  border: 0;
  border-left: 4px solid #1769d2;
  background: transparent;
  box-shadow: none;
  color: var(--benri-text-color);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

body.benri-layout .benri-home-category-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

body.benri-layout .benri-home-category-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.benri-layout .benri-home-category-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.benri-layout .benri-home-category-card {
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--benri-border-color);
  border-radius: 10px;
  background: #fff;
}

body.benri-layout .benri-home-category-card-title {
  margin: 0 0 14px;
  padding: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--benri-text-color);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.benri-layout .benri-home-category-site-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.benri-layout .benri-home-category-site-link {
  min-width: 0;
  min-height: 31px;
  padding: 5px 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #edf0f3;
  color: #39424c;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
}

body.benri-layout .benri-home-category-site-link:first-child {
  border-top: 1px solid #edf0f3;
}

body.benri-layout .benri-home-category-site-link:hover,
body.benri-layout .benri-home-category-site-link:focus-visible {
  color: #1769d2;
  background: #f8fafc;
  text-decoration: none;
}

body.benri-layout .benri-home-category-site-link:focus-visible {
  outline: 2px solid rgba(23, 105, 210, 0.30);
  outline-offset: 1px;
}

body.benri-layout .benri-home-category-site-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.benri-layout .benri-home-category-site-external {
  width: 14px;
  height: 14px;
  margin-left: auto;
  flex: 0 0 14px;
  color: #8a929a;
}

body.benri-layout .benri-home-category-site-external svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.benri-layout .benri-home-category-card-more {
  margin-top: auto;
  padding-top: 16px;
  color: #1769d2;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

body.benri-layout .benri-home-category-card-more span {
  padding-left: 2px;
}

@media screen and (max-width: 1024px) {
  body.benri-layout .benri-home-category-grid--4,
  body.benri-layout .benri-home-category-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  body.benri-layout .benri-home-category-group {
    margin-bottom: 32px;
  }

  body.benri-layout .benri-home-category-group-head {
    margin-bottom: 12px;
  }

  body.benri-layout .benri-home-category-group-title {
    font-size: 18px;
  }

  body.benri-layout .benri-home-category-grid {
    gap: 8px;
  }

  body.benri-layout .benri-home-category-grid--4,
  body.benri-layout .benri-home-category-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.benri-layout .benri-home-category-card {
    min-height: 70px;
    padding: 12px 10px;
    justify-content: center;
  }

  body.benri-layout .benri-home-category-card-title {
    min-height: 0;
    margin: 0;
    justify-content: flex-start;
    font-size: 14px;
    line-height: 1.45;
  }

  body.benri-layout .benri-home-category-site-list,
  body.benri-layout .benri-home-category-card-more {
    display: none !important;
  }
}

@media screen and (max-width: 360px) {
  body.benri-layout .benri-home-category-card {
    min-height: 66px;
    padding-left: 9px;
    padding-right: 9px;
  }

  body.benri-layout .benri-home-category-card-title {
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  body.benri-layout .benri-home-category-grid--5 > .benri-home-category-card:nth-child(5) {
    grid-column: 1 / -1;
    width: 64%;
    justify-self: center;
  }

  body.benri-layout .benri-home-category-grid--5 > .benri-home-category-card:nth-child(5) .benri-home-category-card-title {
    white-space: nowrap;
  }
}

@media screen and (max-width: 480px) {
  body.benri-layout .benri-home-category-card-title {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

/* =========================================================
   便利なサイトまとめ - 今日の話題
   Step 4-2 / Formal Layout Candidate Ver.1.0
   PCは縦の余白を抑えて情報密度を上げ、
   スマホは読みやすさとタップ領域を維持する。
   ========================================================= */

body.benri-layout .benri-home-today {
  margin: 4px 0 36px;
  padding: 18px 20px 16px;
  border: 1px solid var(--benri-border-color);
  border-radius: 10px;
  background: #fff;
}

body.benri-layout .benri-home-today-head {
  margin: 0 0 10px;
}

body.benri-layout .benri-home-today-title {
  margin: 0;
  padding: 0 0 0 10px;
  border: 0;
  border-left: 4px solid #1769d2;
  background: transparent;
  box-shadow: none;
  color: var(--benri-text-color);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

body.benri-layout .benri-home-today-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: benri-today;
}

body.benri-layout .benri-home-today-item {
  counter-increment: benri-today;
  min-height: 42px;
  padding: 7px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf0f3;
}

body.benri-layout .benri-home-today-item:first-child {
  border-top: 1px solid #edf0f3;
}

body.benri-layout .benri-home-today-item::before {
  content: counter(benri-today);
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  color: #46515d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

body.benri-layout .benri-home-today-item-title {
  min-width: 0;
  color: #303943;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.benri-layout .benri-home-today-more {
  margin-top: 10px;
  color: #1769d2;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}

@media screen and (max-width: 767px) {
  body.benri-layout .benri-home-today {
    margin: 4px 0 32px;
    padding: 16px 14px 14px;
  }

  body.benri-layout .benri-home-today-head {
    margin-bottom: 12px;
  }

  body.benri-layout .benri-home-today-title {
    font-size: 18px;
  }

  body.benri-layout .benri-home-today-item {
    min-height: 50px;
    padding: 10px 2px;
    gap: 10px;
  }

  body.benri-layout .benri-home-today-item::before {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 12px;
  }

  body.benri-layout .benri-home-today-item-title {
    font-size: 14px;
    line-height: 1.55;
  }

  body.benri-layout .benri-home-today-more {
    margin-top: 12px;
    text-align: left;
  }
}


