/**
 * ===========================================
 * 管理番号 : B101
 * ファイル名 : css/common.css
 * バージョン : Ver1.6.5
 * 用途       : Bootstrap対応サイト共通スタイル
 * ===========================================
 */

:root {
    --secraft-primary: #1263a5;
    --secraft-primary-dark: #0b416f;
    --secraft-primary-light: #eaf4fc;
    --secraft-text: #222222;
    --secraft-muted: #66717c;
    --secraft-bg: #ffffff;
    --secraft-bg-light: #f4f7fa;
    --secraft-border: #d8e0e6;
    --secraft-container: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--secraft-text);
    background: var(--secraft-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--secraft-primary);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--secraft-primary-dark);
    text-decoration: underline;
}

.container {
    width: min(calc(100% - 40px), var(--secraft-container));
    max-width: var(--secraft-container);
    padding-right: 0;
    padding-left: 0;
}

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--secraft-border);
    box-shadow: 0 2px 10px rgba(11, 65, 111, 0.05);
}

.site-header .navbar {
    min-height: 82px;
    padding: 0;
}

.site-header__inner {
    min-height: 82px;
}

.site-branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 430px;
    padding: 10px 0;
    color: var(--secraft-primary-dark);
    white-space: normal;
}

.site-branding:hover,
.site-branding:focus-visible {
    color: var(--secraft-primary-dark);
    text-decoration: none;
}

.site-branding__name {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.03em;
}

.site-branding__description {
    margin-top: 3px;
    color: var(--secraft-muted);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
}

.site-navigation__list {
    gap: 4px;
    margin: 0;
}

.site-navigation__list .menu-item {
    list-style: none;
}

