/*
Theme Name: art-portal
Theme URI: http://art-portal-test.local
Author: Ueyama Taketo
Description: 株式会社アート 施工者向けサイトページのテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: art-portal
*/

/* =========================================
   全般・トップページ
========================================= */
:root {
    --main-color: #015135;
    --light-color: #F2F5F4;
    --text-color: #222;
    --gray: #E5E5E5;
    line-height: 1.8;
    --font-base: "Noto Sans JP", sans-serif;
}

body {
    font-family: var(--font-base);
    margin: 0;
    color: var(--text-color);
    background-color: #fff;
}

html {
    color: #222;
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.8;
    -webkit-text-size-adjust: 100%;
}

html,
body {
    overflow-x: hidden;
}

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

body {
    font-size: 14px;
    margin: 0;
}

h1 {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.4;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
}

h4 {
    font-size: 16px;
    font-weight: 600;
}

h5,
h6 {
    font-size: 15px;
    font-weight: 600;
}

p,
li,
dt,
dd,
td,
th,
span,
a {
    font-size: 14px;
    line-height: 1.8;
}

small {
    font-size: 12px;
}

strong,
b {
    font-weight: 600;
}

a {
    color: #0066CC;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}


.subpage-section {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    text-align: left;
}

/* ---- tablet (768px〜) ---- */
@media (min-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 17px;
    }

    h5,
    h6 {
        font-size: 16px;
    }

    p,
    li,
    dt,
    dd,
    td,
    th,
    span,
    a {
        font-size: 15px;
    }

    small {
        font-size: 13px;
    }
}

/* ---- pc (1200px〜) ---- */
@media (min-width: 1200px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 18px;
    }

    h5,
    h6 {
        font-size: 17px;
    }

    p,
    li,
    dt,
    dd,
    td,
    th,
    span,
    a {
        font-size: 16px;
    }

    small {
        font-size: 14px;
    }
}

.header {
    width: 100%;
    background-color: var(--light-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.search-section {
    width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.header-left {
    display: flex;
    align-items: end;
    gap: 12px;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--main-color);
}



.header-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (min-width: 768px) {
    .header-right {

        gap: 12px;
    }
}

.header-username {
    font-size: 14px;
}


@media (min-width: 768px) {
    .header-title {
        font-size: 18px;
    }
}

.sub-logo {
    height: 35px;
}

.menu-btn {
    width: 40px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    background: none;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--main-color);
}


.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 20px 30px 20px;
}

.main-logo {
    width: 250px;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray);
    max-width: 550px;
    border-radius: 24px;
    padding: 8px 20px;
    margin: 15px auto;
}

.search-input {
    flex: 1;
    font-size: 14px;
    border: none;
    outline: none;
}

.search-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
}

.search-btn svg {
    width: 18px;
    height: 18px;
    stroke: #222;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.faq-search-box .search-btn {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: #666666;
}

.note .icon svg {
    stroke: #666666;
    width: 16px;
    height: 16px;
    position: relative;
    top: 0.5px;
}

.note a {
    color: #666666;
}

.note a:hover {
    text-decoration: underline;
}


.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

@media (min-width: 768px) {
    .main {
        padding: 70px 40px 30px 40px;
    }

    .main-logo {
        width: 350px;
    }
}

.main-title {
    text-align: left;
    font-size: 24px !important;
}

.page-title-main {
    display: block;
    font-size: 22px;
    font-weight: 700;
}

.page-title-sub {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-top: 6px;
}

@media (min-width: 768px) {
    .page-title-main {
        font-size: 28px;
    }

    .page-title-sub {
        font-size: 18px;
    }
}

@media (min-width: 1200px) {
    .page-title-main {
        font-size: 32px;
    }

    .page-title-sub {
        font-size: 20px;
    }
}

.search-main-title {
    text-align: center !important;
}

.subpage-intro {
    line-height: 1.8;
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.subpage-intro p {
    margin-bottom: 1.5em;
}

.news-section {
    width: 90%;
    max-width: 720px;
    margin: 54px auto 0;
}

@media (min-width: 768px) {
    .news-section {
        width: 720px;
    }
}

.news-section .section-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e5e5e5;
}

.news-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e5e5;
}

.news-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--main-color);
    flex-shrink: 0;
}

.news-label {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    color: #fff;
    flex-shrink: 0;
}

.news-label-support {
    background-color: #1E8E5F;
}

.news-label-system {
    background-color: #F1C40F;
}

.news-label-update {
    background-color: #2B7EC1;
}

