


/* kiyomaru.css */
:root {
    --key-color: #006b5f;
    --sub-color: #c3fcf1;
    --base-text-color: #4a4737;
    --section-bg-color: #c3fcf1;
    --base-bg-color: #fcee21;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: var(--base-text-color);
    background-color: var(--base-bg-color);
    line-height: 1.6;
    padding: 0;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    background-color: var(--white);
    box-shadow: 0 0 15px var(--shadow-color);
    border-radius: 10px;
}

/* 清丸のタイトルアニメーション */
@keyframes kiyomaruBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(3deg);
    }
}

.kiyomaru-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--key-color);
    background-color: var(--base-bg-color);
    padding: 1rem;
    margin: 0 -1rem 2rem -1rem;
    text-align: center;
    border-radius: 10px 10px 0 0;
    position: relative;
    box-shadow: 0 5px 10px var(--shadow-color);
    overflow: hidden;
    animation: kiyomaruBounce 1.5s ease-in-out;
    transform-origin: center;
}

.kiyomaru-title::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 8px solid var(--key-color);
    border-radius: 15px;
    z-index: -1;
}

.kiyomaru-title::after {
    content: "清丸";
    position: absolute;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
    right: 20px;
    bottom: -20px;
    transform: rotate(-10deg);
    z-index: -1;
}

/* 画像スタイル */
figure {
    margin: 2rem 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color);
}

figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--key-color);
}

/* 記事概要 */
.article-summary {
    background-color: var(--section-bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 5px solid var(--key-color);
}

.article-summary h3 {
    color: var(--key-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.article-summary ul {
    list-style: none;
    margin-left: 1rem;
}

.article-summary p {
    margin-top: 1rem;
    font-weight: bold;
}

/* セクションタイトル */
.section-title {
    position: relative;
    font-size: 1.5rem;
    color: var(--white);
    background-color: var(--key-color);
    padding: 0.7rem 1rem;
    margin: 3rem 0 1.5rem;
    border-radius: 8px;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    border-style: solid;
    border-width: 10px;
    border-color: var(--key-color) transparent transparent transparent;
    bottom: -20px;
    left: 30px;
}

/* サブタイトル */
.section-subtitle {
    font-size: 1.2rem;
    color: var(--key-color);
    margin: 2rem 0 1rem;
    border-bottom: 3px dotted var(--key-color);
    padding-bottom: 0.5rem;
}

/* プロフィールテーブル */
.profile-table {
    background-color: var(--section-bg-color);
    border-radius: 10px;
    overflow: hidden;
    margin: 2rem 0;
}

.profile-row {
    display: flex;
    border-bottom: 1px dashed var(--key-color);
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    width: 30%;
    padding: 0.8rem;
    background-color: var(--key-color);
    color: var(--white);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-data {
    width: 70%;
    padding: 0.8rem;
    font-weight: bold;
}

/* 注釈 */
.note {
    background-color: var(--white);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 5px solid #ff0000;
    font-size: 0.9rem;
}

/* キャラクターリスト */
.character-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.character-item {
    background-color: var(--section-bg-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.3s ease;
}

.character-item:hover {
    transform: translateY(-5px);
}

.character-item img {
    border-radius: 50%;
    border: 4px solid var(--key-color);
    margin-bottom: 0.8rem;
}

.character-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--key-color);
    margin-bottom: 0.5rem;
}

.character-desc {
    font-size: 0.9rem;
    text-align: left;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .kiyomaru-title {
        font-size: 1.5rem;
        margin: 0 -0.5rem 1.5rem -0.5rem;
    }

    main {
        padding: 0.5rem;
    }

    .section-title {
        font-size: 1.3rem;
        margin: 2rem 0 1rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .profile-row {
        flex-direction: column;
    }

    .profile-label, .profile-data {
        width: 100%;
    }

    .character-list {
        grid-template-columns: 1fr;
    }
}

/* 画像アニメーション */
.sneak {
    transition: transform 0.5s ease;
}

.sneak:hover {
    transform: scale(1.03);
}
/* パンくずリスト */
.breadcrumb-nav {
    margin: 1rem 0 2rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0.5rem 1rem;
    background-color: var(--section-bg-color);
    border-radius: 8px;
    font-size: 0.9rem;
}

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

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin: 0 0.5rem;
    color: var(--key-color);
    font-weight: bold;
}

.breadcrumb-link {
    color: var(--key-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #004a42;
    text-decoration: underline;
}

.current-page {
    font-weight: bold;
    color: var(--base-text-color);
}

/* モバイル対応 */
@media (max-width: 576px) {
    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin: 0 0.3rem;
    }
}
/* 記事情報（更新日時とSNSボタン） */
.article-info {
    margin: 1.5rem 0;
    background-color: var(--section-bg-color);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 3px 6px var(--shadow-color);
}

.info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* 更新情報 */
.update-info {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.time-icon {
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
}

.time-icon svg {
    fill: var(--key-color);
    width: 20px;
    height: 20px;
}

.time {
    margin: 0;
    color: var(--base-text-color);
}

.author {
    font-weight: bold;
    color: var(--key-color);
}

/* シェアボタン */
.share-buttons {
    display: flex;
    align-items: center;
}

.share-group {
    display: flex;
    gap: 0.8rem;
}

.share-button {
    transition: transform 0.3s ease;
}

.share-button:hover {
    transform: translateY(-3px);
}

.share-button a {
    display: flex;
    align-items: center;
    text-decoration: none;
    background-color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: all 0.3s ease;
}

.share-button a svg {
    margin-right: 0.5rem;
}

/* Twitterボタン */
.twitter-share-button a {
    color: #1DA1F2;
    border: 2px solid #1DA1F2;
}

.twitter-share-button a:hover {
    background-color: #1DA1F2;
    color: var(--white);
}

.twitter-share-button a:hover svg {
    fill: var(--white);
}

/* Facebookボタン */
.fb-share-button a {
    color: #1877F2;
    border: 2px solid #1877F2;
}

.fb-share-button a:hover {
    background-color: #1877F2;
    color: var(--white);
}

.fb-share-button a:hover svg {
    fill: var(--white);
}

/* モバイル対応 */
@media (max-width: 576px) {
    .info-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-group {
        margin-top: 0.5rem;
    }
}
/* おすすめ記事セクション */
#recommendations {
    margin: 3rem 0;
    position: relative;
    background-color: var(--section-bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow-color);
}

#recommendations::before {
    content: "おすすめ記事";
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--key-color);
    color: var(--white);
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.1rem;
    box-shadow: 0 3px 5px var(--shadow-color);
}

#recommendations a.push0 {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: var(--base-text-color);
    background-color: var(--white);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 3px 6px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

#recommendations a.push0:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

#recommendations a.push0 img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 0.8rem;
    transition: transform 0.5s ease;
}

