@charset "UTF-8";
/*
Theme Name: entaxinfo
Theme URI: 
Description: 
Author: 
Author URI:
Version: 
Requires at least: 
Requires PHP: 
Text Domain: 
License URI: 
-------------------------------------------------*/

.strong {
    font-weight: bold;
}

.large {
    font-size: 1.9em;
}

/*全体パーツ*/
h2,
h3 {
    position: relative;
    display: flex;
    flex-direction: column;
    /* 縦配置 */
    align-items: center;
    /* 横方向中央揃え */
    text-align: center;
}

h2 span {
    letter-spacing: 0.1em;
}

h2 span:nth-child(1) {
    font-size: 100%;
}

h2 span:nth-child(2) {
    font-size: 60%;
}

.btn {
    cursor: pointer;
    width: fit-content;
    border: 1px solid var(--accent-col);
    background-color: var(--sub-col);
    color: var(--accent-col);
    padding: 20px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    font-size: 25px;
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--gold);
    color: var(--accent-col);
    border: 1px solid var(--gold);
    transition: 0.3s;
}

/*breadcrumb*/
.breadcrumb .inner > * + *::before {
    content: ' > ';
    color: var(--gold);
    font-weight: 700;
    margin: 0 0.3em;
}

/*header*/
header{
    z-index: 1000!important;
}
header{
    position: fixed;
    width: 100%;
    background-color: var(--accent-col);
    text-align: center;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}
header .inner{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
}
header .inner a{display: flex;}
header .inner a #headerLogo{}
header .inner a #siteTitle{font-size: 1.8rem;}
header nav {
    display: flex;
}

header ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;
    margin: 0;
}

header a {
    color: var(--sub-col);
    font-weight: bold;
    height: 62px;
    padding: 0 10px;
    font-size: 15px;
    line-height: 62px;
    display: inline-block;
    vertical-align: top;
    margin: 0
}

header p {
    color: var(--sub-col);
    font-size: 15px;
}

header li:hover::after {
    transform: scale(1, 1);
}

header li::after {
    background-color: var(--gold);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    content: "";
    transition: transform 0.3s ease-in-out;
    transform: scale(0, 1);
    transform-origin: left top;
}

/*main*/


/* =========================================
   ページコンテンツ共通
   対象: #page02 .inner (page.php)
         #content (single.php)
========================================= */

/* ① 見出し — グローバルの flex/center を上書き */
#page02 .inner h2,
#content h2 {
    display: block;
    text-align: left;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-col);
    border-bottom: 2px solid var(--accent-col);
    padding-bottom: 0.5rem;
    margin: 2.5rem 0 1rem;
}

#page02 .inner h3,
#content h3 {
    display: block;
    text-align: left;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-col);
    border-left: 4px solid var(--accent-col);
    padding-left: 0.75rem;
    margin: 2rem 0 0.8rem;
}

#page02 .inner h4,
#content h4 {
    display: block;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-col);
    margin: 1.5rem 0 0.6rem;
}

/* ① 本文 p — reset.css の大きすぎるフォントを上書き */
#page02 .inner p,
#content p {
    font-size: 1rem;
    line-height: 1.9;
    margin: 1rem 0;
    font-weight: 400;
}

/* ② 箇条書き復元 */
#page02 .inner ul,
#content ul {
    padding-left: 1.6rem;
    margin: 1rem 0;
}

#page02 .inner ol,
#content ol {
    list-style-type: decimal;
    padding-left: 1.6rem;
    margin: 1rem 0;
}

#page02 .inner li,
#content li {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 0.4rem;
    position: static;
}

/* ③ 画像 */
#page02 .inner img,
#content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
}

/* ④ 引用 */
#page02 .inner blockquote,
#content blockquote {
    border-left: 4px solid var(--accent-col);
    background-color: var(--accent-col2);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--txt-col);
    font-style: italic;
}

#page02 .inner blockquote p,
#content blockquote p {
    margin: 0;
}

/* ⑤ テーブル */
#page02 .inner table,
#content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 1rem;
}

