/*
 * 全ページ共通のヘッダー・フッター（custom.css の後に読み込む）。
 * Tailwind のユーティリティクラス（px-4、lg:grid 等）は定義していないので、HTML に書いても効かない。
 * 新しい見た目が必要なときは、このファイルにクラスを追加して HTML から使うこと。
 *
 * ブレークポイント: sm 640px / md 768px / lg 1024px / xl 1280px / 2xl 1536px
 */

/* ================================================================ ヘッダー */
.site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 50;
}
.site-header-nav {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.site-header-bar {
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
}
.site-header-brand { flex-shrink: 0; }
.site-header-logo-link { font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
.site-header-logo { height: 4rem; width: auto; }
.site-header-menu { display: none; align-items: center; }
.site-header-menu > :not([hidden]) ~ :not([hidden]) { margin-right: 0; margin-left: 2rem; }
.site-header-menu-link {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.site-header-menu-link:hover { opacity: 1; }
.site-header-dropdown { position: relative; }
.site-header-menu-button { border-radius: 0.375rem; padding: 0.5rem; }
.site-header-menu-icon { height: 1.5rem; width: 1.5rem; }
.site-header-close-icon { height: 1.5rem; width: 1.5rem; }
.site-header-mobile-menu { padding-bottom: 1rem; }
.site-header-mobile-list { display: flex; flex-direction: column; }
.site-header-mobile-list > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; margin-bottom: 0; }
.site-header-mobile-link {
    border-radius: 0.375rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-weight: 500;
}
.site-header-mobile-group > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; margin-bottom: 0; }
.site-header-mobile-sublist { display: flex; flex-direction: column; padding-left: 1rem; }
.site-header-mobile-sublist > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; margin-bottom: 0; }
.site-header-mobile-sublink {
    border-radius: 0.375rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
}
.site-header-mobile-cta { text-align: center; }
.site-header-menu-current {
    border-bottom-width: 2px;
    padding-bottom: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    border-color: #111827;
}
.site-header-mobile-link-current {
    border-radius: 0.375rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-weight: 600;
    background-color: #f3f4f6;
}
.site-header-mobile-sublink-current {
    border-radius: 0.375rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    background-color: #f3f4f6;
}
.site-header-cta-current { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #111827; }
.site-header-mobile-cta-current { text-align: center; box-shadow: 0 0 0 1px #fff, 0 0 0 3px #111827; }
.site-header-menu-link-current {
    border-bottom-width: 2px;
    padding-bottom: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    border-color: #111827;
}
.site-header-menu-link-current:hover { opacity: 1; }
.site-header-menu-link-current-news {
    border-bottom-width: 2px;
    border-color: currentColor;
    padding-bottom: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.site-header-menu-link-current-news:hover { opacity: 1; }
.site-header-mobile-link-current-news {
    border-radius: 0.375rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-weight: 600;
}
@media (min-width: 640px) {
    .site-header-nav { max-width: 640px; padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
    .site-header-nav { max-width: 768px; }
}
@media (min-width: 1024px) {
    .site-header-nav { max-width: 1024px; padding-left: 2rem; padding-right: 2rem; }
    .site-header-bar { height: 5rem; }
    .site-header-menu { display: flex; }
    .site-header-menu-button { display: none; }
    .site-header-mobile-menu { display: none; }
}
@media (min-width: 1280px) {
    .site-header-nav { max-width: 1280px; }
}
@media (min-width: 1536px) {
    .site-header-nav { max-width: 1536px; }
}

/* ================================================================ フッター */
.site-footer { padding-top: 4rem; padding-bottom: 4rem; }
.site-footer-inner {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.site-footer-columns { margin-bottom: 3rem; display: grid; gap: 3rem; }
.site-footer-brand {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: #ffffff;
}
.site-footer-tagline { font-size: 0.875rem; line-height: 1.625; color: rgb(255 255 255 / 0.5); }
.site-footer-heading {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
}
.site-footer-list > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; margin-bottom: 0; }
.site-footer-list { font-size: 0.875rem; line-height: 1.25rem; }
.site-footer-external-link { display: inline-flex; align-items: center; gap: 0.25rem; }
.site-footer-external-icon { margin-left: 0.25rem; height: 0.75rem; width: 0.75rem; }
.site-footer-contact > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; margin-bottom: 0; }
.site-footer-contact { font-size: 0.875rem; line-height: 1.25rem; color: rgb(255 255 255 / 0.5); }
.site-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top-width: 1px;
    border-color: rgb(255 255 255 / 0.1);
    padding-top: 2rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(255 255 255 / 0.4);
}
.site-footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.site-footer-legal-link {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.site-footer-legal-link:hover { color: rgb(255 255 255 / 0.7); }
.site-footer-copyright {
    border-top-width: 1px;
    border-color: rgb(255 255 255 / 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(255 255 255 / 0.4);
}
.site-footer-tagline-bright { font-size: 0.875rem; line-height: 1.625; color: rgb(255 255 255 / 0.75); }
.site-footer-contact-lp > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; margin-bottom: 0; }
.site-footer-contact-lp { font-size: 0.875rem; line-height: 1.25rem; color: rgb(255 255 255 / 0.6); }
.site-footer-social { margin-top: 1.5rem; display: flex; gap: 0.75rem; }
.site-footer-social-link {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border-width: 1px;
    border-color: rgb(255 255 255 / 0.1);
    background-color: rgb(255 255 255 / 0.05);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.site-footer-social-link:hover { border-color: rgb(0 102 255 / 0.4); background-color: rgb(0 102 255 / 0.2); }
.site-footer-social-icon { height: 1rem; width: 1rem; color: rgb(255 255 255 / 0.6); }
.site-footer-social-link-plain {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border-width: 1px;
    border-color: rgb(255 255 255 / 0.1);
    background-color: rgb(255 255 255 / 0.05);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.site-footer-tagline-lp { font-size: 0.875rem; line-height: 1.625; color: rgb(255 255 255 / 0.6); }
.site-footer-bottom-lp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top-width: 1px;
    border-color: rgb(255 255 255 / 0.1);
    padding-top: 2rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(255 255 255 / 0.5);
}
.site-footer-contact-bright > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; margin-bottom: 0; }
.site-footer-contact-bright { font-size: 0.875rem; line-height: 1.25rem; color: rgb(255 255 255 / 0.75); }
.site-footer-bottom-bright {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top-width: 1px;
    border-color: rgb(255 255 255 / 0.1);
    padding-top: 2rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(255 255 255 / 0.6);
}
@media (min-width: 640px) {
    .site-footer-inner { max-width: 640px; padding-left: 1.5rem; padding-right: 1.5rem; }
    .site-footer-bottom { flex-direction: row; }
    .site-footer-legal-links { justify-content: flex-end; }
    .site-footer-bottom-lp { flex-direction: row; }
    .site-footer-bottom-bright { flex-direction: row; }
}
@media (min-width: 768px) {
    .site-footer-inner { max-width: 768px; }
    .site-footer-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .site-footer-inner { max-width: 1024px; padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1280px) {
    .site-footer-inner { max-width: 1280px; }
}
@media (min-width: 1536px) {
    .site-footer-inner { max-width: 1536px; }
}

/* ================================================================ サイト内導線 */
.site-links {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1.5rem;
}
.site-links-inner {
    margin-left: auto;
    margin-right: auto;
    max-width: 72rem;
    border-radius: 1rem;
    border-width: 1px;
    background-color: rgb(248 250 252 / 0.8);
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    border-color: #e2e8f0;
    color: #334155;
}
.site-links-link { font-weight: 600; color: #1d4ed8; }
.site-links-link:hover { text-decoration-line: underline; }
.site-links-separator { margin-left: 0.5rem; margin-right: 0.5rem; color: #94a3b8; }
@media (min-width: 640px) {
    .site-links { max-width: 640px; padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
    .site-links { max-width: 768px; }
}
@media (min-width: 1024px) {
    .site-links {
        max-width: 1024px;
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 2rem;
    }
}
@media (min-width: 1280px) {
    .site-links { max-width: 1280px; }
}
@media (min-width: 1536px) {
    .site-links { max-width: 1536px; }
}

/* ================================================================ フォームの状態（JS が付け外しする） */
/* 入力エラーのメッセージ（JS が入力欄の後ろに追加する） */
.form-error { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.25rem; color: #ef4444; }
.form-error-group { margin-top: 0.5rem; }
/* 入力エラーの欄。ページ側の入力欄のクラス（.xxx）より優先し、:focus の指定よりは弱くするため要素名を付けている */
:is(input, select, textarea, div).is-invalid { border-color: #ef4444; }
/* 送信中のボタン */
button.is-submitting { opacity: 0.7; cursor: not-allowed; }