#recommendations a.push0:hover img {
    transform: scale(1.05);
}

#recommendations a.push0::after {
    content: "読む ≫";
    margin-top: 0.5rem;
    align-self: flex-end;
    font-weight: bold;
    color: var(--key-color);
    transition: color 0.3s ease;
}

#recommendations a.push0:hover::after {
    color: #004a42;
}

/* 清丸っぽい装飾 */
#recommendations::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background-color: var(--base-bg-color);
    border-radius: 50%;
    z-index: -1;
    box-shadow: inset 0 0 0 5px var(--key-color);
}

/* 2列レイアウト対応 */
@media (min-width: 768px) {
    #recommendations {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    #recommendations a.push0 {
        width: calc(50% - 0.75rem);
        margin-bottom: 1.5rem;
    }

    #recommendations br {
        display: none; /* <br>タグを非表示にする */
    }

    /* 奇数個の場合、最後の1つだけ幅いっぱいに */
    #recommendations a.push0:last-child:nth-child(odd) {
        width: 100%;
    }
}

/* モバイル対応 */
@media (max-width: 767px) {
    #recommendations {
        padding: 1.5rem 1rem;
        margin: 2.5rem 0;
    }

    #recommendations a.push0 {
        width: 100%;
    }

    #recommendations::before {
        font-size: 1rem;
        padding: 0.4rem 1.2rem;
    }
}

