/*
Theme Name: Shraku
Theme URI: https://example.com/shraku
Author: takuto
Author URI: https://example.com
Description: シンプルでモダンなデザインのブログ向けWordPressテーマです。
Version: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shraku
Tags: blog, custom-background, responsive-layout
*/

/* header */
.mobile-header,
.logo {
    display: none; /* デフォルトでは非表示 */
}

/* PCサイズ（600px以上）でのヘッダー表示 */
@media screen and (min-width: 600px) {
    .pc-header {
        display: flex;
        width: auto;
        height: 60px;
        justify-content: flex-start;
        align-items: center;
        padding: 0 24px;
        position: fixed;
        top: 40px;
        left: 20px;
        z-index: 100;
    }

    .pc-header .logo {
        display: block;
    }

    .pc-header .logo a {
        text-decoration: none;
        color: inherit;
    }

    .pc-header .logo img {
        display: block;
        width: 200px;
        height: 60px;
        max-width: 200px;
    }
}

/* モバイルサイズ（600px未満）でのみ表示 */
@media screen and (max-width: 599px) {
    .mobile-header {
        display: flex;
        width: 100%;
        height: 60px;
        justify-content: flex-start;
        align-items: center;
        padding: 0 20px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 100;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    .mobile-header .logo {
        display: block;
    }

    .mobile-header .logo a {
        text-decoration: none;
        color: inherit;
    }

    .mobile-header .logo img {
        display: block;
        width: 180px;
        height: 60px;
        max-width: 180px;
    }
}

/* tag style */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-top: 12px;
}

.tag-button,
.search-tag {
    display: inline-block;
    min-width: 50px;
    height: 25px;
    padding: 2px 8px;
    background-color: #373737;
    color: #fafafa;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 21px;
    border-radius: 4px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

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

.clear-search {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.tag-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0); /* 初期状態は透明 */
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.tag-button.selected::before {
    background-color: rgba(255, 255, 255, 0.3); /* 選択時に半透明のオーバーレイを表示 */
}

/* ホバー時のエフェクト */
.tag-button:hover::before {
    background-color: rgba(255, 255, 255, 0.1); /* ホバー時は薄いオーバーレイ */
}
