/* personal_tools専用スタイル（bomb-llc.com本体のCSSとは独立管理・共用しない） */

* {
    box-sizing: border-box;
}

:root {
    --pt-blue: #013a84;
    --pt-blue-light: #1d7cff;
    --pt-teal: #00a86b;
    --pt-gnav-height: 3.5rem;
    --pt-logo-scale: 0.5;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
    color: #222;
    background: #fafbfc;
}

/* ナビ */
#pt-gnav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(0.625rem);
    -webkit-backdrop-filter: blur(0.625rem);
    box-shadow: 0 0.125rem 0.75rem rgba(1, 58, 132, 0.08);
}

.pt-gnav-inner {
    max-width: 75rem;
    margin: 0 auto;
    height: var(--pt-gnav-height);
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pt-gnav-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.pt-logo-container {
    width: calc(355px * var(--pt-logo-scale));
    height: calc(95px * var(--pt-logo-scale));
    position: relative;
    overflow: hidden;
}

.pt-logo-svg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 810px;
    height: 110px;
    transform-origin: 0 0;
    transform: scale(var(--pt-logo-scale)) translate(-220px, -12px);
}

.pt-logo-svg .pt-logo-text {
    font-size: 2.5rem;
}

.pt-gnav-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.pt-gnav-nav li > a {
    display: inline-flex;
    align-items: center;
    height: 2.25rem;
    padding: 0 0.9rem;
    border-radius: 62.5rem;
    color: var(--pt-blue);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pt-gnav-nav li > a:hover,
.pt-gnav-nav li > a:focus-visible {
    background: rgba(29, 124, 255, 0.08);
    color: var(--pt-blue-light);
}

/* 本文 */
.pt-main {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
    margin-top: 4rem;
}

.pt-tool-list {
    list-style: none;
    padding: 0;
}

.pt-tool-list li {
    margin-bottom: 0.75rem;
}

.pt-tool-list a {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    background: #fff;
    border: 1px solid #e0e4e8;
    color: var(--pt-blue);
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow 0.2s ease;
}

.pt-tool-list a:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(1, 58, 132, 0.12);
}

.pt-breadcrumb a {
    color: var(--pt-blue-light);
    text-decoration: none;
    font-size: 0.9rem;
}

/* パンくずリスト */
.pt-breadcrumbs {
    margin-bottom: 1.5rem;
}

.pt-breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: #666;
}

.pt-breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin-left: 0.4rem;
    color: #aaa;
}

.pt-breadcrumbs a {
    color: var(--pt-blue-light);
    text-decoration: none;
}

/* コラム一覧 */
.pt-column-section {
    margin-top: 3rem;
}

.pt-column-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.pt-column-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    background: #fff;
    border: 1px solid #e0e4e8;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease;
}

.pt-column-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(1, 58, 132, 0.12);
}

.pt-column-card__title {
    font-weight: 700;
    color: var(--pt-blue);
}

.pt-column-card__desc {
    font-size: 0.875rem;
    color: #555;
}

.pt-column-card__more {
    font-size: 0.8rem;
    color: var(--pt-blue-light);
}

.pt-column-section__more a {
    color: var(--pt-blue-light);
    text-decoration: none;
    font-weight: 700;
}

.pt-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.pt-form input[type="date"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccd3da;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.pt-form button {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 62.5rem;
    background: linear-gradient(90deg, var(--pt-blue-light), var(--pt-teal));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.pt-form button:hover {
    filter: brightness(1.08);
}

.pt-error {
    color: #d0342c;
}

.pt-result-table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
}

.pt-result-table th,
.pt-result-table td {
    border: 1px solid #e0e4e8;
    padding: 0.6rem 1rem;
    text-align: left;
}

.pt-result-table th {
    background: #f2f5f8;
    width: 40%;
}

.pt-note {
    font-size: 0.85em;
    color: #666;
}

@media (max-width: 48rem) {
    :root {
        --pt-gnav-height: auto;
        --pt-logo-scale: 0.35;
    }

    .pt-gnav-inner {
        height: auto;
        padding: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .pt-main {
        margin-top: 6rem;
    }
}
