/*
Theme Name: Agora
Theme URI: https://example.com/agora
Author: Your Name
Author URI: https://example.com
Description: A modern and clean WordPress theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agora
*/

/* Reset CSS will be imported from node_modules */

/* ビューポートとオーバーフロー制御（スマホでのゆらゆら動き防止） */
html {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

* {
    box-sizing: border-box;
}

/* メインコンテナの制御 */
.site-main {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* アニメーションラッパーの制御 */
.animation-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* パーティクルラッパーの制御 */
.particles-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgb(255 255 255 / 76%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.site-header .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.site-header .header-logo {
    width: 10%;
    min-width: 120px;
    max-width: 200px;
    text-align: center;
}

.site-header .header-logo img {
    width: 100%;
    height: auto;
    display: block;
    fill: #376eab;
}

/* SVGの色を変更するためのスタイル */
.site-header .header-logo img path {
    fill: #376eab;
}

/* インラインSVGのスタイル */
.site-header .header-logo .logo-svg {
    width: 100%;
    height: auto;
    display: block;
}

.site-header .header-logo .logo-svg path {
    fill: #0071bc; /* 青色を指定 */
}

/* ホバー時の色変更（オプション） */
.site-header .header-logo:hover .logo-svg path {
    fill: #005a9e; /* ホバー時の色（少し暗い青） */
}

.site-header .header-nav {
    width: 100%;
}

.site-header .header-nav .nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.site-header .header-nav .nav-menu li {
    margin: 0;
    padding: 0;
}

.site-header .header-nav .nav-menu li a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.site-header .header-nav .nav-menu li a:hover {
    color: #666;
}

/* バーガーメニューの基本スタイル */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: fixed;
    right: 1rem;
    top: 50%; /* 画面の中央に配置 */
    transform: translateY(-50%); /* 要素自体の中央を基準に配置 */
    z-index: 1001;
    width: 30px;
    height: 30px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 1px;
    background: #333;
    margin: 4px 0;
    transition: 0.3s;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
}

/* メインコンテンツの余白調整 */
.site-main {
    padding-top: 120px; /* PC時のヘッダー高さ分の余白 */
}

/* スマホ表示 */
@media screen and (max-width: 768px) {
    .site-header .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        position: relative; /* 子要素の位置決めの基準点として設定 */
    }

    .site-header .header-logo {
        width: 20%;
        min-width: 100px;
    }

    .site-main {
        padding-top: 80px; /* スマホ時のヘッダー高さ分の余白 */
    }

    .menu-toggle {
        display: block;
        position: absolute; /* fixedからabsoluteに変更 */
        right: 1rem;
        top: 50%; /* ヘッダーコンテナの中央に配置 */
        transform: translateY(-50%); /* 要素自体の中央を基準に配置 */
    }

    .site-header .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        padding: 80px 20px 20px;
        transition: 0.3s;
        z-index: 9998;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

    .site-header .header-nav.active {
        right: 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .menu-overlay.active {
        display: block;
    }

    .header-nav .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-nav .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0dd;
    }

    .header-nav .nav-menu li a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }
}

/* フッターのスタイル */
.site-footer {
    padding: 1.5rem 0;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.company-info {
    margin-bottom: 1.2rem;
}

.company-info p {
    margin: 0.2rem 0;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.company-info a {
    color: #376eab;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
}

.company-info a:hover {
    color: #2a4f7a;
    background-color: rgba(55, 110, 171, 0.1);
    text-decoration: none;
}

/* フッターメニューのスタイル */
.footer-navigation {
    margin: 1rem 0;
}

.footer-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-navigation li {
    margin: 0;
    padding: 0;
}

.footer-navigation a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-navigation a:hover {
    color: #376eab;
}

.site-info {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
}

/* パーティクルコンテナのスタイル */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: none;
    background-color: transparent;
    background-image: none;
    z-index: 0;  /* 最背面に配置 */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background: none;
    background-color: transparent;
    background-image: none;
    z-index: 0;  /* 最背面に配置 */
    pointer-events: none;
    margin: 0;
    padding: 0;
}

/* メインコンテンツのスタイル */
#main {
    position: relative;
    z-index: 1;  /* パーティクルの上、3Dの下に配置 */
    margin: 0;
    padding: 200px 0 0 0;
    background-color: #ffffffbf;  /* 薄い背景色を維持 */
    min-height: 100vh;
    width: 100%;
    font-family: "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
}

/* 明朝体の特性を活かしたスタイル調整 */
#main h1, #main h2, #main h3, #main h4, #main h5, #main h6,
#main p, #main li, #main a, #main span, #main div {
    font-family: "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
    font-weight: normal;  /* 明朝体は太字を避ける */
    letter-spacing: 0.05em;  /* 文字間隔を少し広げる */
}

/* 見出しのスタイル調整 */
#main h1 {
    font-size: 2.5rem;
    letter-spacing: 0.1em;
}

#main h2 {
    font-size: 2rem;
    letter-spacing: 0.08em;
}

#main h3 {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