.site-navigation__list .nav-link {
    padding: 27px 14px;
    color: var(--secraft-text);
    font-size: 0.94rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.site-navigation__list .nav-link:hover,
.site-navigation__list .nav-link:focus-visible,
.site-navigation__list .current-menu-item > .nav-link,
.site-navigation__list .current_page_item > .nav-link {
    color: var(--secraft-primary);
    text-decoration: none;
    border-bottom-color: var(--secraft-primary);
}

.site-navigation__list .nav-link--contact {
    padding: 12px 16px;
    margin-left: 6px;
    color: #ffffff;
    background: var(--secraft-primary);
    border: 0;
    border-radius: 7px;
}

.site-navigation__list .nav-link--contact:hover,
.site-navigation__list .nav-link--contact:focus-visible {
    color: #ffffff;
    background: var(--secraft-primary-dark);
    border-bottom-color: transparent;
}

.navbar-toggler {
    padding: 7px 9px;
    border-color: var(--secraft-border);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(18, 99, 165, 0.2);
}

.site-main {
    min-height: 60vh;
}

.hero {
    position: relative;
    min-height: clamp(390px, 43vw, 560px);
    padding: clamp(88px, 10vw, 132px) 0;
    background-color: #dfe7ec;
    background-image:
        linear-gradient(
            90deg,
            rgba(244, 247, 250, 0.78) 0%,
            rgba(244, 247, 250, 0.68) 28%,
            rgba(244, 247, 250, 0.28) 52%,
            rgba(244, 247, 250, 0.04) 72%
        ),
        url("../img/common/hero-senior-se-team.png?ver=1.6.6");
    background-position: center center;
    background-size: cover;
    text-align: left;
}

.hero__mobile-image {
    display: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    margin: 0 0 12px;
    color: var(--secraft-primary);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero__title {
    max-width: 820px;
    margin: 0;
    color: var(--secraft-primary-dark);
    font-size: clamp(2.3rem, 4.1vw, 3.7rem);
    line-height: 1.15;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero__lead {
    max-width: 590px;
    margin: 28px 0 0;
    padding: 18px 22px;
    color: #102a43;
    background: rgba(255, 255, 255, 0.88);
    border-left: 5px solid var(--secraft-primary);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(11, 65, 111, 0.16);
    font-size: clamp(1.15rem, 2.1vw, 1.4rem);
    font-weight: 700;
    line-height: 1.8;
    text-shadow: none;
}

.hero__lead-sp {
    display: none;
}

.home-content,
.site-main.container {
    padding-top: 60px;
    padding-bottom: 60px;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 40px;
}

.home-content__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 32px;
}

.home-content__header h2 {
    margin: 0;
    color: var(--secraft-primary-dark);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.home-content__header .search-form {
    width: min(100%, 430px);
    margin: 0;
}

.section-eyebrow {
    margin: 0 0 6px;
    color: var(--secraft-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.post-list {
    display: grid;
    gap: 24px;
}

.post-list--home,
.post-list--archive,
.post-list--search {
    grid-template-columns: 1fr;
    max-width: none;
}

.post-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--secraft-border);
    border-radius: 10px;
}

.post-list--home .post-card,
.post-list--archive .post-card,
.post-list--search .post-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.post-card__image-link {
    display: block;
    width: 150px;
    height: 100px;
    overflow: hidden;
    background: var(--secraft-bg-light);
}

.post-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card__image-link:hover .post-card__image {
    transform: scale(1.035);
}

.post-card__body {
    padding: 15px 18px;
}

.post-card__title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.45;
}

.post-card__more {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.86rem;
    font-weight: 700;
}

.post-list--home .post-card__meta,
.post-list--archive .post-card__meta,
.post-list--search .post-card__meta {
    margin-bottom: 4px;
}

.post-list--home .post-card__summary,
.post-list--archive .post-card__summary,
.post-list--search .post-card__summary {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: var(--secraft-muted);
    font-size: 0.88rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-list--home .post-card__summary p,
.post-list--archive .post-card__summary p,
.post-list--search .post-card__summary p {
    margin: 0;
}

.archive-content,
.search-content {
    padding-top: 60px;
    padding-bottom: 60px;
}

.blog-sidebar {
    padding-top: 60px;
    padding-bottom: 60px;
}

.sidebar-section {
    padding: 20px;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid var(--secraft-border);
    border-radius: 10px;
}

.sidebar-section__title {
    padding-bottom: 9px;
    margin: 0 0 14px;
    color: var(--secraft-primary-dark);
    font-size: 1.05rem;
    border-bottom: 2px solid var(--secraft-primary);
}

.sidebar-section .search-form {
    margin: 0;
}

.sidebar-section .search-form__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sidebar-section .search-form__field {
    width: 100%;
}

.sidebar-section .search-form__submit {
    padding-right: 14px;
    padding-left: 14px;
}

.sidebar-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-list li {
    padding: 7px 0;
    border-bottom: 1px solid var(--secraft-border);
}

.sidebar-list li:last-child {
    border-bottom: 0;
}

.sidebar-calendar table {
    width: 100%;
    table-layout: fixed;
    text-align: center;
}

.sidebar-calendar caption {
    caption-side: top;
    padding: 0 0 10px;
    margin-bottom: 8px;
    color: var(--secraft-primary-dark);
    font-weight: 700;
    text-align: left;
}

.sidebar-calendar th,
.sidebar-calendar td {
    height: 34px;
    padding: 2px 1px;
    font-size: 0.8rem;
}

.sidebar-calendar td a {
    display: inline-grid;
    width: 30px;
    height: 30px;
    color: var(--secraft-primary-dark);
    background: var(--secraft-primary-light);
    border: 1px solid rgba(18, 99, 165, 0.28);
    border-radius: 50%;
    place-items: center;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-calendar td a:hover,
.sidebar-calendar td a:focus-visible {
    color: #ffffff;
    background: var(--secraft-primary);
}

.sidebar-calendar #today {
    color: #ffffff;
    background: var(--secraft-primary);
    border-radius: 50%;
    font-weight: 700;
}

.sidebar-calendar #today a {
    color: #ffffff;
    background: transparent;
    border-color: transparent;
}

.sidebar-calendar__legend {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 12px 0 0;
    color: var(--secraft-muted);
    font-size: 0.76rem;
}

.sidebar-calendar__legend span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--secraft-primary-light);
    border: 1px solid rgba(18, 99, 165, 0.35);
    border-radius: 50%;
}