/* フッターデザイン */
.site-footer {
    position: relative;
    margin-top: 4rem;
    padding: 3rem 1rem 2rem;
    background-color: var(--key-color);
    color: var(--white);
    border-top: 5px solid var(--base-bg-color);
}

.wave-decoration {
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: repeating-linear-gradient(
        -45deg,
        var(--base-bg-color),
        var(--base-bg-color) 10px,
        var(--key-color) 10px,
        var(--key-color) 20px
    );
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* お問い合わせセクション */
.contact-section {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background-color: var(--base-bg-color);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.6;
}

.mail-link {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.mail-link:hover {
    color: var(--base-bg-color);
}

.mail-icon {
    margin-right: 0.5rem;
    background-color: var(--white);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-text {
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* 利用規約セクション */
.usage-terms {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
}

.usage-terms::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 70px;
    height: 70px;
    background-color: var(--base-bg-color);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.6;
}

.terms-content {
    position: relative;
    z-index: 1;
}

.terms-main p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.terms-list {
    list-style: none;
    margin-top: 1rem;
    padding-left: 1rem;
}

.terms-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.terms-list li::before {
    content: "⚔️";  /* 剣のアイコンを使用 */
    position: absolute;
    left: 0;
    color: var(--base-bg-color);
}

.link-text, .site-name {
    color: var(--base-bg-color);
    font-weight: bold;
}

/* ブランドセクション */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    position: relative;
}

.brand-link {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.brand-link:hover {
    transform: scale(1.05);
}

.brand-icon {
    margin-right: 0.5rem;
    background-color: var(--white);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* 清丸の要素を追加 */
.footer-brand::before {
    content: "";
    position: absolute;
    bottom: -30px;
    right: -50px;
    width: 100px;
    height: 5px;
    background-color: var(--base-bg-color);
    transform: rotate(-45deg);
}

.footer-brand::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -50px;
    width: 100px;
    height: 5px;
    background-color: var(--base-bg-color);
    transform: rotate(45deg);
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: 2rem 1rem 3rem;
    }

    .footer-content {
        gap: 1.5rem;
    }
}

/* 目次デザイン */
.table-of-contents {
    margin: 2rem 0;
    background-color: var(--section-bg-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px var(--shadow-color);
    position: relative;
    border-left: 5px solid var(--key-color);
}

.toc-title {
    font-size: 1.3rem;
    color: var(--key-color);
    margin-bottom: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.toc-title::before {
    content: "≡";
    margin-right: 0.5rem;
    font-size: 1.5rem;
    color: var(--key-color);
}

.toc-list {
    list-style: none;
    padding-left: 0.5rem;
}

.toc-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.toc-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background-color: var(--base-bg-color);
    border: 2px solid var(--key-color);
    border-radius: 50%;
}

.toc-list a {
    color: var(--base-text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.toc-list a:hover {
    color: var(--key-color);
    transform: translateX(5px);
}

/* 清丸っぽい装飾 */
.table-of-contents::after {
    content: "";
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    background-color: var(--base-bg-color);
    border-radius: 50%;
    z-index: -1;
    border: 3px solid var(--key-color);
}

/* レスポンシブ対応 */
@media (max-width: 576px) {
    .table-of-contents {
        padding: 1.2rem 1rem;
    }

    .toc-title {
        font-size: 1.1rem;
    }

    .toc-list li {
        margin-bottom: 0.6rem;
        padding-left: 1.2rem;
        font-size: 0.95rem;
    }

    .toc-list li::before {
        width: 8px;
        height: 8px;
    }
}
/* キャラクター特集リンクボタン */
.char-link {
    display: inline-block;
    background-color: var(--base-bg-color);
    color: var(--key-color);
    font-weight: bold;
    padding: 0.6rem 1.2rem;
    margin-top: 0.8rem;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 3px 6px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 2px solid var(--key-color);
}

.char-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--key-color);
    transition: all 0.4s ease;
    z-index: 0;
    opacity: 0.2;
}

.char-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
    color: var(--key-color);
}

.char-link:hover::before {
    left: 0;
}

.char-link::after {
    content: "→";
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.char-link:hover::after {
    transform: translateX(5px);
}

/* レスポンシブ対応 */
@media (max-width: 576px) {
    .char-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        width: 100%;
    }
}
