/*
Theme Name: demo site
Theme URI: https://unazukidemo.local
Author: yoichi.mihara
Description: デモ用
Version: 1.0.0
*/

/* ------------------------------ */
/* リセットCSS */
/* ------------------------------ */

html {
    color: #000;
    background: #fff;
}

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td {
    margin: 0;
    padding: 0;
}

table {
    /* border-collapse: collapse; */
    border-spacing: 1px;
    width: 100%;
}

fieldset,
img {
    border: 0;
}

address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var {
    font-style: normal;
    font-weight: normal;
}

ol,
ul {
    list-style: none;
}

caption,
th {
    text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: normal;
}

q:before,
q:after {
    content: "";
}

abbr,
acronym {
    border: 0;
    font-variant: normal;
}

sup {
    vertical-align: text-top;
}

sub {
    vertical-align: text-bottom;
}

input,
textarea,
select,
button {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    font-size: 100%;
    border-radius: 0;
    border: none;
    background-color: inherit;
}

input,
textarea,
select {
    font-size: 16px;
}

textarea {
    resize: vertical;
    display: block;
}

button {
    padding: 0;
    cursor: pointer;
}

legend {
    color: #000;
}

main {
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

svg {
    display: block;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

/* 独自スタイル*/
.site-header {
  padding: 20px;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
}
.site-title {
  font-size: 35px;
  font-weight: bold;
}

a {
    text-decoration: none;
    color: #333;
}
a:hover {
    text-decoration: underline;
}
li {
    list-style: none;
}

/* header */
.site-header {
  position: relative; /* ボタンを絶対配置するため */
}

.login-btn-wrap {
  position: absolute;
  top: 20px;   /* 上からの距離を調整 */
  right: 20px; /* 右からの距離を調整 */
}

.login-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #bbd3de;
  color: #080808;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  text-decoration: none;
}
.login-btn:hover {
  background-color: #86b9d1;
  text-decoration: none;
}



.global-nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.global-nav-list li a {
  text-decoration: none;
  color: #fff;
}
.global-nav-list li a:hover {
    text-decoration: underline;
}


/* パンくず全体の親要素（必要に応じて調整） */
span[property="itemListElement"] {
  color: #fff;
  font-size: 14px;
}

/* リンク文字色 */
span[property="itemListElement"] a {
  color: #0073aa;
  text-decoration: none;
}

/* ホバー時の色 */
span[property="itemListElement"] a:hover {
  color: #fff;
  text-decoration: underline;
}

/* 現在のページの表示（リンクなしの要素） */
span[property="itemListElement"] span[property="name"] {
  color: #fff;
  font-weight: bold;
}
/* セパレーターの文字色 */
.breadcrumb_separator {
  color: #fff;
}

/* 固定ページのスタイル*/
.page-container {
  max-width: 1200px;
  margin: 20px auto;
}
.page-link {
  font-size: 20px;
  width: 300px;
  display: block;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid grey;
  border-radius: 10px;
  transition: all .5s;
}
.page-link:hover {
  text-decoration: none;
  background-color: rgba(71, 137, 224, 0.5);
}


/* pcr検索フォーム */
.page-container {
  max-width: 1000px;
  margin: 15px auto;
}

.pcr_cat_form_title {
  font-size: 30px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.pcr_cat_form {
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}
legend {
  padding: 0 20px 0 20px;
  font-size: 20px;
}

.details-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2カラム */
  gap: 1em;
}

.details-columns details {
  border: 1px solid #ccc;
  padding: 1em;
  background-color: #f9f9f9;
  border-radius: 4px;
  transition: all .5s;
}
.details-columns details:hover {
  background-color: rgba(71, 137, 224, 0.5);
}

.details-columns summary {
  display: list-item;  /* ← これが重要！ summary の開閉を保つ */
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.btn {
  display: inline-block;
  padding: 0.75em 2em;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  margin: 10px 0 30px 0;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #4338ca, #2563eb);
}

/* page-search-result.php */
.pcr_result {
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 10px 20px;
  box-shadow: 0 6px 10px rgba(0,0,0, .2);
}
.pcr_result_list {
  list-style: none;
  margin: 15px 0;
  padding-left: 0;
}

.pcr_result_container {
  margin: 10px 0 40px 0;
}
.pcr_search_result,
.single-title  {
  font-size: 20px;
  margin: 10px 0 10px 0;
}
.pcr_result_list {
  margin-bottom: 5px;
}

/* singleページのスタイル */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3em;
  font-size: 1rem;
}

.post-navigation a {
  text-decoration: none;
  color: #333;
}

.post-navigation a:hover {
  text-decoration: underline;
}

/* singleページの前後リンク */
.post-navigation-enhanced {
  display: flex;
  justify-content: space-between;
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid #ddd;
  gap: 2em;
}

.nav-link {
  display: block;
  width: 48%;
  text-decoration: none;
  background-color: #f5f5f5;
  padding: 1em 1.5em;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  color: #333;
}

.nav-link:hover {
  background-color: #e0e0e0;
  text-decoration: none;
}

.nav-link.prev {
  text-align: left;
}

.nav-link.next {
  text-align: right;
}

.nav-label {
  display: block;
  font-size: 0.9em;
  color: #999;
  margin-bottom: 0.2em;
}

.nav-title {
  font-size: 1em;
  font-weight: bold;
  color: #333;
}

table {
  border-color: #333;
  table-layout: fixed;
}
th {
  font-weight: bold;
  height: 30px;
  width: 100px;
  color: #fff;
  background-color: #333;
}
th,td {
  padding: 5px;
  cursor: pointer;
  font-size: 14px;
}
td {
  background-color: rgb(255, 255, 255);
}

td.nopointer {
  cursor: auto;
}
.table_index {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
  text-align: center;
  table-layout: auto;
}
.table_index td,
.table_index th {
  padding-left: 0.5em;
  padding-right: 0.5em;
  width: 1%;
  max-width: 3ch;
  background-color: #333;
  color: #fff;
  font-weight: bold;

}
.table_content {
  flex: 1;
  min-width: 0;
}
.fs18 {
  font-size: 18px;
  margin: 20px 0 10px;
}
.mb5ls3 {
  margin-bottom: 5px;
  letter-spacing: 3px;
}
.mb20 {
  margin-bottom: 20px;
}
.ht90 {
  height: 90%;
}
.flex_container {
  display: flex;
  align-items: stretch;
}

.ch_flex {
  display: flex;
  margin-bottom: 10px;
  border-bottom: #333 1px solid;
}
.ch_title {
  font-weight: bold;
}







