/* pc用のstyle.css */

@charset "utf-8";
/* CSS Document */

@media screen and (min-width:1024px) {
  :root {
    --bg: #fffef9;
    --panel: #ffffff;
    --panel-2: #ffffff;
    --text: #384159;
    --muted: #6b7388;
    --accent: #4aa3ff;
    --radius: 16px;
    --shadow: 0 6px 20px rgba(56, 65, 89, .12);
  }
  .child_menu{
    margin: 0!important;
  }
  a:-webkit-any-link {
    text-decoration: none;
  }
  p {
    margin: 0;
    padding: 0;
  }
  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    background: var(--bg)!important;
    color: var(--text);
    letter-spacing: 0.05em;
    overflow: scroll;   
  }
  .content-area {
    margin-left: 30rem;
    width: calc(100% - 30rem);
    box-sizing: border-box;
  }


  /* タイトルcss */
  .title {
    position: relative;
    margin-left: 30rem;  /*画面の中央に配置*/
    display: flex;
    justify-self: center;
    text-align: center;
    margin-bottom: 10rem; /*統一事項*/
    margin-top: 10rem; /*統一事項*/
  }
  /*ここで画像のサイズを指定する*/
  .title img {
    width: 500px;
    height: 100%;
  }

  .title p {
    position: absolute;
    top: 50%; /* 縦方向の中央 */
    left: 50%; /* 横方向の中央 */
    transform: translate(-50%, -50%);
    font-family: dnp-shuei-shogomincho-std, serif;
    font-style: normal;
    font-weight: 550;
    font-size: 35px;
    color: #384159;
    margin: 0;
  }


  /* 検索バー全体のレイアウト */
  .cards-toolbar {
    display: flex;
    flex-direction: column;
    position: fixed;
    width: 30rem;
    height: calc(100% - 60px);
    left: 0;
    top: 60px;
    padding: 0 0 50px 30px;
    background: #fffef9;
    overflow-y:scroll;
  }

  /* キーワード検索レイアウト */
  .keyw{
    display: inline-block;
    border-left: 5px double #384159;
    padding: 2px 8px;
    margin-top: 4.8rem;
    margin-bottom: 1.6rem;
  }
  .keyw h3{
    margin: 0;
    font-size: 17px;
    font-weight: 550;
    color: #384159;
    font-family: dnp-shuei-shogomincho-std, serif;
    letter-spacing: 0.05em;
  }
  .cards-title {
    margin: 0 auto 8px auto;
    width: min(1100px, 100%);
    max-width: 1100px;
    font-size: 17px;
    color: var(--text);
    font-family: dnp-shuei-shogomincho-std, serif;
    font-style: normal;
    font-weight: 550;
    letter-spacing: 0.05em;
  }

  /* キーワード検索フォーム（PC） */
  .cards-toolbar .search {
    display: flex;
    align-items: center;
    gap: 0;
    width: 90%;
    height: 40px;
    margin-bottom: 2rem;
    background: #fffef9;
    border: 2px solid #384159;
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--text);
    flex: 0 0 auto;     /* もしくは flex-shrink: 0; */
  }

  /* 入力欄 */
  .cards-toolbar .search input {
    flex: 1 1 auto;
    width: 90%;
    height: 100%;
    padding: 0 14px;
    background: transparent;
    border: none;
    outline: none;
    color: inherit;
    font-size: 15px;
    font-family: sawarabi-mincho, serif;
    font-style: normal;
    font-weight: 550;
    letter-spacing: 0.05em;
  }

  .cards-toolbar .search input::placeholder {
    font-size: 15px;
    color: var(--muted);
  }

  /* 検索ボタン */
  .cards-toolbar .search .search-button {
    display: block;
    height: 100%;
    background-color: #384159;
    border: none;
    cursor: pointer;
    flex: 0 0 auto;     /* ボタン側の収縮も防いでおくとより安全 */
  }

  /* ボタンのフォーカスリング */
  .cards-toolbar .search .search-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  /* アイコン画像 */
  .cards-toolbar .search .search-button img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
  }

  /* フィルターレイアウト */

  .filter-title {
    display: flex;
    align-items: center;
    border-left: 5px double #384159;
    padding: 2px 8px;
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
  }

  .filter-title h3,
  .filter-title-text {
    margin: 0;
    font-size: 17px;
    font-weight: 550;
    color: #384159;
    font-family: dnp-shuei-shogomincho-std, serif;
    letter-spacing: 0.05em;
  }
  .filter-title-text {
    flex: 1;
    text-align: left;
  }
  .filter-title h4,
  .filter-title-text--sub {
    margin: 0;
    font-size: 15px;
    font-weight: 550;
    color: #384159;
    font-family: dnp-shuei-shogomincho-std, serif;
    letter-spacing: 0.05em;
  }

  .filter-title--sub {
    margin: 1.28rem 0 0.64rem;
    padding-left: 8px;
  }

  .filter-group {
    width: 90%;
    margin-top:0;
    margin-bottom: 2rem;
  }


  .filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #384159;
    gap: 8px;
  }

  .filter-toggle:hover {
    background: rgba(56, 65, 89, 0.12);
  }

  .filter-toggle:focus-visible {
    outline: 2px solid #4aa3ff;
    outline-offset: 2px;
  }

  .filter-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .filter-trigger-icon {
    width: 50px;
    height: 100%;
    transition: transform 0.4s ease;
    flex-shrink: 0;
  }

  .filter-toggle[aria-expanded="true"] .filter-trigger-icon {
    transform: rotate(180deg);
  }

  .filter-menu {
    display: flex;
    flex-direction: column;
  }

  .filter-menu[hidden] {
    display: none;
  }

  .filter-subsection {
    margin-left: 1.6rem;
  }

  .filter-subsection:last-child {
    margin-bottom: 0;
  }

  .filter-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 15px;
    color: #384159;
    font-family: sawarabi-mincho, serif;
    font-style: normal;
    font-weight: 550;
    font-size: 17px;
    margin:0 ;
  }

  .filter-option input {
    width: 16px;
    height: 16px;
    accent-color: #384159;
    margin: 0!important;
  }


  .cards-header .count {
    font-size: 17px;
    color: #384159;
  }

  .cards-toolbar .count {
    display: block;
    margin: 1.28rem 0 0;
    text-align: left;
    font-size: 15px;
    color: #384159;
    font-family: sawarabi-mincho, serif;
    font-style: normal;
    font-weight: 550;  
  }

  .cards-grid {
    margin: 0 auto;
    display: grid;
    appearance: none;
    padding: 0 3.2rem;
    gap: 20px;
    justify-content: center;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  }

  /* カードcss */
  .cards-page {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cards-sidebar {
    display: none;
  }

  .cards-header {
    margin: 0 0 12px;
  }
  .card-underline {
    border-bottom: 1px solid #384159;
    display: inline-block;
  }

  .cards-grid .card {
    background: #fffef9;
    padding: 0.8rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border: #384159 5px solid;
    position: relative;
    overflow: hidden;
  }

  .cards-grid .card::before,
  .cards-grid .card::after {
    position: absolute;
    inset: 0;
    margin: auto;
    transition: opacity .3s cubic-bezier(0.45, 0, 0.55, 1);
    opacity: 0;
    pointer-events: none;
  }

  .cards-grid .card::before {
    content: "";
    background: rgba(230, 230, 230, 0.8);
  }

  .cards-grid .card::after {
    content: "詳細を確認する";
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 17px;
    font-family: sawarabi-mincho, serif;
    font-style: normal;
    font-weight: 550;
    color: #384159;
  }

  .cards-grid .card:hover::before,
  .cards-grid .card:hover::after,
  .cards-grid .card:focus-within::before,
  .cards-grid .card:focus-within::after {
    opacity: 1;
  }

  .cards-grid .card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
  }

  .cards-grid .card-link:focus,
  .cards-grid .card-link:hover {
    outline: none;
    text-decoration: none;
  }

  .cards-grid .card-title {
    font-size: 1.76rem;
    font-family: dnp-shuei-shogomincho-std, serif;
    font-style: normal;
    font-weight: 550;
    color: #384159;
    letter-spacing: 0.05em;
  }

  .cards-grid .flex-row {
    display: flex;
    align-items: flex-start;
    font-size: 1.28rem;
    margin-bottom: 0.16rem;
    font-family: sawarabi-mincho, serif;
    font-style: normal;
    font-weight: 550;
    color: #384159;
  }

  .cards-grid .flex-row:last-child {
    margin-bottom: 0;
  }

  .cards-grid .label {
    color: #384159;
    font-size: 1.28rem;
    display: flex;
    width: 120px;
    flex: 0 0 110px;
    align-self: flex-start;
    align-items: center;
    font-weight: bold;
    justify-content: flex-start;
    padding:0;
    line-height: normal;
  }

  .cards-grid .value {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .cards-grid .label1 {
    font-family: dnp-shuei-shogomincho-std, serif;
    font-style: normal;
    font-weight: 550;
    letter-spacing: 0.05em;
    color: #384159;
    margin-bottom: 0.5rem;
  }

  .cards-grid .empty {
    text-align: center;
    grid-column: 1 / -1;
    padding: 24px 12px;
    color: #384159;
    line-height: 1.8;
    font-family: sawarabi-mincho, serif;
    font-style: normal;
    font-weight: 550;
    font-size: 17px;
    letter-spacing: 0.05em;
  }

  .cards-grid .empty-title {
    margin: 0 0 8px;
  }

  .cards-grid .empty-message {
    margin: 0;
  }

  .pagination {
    max-width: 1100px;
    display: flex!important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8rem!important; /*統一事項*/
    margin-bottom:10rem!important; /*統一事項*/
  }

  .label-icon {
    width: 1.6rem;
    height: 1.6rem;
    flex: 0 0 1.6rem;
    margin-right: 0.48rem;
    object-fit: contain;
  }

  .pagination button,
  .pagination span {
    background: #fffef9;
    color: var(--text);
    border: none;
    padding: 6px 10px;
    font-family: dnp-shuei-shogomincho-std, serif;
    font-style: normal;
    font-weight: 550;
    font-size: 15px;
    cursor: pointer;
  }

  .pagination span.ellipsis {
    border: none;
    background: transparent;
    cursor: default;
    padding: 0 6px;
  }

  .pagination button.active {
    text-decoration: underline;
    color:#fffef9;
    background-color: #384159;
    font-size: 15px;
    font-family: dnp-shuei-shogomincho-std, serif;
    font-style: normal;
    font-weight: 550;
  }

  .pagination button:disabled {
    opacity: .5;
    cursor: default;
  }

}
