/* ========================================
   会社案内ページ統合CSS
   ======================================== */

/* ページ全体のoverflow制御 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* モバイルでmainの白背景を透明に（パララクス背景表示のため） */
@media (max-width: 767px) {
    main {
        background: transparent;
    }
}

/* モバイル専用表示ユーティリティ */
.sp-only {
    display: inline;
}

@media (min-width: 768px) {
    .sp-only {
        display: none;
    }
}

/* TEL/FAXセパレーター - モバイルで非表示 */
@media (max-width: 767px) {
    .profile-contact-sep {
        display: none;
    }
}

/* ================================================
   会社概要セクション - 左側固定表示
   ================================================ */

#profile .sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 8rem; /* top-32 = 128px = 8rem */
}

/* ================================================
   代表挨拶セクション - レスポンシブ対応
   ================================================ */

#message {
    position: relative;
    min-height: 500px;
    padding: 2rem 0;
    margin-bottom: 60px;
    margin-top: 60px;
}

/* タブレット以上 */
@media (min-width: 768px) {
    #message {
        min-height: 600px;
        padding: 0;
        margin-bottom: 80px;
        margin-top: 80px;
    }
}

/* デスクトップ */
@media (min-width: 1024px) {
    #message {
        min-height: 700px;
        margin-bottom: 150px;
        margin-top: 100px;
    }
}

/* 背景画像エリア */
.message-bg-image {
    position: relative;
    width: 100%;
    height: 400px;
    z-index: 0;
    margin-bottom: 2rem;
}

/* タブレット以上 - 左側配置に変更 */
@media (min-width: 768px) {
    .message-bg-image {
        position: absolute;
        top: 60%;
        left: 0;
        transform: translateY(-50%);
        width: 70%;
        height: 500px;
        margin-bottom: 0;
    }
}

/* デスクトップ */
@media (min-width: 1024px) {
    .message-bg-image {
        width: 65vw;
        height: 700px;
    }
}

/* 大画面 - 画像をより大きく */
@media (min-width: 1440px) {
    .message-bg-image {
        width: 55vw;
        height: 800px;
    }
}

/* 超大画面 */
@media (min-width: 1920px) {
    .message-bg-image {
        width: 50vw;
        height: 900px;
    }
}

.message-bg-image-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .message-bg-image-inner {
        width: 90%;
    }
}

.message-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    transform: translateX(-100%);
}

/* タブレット以上 - containで画像全体を表示 */
@media (min-width: 768px) {
    .message-bg-image img {
        object-fit: contain;
        object-position: left center;
    }
}

#message.active .message-bg-image img {
    animation: slideInFromLeftWithOpacity 0.8s ease-out forwards;
}

.message-bg-overlay {
    position: absolute;
    inset: 0;
    background: url('../img/company-messeage-02.jpg') center/cover no-repeat;
    filter: blur(3px) brightness(0.87);
    opacity: 0;
    z-index: 1;
    transform: translateX(-100%);
}

#message.active .message-bg-overlay {
    animation: slideInFromLeftWithOpacity 0.8s ease-out forwards;
}

/* 画像上のテキスト - overlayの上層に配置 */
.message-image-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 3;
    color: white;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    padding-bottom: 15px;
}

/* タブレット */
@media (min-width: 768px) {
    .message-image-text {
        bottom: 40px;
        left: 40px;
        padding-bottom: 18px;
    }
}

/* デスクトップ */
@media (min-width: 1024px) {
    .message-image-text {
        bottom: 60px;
        left: 60px;
        padding-bottom: 20px;
    }
}

/* 大画面 */
@media (min-width: 1440px) {
    .message-image-text {
        bottom: 50px;
        left: 66px;
    }
}

#message.active .message-image-text {
    animation: fadeInUp 1.2s ease-out 1.5s both;
}

.message-image-title {
    font-family: 'Hannari', serif;
    font-size: 1.2rem;
    font-weight: normal;
    /* margin-bottom: 0.3rem; */
}

/* タブレット以上 */
@media (min-width: 768px) {
    .message-image-title {
        font-size: 1.4rem;
        /* margin-bottom: 0.4rem; */
    }
}

/* デスクトップ */
@media (min-width: 1024px) {
    .message-image-title {
        font-size: 1.6rem;
        /* margin-bottom: 0.5rem; */
    }
}

.message-image-name {
    font-family: 'Hannari', serif;
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    font-weight: normal;
    line-height: 1.6;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .message-image-name {
        font-size: 2.2rem;
    }
}

