/* =========================================================
   HELIOS公式サイトUI
   高コントラスト / 青・黒・白 / 斜めレイアウト
========================================================= */

:root {
    --hp-blue: #0b63ce;
    --hp-blue-dark: #073b86;
    --hp-blue-light: #dcecff;
    --hp-black: #08111f;
    --hp-navy: #101b2f;
    --hp-white: #ffffff;
    --hp-paper: #f6f8fc;
    --hp-line: #c9d5e7;
    --hp-text: #172033;
    --hp-muted: #64748b;
    --hp-yellow: #ffe35a;
    --hp-red: #e5484d;
    --hp-shadow: 0 20px 48px rgba(8, 17, 31, 0.14);
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(120deg, rgba(11, 99, 206, 0.08), transparent 32%),
        linear-gradient(180deg, #f6f8fc 0%, #eef3fb 100%);
    color: var(--hp-text);
    line-height: 1.8;
    overflow-x: hidden;
}

main {
    flex: 1;
}

a {
    transition:
        color 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease,
        box-shadow 0.16s ease;
    }

/* =========================================================
   ページ上部へ戻るボタン
========================================================= */

.hp-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 260;

    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border: 2px solid var(--hp-black);
    background: var(--hp-blue);
    color: var(--hp-white);

    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);

    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0% 100%);
    box-shadow: 6px 6px 0 rgba(8, 17, 31, 0.24);

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}

.hp-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hp-back-to-top:hover {
    background: var(--hp-blue-dark);
    transform: translate(-2px, -2px);
    box-shadow: 9px 9px 0 rgba(8, 17, 31, 0.28);
}

.hp-back-to-top:focus-visible {
    outline: 4px solid rgba(11, 99, 206, 0.24);
    outline-offset: 3px;
}

.hp-back-to-top-icon {
    width: 28px;
    height: 28px;
    display: block;
}

/* =========================================================
   ヘッダー
========================================================= */

.hp-header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: rgba(8, 17, 31, 0.94);
    border-bottom: 4px solid var(--hp-blue);
    box-shadow: 0 12px 30px rgba(8, 17, 31, 0.26);
}

.hp-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 28%;
    height: 4px;
    background: var(--hp-yellow);
}

.hp-header-inner {
    max-width: 1180px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 26px;
}

.hp-logo {
    position: relative;
    min-width: 180px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    background: var(--hp-blue);
    color: var(--hp-white);
    text-decoration: none;
    font-weight: 950;
    letter-spacing: 0.18em;
    font-size: 25px;
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0% 100%);
}

.hp-logo::after {
    content: "MEDICAL IT";
    position: absolute;
    left: 24px;
    bottom: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hp-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 0;
    font-size: 13px;
}

.hp-nav a {
    position: relative;
    padding: 9px 12px;
    color: #dbeafe;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hp-nav a::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 3px;
    height: 3px;
    background: var(--hp-yellow);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.16s ease;
}

.hp-nav a:hover,
.hp-nav a.is-active {
    color: var(--hp-white);
    background: rgba(11, 99, 206, 0.24);
}

.hp-nav a:hover::before,
.hp-nav a.is-active::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* =========================================================
   ヒーロー
========================================================= */

.hp-hero {
    position: relative;
    padding: 104px 24px 92px;
    background:
        linear-gradient(115deg, rgba(8, 17, 31, 0.96) 0%, rgba(8, 17, 31, 0.94) 46%, rgba(11, 99, 206, 0.92) 46.2%, rgba(11, 99, 206, 0.88) 100%);
    color: var(--hp-white);
    overflow: hidden;
}

.hp-hero::before {
    content: "HELIOS";
    position: absolute;
    right: -38px;
    top: 34px;
    color: rgba(255, 255, 255, 0.055);
    font-size: clamp(88px, 16vw, 230px);
    font-weight: 950;
    letter-spacing: -0.08em;
    line-height: 1;
    pointer-events: none;
}

.hp-hero::after {
    content: "";
    position: absolute;
    left: -90px;
    bottom: -120px;
    width: 420px;
    height: 420px;
    border: 44px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
    pointer-events: none;
}

.hp-hero > * {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.hp-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--hp-blue);
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.hp-hero .hp-label {
    color: var(--hp-yellow);
}

.hp-label::before {
    content: "";
    width: 24px;
    height: 4px;
    background: currentColor;
    transform: skewX(-28deg);
}

