
/* =================================================================
    Webツール用 コンパクトヘッダー (.webtool-header)
================================================================= */

/* --- ヘッダーの外枠 --- */
.webtool-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    height: 60px; /* ツール用に高さを少し低く(60px)固定 */
    width: 100%;
    position: sticky; /* スクロール追従 */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

/* --- ヘッダーの内部コンテナ --- */
.webtool-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between; /* 左右に配置 */
    align-items: center;
    height: 100%; /* 親(.webtool-header)の高さに合わせる */
}

/* --- 左側：ブランディングエリア（ロゴ＋ツール名） --- */
.webtool-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- ロゴ調整 --- */
/* メインCSSの .logo-anchor-container の影響を受けないように独自定義 */
.webtool-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

/* ロゴ画像サイズ制限 (ツール用なので小さく) */
.webtool-logo-link img {
    height: 40px;
    width: auto;
    display: block;
    /* メインCSSのはみ出し設定(transform)などを無効化 */
    transform: none !important; 
    position: static !important;
}

/* --- 区切り線とツール名 --- */
.webtool-title-wrapper {
    display: flex;
    align-items: center;
    border-left: 1px solid #ccc; /* 縦の区切り線 */
    padding-left: 15px;
    height: 24px;
}

.webtool-page-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    margin: 0;
    white-space: nowrap; /* ツール名は折り返さない */
}

/* --- 右側：ナビゲーション --- */
.webtool-nav a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}
.webtool-nav a:hover {
    background-color: #f5f5f5;
    color: #0073aa;
}

/* --- スマホ対応 (レスポンシブ) --- */
@media (max-width: 600px) {
    .webtool-page-title { font-size: 14px; }
    .webtool-logo-link img { height: 24px; }
    .webtool-title-wrapper { padding-left: 10px; }
    /* スマホでは「ホームへ」の文字を消してアイコンだけにする */
    .webtool-nav span { display: none; }
}

/* --- WordPress管理バー対策 --- */
body.admin-bar .webtool-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .webtool-header { top: 46px; }
}

/* メインCSSの余白リセット */
body { margin-top: 0 !important; padding-top: 0 !important; }