/* デスクトップ */
@media (min-width: 1024px) {
    .message-image-name {
        font-size: 2.5rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInFromLeftWithOpacity {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInSlideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInSlideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* コンテンツコンテナ - レスポンシブ対応 */
.message-content-container {
    position: relative;
    z-index: 10;
    max-width: 100%;
    margin: 0;
    padding: 0 1rem;
    pointer-events: none;
}

/* モバイル - 下にずらす */
@media (max-width: 767px) {
    .message-content-container {
        margin-top: 60px;
    }
}

/* タブレット以上 */
@media (min-width: 768px) {
    .message-content-container {
        padding: 0 2rem;
    }
}

/* デスクトップ */
@media (min-width: 1024px) {
    .message-content-container {
        padding: 0;
    }
}

.message-content-wrapper {
    display: flex;
    justify-content: flex-start;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .message-content-wrapper {
        justify-content: flex-end;
    }
}

.message-content {
    width: 100%;
    pointer-events: auto;
    margin-top: 0;
    padding-left: 0;
    position: relative;
}

/* タブレット以上 - 幅を滑らかに変化（写真との重なりを維持）＆下にずらす */
@media (min-width: 768px) {
    .message-content {
        width: clamp(50%, 45% + 5vw, 60%);
        margin-top: clamp(5rem, 2rem + 8vw, 12rem);
    }
}

/* デスクトップ - もう少し下にずらす */
@media (min-width: 1024px) {
    .message-content {
        margin-top: clamp(8rem, 4rem + 5vw, 12rem);
    }
}

/* 大画面 - 下にずらす量を減らす */
@media (min-width: 1440px) {
    .message-content {
        margin-top: clamp(4rem, 2rem + 3vw, 8rem);
    }
}

/* 超大画面 - 下にずらす仕組み不要 */
@media (min-width: 1920px) {
    .message-content {
        margin-top: 0;
    }
}

/* タイトルのアニメーション */
.message-title {
    opacity: 0;
    transform: translateX(100%);
    font-family: 'Hannari', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'MS PMincho', serif !important;
    font-size: clamp(1.2rem, 4vw, 1.75rem);
    font-weight: bold;
    line-height: 1.5;
    padding: 0 0.5rem;
    white-space: nowrap;
}

/* タイトル内の各単語のスタイル */
.message-title-word {
    color: #003b7e;
}

/* モバイル用タイトル（画像下部に重なる - 上半分が画像内） */
.message-title-mobile {
    display: none;
}

@media (max-width: 767px) {
    /* 元のタイトルを非表示 */
    .message-title {
        display: none;
    }

    /* モバイル用タイトルを表示 */
    .message-title-mobile {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 20;
        text-align: center;
        font-family: 'Hannari', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'MS PMincho', serif !important;
        font-size: clamp(1.2rem, 3.5vw, 1.5rem);
        font-weight: bold;
        line-height: 1.5;
        padding: 0 0.5rem;
        white-space: nowrap;
        opacity: 0;
        transform: translateY(90%) translateX(100%);
    }

    .message-title-mobile .message-title-word {
        color: #003b7e;
    }

    /* アニメーション */
    #message.active .message-title-mobile {
        animation: fadeInSlideInFromRightHalf 0.8s ease-out forwards;
    }
}

@keyframes fadeInSlideInFromRightHalf {
    from {
        opacity: 0;
        transform: translateY(140%) translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateY(140%) translateX(0);
    }
}

/* タブレット以上 - 滑らかにフォントサイズとマージンを変化 */
@media (min-width: 768px) {
    .message-title {
        font-size: clamp(1rem, 0.5rem + 1.5vw, 3rem);
        margin-top: clamp(1.5rem, 1rem + 1.5vw, 3rem);
        margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 3rem);
        margin-left: clamp(-12rem, -4rem - 5vw, -2rem);
        padding: 0;
        white-space: nowrap;
        text-align: left;
    }
}

#message.active .message-title {
    animation: fadeInSlideInFromRight 0.8s ease-out forwards;
}

/* 本文テキストコンテナ */
.message-body-text {
    position: relative;
    z-index: 15;
    padding: 1.2rem;
}

/* 改行禁止ライン - モバイルのみ文章の塊が途中で改行されないようにする */
@media (max-width: 767px) {
    .message-body-nowrap .nowrap-line {
        display: inline-block;
        white-space: nowrap;
    }
}

/* 改行禁止テキスト用のコンテナ - フォントサイズを画面幅に応じて調整 */
.message-body-nowrap {
    font-size: clamp(0.85rem, 0.5rem + 1vw, 1.3rem);
    line-height: 2;
}

/* タブレット以上 - 左に寄せる */
@media (min-width: 768px) {
    .message-body-text {
        padding: clamp(1rem, 0.5rem + 1vw, 3rem);
        margin-left: clamp(-12rem, -4rem - 5vw, -2rem);
    }
}

/* 大画面 */
@media (min-width: 1440px) {
    .message-body-nowrap {
        font-size: 1.2rem;
    }
    .message-body-text {
        padding: 3rem;
        padding-left: 6rem;
    }
}

@media (min-width: 2000px) {
    .message-body-nowrap {
        font-size: 1.4rem;
    }
}

/* 白背景箱 */
.message-body-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
    opacity: 0;
    transform: translateX(100%);
}

#message.active .message-body-bg {
    animation: fadeInSlideInFromRight 0.8s ease-out forwards;
}

/* テキストコンテンツ - レスポンシブ対応 */
.message-body-content {
    position: relative;
    z-index: 2;
    color: #4b5563;
    line-height: 1.75;
    font-family: 'Hannari', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'MS PMincho', serif !important;
    opacity: 0;
    transform: translateX(100%);
}

.message-body-content p,
.message-body-content div {
    font-family: 'Hannari', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'MS PMincho', serif !important;
}

/* 引用部分のスタイル - レスポンシブ対応 */
.message-quote {
    font-family: 'Hannari', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'MS PMincho', serif !important;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1.5rem 0;
    text-align: center;
    color: #002147;
    line-height: 1.6;
    padding: 0 0.5rem;
}

/* タブレット */
@media (min-width: 768px) {
    .message-quote {
        font-size: 1.4rem;
        margin: 1.8rem 0;
        padding: 0;
    }
}