#page02 .inner table th,
#page02 .inner table td,
#content table th,
#content table td {
    padding: 0.7rem 1rem;
    border: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
    font-weight: 400;
}

#page02 .inner table th,
#content table th {
    background-color: var(--accent-col);
    color: var(--sub-col);
    font-weight: 700;
}

#page02 .inner table tr:nth-child(even),
#content table tr:nth-child(even) {
    background-color: var(--accent-col2);
}

/* ⑥ コンテンツ内リンク */
#page02 .inner a,
#content a {
    transition: color 0.3s;
}

#page02 .inner a:hover,
#content a:hover {
    color: var(--accent-col);
}

/* ⑦ single.php — #page-title */
#page-title {
    position: relative;
    background-color: var(--main-col);
    color: var(--sub-col);
    padding: 6rem 2rem 3rem;
    text-align: center;
    overflow: hidden;
}

#page-title h2 {
    display: block;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sub-col);
    border-bottom: none;
    margin: 0;
    padding: 0;
}

#page-title h2 a {
    color: var(--sub-col);
    text-decoration: none;
}

#page-title .subTitle {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.6rem;
    font-weight: 400;
}

/* ⑦ single.php — #content レイアウト */
#content {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

/*section*/
section {
    position: relative;
    margin-bottom: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.content {
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
}




/*aside*/
aside {}

.sidebar {
    position: fixed;
    top: 90%;
    right: 0%;
    background-color: var(--main-col);
    padding: 20px;
    border-radius: 15px 0 0 15px;
    text-align: center;
    z-index: 99;
    transition: transform 1s ease;
}

.sidebar.close {
    transform: translateX(110%);
}

.sidebar::after {
    position: absolute;
    content: '';
    background-color: var(--accent-col2);
    border-radius: 999px;
    top: -10%;
    left: -5%;
    width: 30px;
    height: 30px;
    background-image: url(../img/cross.svg);
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: center;
}

footer {
    padding: 100px 0 20px 0px;
    background-color: var(--main-col);
    border-top: 3px solid var(--gold);
    position: relative;
    clear: both;
    font-size: 0.95em;
    color: var(--txt-col2);
    text-align: center;
}

footer a:hover {
    color: var(--gold);
    transition: color 0.3s;
}
footer nav ul{
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    flex-wrap: wrap;
}
footer a {color: var(--txt-col2);}
/*アニメーション*/
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}

.consult-item.fade-in:nth-child(1) {
    --delay: 0s;
}

.consult-item.fade-in:nth-child(2) {
    --delay: 0.3s;
}

.consult-item.fade-in:nth-child(3) {
    --delay: 0.6s;
}

.consult-item.fade-in:nth-child(4) {
    --delay: 0.9s;
}

.consult-item.fade-in:nth-child(5) {
    --delay: 1.2s;
}

.consult-item.fade-in:nth-child(6) {
    --delay: 1.5s;
}

.consult-item.fade-in:nth-child(7) {
    --delay: 1.8s;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   FAQ アコーディオン (.faq-list / .faqQuestion)
   index06 と同一構造・スタイル
   対象: #page02 .inner (page.php 経由)
========================================= */

/* ul.faq-list: デフォルト箇条書きをリセット */
#page02 .inner .faq-list,
#content .faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#page02 .inner .faq-list li,
#content .faq-list li {
    list-style: none;
    margin-bottom: 0;
    position: static;
}

/* 質問 */
#page02 .inner .faq-list .faqQuestion,
#content .faq-list .faqQuestion {
    position: relative;
    background-color: var(--sub-col);
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 10px 10px 40px;
    border: 1px solid var(--accent-col);
    border-left: 3px solid var(--gold);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-size: 1rem;
    font-weight: 700;
    user-select: none;
    margin: 0;
}

#page02 .inner .faq-list .faqQuestion::before,
#content .faq-list .faqQuestion::before {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    content: 'Q';
    color: var(--gold);
    font-weight: 700;
    font-size: 1rem;
}

#page02 .inner .faq-list .faqQuestion:hover,
#content .faq-list .faqQuestion:hover {
    background-color: var(--main-col);
    color: var(--txt-col2);
    border-color: var(--txt-col2);
}