.news-label-uncategorized {
    background-color: #999;
}


.news-title {
    width: 100%;
    font-size: 14px;
    color: var(--font-base);
    text-decoration: none;
    line-height: 1.6;
    text-align: left;
}

.news-title:hover {
    text-decoration: underline;
}

.news-more {
    text-align: center;
    margin-top: 32px;
}

.btn-outline {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid var(--main-color);
    border-radius: 999px;
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
}

.btn-outline:hover {
    background-color: var(--main-color);
    color: #fff;
}

@media (min-width: 768px) {
    .news-item {
        flex-wrap: nowrap;
        align-items: center;
        gap: 12px;
    }

    .news-title {
        width: auto;
        font-size: 15px;
        line-height: 1.5;
    }
}

a[href^="tel"] {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}



/* =========================================
   ログイン関連
========================================= */
.auth-lead {
    margin-bottom: 30px;
}

.login-box {
    max-width: 550px;
    margin: 20px auto;
}

.login-field {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.login-input {
    width: 100%;
    font-size: 14px;
    border: none;
    outline: none;
}

.btn-primary {
    display: block;
    width: 100%;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}

.auth-error {
    margin: 6px 0 16px;
    font-size: 13px;
    color: #d93025;
    text-align: left;
}

.header-logout {
    margin-left: auto;
}


.btn-logout {
    display: none;
}


@media (min-width: 768px) {

    .btn-logout {
        display: block;
        background: none;
        border: 1px solid var(--gray);
        border-radius: 20px;
        padding: 6px 14px;
        font-size: 13px;
        cursor: pointer;
        background-color: #fff;
        margin-right: 10px;
    }


}


/* =========================================
   検索結果ページ
========================================= */
.result-section {
    width: 100%;
    margin-top: 20px;
    text-align: left;
}

.result-count {
    font-weight: 500;
    margin-bottom: 8px;
}

.result-count span {
    font-size: 20px !important;
}


.result-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 12px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 500px;
}

.result-table th,
.result-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: center;
    white-space: nowrap;
}

.result-table th {
    background-color: #E5E5E5;
    font-weight: 600;
    min-width: 80px;
}

.result-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.result-table tbody tr:nth-child(even) {
    background-color: var(--light-color);
}

.result-table img {
    width: 22px;
    height: auto;
    vertical-align: middle;
    top: -2px;
    position: relative;
}

.result-table a {
    text-decoration: underline;
    font-size: 13px;
}

.result-table-wrap::-webkit-scrollbar {
    height: 4px;
}

.result-table-wrap::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 2px;
}

.breadcrumb {
    font-size: 13px;
    color: #666;
    margin: 10px 0 20px;
    text-align: left;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    color: #999;
    margin: 0 6px;
    font-size: 12px;
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}


@media (min-width: 768px) {
    .result-section {
        max-width: 800px;
        margin: 30px auto;
    }

    .result-table-wrap {
        overflow-x: visible;
    }

    .result-table {
        min-width: auto;
        width: 100%;
    }

    .result-table th {
        min-width: 100px;
    }
}

/* =========================================
   FAQページ
========================================= */
.faq-item {
    border-bottom: 1px solid #ddd;
}

/*
.faq-item:first-of-type {
    margin-top: 15px;
} */

.faq-list button {
    text-align: left;
}

.faq-question:active,
.faq-question:focus,
.faq-question:visited {
    color: #222;
    -webkit-text-fill-color: #222;
}

.faq-question span {
    color: inherit;
}

.faq-question:focus {
    outline: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    padding-right: 15px;
    color: var(--text-color);
    text-decoration: none;
    -webkit-text-fill-color: #222;
    gap: 10px;
}

.faq-question .arrow {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid #222;
    border-bottom: 2px solid #222;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    margin-left: 10px;
    margin-top: 2px;
}

.faq-question.open {
    background-color: var(--light-color);
    border-bottom: 1px solid #ccc;
}

.faq-question.open .arrow {
    transform: rotate(45deg);
}


.faq-answer {
    display: none;
    padding: 15px 10px;
    color: var(--text-color);
}

.faq-answer img {
    display: block;
    width: 100%;
    height: auto;
    min-width: 320px;
    max-width: 600px;
    margin: 16px auto 16px 0;
    object-fit: contain;
}

@media screen and (max-width: 767px) {
    .faq-answer img {
        width: 100%;
        max-width: none;
        min-width: 100%;
        margin: 12px 0;
    }
}


.faq-answer ul {
    margin: 0 0 8px 20px;
    padding: 0;
}

