/**
 * 会社情報ページ用スタイル — クリエイティブ・アーティスティック版
 *
 * @package Shonan_Gousei
 */

/* ==========================================================================
   アニメーション（会社ページ専用）
   ========================================================================== */

@keyframes company-float-circle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}

@keyframes company-rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes timeline-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 111, 196, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(26, 111, 196, 0); }
}

@keyframes philosophy-shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ==========================================================================
   代表メッセージ (p-message)
   ========================================================================== */

.p-message {
    padding-bottom: 80px;
    position: relative;
}

/* 背景装飾 — 薄いドットパターン */
.p-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, var(--color-primary) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* 浮遊する装飾円 — ブルー */
.p-message::after {
    content: '';
    position: absolute;
    top: 120px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-primary-light), transparent 70%);
    opacity: 0.08;
    animation: company-float-circle 16s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* 代表挨拶セクション */
.p-message__greeting {
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.p-message__greeting-inner {
    max-width: 880px;
    margin: 0 auto;
}

.p-message__title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: none;
    position: relative;
}

/* タイトル下のグラデーションライン */
.p-message__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-green), var(--color-accent));
    border-radius: 2px;
}

.p-message__body p {
    margin-bottom: 1.5em;
    line-height: 2;
    font-size: 1.05rem;
}

.p-message__body p:last-child {
    margin-bottom: 0;
}

/* 最初の文字を装飾 — ドロップキャップ風 */
.p-message__body p:first-child::first-letter {
    font-size: 2.5em;
    float: left;
    line-height: 1;
    margin-right: 8px;
    margin-top: 4px;
    color: var(--color-primary);
    font-weight: 700;
}

.p-message__signature {
    margin-top: 40px;
    text-align: right;
    position: relative;
}

/* 署名の装飾ライン */
.p-message__signature::before {
    content: '';
    position: absolute;
    top: -16px;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent));
}

.p-message__position {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.p-message__name {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-family-base);
    background: linear-gradient(135deg, var(--color-text), var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================================================================
   企業理念
   ================================================================ */
.p-message__philosophy {
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.p-message__philosophy-content {
    margin-top: 40px;
}

/* 理念メインボックス — アニメーショングラデーション + 光沢 */
.p-message__philosophy-main {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-green), var(--color-primary-dark));
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    color: #fff;
    padding: 56px 48px;
    text-align: center;
    margin-bottom: 48px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* 光沢エフェクト */
.p-message__philosophy-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: philosophy-shine 6s ease-in-out infinite;
}

/* 装飾円 */
.p-message__philosophy-main::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.p-message__philosophy-statement {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-family: var(--font-family-base);
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.p-message__philosophy-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* 理念カード — nth-childでカラフルな上部ライン */
.p-message__philosophy-item {
    text-align: center;
    padding: 44px 24px 40px;
    background: #fff;
    border-radius: var(--radius-md);
    transition: box-shadow var(--transition-pop), transform var(--transition-pop);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.p-message__philosophy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

.p-message__philosophy-item:nth-child(2)::before {
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-yellow));
}

.p-message__philosophy-item:nth-child(3)::before {
    background: linear-gradient(90deg, var(--color-accent-green), var(--color-accent-green-light));
}

/* ホバー時のカードエフェクト */
.p-message__philosophy-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px) scale(1.02);
}

/* ホバー時に背景装飾円が現れる */
.p-message__philosophy-item::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.5);
}

.p-message__philosophy-item:nth-child(2)::after {
    background: var(--color-accent);
}

.p-message__philosophy-item:nth-child(3)::after {
    background: var(--color-accent-green);
}

.p-message__philosophy-item:hover::after {
    opacity: 0.06;
    transform: scale(1);
}

.p-message__philosophy-icon {
    margin-bottom: 16px;
}

/* 番号バッジ — グラデーション + 影 */
.p-message__philosophy-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--font-family-en);
    box-shadow: 0 4px 16px rgba(26, 111, 196, 0.3);
    transition: transform var(--transition-pop);
}

.p-message__philosophy-item:nth-child(2) .p-message__philosophy-number {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    box-shadow: 0 4px 16px rgba(255, 139, 45, 0.3);
}

.p-message__philosophy-item:nth-child(3) .p-message__philosophy-number {
    background: linear-gradient(135deg, var(--color-accent-green), var(--color-accent-green-light));
    box-shadow: 0 4px 16px rgba(45, 190, 110, 0.3);
}

.p-message__philosophy-item:hover .p-message__philosophy-number {
    transform: scale(1.1) rotate(-5deg);
}

.p-message__philosophy-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.p-message__philosophy-desc {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* ================================================================
   ビジョン
   ================================================================ */
.p-message__vision {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* ビジョンコンテンツ — グラデーション左ボーダー + 背景パターン */
.p-message__vision-content {
    margin-top: 40px;
    padding: 44px 44px 44px 48px;
    background: var(--color-bg-warm);
    border-left: none;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.p-message__vision-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--color-accent), var(--color-accent-yellow), var(--color-accent-green));
}