/* デスクトップ */
@media (min-width: 1024px) {
    .message-quote {
        font-size: 1.5rem;
        margin: 2rem 0;
    }
}

/* 大画面 */
@media (min-width: 1440px) {
    .message-quote {
        font-size: 1.6rem;
    }
}

#message.active .message-body-content {
    animation: fadeInSlideInFromRight 0.8s ease-out forwards;
}

.message-body-text p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .message-body-text p {
        margin-bottom: 1.5rem;
    }
}

.message-body-text p:last-child {
    margin-bottom: 0;
}

/* ================================================
   会社方針セクション
   ================================================ */

.policy-section {
    padding: 2rem 0;
    position: relative;
}

.policy-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(17, 43, 72, 0.77);
}

.policy-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* ヘッダー部分 */
.policy-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 4rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.policy-section .policy-header-left h2 {
    font-size: 2.25rem;
    font-family: 'Hannari', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'MS PMincho', serif !important;
    font-weight: bold;
    color: white;
    background: none;
    padding: 0;
    margin: 0;
    position: static;
    text-align: left;
    box-shadow: none;
    line-height: 1.2;
}

.policy-section .policy-header-left h2:after,
.policy-section .policy-header-left h2:before {
    display: none;
    content: none;
}

.policy-header-left .subtitle {
    font-family: serif;
    color: #60A5FA;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.policy-header-right {
    text-align: right;
    color: rgba(255, 255, 255, 0.5);
}

.policy-header-right i {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.policy-header-right .cert-text {
    font-family: serif;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* カードグリッド */
.policy-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .policy-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 個別カード */
.policy-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
}

.policy-card.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.policy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.policy-card-icon {
    width: 3rem;
    height: 3rem;
    border: 1px solid #60A5FA;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60A5FA;
}

.policy-card-icon i {
    font-size: 1.25rem;
}

.policy-card-number {
    font-size: 3.75rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
}

.policy-section .policy-card h3 {
    font-size: 1.5rem;
    font-family: 'Hannari', serif;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
    background: none;
    padding: 0;
    position: static;
    text-align: left;
    line-height: 1.6;
    box-shadow: none;
    letter-spacing: normal;
}

.policy-section .policy-card h3:after,
.policy-section .policy-card h3:before {
    display: none;
    content: none;
}

.policy-card p {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.75;
    font-weight: 300;
}

/* JNLA認定と導入文 - 2列レイアウト */
.policy-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .policy-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* JNLA認定バッジ */
.jnla-badge {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.jnla-badge.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.jnla-badge-inner {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    transition: all 0.3s ease;
}

.jnla-badge-inner:hover {
    border-color: rgba(96, 165, 250, 0.6);
}

.jnla-icon {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 1.5rem;
    background: rgba(96, 165, 250, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #60A5FA;
    transition: transform 0.3s ease;
}

.jnla-badge-inner:hover .jnla-icon {
    transform: scale(1.1);
}

.jnla-icon i {
    font-size: 3rem;
    color: #60A5FA;
}

.policy-section .jnla-badge h3 {
    font-size: 1.875rem;
    font-family: serif;
    font-weight: bold;
    color: white;
    margin-bottom: 0.75rem;
    background: none;
    padding: 0;
    position: static;
    text-align: center;
    line-height: 1.4;
    box-shadow: none;
    letter-spacing: normal;
}

.policy-section .jnla-badge h3:after,
.policy-section .jnla-badge h3:before {
    display: none;
    content: none;
}

.jnla-date {
    display: inline-block;
    background: rgba(96, 165, 250, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(96, 165, 250, 0.5);
}

.jnla-date p {
    color: #60A5FA;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin: 0;
}

/* 導入文 */
.policy-intro {
    opacity: 0;
    transform: translateY(30px);
}

.policy-intro.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease 0.2s;
}

.policy-intro-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.policy-intro-main {
    border-left: 4px solid #60A5FA;
    padding-left: 1.5rem;
}

.policy-intro-main p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.75;
    font-weight: 300;
    margin: 0 0 1rem 0;
}

.policy-intro-sub {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.policy-intro-sub p {
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.75;
    margin: 0;
}

/* ================================================
   保有資格セクション
   ================================================ */

.qualifications-section {
    padding: 8rem 0;
    background-color: rgba(249, 250, 251, 0.95);
    position: relative;
}

.qualifications-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0, 0, 0, 0.03) 39px, rgba(0, 0, 0, 0.03) 40px),
                      repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0, 0, 0, 0.03) 39px, rgba(0, 0, 0, 0.03) 40px);
    pointer-events: none;
}

.qualifications-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

/* ヘッダー */
.qualifications-header {
    text-align: center;
    margin-bottom: 5rem;
}

.qualifications-header .subtitle {
    font-family: serif;
    color: #1e40af;
    letter-spacing: 0.1em;
}

.qualifications-section .qualifications-header h2 {
    font-size: 2.25rem;
    font-family: 'Hannari', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'MS PMincho', serif !important;
    font-weight: bold;
    margin-top: 0.5rem;
    background: none;
    padding: 0;
    position: static;
    color: #002147;
    box-shadow: none;
    line-height: 1.2;
}

.qualifications-section .qualifications-header h2:after,
.qualifications-section .qualifications-header h2:before {
    display: none;
    content: none;
}