/* 回答 (faqQuestion の直後の p) */
#page02 .inner .faq-list .faqQuestion + p,
#content .faq-list .faqQuestion + p {
    position: relative;
    background-color: var(--sub-col);
    display: flex;
    align-items: flex-start;
    max-height: 0;
    overflow: hidden;
    padding: 0 10px 0 40px;
    border: 0px solid var(--accent-col);
    transition:
        max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
}

#page02 .inner .faq-list .faqQuestion + p::before,
#content .faq-list .faqQuestion + p::before {
    position: absolute;
    left: 10px;
    top: 10px;
    content: 'A';
    color: var(--gold);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

#page02 .inner .faq-list .faqQuestion + p.open,
#content .faq-list .faqQuestion + p.open {
    max-height: 2000px;
    border: 1px solid var(--accent-col);
    padding: 10px 10px 10px 40px;
    margin-bottom: 30px;
}

/* wp-block-sgb-faq-item 残骸対応 */
#page02 .inner .wp-block-sgb-faq-item,
#content .wp-block-sgb-faq-item {
    margin-bottom: 0;
}

/* sgb ラッパーを通常ブロックとして扱う */
#page02 .inner .wp-block-sgb-full-bg,
#content .wp-block-sgb-full-bg {
    display: none;
}

#page02 .inner .wp-block-sgb-accordion,
#content .wp-block-sgb-accordion {
    margin-bottom: 0.75rem;
}

/* FAQメインページナビ */
#page02 .inner .faq-nav ul,
#content .faq-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#page02 .inner .faq-nav li,
#content .faq-nav li {
    margin-bottom: 0;
}

#page02 .inner .faq-nav a,
#content .faq-nav a {
    display: block;
    padding: 1rem 1.4rem;
    background-color: var(--accent-col2);
    border-left: 4px solid var(--gold);
    color: var(--accent-col);
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s, border-color 0.2s;
}

#page02 .inner .faq-nav a:hover,
#content .faq-nav a:hover {
    background-color: var(--gold-light);
    border-color: var(--accent-col);
}

/* =========================================
   お問い合わせフォーム (.inquiry-form)
========================================= */
.inquiry-form {
    max-width: 700px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-weight: 700;
    color: var(--accent-col);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.required {
    background-color: var(--accent-col);
    color: var(--sub-col);
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.optional {
    background-color: #999;
    color: var(--sub-col);
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    font-weight: 400;
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="tel"],
.inquiry-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
    background-color: #fff;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--accent-col);
    box-shadow: 0 0 0 2px rgba(26, 30, 85, 0.1);
}

.inquiry-form .g-recaptcha {
    margin: 0 auto;
}

.inquiry-form > .btn {
    margin: 0.5rem auto 0;
    min-width: 200px;
    display: block;
    text-align: center;
}

/* =========================================
   新着情報一覧 (.info-list / page-info.php)
========================================= */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.info-item a {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--txt-col);
    background-color: var(--sub-col);
    border: 1px solid #e0e0e0;
    border-left: 3px solid var(--gold);
    padding: 1.2rem;
    transition: background-color 0.2s, border-color 0.2s;
    align-items: flex-start;
}

.info-item a:hover {
    background-color: var(--accent-col2);
    border-left-color: var(--accent-col);
}

.info-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    overflow: hidden;
    margin: 0;
}

.info-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.info-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.info-body time {
    font-size: 0.8rem;
    color: #888;
}

.info-body h3 {
    display: block;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-col);
    border: none;
    margin: 0;
    padding: 0;
}

.info-body p {
    font-size: 0.9rem;
    color: var(--txt-col);
    margin: 0;
    line-height: 1.6;
}

/* ページネーション */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--accent-col);
    color: var(--accent-col);
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 0.2rem;
    transition: background-color 0.2s;
}

.page-numbers.current,
.page-numbers:hover {
    background-color: var(--accent-col);
    color: var(--sub-col);
}

#page02 .inner .page-numbers {
    display: inline-flex;
}

.info-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 2rem;
}