/* 右下に斜線パターン */
.p-message__vision-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        var(--color-accent) 8px,
        var(--color-accent) 9px
    );
    opacity: 0.04;
    pointer-events: none;
}

.p-message__vision-content p {
    line-height: 2;
    margin-bottom: 1.5em;
    position: relative;
    z-index: 1;
    /* 文節単位で折り返し、単語の途中や不自然な位置での改行を防ぐ */
    word-break: auto-phrase;
    text-wrap: pretty;
}

.p-message__vision-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   会社概要 (p-overview)
   ========================================================================== */

.p-overview {
    padding-bottom: 80px;
    position: relative;
}

/* 背景装飾 — 右上に浮遊円 */
.p-overview::before {
    content: '';
    position: absolute;
    top: 60px;
    right: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent-yellow), transparent 70%);
    opacity: 0.07;
    animation: company-float-circle 20s ease-in-out infinite;
    pointer-events: none;
}

/* 左下にもう1つ */
.p-overview::after {
    content: '';
    position: absolute;
    bottom: 100px;
    left: -100px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent-green), transparent 70%);
    opacity: 0.06;
    animation: company-float-circle 14s ease-in-out infinite reverse;
    pointer-events: none;
}

.p-overview__section {
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.p-overview__section:last-child {
    margin-bottom: 0;
}

.p-overview__table-wrap {
    margin-top: 40px;
}

/* 共通テーブル — クリエイティブ版 */
.c-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.c-table th,
.c-table td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    text-align: left;
    vertical-align: top;
    line-height: 1.8;
    transition: background 0.3s ease;
}

.c-table tr:hover td,
.c-table tr:hover th {
    background: rgba(238, 244, 251, 0.5);
}

.c-table th {
    width: 180px;
    background: linear-gradient(135deg, var(--color-bg-blue), rgba(238, 244, 251, 0.7));
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    position: relative;
}

/* thの左に色付きインジケーター */
.c-table th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 3px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent-green));
    border-radius: 2px;
}

.c-table td {
    color: var(--color-text-light);
}

.c-table tr:last-child th,
.c-table tr:last-child td {
    border-bottom: none;
}

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

.p-overview__list li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 0.5em;
}

/* リストの丸をグラデーションに */
.p-overview__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-green));
}

.p-overview__list li:last-child {
    margin-bottom: 0;
}

.p-overview__address {
    margin: 0;
}

.p-overview__address dt {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2px;
    padding-left: 12px;
    border-left: 3px solid var(--color-accent);
}

.p-overview__address dd {
    margin: 0 0 12px 0;
}

.p-overview__address dd:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   沿革 (p-history)
   ========================================================================== */

.p-history {
    padding-bottom: 80px;
    position: relative;
}

/* 背景 — 斜線パターン */
.p-history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        var(--color-primary) 20px,
        var(--color-primary) 21px
    );
    opacity: 0.015;
    pointer-events: none;
}

.p-history__lead {
    margin-top: 24px;
    margin-bottom: 48px;
    font-size: 1.05rem;
    line-height: 2;
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
}

/* タイムライン — グラデーション線をもっとリッチに */
.p-history__timeline {
    position: relative;
    padding-left: 180px;
    z-index: 1;
}

.p-history__timeline::before {
    content: '';
    position: absolute;
    left: 160px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        180deg,
        var(--color-primary),
        var(--color-accent-green) 30%,
        var(--color-accent) 60%,
        var(--color-accent-yellow) 80%,
        var(--color-primary) 100%
    );
    opacity: 0.4;
    border-radius: 2px;
}

/* タイムライン装飾 — 回転する円リング */
.p-history__timeline::after {
    content: '';
    position: absolute;
    right: -40px;
    top: 50%;
    width: 100px;
    height: 100px;
    border: 2px dashed var(--color-accent-green);
    border-radius: 50%;
    opacity: 0.08;
    animation: company-rotate-slow 30s linear infinite;
    pointer-events: none;
}

/* 時代区分 */
.p-history__era {
    margin-bottom: 24px;
    margin-top: 48px;
    position: relative;
}

.p-history__era:first-child {
    margin-top: 0;
}

/* 時代タイトル — ピルバッジ + シャドウ */
.p-history__era-title {
    display: inline-block;
    padding: 8px 28px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-yellow));
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    margin-left: -20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(255, 139, 45, 0.25);
    letter-spacing: 0.05em;
}

/* タイムラインアイテム */
.p-history__item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
    position: relative;
    transition: transform 0.3s ease;
}

.p-history__item:hover {
    transform: translateX(4px);
}