.qualifications-header p {
    color: #4b5563;
    margin-top: 1rem;
}

/* カードグリッド */
.qualifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .qualifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* カード */
.qualification-card {
    background-color: white;
    border: 2px solid #dbeafe;
    padding: 2rem;
    transition: border-color 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.qualification-card.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.qualification-card:hover {
    border-color: #1e40af;
}

/* カードヘッダー */
.qualification-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #dbeafe;
}

.qualification-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(30, 64, 175, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qualification-icon i {
    font-size: 1.5rem;
    color: #1e40af;
}

.qualifications-section .qualification-card h3 {
    font-size: 1.5rem;
    font-family: 'Hannari', serif;
    font-weight: bold;
    color: #002147;
    background: none;
    padding: 0;
    margin: 0;
    position: static;
    box-shadow: none;
    line-height: 1.4;
}

.qualifications-section .qualification-card h3:after,
.qualifications-section .qualification-card h3:before {
    display: none;
    content: none;
}

/* リスト */
.qualification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.qualification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.qualification-item:hover {
    background-color: rgba(219, 234, 254, 0.3);
}

.qualification-name {
    color: #374151;
}

.qualification-count {
    font-family: serif;
    font-size: 1.25rem;
    font-weight: bold;
    color: #1e40af;
}

.qualification-count .unit {
    font-size: 0.875rem;
    color: #6b7280;
    font-family: sans-serif;
    margin-left: 0.25rem;
}

/* サマリー */
.qualification-summary {
    background: linear-gradient(to right, #002147, #1e40af);
    color: white;
    padding: 2.5rem;
    border-radius: 0.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.qualification-summary.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.qualification-summary .note {
    font-size: 0.875rem;
    font-family: serif;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.qualification-summary .title {
    font-size: 1.5rem;
    font-family: 'Hannari', serif;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.qualification-summary .description {
    color: rgba(219, 234, 254, 0.9);
}

/* 保有資格サマリー - Tailwindを使わないバージョン */
.qualifications-summary-box {
    background: linear-gradient(to right, #002147, #0056b3);
    color: white;
    padding: 2.5rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.qualifications-summary-box.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.qualifications-summary-box .summary-note {
    font-family: 'Oswald', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    opacity: 0.8;
    color: white;
}

.qualifications-summary-box .summary-title {
    font-size: 1.5rem;
    font-family: 'Hannari', serif;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.6;
}

.qualifications-summary-box .summary-description {
    color: #e6f0ff;
    opacity: 0.9;
    line-height: 1.6;
}

/* ================================================
   沿革セクション
   ================================================ */

.history-section {
    position: relative;
    padding: 8rem 0;
    background-image: url('../img/bgstyle.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

.history-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.history-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.history-header {
    text-align: center;
    margin-bottom: 5rem;
}

.history-header .subtitle {
    font-family: serif;
    color: #1e40af;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
}

.history-header .title {
    font-family: 'Hannari', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'MS PMincho', serif !important;
    font-size: 2.25rem;
    font-weight: bold;
    margin-top: 0.5rem;
    color: #002147;
}

/* タイムライン */
.history-timeline {
    position: relative;
    padding-left: 2rem;
}

@media (min-width: 768px) {
    .history-timeline {
        padding-left: 0;
    }
}

/* センターライン */
.history-centerline {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #d1d5db;
}

@media (min-width: 768px) {
    .history-centerline {
        left: 50%;
        transform: translateX(-50%);
    }
}

.history-items {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* タイムラインアイテム */
.history-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .history-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* 年号エリア */
.history-year-area {
    padding-right: 3rem;
}

@media (min-width: 768px) {
    .history-item:nth-child(even) .history-year-area {
        width: 50%;
        text-align: right;
        order: 1;
    }
    
    .history-item:nth-child(odd) .history-year-area {
        width: 50%;
        padding-left: 3rem;
        padding-right: 0;
        order: 2;
    }
}

.history-year {
    font-family: 'EB Garamond', serif;
    font-size: 2.5rem;
    /* font-weight: bold; */
    color: #9ca3af;
}

.history-year.large {
    font-size: 3.75rem;
    /* font-weight: 900; */
}

.history-year.highlight {
    font-size: 3.75rem;
    /* font-weight: 900; */
    color: #1e40af;
}

.history-month {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* ドット - レスポンシブ対応 */
.history-dot {
    position: absolute;
    left: -6px;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: #1e40af;
    border-radius: 50%;
    z-index: 10;
}

@media (min-width: 768px) {
    .history-dot {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

.history-dot.hollow {
    background-color: #eff6ff;
    border: 2px solid #1e40af;
}

.history-dot.large {
    width: 20px;
    height: 20px;
    left: -10px;
    top: 0.25rem;
    background-color: #00a8ff;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #1e40af;
}

@media (min-width: 768px) {
    .history-dot.large {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

/* 内容エリア */
.history-content-area {
    padding-left: 3rem;
    padding-top: 0.5rem;
}

@media (min-width: 768px) {
    .history-content-area {
        padding-top: 0;
    }
    
    .history-item:nth-child(even) .history-content-area {
        width: 50%;
        padding-left: 3rem;
        order: 2;
    }
    
    .history-item:nth-child(odd) .history-content-area {
        width: 50%;
        padding-right: 3rem;
        padding-left: 0;
        text-align: right;
        order: 1;
    }
}

.history-event-title {
    font-family: 'Hannari', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'MS PMincho', serif !important;
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #002147;
}

.history-event-description {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
}

/* ハイライトボックス */
.history-highlight-box {
    background-color: #1e40af;
    color: white;
    padding: 1.5rem;
    border: 1px solid #002147;
    display: inline-block;
    text-align: left;
    width: 100%;
}

@media (min-width: 768px) {
    .history-highlight-box {
        width: auto;
    }
}

.history-highlight-box .history-event-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.history-highlight-box .history-event-description {
    font-size: 0.75rem;
    color: #dbeafe;
}

/* ================================================
   Access Section
   ================================================ */

.access-section {
    position: relative;
    padding: 8rem 0;
    background: #f9fafb;
}

.access-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(0, 33, 71, 0.03) 25%, rgba(0, 33, 71, 0.03) 26%, transparent 27%, transparent 74%, rgba(0, 33, 71, 0.03) 75%, rgba(0, 33, 71, 0.03) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 33, 71, 0.03) 25%, rgba(0, 33, 71, 0.03) 26%, transparent 27%, transparent 74%, rgba(0, 33, 71, 0.03) 75%, rgba(0, 33, 71, 0.03) 76%, transparent 77%, transparent);
    background-size: 40px 40px;
    pointer-events: none;
}

.access-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.access-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .access-layout {
        flex-direction: row;
        gap: 3rem;
    }
}

/* Office List (Left Side) */
.office-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .office-list {
        max-width: 50%;
    }
}

.office-card {
    background: white;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #1e40af;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.office-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.office-card.active {
    background: #f9fafb;
    box-shadow: 0 0 0 2px #00a8ff;
}

.office-card.office-toride {
    border-left-color: #1e40af;
}

.office-card.office-mito {
    border-left-color: #3b82f6;
}

.office-card.office-design {
    border-left-color: #002147;
}

.office-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.office-card-icon {
    font-size: 1.125rem;
    margin-right: 0.75rem;
    transition: color 0.3s ease;
}

.office-card.office-toride .office-card-icon {
    color: #1e40af;
}

.office-card.office-mito .office-card-icon {
    color: #3b82f6;
}

.office-card.office-design .office-card-icon {
    color: #002147;
}

.office-card:hover .office-card-icon {
    transform: scale(1.1);
}

.office-card h3 {
    font-size: 1.125rem;
    font-weight: bold;
    color: #002147;
    margin: 0;
    transition: color 0.3s ease;
}

.office-card:hover h3 {
    color: #1e40af;
}

.office-label {
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.office-card.office-toride .office-label {
    color: #1e40af;
}

.office-card.office-mito .office-label {
    color: #3b82f6;
}

.office-card.office-design .office-label {
    color: #002147;
}

/* 住所と連絡先を2列配置 */
.office-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.office-address {
    color: #4b5563;
    line-height: 1.75;
    font-size: 0.875rem;
}

.office-contact {
    border-left: 1px solid #f3f4f6;
    padding-left: 1rem;
}

.office-contact-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.office-contact-label {
    color: #9ca3af;
}

.office-contact-value {
    font-weight: bold;
}

.office-contact-tel {
    color: #002147;
}

.office-contact-fax {
    color: #6b7280;
}

/* Map Container (Right Side) */
.map-container {
    flex: 1;
    position: relative;
}

@media (min-width: 1024px) {
    .map-container {
        max-width: 50%;
    }
}

.map-wrapper {
    height: 100%;
    min-height: 500px;
    width: 100%;
    background: #002147;
    padding: 4px;
    border: 1px solid rgba(30, 64, 175, 0.3);
    position: relative;
}

@media (min-width: 1024px) {
    .map-wrapper {
        position: sticky;
        top: 8rem;
    }
}

.map-inner {
    position: absolute;
    inset: 4px; /* padding分を考慮 */
    overflow: hidden;
}

.map-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Map Corner Decorations */
.map-corner-tl {
    position: absolute;
    top: 0;
    left: 0;
    width: 4rem;
    height: 4rem;
    border-top: 4px solid #00a8ff;
    border-left: 4px solid #00a8ff;
    pointer-events: none;
    z-index: 10;
}

.map-corner-br {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 4rem;
    height: 4rem;
    border-bottom: 4px solid #00a8ff;
    border-right: 4px solid #00a8ff;
    pointer-events: none;
    z-index: 10;
}

/* Map Center Crosshair */
.map-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

.map-crosshair-circle {
    width: 2rem;
    height: 2rem;
    border: 1px solid #1e40af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-crosshair-dot {
    width: 0.25rem;
    height: 0.25rem;
    background: #00a8ff;
}

.map-crosshair-line-h {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 2.5rem;
    height: 1px;
    background: #1e40af;
    transform: translateY(-50%);
}

.map-crosshair-line-h2 {
    position: absolute;
    top: 50%;
    right: 100%;
    width: 2.5rem;
    height: 1px;
    background: #1e40af;
    transform: translateY(-50%);
}

/* ================================================
   共通アニメーション
   ================================================ */

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
}

/* ================================================
   レスポンシブ調整
   ================================================ */

@media (max-width: 1023px) {
    .policy-section,
    .qualifications-section,
    .access-section {
        padding: 4rem 0;
    }
    
    .map-wrapper {
        min-height: 400px;
    }
}

@media (max-width: 767px) {
    #message {
        margin-top: 50px;
        margin-bottom: 50px;
    }
    
    .policy-section,
    .qualifications-section,
    .access-section {
        padding: 3rem 0;
    }
    
    .policy-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .policy-header-right {
        display: none;
    }

    .policy-section .policy-header-left h2 {
        font-size: 1.875rem;
    }

    .policy-card {
        padding: 1.5rem;
    }

    .policy-section .policy-card h3 {
        font-size: 1.25rem;
    }

    .policy-card-number {
        font-size: 2.5rem;
    }

    .policy-section .jnla-badge h3 {
        font-size: 1.5rem;
    }

    .jnla-icon {
        width: 6rem;
        height: 6rem;
    }

    .jnla-icon i {
        font-size: 2.5rem;
    }

    .policy-intro-main p {
        font-size: 1rem;
    }
    
    .qualifications-section .qualifications-header h2 {
        font-size: 1.875rem;
    }
    
    .qualification-card {
        padding: 1.5rem;
    }
    
    .qualifications-section .qualification-card h3 {
        font-size: 1.25rem;
    }
    
    .qualification-summary .title {
        font-size: 1.25rem;
    }
    
    .office-card {
        padding: 1rem;
    }

    .map-wrapper {
        min-height: 350px;
    }
}

/* ================================================
   沿革セクション - 左右スライドインアニメーション
   ================================================ */

/* 左からスライドイン */
.reveal-left {
    opacity: 0;
    transform: translateX(-200px);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* 右からスライドイン */
.reveal-right {
    opacity: 0;
    transform: translateX(200px);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ================================================
   Tailwind代替CSS - 共通クラス
   ================================================ */

/* Fixed Background - レスポンシブ対応 */
.fixed-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../img/company-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    max-width: 100vw;
}

/* デスクトップのみfixed attachment */
@media (min-width: 1024px) {
    .fixed-bg-layer {
        background-attachment: fixed;
    }
}

.overlay-white {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(240, 240, 241, 0.7);
    background-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

.bg-grid-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(to right, rgba(0, 168, 255, 0.05) 1px, transparent 1px), 
                      linear-gradient(to bottom, rgba(0, 168, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 2;
}

.bg-grid-pattern-light {
    background-image: linear-gradient(to right, rgba(0, 86, 179, 0.05) 1px, transparent 1px), 
                      linear-gradient(to bottom, rgba(0, 86, 179, 0.05) 1px, transparent 1px);
}

/* Body */
body {
    color: #002147;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-5xl {
    max-width: 64rem;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .md\\:col-span-4 {
        grid-column: span 4 / span 4;
    }
    .md\\:col-span-8 {
        grid-column: span 8 / span 8;
    }
}

@media (min-width: 1024px) {
    .lg\\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .lg\\:col-span-4 {
        grid-column: span 4 / span 4;
    }
    .lg\\:col-span-8 {
        grid-column: span 8 / span 8;
    }
}

.gap-16 {
    gap: 4rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1 1 0%;
}

@media (min-width: 640px) {
    .sm\\:flex-row {
        flex-direction: row;
    }
}

/* Spacing */
.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.p-6 {
    padding: 1.5rem;
}

.pl-6 {
    padding-left: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .md\\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.top-32 {
    top: 8rem;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

/* Colors & Backgrounds */
.bg-gray-50\/95 {
    background-color: rgba(249, 250, 251, 0.95);
}

.bg-blueprint-dark {
    background-color: #002147;
}

.bg-blueprint-dark\/70 {
    background-color: rgba(0, 33, 71, 0.7);
}

.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.text-blueprint-dark {
    color: #002147;
}

.text-blueprint-medium {
    color: #003366;
}

.text-blueprint-primary {
    color: #0056b3;
}

.text-blueprint-light {
    color: #e6f0ff;
}

.text-white {
    color: white;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

/* Borders */
.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-r {
    border-right-width: 1px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-blueprint-primary {
    border-color: #0056b3;
}

.border-blueprint-dark\/20 {
    border-color: rgba(0, 33, 71, 0.2);
}

/* Border radius */
.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Typography */
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.font-bold {
    font-weight: 700;
}

.font-serif {
    font-family: 'Hannari', serif;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.leading-relaxed {
    line-height: 1.625;
}

.text-center {
    text-align: center;
}

.block {
    display: block;
}

/* Effects */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.pointer-events-none {
    pointer-events: none;
}

.overflow-hidden {
    overflow: hidden;
}

.opacity-70 {
    opacity: 0.7;
}

.opacity-80 {
    opacity: 0.8;
}

/* Aspect ratio */
.aspect-3-4 {
    aspect-ratio: 3 / 4;
}

/* Width */
.w-full {
    width: 100%;
}

/* Height */
.h-full {
    height: 100%;
}

/* Object fit */
.object-cover {
    object-fit: cover;
}

/* Mix blend mode */
.mix-blend-luminosity {
    mix-blend-mode: luminosity;
}

/* Space utilities */
.space-y-4 > * + * {
    margin-top: 1rem;
}

/* Gap */
.gap-3 {
    gap: 0.75rem;
}

.gap-0 {
    gap: 0;
}

/* Transitions */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Hover states */
.hover\\:bg-white:hover {
    background-color: white;
}

.hover\\:text-blueprint-primary:hover {
    color: #0056b3;
}

.hover\\:text-blueprint-dark:hover {
    color: #002147;
}

.hover\\:bg-blueprint-accent:hover {
    background-color: #00a8ff;
}

/* Group hover */
.group:hover .group-hover\\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Transform */
.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* ================================================
   ページタイトルセクション
   ================================================ */

.page-title-section {
  position: relative;
  background: linear-gradient(135deg, #002147 0%, #003d7a 100%);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .page-title-section {
    height: 320px;
  }
}

.page-title-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), 
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.page-title-container {
  position: relative;
  z-index: 2;
  font-family: 'Hannari', serif;
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .page-title-container {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .page-title-container {
    font-size: 3rem;
  }
}


/* ================================================
   CTAセクション
   ================================================ */

.cta-section {
    padding: 6rem 0;
    background-color: #002147;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-grid-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.2;
    background-image: linear-gradient(to right, rgba(0, 168, 255, 0.05) 1px, transparent 1px), 
                      linear-gradient(to bottom, rgba(0, 168, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 1.875rem;
    font-family: 'Hannari', serif;
    font-weight: bold;
    color: white;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

.cta-description {
    color: #e6f0ff;
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.cta-button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .cta-button-container {
        flex-direction: row;
    }
}

.cta-button {
    flex: 1 1 0%;
    padding: 1.5rem 2.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
}

.cta-button-primary {
    background-color: #0056b3;
    color: white;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-primary:hover {
    background-color: white;
    color: #0056b3;
}

.cta-button-primary .cta-button-icon-chevron {
    opacity: 0;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-primary:hover .cta-button-icon-chevron {
    opacity: 1;
    transform: translateX(0.25rem);
}

.cta-button-secondary {
    background-color: #003366;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    font-size: 1.25rem;
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-secondary:hover {
    background-color: #00a8ff;
}

.cta-button-icon {
    font-size: 1.25rem;
}

.cta-button-icon-sm {
    font-size: 0.875rem;
}

.cta-button-icon-chevron {
    font-size: 0.75rem;
}

/* ================================================
   プロファイルセクション - レスポンシブ対応
   ================================================ */

.profile-section {
    padding: 4rem 0;
    background-color: rgba(249, 250, 251, 0.95);
    position: relative;
    backdrop-filter: blur(4px);
    overflow: visible !important;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-section {
        padding: 6rem 0;
    }
}

/* デスクトップ */
@media (min-width: 1024px) {
    .profile-section {
        padding: 8rem 0;
    }
}

.profile-container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    overflow: visible !important;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-container {
        padding: 0 1.5rem;
    }
}

.profile-grid-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(to right, rgba(0, 86, 179, 0.05) 1px, transparent 1px), 
                      linear-gradient(to bottom, rgba(0, 86, 179, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.profile-grid {
    display: grid;
    gap: 2rem;
    overflow: visible !important;
}

/* タブレット */
@media (min-width: 768px) {
    .profile-grid {
        gap: 3rem;
    }
}

/* デスクトップ */
@media (min-width: 1024px) {
    .profile-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 4rem;
    }
}

.profile-left {
    grid-column: span 12;
    overflow: visible !important;
}

@media (min-width: 1024px) {
    .profile-left {
        grid-column: span 4 / span 4;
    }
}

.profile-sticky {
    position: relative;
}

/* デスクトップのみsticky */
@media (min-width: 1024px) {
    .profile-sticky {
        position: sticky;
        top: 8rem;
    }
}

.profile-title-border {
    border-left: 3px solid #0056b3;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-title-border {
        border-left: 4px solid #0056b3;
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }
}

.profile-subtitle {
    color: #003366;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-subtitle {
        font-size: 0.875rem;
    }
}

.profile-title {
    font-size: 2rem;
    line-height: 1.2;
    font-family: 'Hannari', serif;
    font-weight: bold;
    color: #002147;
}

/* タブレット */
@media (min-width: 768px) {
    .profile-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}

/* デスクトップ */
@media (min-width: 1024px) {
    .profile-title {
        font-size: 3rem;
        line-height: 1;
    }
}

.profile-image-container {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: #002147;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(0, 33, 71, 0.2);
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-image-container {
        aspect-ratio: 3 / 4;
    }
}

.profile-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    mix-blend-mode: luminosity;
}

.profile-image-border {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 0.5rem solid rgba(255, 255, 255, 0.1);
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-image-border {
        border: 1rem solid rgba(255, 255, 255, 0.1);
    }
}

/* プロファイルテーブル - レスポンシブ対応 */
.profile-right {
    grid-column: span 12;
}

@media (min-width: 1024px) {
    .profile-right {
        grid-column: span 8 / span 8;
    }
}

.profile-table {
    background-color: white;
    border: 1px solid #e5e7eb;
}

.profile-table-row {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #f3f4f6;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-table-row {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

.profile-table-label {
    background-color: #f9fafb;
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-table-label {
        grid-column: span 3 / span 3;
        padding: 1.5rem;
        border-bottom: none;
        border-right: 1px solid #f3f4f6;
    }
}

.profile-label-top {
    align-items: flex-start;
}

.profile-table-label-text {
    font-weight: bold;
    color: #003366;
    font-size: 0.8rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-table-label-text {
        font-size: 0.875rem;
    }
}

.profile-table-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-table-content {
        grid-column: span 9 / span 9;
        padding: 1.5rem;
        align-items: center;
    }
}

.profile-vertical-center {
    align-items: center;
}

.profile-table-content.items-start {
    align-items: flex-start;
}

.profile-company-name {
    font-size: 1rem;
    font-weight: bold;
    color: #002147;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-company-name {
        font-size: 1.125rem;
    }
}

.profile-company-name-en {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-company-name-en {
        font-size: 0.75rem;
    }
}

.profile-text {
    color: #002147;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-text {
        font-size: 0.9rem;
    }
}

.profile-text-relaxed {
    line-height: 1.8;
}

.profile-capital {
    font-size: 1.5rem;
    font-weight: bold;
    color: #002147;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-capital {
        font-size: 1.75rem;
    }
}

.profile-unit {
    font-size: 0.9rem;
    font-weight: normal;
    margin-left: 0.25rem;
}

.profile-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0056b3;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-number {
        font-size: 1.75rem;
    }
}

.profile-unit-sm {
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.profile-postal {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-postal {
        font-size: 0.85rem;
    }
}

/* 事業所セクション - レスポンシブ対応 */
.profile-offices {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.profile-office-item {
    border-left: 2px solid #0056b3;
    padding-left: 0.75rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-office-item {
        border-left: 3px solid #0056b3;
        padding-left: 1rem;
    }
}

.profile-office-name {
    font-weight: bold;
    color: #002147;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-office-name {
        font-size: 1rem;
    }
}

.profile-office-sub {
    font-size: 0.75rem;
    font-weight: normal;
    color: #6b7280;
}

.profile-office-details {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.6;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-office-details {
        font-size: 0.875rem;
    }
}

.profile-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-contact {
        flex-direction: row;
        gap: 0.5rem;
    }
}

.profile-contact-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-contact-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.75rem;
}

.profile-contact-value {
    font-size: 0.85rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-contact-value {
        font-size: 0.875rem;
    }
}

.profile-tel-link {
    color: #0056b3;
    text-decoration: none;
}

.profile-tel-link:hover {
    text-decoration: underline;
}

.profile-fax {
    color: #4b5563;
}

.profile-contact-sep {
    color: #d1d5db;
    margin: 0 0.25rem;
}

/* 銀行リスト - レスポンシブ対応 */
.profile-bank-list {
    color: #002147;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-bank-list {
        font-size: 0.875rem;
        gap: 1rem;
    }
}

.profile-bank-list span {
    padding: 0.25rem 0.5rem;
    background-color: #f3f4f6;
    border-radius: 0.25rem;
}

.profile-clients-main {
    margin-bottom: 0.5rem;
}

.profile-clients-text {
    color: #002147;
    font-size: 0.875rem;
    line-height: 1.625;
}

.profile-clients-others {
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.625;
}

/* サービスセクション - レスポンシブ対応 */
.profile-services {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-service-group {
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-service-group {
        padding: 1.25rem;
    }
}

.profile-service-title {
    font-weight: bold;
    color: #002147;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.profile-service-link {
    color: #0056b3;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.profile-service-link:hover {
    color: #00a8ff;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-service-title {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
}

.profile-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: #374151;
}

/* 小画面 */
@media (min-width: 640px) {
    .profile-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-service-grid {
        font-size: 0.875rem;
    }
}

.profile-service-item {
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.profile-service-bullet {
    width: 0.2rem;
    height: 0.2rem;
    background-color: #0056b3;
    border-radius: 50%;
    margin-right: 0.4rem;
    margin-top: 0.45rem;
    flex-shrink: 0;
}

/* 認証セクション - ラッパー */
.profile-cert-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-cert-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
}

/* 認証セクション - レスポンシブ対応 */
.profile-certifications {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}

/* JNLA画像 */
.profile-cert-image {
    flex-shrink: 0;
    text-align: center;
}

.profile-cert-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.profile-cert-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-cert-image img {
        width: 180px;
    }
}

/* 画像モーダル */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.image-modal-close:hover {
    color: #ccc;
}

.profile-cert-box {
    background: linear-gradient(to right, #002147, #0056b3);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-cert-box {
        padding: 1.5rem;
    }
}

.profile-cert-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-cert-flex {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }
}

.profile-cert-iso {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-cert-iso {
        font-size: 0.75rem;
    }
}

.profile-cert-main {
    font-weight: bold;
    font-size: 1rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-cert-main {
        font-size: 1.125rem;
    }
}

.profile-cert-date-box {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    text-align: center;
}

.profile-cert-date-label {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-cert-date-label {
        font-size: 0.75rem;
    }
}

.profile-cert-date {
    font-weight: bold;
    font-size: 1rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-cert-date {
        font-size: 1.125rem;
    }
}

.profile-cert-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-cert-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.6;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-cert-item {
        font-size: 0.875rem;
    }
}

.profile-cert-bullet {
    width: 0.25rem;
    height: 0.25rem;
    background-color: #0056b3;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.profile-cert-name {
    color: #002147;
    font-weight: 500;
    display: block;
}

.profile-cert-year {
    color: #6b7280;
    font-size: 0.75rem;
    display: block;
    margin-top: 0.25rem;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .profile-cert-year {
        font-size: 0.8rem;
    }
}

.profile-table-last {
    border-bottom: none;
}

.profile-cert-item-flex {
    display: flex;
    align-items: flex-start;
}

.profile-cert-text {
    font-weight: 500;
}

.profile-cert-text-small {
    font-size: 0.75rem;
    color: #6b7280;
    margin-left: 0.5rem;
}