.hp-hero h1 {
    max-width: 880px;
    margin: 0 0 20px;
    color: var(--hp-white);
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hp-hero p {
    max-width: 760px;
    margin-top: 0;
    color: #dcecff;
    font-size: 17px;
}

.hp-hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hp-button {
    position: relative;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 2px solid var(--hp-blue);
    background: var(--hp-blue);
    color: var(--hp-white);
    text-decoration: none;
    font-weight: 950;
    letter-spacing: 0.02em;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0% 100%);
    box-shadow: 8px 8px 0 var(--hp-black);
}

.hp-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 12px 12px 0 var(--hp-black);
}

.hp-button.secondary {
    background: var(--hp-white);
    color: var(--hp-blue-dark);
    border-color: var(--hp-white);
}

.hp-button.secondary:hover {
    background: var(--hp-yellow);
    border-color: var(--hp-yellow);
}

/* =========================================================
   レイアウト
========================================================= */

.hp-page {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 52px 24px 76px;
}

.hp-section {
    position: relative;
    margin-bottom: 32px;
    padding: 36px;
    background: var(--hp-white);
    border: 2px solid var(--hp-black);
    box-shadow: 10px 10px 0 rgba(8, 17, 31, 0.12);
    overflow: hidden;
}

.hp-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 100%;
    background: var(--hp-blue);
}

.hp-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: -80px;
    width: 180px;
    height: 34px;
    background: rgba(11, 99, 206, 0.12);
    transform: skewX(-34deg);
}

.hp-section.compact {
    padding: 30px 34px;
}

.hp-section h1 {
    margin: 0 0 18px;
    color: var(--hp-black);
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.14;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hp-section h2 {
    margin: 0 0 14px;
    color: var(--hp-black);
    font-size: 27px;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.hp-section h3 {
    margin: 18px 0 8px;
    color: var(--hp-blue-dark);
    font-size: 19px;
    font-weight: 950;
}

.hp-section p {
    margin-top: 0;
}

.hp-lead {
    max-width: 830px;
    color: #334155;
    font-size: 16px;
}

.hp-muted {
    color: var(--hp-muted);
    font-size: 14px;
}

.hp-divider {
    height: 2px;
    margin: 30px 0;
    background: repeating-linear-gradient(
        90deg,
        var(--hp-blue) 0,
        var(--hp-blue) 18px,
        transparent 18px,
        transparent 26px
    );
}

/* =========================================================
   カード・グリッド
========================================================= */

.hp-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hp-card-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hp-card-grid article,
.hp-info-card,
.hp-news-article,
.hp-faq-item,
.hp-alert-card,
.hp-note-card {
    position: relative;
    margin-top: 18px;
    padding: 24px;
    border: 2px solid var(--hp-black);
    background: #ffffff;
    box-shadow: 7px 7px 0 rgba(8, 17, 31, 0.10);
}

.hp-card-grid article {
    margin-top: 0;
}

.hp-card-grid article::before,
.hp-info-card::before,
.hp-news-article::before,
.hp-faq-item::before,
.hp-alert-card::before,
.hp-note-card::before {
    content: "";
    position: absolute;
    left: -2px;
    top: -2px;
    width: 42px;
    height: 8px;
    background: var(--hp-blue);
}

.hp-card-grid article h3,
.hp-info-card h2,
.hp-news-article h2,
.hp-faq-item h2,
.hp-alert-card h2,
.hp-note-card h2 {
    margin-top: 0;
}

.important-card {
    background:
        linear-gradient(135deg, rgba(11, 99, 206, 0.12), transparent 38%),
        #ffffff;
}

.important-card::before {
    background: var(--hp-yellow);
}

.hp-alert-card {
    background: #fff7ed;
}

.hp-alert-card::before {
    background: var(--hp-red);
}

.hp-note-card {
    background: #f8fafc;
}

.hp-mini-label {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 4px 10px;
    background: var(--hp-black);
    color: var(--hp-white);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    transform: skewX(-10deg);
}

/* =========================================================
   数値表示・タイムライン・工程リスト
========================================================= */

.hp-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.hp-stat-card {
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.10);
    border: 2px solid rgba(255, 255, 255, 0.64);
    color: var(--hp-white);
    backdrop-filter: blur(6px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.22);
}

.hp-stat-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: 36px;
    height: 7px;
    background: var(--hp-yellow);
}

