/*
Theme Name: Ask-M.jp
Theme URI: https://ask-m.jp/
Author: Ippei
Author URI: https://ask-m.jp/
Description: Ask-M.jpのためのカスタムテーマです。シンプルで使いやすいデザインを心がけています。
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ask-m
Tags: custom, responsive, clean, minimal
*/

/* reset.css */
/* スムーズスクロール設定 */
html {
    scroll-behavior: smooth;
}

/* CSS reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

#wpadminbar {
    display: none;
}

html {
    margin: 0 !important;
    padding: 0 !important;
}

/* =====================================
   ページタイトルセクションのスタイル
   ===================================== */

/* ページタイトルセクション全体 */
.page-title-section {
    padding: 0 8%;
    position: relative;
    display: flex;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* スクロール時に背景画像を固定（パララックス効果） */
}

/* 空でない背景画像URLが設定されている場合のみフィルターを表示 */
.page-title-section.has-background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* タイトルコンテンツのコンテナ */
.page-title-container {
    position: relative;
    width: 100%;
    padding: 8.0vw 0 0 0;
    z-index: 10;
}

/* ページタイトルSVG */
.page-title-svg {
    height: 70vh;
    padding: 5rem 0 0 0;
    z-index: 2;
}

/* ページタイトル */
.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 1rem auto;
    /* padding: 1rem; */
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
    line-height: 1.5;
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
    width: fit-content;
    background: var(--text-white-color);
    border-bottom: 3px solid var(--main-color);
    /* box-shadow: .4375rem .4375rem var(--main-color); */
    /* border: 2px solid #000; */
}

/* 英語タイトル */
.page-title-english {
    font-weight: 500;
    display: block;
    font-size: 1.2rem;
    margin: 0 auto;
    /* padding: 1rem; */
    opacity: 0.9;
    line-height: 1.5;
    letter-spacing: 0.15em;
    width: fit-content;
    background: var(--text-white-color);
    /* box-shadow: .4375rem .4375rem var(--main-color); */
    /* border: 2px solid #000; */
}

/* パンくずリスト */
.page-breadcrumbs {
    margin: 2rem auto;
    max-width: 800px;
}

.page-breadcrumbs .breadcrumbs {
    font-size: 0.7rem;
    line-height: 1.4;
}

.page-breadcrumbs .breadcrumbs a {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--main-color);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.page-breadcrumbs .breadcrumbs a:hover {
    text-decoration: underline;
}

/* 現在のページを示すスタイル */
.page-breadcrumbs .breadcrumbs .current {
    display: inline-block;
    color: var(--text-white-color);
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--text-white-color);
    background: var(--main-gradient);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    font-weight: 600;
}

/* セパレーターのスタイル：背景画像がない場合は黒 */
.page-breadcrumbs .breadcrumbs .separator {
    color: #000000;
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

/* セパレーターのスタイル：背景画像がある場合は白 */
.page-title-section.has-background-image .page-breadcrumbs .breadcrumbs .separator {
    color: var(--text-white-color);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {

    .post-type-archive-business .page-title-section,
    .page-template-page-philosophy .page-title-section,
    .post-type-archive-news .page-title-section {}

    .page-title-section {
        max-height: 325px;
    }

    .single-news .container {
        margin-top: 5rem;
        padding: 2rem;
    }

    .page-title-container {
        width: 100%;
        padding: 25vw 0 0 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .page-title {
        font-size: 1.8rem;
        padding: 8px;
        margin-bottom: 0px;
    }

    .page-title-english {
        font-size: 1rem;
        padding: 8px;
        white-space: nowrap;
    }

    .page-title-svg {
        height: 20vh;
        padding: 25vw 0 0 0;
        z-index: 2;
    }
}

@media screen and (max-width: 480px) {
    .page-title-container h1 {
        width: fit-content;
    }

    .page-title {
        font-size: 1rem;
    }

    .page-title-english {
        font-size: 0.9rem;
    }

    .page-breadcrumbs {
        margin: 1rem 0;
        width: fit-content;
    }

    .page-breadcrumbs .breadcrumbs {
        font-size: 0.6rem;
        display: flex;
        width: fit-content;
        flex-wrap: wrap;
        gap: 5px;
    }

    .page-breadcrumbs .breadcrumbs .separator {
        font-size: 0.8rem;
        margin: 0 0.3rem;
    }

    .page-breadcrumbs .breadcrumbs a,
    .page-breadcrumbs .breadcrumbs .current {
        padding: 0.2rem 0.5rem;
    }
}