.faq-answer li {
    list-style: none;
}

.faq-search-box {
    max-width: 680px;
    margin: 24px auto;
}

.faq-search-input::placeholder {
    color: #888;
}

@media (min-width: 768px) {
    .faq-search-box {
        margin-left: 0;
        margin-right: 0;
    }
}

.faq-question mark {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    display: inline !important;
    line-height: 1.4 !important;
}

.faq-question .arrow {
    margin-left: auto;
}


.faq-question {
    justify-content: space-between;
    writing-mode: horizontal-tb;
}

.faq-question:has(mark) {
    justify-content: flex-start;
}

.faq-list .faq-product-label {
    display: inline-flex;
    align-items: center;
    margin: 50px 0 10px;
    padding: 8px 20px;
    border-radius: 999px;
    background: var(--light-color);
    color: var(--main-color);
    font-size: 16px;
    font-weight: 600;
}


/* =========================================
   ヘルプページ
========================================= */
.help-series-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    justify-content: center;
}

.help-series-item {
    text-align: center;
}

.help-series-item a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    width: 100%;
    max-width: 480px;
    transition: opacity 0.2s ease;
}

.help-series-item a:hover {
    opacity: 0.8;
}

.help-series-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.help-series-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 0px;
}

.help-series-products {
    font-size: 14px;
    margin-top: 6px;
    line-height: 1.6;
    color: #666666;
}

/* =========================================
   お問い合わせページ
========================================= */
.contact-section-header {
    padding: 20px 0;
    background: #fff;
}

.contact-section-header .contact-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
}

.contact-section-title {
    font-size: 18px;
    font-weight: 700;
}

.contact-section-body {
    margin-top: 12px;
}

.contact-box {
    background: #f1f7f4;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
}

.contact-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.contact-icon {
    width: 52px;
    height: auto;
}

.contact-main {
    text-align: center;
}

.contact-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.contact-tel {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.contact-time {
    font-size: 14px;
    margin: 5px 0 0;
}

.office-toggle {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.office-toggle-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
}

.office-toggle-content {
    display: none;
    padding: 12px 16px;
    background: #fff;
}

.office-toggle.open .office-toggle-content {
    display: block;
}

.toggle-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    transition: transform .3s;
}

.office-toggle.open .toggle-arrow {
    transform: rotate(-135deg);
}

.office-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.office-list li {
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}

@media (min-width: 768px) {
    .contact-section-title {
        font-size: 20px;
    }

    .contact-title {
        font-size: 20px;
    }

    .contact-tel {
        font-size: 28px;
    }

    .contact-time {
        font-size: 16px;
    }

    .office-list li {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .office-toggle-content {
        padding: 8px 20px 12px;
    }

    .office-list {
        align-items: flex-start;
    }

    .office-list li {
        max-width: 100%;
        display: grid;
        grid-template-columns: 200px 1fr;
        column-gap: 24px;
        padding: 4px 0;
        font-size: 14px;
    }

    .office-list li span:last-child {
        text-align: left;
        white-space: nowrap;
    }
}

.office-toggle-title {
    color: var(--text-color);
}


/*-------------------------------------
    FAQ全体検索ページ
-------------------------------------*/
.faq-product-label {
    display: inline-flex;
    align-items: center;
    margin-top: 24px;
    padding: 6px 12px;
    margin-bottom: 10px;

    border-radius: 999px;
    background-color: var(--light-color);
    color: var(--main-color);

    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.faq-product-label::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--main-color);
    margin-right: 8px;
}

.faq-question-text {
    flex: 1;
    min-width: 0;
    text-align: left;
    font-size: 16px !important;
}



/*-------------------------------------
    レスポンシブ対応
-------------------------------------*/
@media (min-width: 768px) {
    .help-series-list {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        gap: 30px 40px;
        justify-content: center;
    }

    .help-series-title {
        font-size: 20px;
    }

    .help-series-products {
        font-size: 15px;
    }
}

@media (min-width: 1200px) {
    .help-series-list {
        grid-template-columns: repeat(3, minmax(300px, 1fr));
        /* ← 3列固定 */
        gap: 50px 40px;
    }
}

/*-------------------------------------
  Footer
-------------------------------------*/
main.main {
    min-height: calc(100vh - 252px);
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 50px 20px 30px 20px;
    box-sizing: border-box;
}


.site-footer {
    background-color: var(--light-color);
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 5px 0;
    font-size: 14px;
    color: #666;
    margin-top: 80px;
}