.hp-stat-number {
    display: block;
    color: var(--hp-white);
    font-size: 31px;
    font-weight: 950;
    line-height: 1.1;
}

.hp-stat-label {
    display: block;
    margin-top: 6px;
    color: #dcecff;
    font-size: 13px;
    font-weight: 800;
}

.hp-timeline {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    border-left: 5px solid var(--hp-blue);
}

.hp-timeline li {
    position: relative;
    padding: 0 0 24px 24px;
}

.hp-timeline li::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--hp-yellow);
    border: 3px solid var(--hp-black);
    transform: rotate(45deg);
}

.hp-timeline time {
    display: inline-flex;
    margin-bottom: 5px;
    padding: 2px 10px;
    background: var(--hp-blue);
    color: var(--hp-white);
    font-size: 13px;
    font-weight: 950;
}

.hp-process-list {
    counter-reset: process;
    display: grid;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.hp-process-list li {
    counter-increment: process;
    position: relative;
    padding: 18px 18px 18px 66px;
    border: 2px solid var(--hp-black);
    background: var(--hp-white);
    box-shadow: 6px 6px 0 rgba(8, 17, 31, 0.10);
}

.hp-process-list li::before {
    content: counter(process);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--hp-blue);
    color: var(--hp-white);
    font-weight: 950;
    clip-path: polygon(18% 0, 100% 0, 82% 100%, 0% 100%);
}

/* =========================================================
   ニュース
========================================================= */

.hp-date {
    display: inline-flex;
    margin: 0 0 8px;
    padding: 3px 10px;
    background: var(--hp-blue);
    color: var(--hp-white);
    font-size: 13px;
    font-weight: 950;
}

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

.hp-news-list li {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 2px solid #e1e5ee;
}

.hp-news-list li:last-child {
    border-bottom: none;
}

.hp-news-list span {
    color: var(--hp-blue-dark);
    font-weight: 950;
}

.hp-news-list a,
.hp-news-article a {
    color: var(--hp-blue);
    text-decoration: none;
    font-weight: 950;
}

.hp-news-list a:hover,
.hp-news-article a:hover {
    color: var(--hp-black);
    text-decoration: underline;
}

/* =========================================================
   テーブル
========================================================= */

.hp-table-wrap {
    overflow-x: auto;
    margin-top: 18px;
    border: 2px solid var(--hp-black);
    box-shadow: 7px 7px 0 rgba(8, 17, 31, 0.10);
}

.hp-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--hp-white);
}

.hp-table th,
.hp-table td {
    padding: 13px 15px;
    border: 1px solid var(--hp-line);
    text-align: left;
    vertical-align: top;
}

.hp-table th {
    width: 190px;
    background: var(--hp-black);
    color: var(--hp-white);
    font-weight: 950;
}

.hp-table thead th {
    width: auto;
    background: var(--hp-blue);
}

/* =========================================================
   検索
========================================================= */

.hp-search-box {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.hp-search-box input {
    flex: 1;
    min-height: 50px;
    padding: 0 15px;
    border: 2px solid var(--hp-black);
    background: var(--hp-white);
    color: var(--hp-black);
    font-weight: 800;
    box-shadow: 5px 5px 0 rgba(8, 17, 31, 0.10);
}

.hp-search-box input:focus {
    outline: 4px solid rgba(11, 99, 206, 0.20);
    border-color: var(--hp-blue);
}

.hp-search-box button {
    min-height: 50px;
    padding: 0 24px;
    border: 2px solid var(--hp-black);
    background: var(--hp-blue);
    color: var(--hp-white);
    cursor: pointer;
    font-weight: 950;
    box-shadow: 5px 5px 0 rgba(8, 17, 31, 0.20);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0% 100%);
}

.hp-search-box button:hover {
    transform: translate(-1px, -1px);
    background: var(--hp-blue-dark);
    box-shadow: 8px 8px 0 rgba(8, 17, 31, 0.22);
}

.hp-search-result {
    margin-top: 26px;
}

.hp-search-card {
    position: relative;
    margin-top: 14px;
    padding: 22px;
    border: 2px solid var(--hp-black);
    background: var(--hp-white);
    box-shadow: 6px 6px 0 rgba(8, 17, 31, 0.10);
}