/* タイムラインドット — パルスグロー */
.p-history__item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border: 3px solid #fff;
    z-index: 1;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(26, 111, 196, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.p-history__item:hover::before {
    animation: timeline-glow 1.5s ease infinite;
    transform: translateX(-50%) scale(1.2);
}

.p-history__year {
    position: absolute;
    left: -180px;
    width: 140px;
    text-align: right;
}

.p-history__year-text {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-family-en);
}

.p-history__content {
    flex: 1;
    padding-left: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: background 0.3s ease;
}

.p-history__item:hover .p-history__content {
    background: rgba(238, 244, 251, 0.5);
}

.p-history__content-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.p-history__content p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* ==========================================================================
   海外拠点 (p-global)
   ========================================================================== */

.p-global {
    padding-bottom: 80px;
    position: relative;
}

/* 背景 — ワールドマップ感のドットグリッド */
.p-global::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, var(--color-primary) 1.5px, transparent 1.5px),
        radial-gradient(circle, var(--color-accent-green) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.025;
    pointer-events: none;
}

.p-global__lead {
    margin-top: 24px;
    margin-bottom: 48px;
    font-size: 1.05rem;
    line-height: 2;
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
}

/* マップセクション — 装飾フレーム */
.p-global__map {
    margin-bottom: 64px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.p-global__map-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.p-global__map:hover .p-global__map-img {
    transform: scale(1.02);
}

/* 拠点カード */
.p-global__offices {
    display: flex;
    flex-direction: column;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.p-global__office-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-pop), transform var(--transition-pop);
    position: relative;
}

/* カード上部のカラーアクセントライン */
.p-global__office-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-green), var(--color-accent));
    z-index: 2;
}

.p-global__office-card:hover {
    box-shadow: 0 16px 48px rgba(26, 111, 196, 0.12);
    transform: translateY(-6px);
}

.p-global__office-photo {
    overflow: hidden;
}

/* 写真2枚を縦に並べるバリエーション */
.p-global__office-photo--double {
    display: flex;
    flex-direction: column;
}

.p-global__office-photo--double .p-global__office-img {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
}

.p-global__office-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.p-global__office-card:hover .p-global__office-img {
    transform: scale(1.08);
}

.p-global__office-info {
    padding: 36px 36px 36px 0;
}

.p-global__office-flag {
    margin-bottom: 12px;
}

/* 国コードバッジ — 強化版 */
.p-global__office-country-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 16px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-green));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    letter-spacing: 0.08em;
    font-family: var(--font-family-en);
    box-shadow: 0 3px 10px rgba(26, 111, 196, 0.2);
}

.p-global__office-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.p-global__office-name-ja {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.p-global__office-details {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 8px 16px;
    font-size: 0.9375rem;
}

.p-global__office-details dt {
    font-weight: 700;
    color: var(--color-primary);
}

.p-global__office-details dd {
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.6;
}

.p-global__office-business {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-global__office-business li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 4px;
}

.p-global__office-business li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-green));
}

/* ==========================================================================
   アクセス (p-access)
   ========================================================================== */

.p-access {
    padding-bottom: 80px;
    position: relative;
}

/* 背景装飾 */
.p-access::before {
    content: '';
    position: absolute;
    bottom: 40px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent-yellow), transparent 70%);
    opacity: 0.06;
    animation: company-float-circle 18s ease-in-out infinite;
    pointer-events: none;
}

.p-access__section {
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.p-access__section:last-child {
    margin-bottom: 0;
}

.p-access__map {
    margin-top: 32px;
    margin-bottom: 32px;
}

/* 地図 — 装飾シャドウ + ラウンド角 */
.p-access__map-embed {
    position: relative;
    width: 100%;
    padding-bottom: 45%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-md);
}

.p-access__map-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.p-access__info {
    margin-top: 32px;
}

.p-access__info-detail {
    margin-bottom: 32px;
}

.p-access__methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* アクセス方法カード — グラデーションボーダー */
.p-access__method {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius-md);
    position: relative;
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition-pop), transform var(--transition-pop);
    overflow: hidden;
}

/* 左のグラデーションライン */
.p-access__method::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent-green));
}

.p-access__method:nth-child(2)::before {
    background: linear-gradient(180deg, var(--color-accent), var(--color-accent-yellow));
}

.p-access__method:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.p-access__method-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-border);
}

/* アイコン — グラデーション背景 */
.p-access__method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(26, 111, 196, 0.25);
    transition: transform var(--transition-pop);
}

.p-access__method:nth-child(2) .p-access__method-icon {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    box-shadow: 0 3px 10px rgba(255, 139, 45, 0.25);
}

.p-access__method:hover .p-access__method-icon {
    transform: scale(1.1) rotate(-5deg);
}