/* スマホ表示時の調整 */
@media screen and (max-width: 768px) {
    #main h1 {
        font-size: 1.8rem;
        letter-spacing: 0.08em;
    }

    #main h2 {
        font-size: 1.6rem;
        letter-spacing: 0.06em;
    }

    #main h3 {
        font-size: 1.2rem;
        letter-spacing: 0.04em;
    }

    #main p, #main li {
        font-size: 0.95rem;
        line-height: 1.8;  /* 明朝体は行間を広めに */
        letter-spacing: 0.03em;
    }
}

/* さらに小さい画面サイズ用の調整 */
@media screen and (max-width: 480px) {
    #main h1 {
        font-size: 1.6rem;
    }

    #main h2 {
        font-size: 1.4rem;
    }

    #main h3 {
        font-size: 1.1rem;
    }

    #main p, #main li {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

/* 3Dコンテンツのスタイル */
.particles-content {
    position: relative;
    z-index: 2;  /* 最前面に配置 */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0;
    padding: 0;
    opacity: 1;
    transform: scale(1);
    font-family: "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
}

.particles-content h1,
.particles-content p {
    margin: 0.5rem 0;
    color: #333;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    font-family: "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
}

.particles-content h1 {
    font-size: 2.5rem;
    font-weight: normal; /* 明朝体の場合、太字は避ける */
    letter-spacing: 0.1em; /* 文字間隔を少し広げる */
}

.particles-content p {
    font-size: 1.2rem;
    line-height: 1.8; /* 明朝体の場合、行間を広めに */
    letter-spacing: 0.05em; /* 文字間隔を少し広げる */
}

.particles-content a {
    color: #376eab;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
}

.particles-content a:hover {
    color: #2a4f7a;
}

/* プロフィールコンテナのスタイル */
.profile-container {
    margin: 0 auto;
    padding: 2rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #376eab;
}

.profile-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    color: #376eab;
    font-weight: normal;
    letter-spacing: 0.1em;
}

.profile-header h2 {
    font-size: 1.8rem;
    margin: 0;
    color: #333;
    font-weight: normal;
    letter-spacing: 0.05em;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section h3 {
    font-size: 0.8rem;
    color: #376eab;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #376eab;
    font-weight: normal;
    letter-spacing: 0.05em;
}

.profile-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #333;
}

.publications {
    display: grid;
    gap: 1rem;
}

.publications li {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: baseline;
}

.publications .year {
    color: #376eab;
    font-weight: bold;
}

.publications .title {
    font-weight: normal;
}

.publications .publisher {
    color: #666;
    font-size: 0.9em;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #376eab;
    text-align: center;
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-info a {
    color: #376eab;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #2a4f7a;
    text-decoration: underline;
}

/* スマホ表示用のスタイル */
@media screen and (max-width: 768px) {
    .profile-container {
        max-width: 100%;
        margin: 0;
        padding: 1rem;
        border-radius: 0;
        box-shadow: none;
    }

    .profile-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.8rem;
    }

    .profile-header h1 {
        font-size: 1.8rem;
        letter-spacing: 0.05em;
    }

    .profile-header h2 {
        font-size: 1.4rem;
    }

    .profile-section {
        margin-bottom: 1.5rem;
    }

    .profile-section h3 {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .profile-section ul li {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }

    /* 著書リストのスマホ表示調整 */
    .publications {
        gap: 0.8rem;
    }

    .publications li {
        grid-template-columns: 60px 1fr;  /* 2列に変更 */
        gap: 0.5rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(55, 110, 171, 0.1);  /* 区切り線を追加 */
    }

    .publications .year {
        font-size: 0.9rem;
        grid-row: 1;  /* 年を上に配置 */
    }

    .publications .title {
        font-size: 0.95rem;
        grid-row: 2;  /* タイトルを下に配置 */
        grid-column: 1 / -1;  /* 全幅を使用 */
    }

    .publications .publisher {
        display: none;  /* 出版社は非表示に */
    }

    /* コンタクト情報のスマホ表示調整 */
    .contact-info {
        margin-top: 1.5rem;
        padding-top: 0.8rem;
    }

    .contact-info p {
        font-size: 0.95rem;
        margin: 0.4rem 0;
    }

    /* 余白の調整 */
    .site-main {
        padding-top: 80px;  /* スマホ時のヘッダー高さ分の余白を調整 */
    }

    /* テキストの読みやすさ向上 */
    .profile-container {
        line-height: 1.6;
        letter-spacing: 0.02em;
    }

    /* タッチ操作のための余白確保 */
    .profile-container a {
        padding: 0.3rem 0;
        display: inline-block;
    }
}

/* さらに小さい画面サイズ用の調整 */
@media screen and (max-width: 480px) {
    .profile-container {
        padding: 0.8rem;
    }

    .profile-header h1 {
        font-size: 1.6rem;
    }

    .profile-header h2 {
        font-size: 1.2rem;
    }

    .profile-section h3 {
        font-size: 0.8rem;
    }

    .publications li {
        grid-template-columns: 50px 1fr;  /* 年表示の幅をさらに縮小 */
    }

    .publications .year {
        font-size: 0.85rem;
    }

    .publications .title {
        font-size: 0.9rem;
    }
} 