.hp-search-card::before {
    content: "";
    position: absolute;
    left: -2px;
    top: -2px;
    width: 42px;
    height: 8px;
    background: var(--hp-yellow);
}

.hp-search-card h2 {
    margin: 4px 0 8px;
    font-size: 21px;
    font-weight: 950;
}

.hp-search-card a {
    color: var(--hp-blue);
    text-decoration: none;
}

.hp-search-card a:hover {
    color: var(--hp-black);
    text-decoration: underline;
}

.hp-search-meta {
    margin: 0;
    color: var(--hp-muted);
    font-size: 13px;
    font-weight: 900;
}

/* =========================================================
   HP検索結果
   既存の検索画面を崩さず、検索結果カードだけ整える
========================================================= */

.hp-search-form {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.hp-search-input {
    flex: 1;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(8, 17, 31, 0.18);
    background: #ffffff;
    color: #101827;
    font: inherit;
}

.hp-search-input:focus {
    outline: 2px solid rgba(11, 99, 206, 0.18);
    border-color: rgba(11, 99, 206, 0.62);
}

.hp-search-button {
    min-width: 110px;
    min-height: 46px;
    border: none;
    background: var(--hp-blue, #0b63ce);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.hp-search-button:hover {
    background: var(--hp-blue-dark, #063b7a);
}

.hp-search-status {
    margin-top: 24px;
}

.hp-search-results {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.hp-search-card-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.hp-search-title {
    margin: 0;
    color: #101827;
    font-size: 22px;
    line-height: 1.5;
}

.hp-search-summary {
    margin: 12px 0 0;
    color: #475569;
}

/* =========================================================
   検索専用記事の強調
   HP検索のみで見つかる記事
========================================================= */

.hp-search-only-card {
    position: relative;
    border-color: rgba(11, 99, 206, 0.55);
    background:
        linear-gradient(
            135deg,
            rgba(11, 99, 206, 0.10),
            rgba(255, 255, 255, 0.96) 42%,
            #ffffff 100%
        );
    box-shadow:
        0 0 16px rgba(11, 99, 206, 0.18),
        7px 7px 0 rgba(8, 17, 31, 0.08);
}

.hp-search-only-card::before {
    background: var(--hp-blue, #0b63ce);
    box-shadow: 0 0 10px rgba(11, 99, 206, 0.45);
}

.hp-search-only-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border: 1px solid rgba(96, 165, 250, 0.28);
    box-shadow: 0 0 22px rgba(96, 165, 250, 0.22);
    pointer-events: none;
}

.hp-search-only-card .hp-search-title {
    color: var(--hp-blue-dark, #063b7a);
}

.hp-search-only-card:hover {
    box-shadow:
        0 0 24px rgba(11, 99, 206, 0.26),
        9px 9px 0 rgba(8, 17, 31, 0.10);
}

/* =========================================================
   フッター
========================================================= */

.hp-footer {
    margin-top: auto;
    background: var(--hp-black);
    border-top: 5px solid var(--hp-blue);
    color: #dbeafe;
}

.hp-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}

.hp-footer a {
    color: var(--hp-yellow);
    text-decoration: none;
    font-weight: 950;
}

/* 既存フッターとの互換 */
.hp-footer > p {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 24px;
    color: #dbeafe;
    font-size: 13px;
}

/* =========================================================
   JavaScript用の任意演出
========================================================= */

.hp-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.hp-loaded .hp-hero h1 {
    animation: hpTitleIn 0.45s ease both;
}

body.hp-loaded .hp-hero p {
    animation: hpFadeIn 0.55s ease 0.08s both;
}

@keyframes hpTitleIn {
    from {
        opacity: 0;
        transform: translateX(-22px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hpFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   ヘッダーメニュー基本設定
   ハンバーガー要素はレスポンシブ設定内で有効化
========================================================= */

.hp-menu-button {
    display: none;
}

.hp-menu-backdrop {
    display: none;
}

/* =========================================================
   役員ページ
   一覧カード・プロフィールページ
========================================================= */

.hp-message-card {
    position: relative;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    padding: 0;
    border: 2px solid var(--hp-black);
    background: var(--hp-white);
    box-shadow: 8px 8px 0 rgba(8, 17, 31, 0.14);
    overflow: hidden;
}

.hp-message-card::before {
    content: "";
    position: absolute;
    left: -2px;
    top: -2px;
    z-index: 2;
    width: 56px;
    height: 9px;
    background: var(--hp-yellow);
}

.hp-message-photo-wrap {
    position: relative;
    min-height: 300px;
    background:
        linear-gradient(135deg, rgba(11, 99, 206, 0.18), transparent 56%),
        var(--hp-blue-light);
    border-right: 2px solid var(--hp-black);
}

.hp-message-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.96);
}

.hp-message-content {
    padding: 28px 30px 28px 0;
}

.hp-message-content h3 {
    margin: 0 0 10px;
    color: var(--hp-black);
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.hp-text-link {
    display: inline-flex;
    margin-top: 8px;
    color: var(--hp-blue);
    text-decoration: none;
    font-weight: 950;
}

.hp-text-link:hover {
    color: var(--hp-black);
    text-decoration: underline;
}

.hp-executive-list {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

.hp-executive-item {
    position: relative;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 260px;
    border: 2px solid var(--hp-black);
    background: var(--hp-white);
    color: var(--hp-text);
    text-decoration: none;
    box-shadow: 8px 8px 0 rgba(8, 17, 31, 0.12);
    overflow: hidden;
}

.hp-executive-item::before {
    content: "";
    position: absolute;
    left: -2px;
    top: -2px;
    z-index: 2;
    width: 54px;
    height: 9px;
    background: var(--hp-blue);
}

.hp-executive-item:nth-child(odd)::before {
    background: var(--hp-yellow);
}

.hp-executive-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 12px 12px 0 rgba(8, 17, 31, 0.18);
}

.hp-executive-image {
    position: relative;
    background:
        linear-gradient(135deg, rgba(11, 99, 206, 0.16), transparent 58%),
        var(--hp-blue-light);
    border-right: 2px solid var(--hp-black);
    overflow: hidden;
}

.hp-executive-image::after {
    content: "";
    position: absolute;
    inset: auto -26px -26px auto;
    width: 120px;
    height: 120px;
    border: 20px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.hp-executive-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.96);
}

.hp-executive-detail {
    position: relative;
    padding: 26px 30px;
}

.hp-executive-detail::after {
    content: "PROFILE";
    position: absolute;
    right: -18px;
    bottom: 2px;
    color: rgba(8, 17, 31, 0.045);
    font-size: 58px;
    font-weight: 950;
    letter-spacing: -0.06em;
    line-height: 1;
    pointer-events: none;
}

.hp-executive-role {
    display: inline-flex;
    margin: 0 0 10px;
    padding: 4px 10px;
    background: var(--hp-blue);
    color: var(--hp-white);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.hp-executive-detail h3 {
    margin: 0 0 10px;
    color: var(--hp-black);
    font-size: 30px;
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.hp-executive-detail p {
    position: relative;
    z-index: 1;
}

.hp-executive-meta {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
}

.hp-executive-meta div {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--hp-line);
}

.hp-executive-meta dt {
    color: var(--hp-blue-dark);
    font-size: 13px;
    font-weight: 950;
}

.hp-executive-meta dd {
    margin: 0;
    color: #334155;
    font-size: 14px;
}

.hp-executive-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 18px;
    color: var(--hp-blue);
    font-weight: 950;
}

.hp-executive-link::after {
    content: " →";
}

.hp-executive-item:hover .hp-executive-link {
    color: var(--hp-black);
    text-decoration: underline;
}

/* プロフィールページ */

.hp-profile-hero {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.hp-profile-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 2px solid var(--hp-black);
    background: var(--hp-blue-light);
    box-shadow: 10px 10px 0 rgba(8, 17, 31, 0.16);
}

.hp-profile-role {
    display: inline-flex;
    margin: 0 0 16px;
    padding: 4px 12px;
    background: var(--hp-black);
    color: var(--hp-white);
    font-size: 14px;
    font-weight: 950;
}

/* =========================================================
   タイムライン
   役員プロフィールの経歴表示
========================================================= */

.hp-timeline {
    --timeline-time-col: 88px;
    --timeline-axis-col: 36px;
    --timeline-axis-x: calc(var(--timeline-time-col) + (var(--timeline-axis-col) / 2));
    position: relative !important;
    margin: 28px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border-left: none !important;
}

.hp-timeline::before {
    content: "";
    position: absolute;
    left: var(--timeline-axis-x);
    top: 12px;
    bottom: 12px;
    z-index: 0;
    width: 4px;
    background: var(--hp-blue);
    transform: translateX(-50%);
}

.hp-timeline li {
    position: relative !important;
    display: grid !important;
    grid-template-columns: var(--timeline-time-col) var(--timeline-axis-col) minmax(0, 1fr) !important;
    column-gap: 0 !important;
    row-gap: 4px !important;
    padding: 0 0 30px !important;
}

.hp-timeline li:last-child {
    padding-bottom: 0 !important;
}

.hp-timeline li::before {
    content: "" !important;
    position: absolute !important;
    left: calc(var(--timeline-axis-x) - 10px) !important;
    top: 5px !important;
    z-index: 2 !important;
    width: 20px !important;
    height: 20px !important;
    box-sizing: border-box !important;
    background: var(--hp-yellow) !important;
    border: 4px solid var(--hp-black) !important;
    border-radius: 0 !important;
    transform: rotate(45deg) !important;
}

.hp-timeline li::after {
    content: none !important;
    display: none !important;
}

.hp-timeline time {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--hp-blue-dark) !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    line-height: 1.45 !important;
    text-align: right !important;
}

.hp-timeline strong {
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: block !important;
    margin: 0 !important;
    color: var(--hp-black) !important;
    font-size: 17px !important;
    font-weight: 950 !important;
    line-height: 1.45 !important;
}

.hp-timeline p {
    grid-column: 3 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    color: #334155 !important;
    line-height: 1.8 !important;
}

/* =========================================================
   レスポンシブ
========================================================= */

/* タブレット */
@media (max-width: 980px) {
    .hp-card-grid,
    .hp-card-grid.two,
    .hp-stat-grid {
        grid-template-columns: 1fr;
    }

    .hp-news-list li {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .hp-search-box {
        flex-direction: column;
    }

    .hp-footer-inner {
        flex-direction: column;
    }

    .hp-message-card {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .hp-executive-item {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .hp-profile-hero {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

/* デスクトップ・タブレット用ナビゲーション */
@media (min-width: 761px) {
    .hp-menu-button,
    .hp-menu-backdrop {
        display: none !important;
    }

    .hp-nav {
        position: static;
        width: auto;
        height: auto;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        overflow: visible;
    }

    body.hp-menu-open {
        overflow: auto;
    }
}

/* モバイル用ナビゲーション */
@media (max-width: 760px) {
    .hp-header {
        position: sticky;
        top: 0;
        z-index: 300;
    }

    .hp-header-inner {
        min-height: 74px;
        padding: 0 16px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .hp-logo {
        min-width: 150px;
        min-height: 56px;
        padding-left: 20px;
        font-size: 21px;
    }

    .hp-menu-button {
        position: relative;
        z-index: 340;
        width: 50px;
        height: 50px;
        display: grid;
        place-items: center;
        border: 2px solid rgba(255, 255, 255, 0.85);
        background: var(--hp-blue);
        cursor: pointer;
        box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.32);
        clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0% 100%);
    }

    .hp-menu-button span {
        position: absolute;
        width: 26px;
        height: 3px;
        background: #ffffff;
        transform-origin: center;
        transition:
            transform 0.22s ease,
            opacity 0.18s ease,
            top 0.22s ease;
    }

    .hp-menu-button span:nth-child(1) {
        top: 15px;
    }

    .hp-menu-button span:nth-child(2) {
        top: 23px;
    }

    .hp-menu-button span:nth-child(3) {
        top: 31px;
    }

    body.hp-menu-open .hp-menu-button span:nth-child(1) {
        top: 23px;
        transform: rotate(45deg);
    }

    body.hp-menu-open .hp-menu-button span:nth-child(2) {
        opacity: 0;
        transform: translateX(8px);
    }

    body.hp-menu-open .hp-menu-button span:nth-child(3) {
        top: 23px;
        transform: rotate(-45deg);
    }

    .hp-nav {
        position: fixed;
        top: 74px;
        right: 0;
        z-index: 330;
        width: min(86vw, 360px);
        height: calc(100vh - 74px);
        padding: 26px 20px 34px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
        background:
            linear-gradient(135deg, rgba(8, 17, 31, 0.98), rgba(8, 17, 31, 0.95)),
            var(--hp-black);
        border-left: 5px solid var(--hp-blue);
        box-shadow: -18px 0 42px rgba(0, 0, 0, 0.36);
        transform: translateX(110%);
        opacity: 0;
        pointer-events: none;
        overflow-y: auto;
        transition:
            transform 0.26s ease,
            opacity 0.22s ease;
    }

    body.hp-menu-open .hp-nav {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hp-nav::before {
        content: "MENU";
        display: block;
        margin-bottom: 8px;
        color: var(--hp-yellow);
        font-size: 34px;
        font-weight: 950;
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .hp-nav a {
        display: block;
        padding: 14px 16px;
        color: #dbeafe;
        background: rgba(255, 255, 255, 0.055);
        border: 1px solid rgba(255, 255, 255, 0.13);
        font-size: 15px;
        font-weight: 900;
        clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0% 100%);
    }

    .hp-nav a::before {
        left: 14px;
        right: 14px;
        bottom: 7px;
    }

    .hp-nav a:hover,
    .hp-nav a.is-active {
        color: #ffffff;
        background: rgba(11, 99, 206, 0.38);
        transform: translateX(-3px);
    }

    .hp-menu-backdrop {
        position: fixed;
        inset: 74px 0 0;
        z-index: 220;
        display: block;
        background:
            linear-gradient(90deg, rgba(8, 17, 31, 0.74), rgba(8, 17, 31, 0.34));
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
    }

    body.hp-menu-open .hp-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.hp-menu-open {
        overflow: hidden;
    }

    .hp-message-card,
    .hp-executive-item,
    .hp-profile-hero {
        grid-template-columns: 1fr;
    }

    .hp-message-photo-wrap,
    .hp-executive-image {
        min-height: auto;
        border-right: none;
        border-bottom: 2px solid var(--hp-black);
    }

    .hp-message-photo,
    .hp-executive-image img {
        width: 100%;
        aspect-ratio: 4 / 5;
        height: auto;
    }

    .hp-message-content,
    .hp-executive-detail {
        padding: 24px;
    }

    .hp-executive-detail h3 {
        font-size: 26px;
    }

    .hp-executive-meta div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .hp-profile-photo {
        max-width: 260px;
    }
}

/* 小さめ画面 */
@media (max-width: 640px) {
    .hp-hero {
        padding: 70px 18px 64px;
        background:
            linear-gradient(160deg, rgba(8, 17, 31, 0.96) 0%, rgba(8, 17, 31, 0.94) 62%, rgba(11, 99, 206, 0.92) 62.2%, rgba(11, 99, 206, 0.88) 100%);
    }

    .hp-page {
        padding: 34px 16px 58px;
    }

    .hp-section {
        padding: 26px 22px;
        box-shadow: 6px 6px 0 rgba(8, 17, 31, 0.10);
    }

    .hp-section::before {
        width: 8px;
    }

    .hp-button {
        width: 100%;
    }

    .hp-search-form {
        flex-direction: column;
    }

    .hp-search-button {
        width: 100%;
    }

    .hp-search-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hp-search-card {
        padding: 22px;
    }

    .hp-timeline {
        --timeline-time-col: 0px;
        --timeline-axis-col: 28px;
        --timeline-axis-x: 14px;
        margin-top: 24px !important;
    }

    .hp-timeline::before {
        left: var(--timeline-axis-x) !important;
        top: 12px !important;
        bottom: 12px !important;
    }

    .hp-timeline li {
        grid-template-columns: var(--timeline-axis-col) minmax(0, 1fr) !important;
        padding: 0 0 28px !important;
    }

    .hp-timeline li::before {
        left: calc(var(--timeline-axis-x) - 9px) !important;
        top: 5px !important;
        width: 18px !important;
        height: 18px !important;
    }

    .hp-timeline time,
    .hp-timeline strong,
    .hp-timeline p {
        grid-column: 2 !important;
        grid-row: auto !important;
        text-align: left !important;
    }

    .hp-timeline time {
        margin-bottom: 2px !important;
    }

    .hp-back-to-top {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }

    .hp-back-to-top-icon {
        width: 26px;
        height: 26px;
    }
}

/* かなり小さい画面 */
@media (max-width: 520px) {
    .hp-logo {
        min-width: 138px;
        font-size: 19px;
    }

    .hp-logo::after {
        left: 20px;
        font-size: 8px;
    }

    .hp-menu-button {
        width: 46px;
        height: 46px;
    }

    .hp-nav {
        width: 88vw;
    }
}