.p-access__method-icon--train::before {
    content: '';
    width: 20px;
    height: 20px;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='4' y='3' width='16' height='14' rx='2'/%3E%3Cline x1='4' y1='11' x2='20' y2='11'/%3E%3Cline x1='12' y1='3' x2='12' y2='11'/%3E%3Cline x1='8' y1='21' x2='10' y2='17'/%3E%3Cline x1='16' y1='21' x2='14' y2='17'/%3E%3Ccircle cx='8' cy='15' r='1'/%3E%3Ccircle cx='16' cy='15' r='1'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='4' y='3' width='16' height='14' rx='2'/%3E%3Cline x1='4' y1='11' x2='20' y2='11'/%3E%3Cline x1='12' y1='3' x2='12' y2='11'/%3E%3Cline x1='8' y1='21' x2='10' y2='17'/%3E%3Cline x1='16' y1='21' x2='14' y2='17'/%3E%3Ccircle cx='8' cy='15' r='1'/%3E%3Ccircle cx='16' cy='15' r='1'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
}

.p-access__method-icon--car::before {
    content: '';
    width: 20px;
    height: 20px;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M5 17h14v-5l-2-6H7L5 12z'/%3E%3Ccircle cx='7.5' cy='17' r='2'/%3E%3Ccircle cx='16.5' cy='17' r='2'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M5 17h14v-5l-2-6H7L5 12z'/%3E%3Ccircle cx='7.5' cy='17' r='2'/%3E%3Ccircle cx='16.5' cy='17' r='2'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
}

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

.p-access__method-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* リストアイテムの矢印をグラデーションに */
.p-access__method-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-green));
    border-radius: 2px;
}

.p-access__method-list li:last-child {
    margin-bottom: 0;
}

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

@media (max-width: 1024px) {
    .p-global__office-card {
        grid-template-columns: 300px 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .p-message {
        padding-bottom: 48px;
    }

    .p-message__greeting {
        margin-bottom: 48px;
    }

    .p-message__title {
        font-size: 1.5rem;
    }

    .p-message__philosophy-main {
        padding: 32px 20px;
        border-radius: var(--radius-md);
    }

    .p-message__philosophy-statement {
        font-size: 1.25rem;
    }

    .p-message__philosophy-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .p-message__philosophy-item {
        padding: 28px 20px;
    }

    .p-message__vision-content {
        padding: 24px 24px 24px 28px;
    }

    .p-message__name {
        font-size: 1.5rem;
    }

    /* 装飾を控えめに */
    .p-message::after,
    .p-overview::before,
    .p-overview::after,
    .p-history__timeline::after,
    .p-access::before {
        display: none;
    }

    /* 会社概要テーブル */
    .c-table {
        box-shadow: none;
    }

    .c-table th,
    .c-table td {
        display: block;
        width: 100%;
        padding: 12px 16px;
    }

    .c-table th {
        border-bottom: none;
        padding-bottom: 4px;
    }

    .c-table th::before {
        top: 12px;
        bottom: 12px;
    }

    .c-table td {
        padding-top: 4px;
    }

    /* 沿革 */
    .p-history__timeline {
        padding-left: 32px;
    }

    .p-history__timeline::before {
        left: 8px;
        width: 2px;
    }

    .p-history__item {
        flex-direction: column;
    }

    .p-history__item::before {
        left: -24px;
        top: 4px;
        width: 10px;
        height: 10px;
    }

    .p-history__year {
        position: static;
        width: auto;
        text-align: left;
        margin-bottom: 4px;
    }

    .p-history__content {
        padding-left: 0;
        padding: 8px 0;
    }

    .p-history__era-title {
        margin-left: -8px;
    }

    /* 海外拠点 */
    .p-global__office-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .p-global__office-photo {
        max-height: 240px;
    }

    .p-global__office-photo--double {
        max-height: none;
        flex-direction: row;
    }

    .p-global__office-photo--double .p-global__office-img {
        flex: 1;
        min-width: 0;
        width: 50%;
    }

    .p-global__office-info {
        padding: 24px;
    }

    .p-global__office-details {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .p-global__office-details dt {
        margin-top: 12px;
    }

    .p-global__office-details dt:first-child {
        margin-top: 0;
    }

    /* アクセス */
    .p-access__map-embed {
        padding-bottom: 75%;
        border-radius: var(--radius-md);
    }

    .p-access__methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .p-access__method {
        padding: 24px;
    }

    /* マップパルスドットを非表示 */
    .p-global__map::before,
    .p-global__map::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .p-message__philosophy-statement {
        font-size: 1.125rem;
        letter-spacing: 0.05em;
    }

    .p-message__body p:first-child::first-letter {
        font-size: 2em;
    }

    .p-history__year-text {
        font-size: 1.1rem;
    }

    .p-global__office-name {
        font-size: 1.0625rem;
    }
}