.site-footer {
    width: 100%;
    color: #ffffff;
    background: linear-gradient(180deg, #2e7de7 0%, #2b74d8 100%);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.8fr) minmax(180px, 0.65fr);
    align-items: flex-start;
    gap: clamp(40px, 7vw, 100px);
    padding-top: clamp(68px, 8vw, 118px);
    padding-bottom: clamp(60px, 8vw, 110px);
}

.site-footer__brand {
    max-width: 520px;
}

.site-footer__heading {
    margin: 0 0 32px;
    color: #ffffff;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 700;
}

.site-footer__catchcopy {
    margin: 36px 0 0;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.65;
}

.site-footer__lead {
    margin: 30px 0 0;
    color: rgba(255, 255, 255, 0.88);
}

.site-footer__description {
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.site-footer__address {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
}

.site-footer__address p,
.site-footer__certification p {
    margin: 0 0 18px;
}

.site-footer__address a,
.site-footer__address a:hover,
.site-footer__address a:focus-visible {
    color: inherit;
}

.site-footer__certification {
    padding-top: 22px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.86);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-navigation__list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-navigation__list li {
    margin-bottom: 20px;
}

.footer-navigation__link {
    color: #ffffff;
}

.footer-navigation__link:hover,
.footer-navigation__link:focus-visible {
    color: #ffffff;
}

.site-footer__bottom {
    padding: 18px 0;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .site-header .navbar,
    .site-header__inner {
        min-height: 72px;
    }

    .site-branding {
        max-width: calc(100% - 70px);
    }

    .navbar-collapse {
        padding: 8px 0 18px;
        border-top: 1px solid var(--secraft-border);
    }

    .site-navigation__list {
        gap: 0;
    }

    .site-navigation__list .nav-link {
        padding: 11px 4px;
        border-bottom: 1px solid var(--secraft-border);
    }

    .site-navigation__list .nav-link:hover,
    .site-navigation__list .nav-link:focus-visible,
    .site-navigation__list .current-menu-item > .nav-link,
    .site-navigation__list .current_page_item > .nav-link {
        border-bottom-color: var(--secraft-border);
    }

    .site-navigation__list .nav-link--contact {
        padding: 11px 12px;
        margin: 10px 0 0;
        text-align: center;
        border: 0;
    }

    .site-footer__inner {
        grid-template-columns: 1.2fr 1fr;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        padding-top: 0;
    }

    .sidebar-section {
        margin-bottom: 0;
    }

}

@media (max-width: 767.98px) {
    .container {
        width: min(calc(100% - 30px), var(--secraft-container));
    }

    .site-branding__name {
        font-size: 1.2rem;
    }

    .site-branding__description {
        display: none;
    }

    .hero {
        min-height: 0;
        padding: 0;
        background: none;
    }

    .hero__inner {
        display: none;
    }

    .hero__mobile-image {
        display: block;
        width: 100%;
        height: auto;
    }

    .hero__lead-pc {
        display: none;
    }

    .hero__lead-sp {
        display: block;
        font-size: 1.05rem;
        line-height: 1.75;
    }

    .hero__lead-sp > span {
        display: block;
        white-space: nowrap;
    }

    .home-content__header {
        display: block;
    }

    .home-content__header .search-form {
        margin-top: 24px;
    }

    .post-list--home,
    .post-list--archive,
    .post-list--search {
        grid-template-columns: 1fr;
    }

    .post-list--home .post-card,
    .post-list--archive .post-card,
    .post-list--search .post-card {
        grid-template-columns: 1fr;
    }

    .post-card__image-link {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 44px;
        padding-top: 56px;
        padding-bottom: 52px;
    }

    .site-footer__brand {
        grid-column: auto;
    }
}

/* ==================================================
   正式ロゴ（Ver1.5）
================================================== */
.site-branding {
    display: block;
    width: min(320px, calc(100vw - 130px));
    max-width: 320px;
    padding: 9px 0;
    line-height: 0;
}

.site-branding__logo {
    display: block;
    width: 100%;
    height: auto;
}

.site-footer__logo-link {
    display: inline-block;
    width: min(390px, 100%);
    line-height: 0;
}

.site-footer__logo {
    display: block;
    width: 100%;
    height: auto;
}

.site-footer__description {
    max-width: 390px;
}

@media (max-width: 991.98px) {
    .site-branding {
        width: min(320px, calc(100vw - 105px));
    }
}

@media (max-width: 575.98px) {
    .site-branding {
        width: min(245px, calc(100vw - 95px));
        padding: 11px 0;
    }

    .site-footer__logo-link {
        width: min(310px, 100%);
    }
}

/* ==================================================
   ブログテンプレート（Ver1.5）
================================================== */
.content-layout {
    width: min(calc(100% - 40px), 920px);
    padding-top: clamp(48px, 7vw, 88px);
    padding-bottom: clamp(56px, 8vw, 100px);
}

.page-header,
.archive-header {
    margin-bottom: 38px;
}

.page-title,
.entry__title {
    margin: 0;
    color: var(--secraft-primary-dark);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.35;
}

.archive-description {
    margin-top: 16px;
    color: var(--secraft-muted);
}

.entry {
    padding: clamp(26px, 5vw, 54px);
    background: #ffffff;
    border: 1px solid var(--secraft-border);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(11, 65, 111, 0.07);
}

.entry__header {
    padding-bottom: 24px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--secraft-border);
}

.entry__meta,
.post-card__meta {
    margin-bottom: 10px;
    color: var(--secraft-muted);
    font-size: 0.88rem;
}

.entry__categories::before {
    margin: 0 10px;
    content: "/";
}

.entry__thumbnail {
    max-width: 560px;
    margin: 0 0 34px;
    margin-right: auto;
    margin-left: auto;
}

.entry__thumbnail img {
    display: block;
    width: 100%;
    border-radius: 10px;
}

.entry__content > :first-child {
    margin-top: 0;
}

.entry__content > :last-child {
    margin-bottom: 0;
}

.entry__content h2 {
    padding-bottom: 10px;
    margin: 2.2em 0 0.8em;
    color: var(--secraft-primary-dark);
    border-bottom: 2px solid var(--secraft-primary);
}

.entry__content h3 {
    margin: 1.8em 0 0.7em;
    color: var(--secraft-primary-dark);
}

.entry__content a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.entry__content blockquote {
    padding: 18px 22px;
    margin: 28px 0;
    background: var(--secraft-bg-light);
    border-left: 4px solid var(--secraft-primary);
}

.entry__content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.entry__content th,
.entry__content td {
    padding: 10px 14px;
    border: 1px solid var(--secraft-border);
}

.entry__footer {
    padding-top: 24px;
    margin-top: 34px;
    color: var(--secraft-muted);
    border-top: 1px solid var(--secraft-border);
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.post-navigation__next {
    text-align: right;
}

.post-navigation a {
    display: inline-block;
    font-weight: 600;
}

.pagination {
    margin-top: 38px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-grid;
    min-width: 42px;
    min-height: 42px;
    padding: 6px 10px;
    place-items: center;
    background: #ffffff;
    border: 1px solid var(--secraft-border);
    border-radius: 6px;
}

.pagination .current {
    color: #ffffff;
    background: var(--secraft-primary);
    border-color: var(--secraft-primary);
}

.empty-state,
.error-page {
    padding: clamp(34px, 7vw, 70px);
    background: var(--secraft-bg-light);
    border-radius: 14px;
    text-align: center;
}

.error-page__code {
    margin: 0;
    color: var(--secraft-primary);
    font-size: clamp(4rem, 14vw, 8rem);
    font-weight: 800;
    line-height: 1;
}

.search-form {
    max-width: 620px;
    margin: 28px auto;
    text-align: left;
}

.search-form__label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.search-form__row {
    display: flex;
}

.search-form__field {
    min-width: 0;
    flex: 1;
    padding: 11px 14px;
    border: 1px solid var(--secraft-border);
    border-radius: 7px 0 0 7px;
}

.search-form__field:focus {
    border-color: var(--secraft-primary);
    outline: 3px solid rgba(18, 99, 165, 0.15);
}

.search-form__submit,
.button-link {
    padding: 11px 22px;
    color: #ffffff;
    background: var(--secraft-primary);
    border: 1px solid var(--secraft-primary);
    border-radius: 0 7px 7px 0;
    font-weight: 700;
}

.button-link {
    display: inline-block;
    border-radius: 7px;
}

.search-form__submit:hover,
.search-form__submit:focus-visible,
.button-link:hover,
.button-link:focus-visible {
    color: #ffffff;
    background: var(--secraft-primary-dark);
    text-decoration: none;
}

.comments-area {
    padding: clamp(24px, 5vw, 42px);
    margin-top: 42px;
    background: var(--secraft-bg-light);
    border-radius: 12px;
}

.comments-title,
.comment-reply-title {
    color: var(--secraft-primary-dark);
    font-size: 1.4rem;
}

.comment-list {
    padding-left: 24px;
}

.comment-list > li {
    padding: 18px 0;
    border-bottom: 1px solid var(--secraft-border);
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--secraft-border);
    border-radius: 6px;
}

.comment-form .submit {
    padding: 10px 20px;
    color: #ffffff;
    background: var(--secraft-primary);
    border: 0;
    border-radius: 6px;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .content-layout {
        width: min(calc(100% - 30px), 920px);
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .post-navigation__next {
        text-align: left;
    }
}
