/* CSS Custom Properties for theme flexibility */
:root {
    --navy-blue: #002366;      /* PDF main color */
    --burgundy: #630000;       /* Darker for better contrast */
    --deep-burgundy: #4B0000;  /* Even darker for hover state */
    --gold: #AA8C2C;           /* Darker gold for better contrast */
    --off-white: #F8F8F8;      /* Base color - slightly warmer */
    --light-gray: #E0E0E0;     /* Base color */
    --dark-gray: #222222;      /* Darker text color for better contrast */
    --charcoal: #333333;       /* Darker headings for better contrast */
    --light-blue: #0056B3;     /* Darker blue for better contrast */
    --transition-standard: 0.3s ease; /* Standard transition */
    --accent-red: #630000;     /* Matching burgundy */
    --gradient-blue: linear-gradient(135deg, var(--navy-blue) 0%, #00397A 100%); /* Darker gradient */
}

/* 青色ハイライト用の新しいクラス */
.blue-highlight {
    color: var(--light-blue);
    font-weight: bold;
}

/* 高コントラストテキスト用のクラス */
.high-contrast-text {
    color: #000000;
    font-weight: 500;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-blue);
    color: white;
    padding: 12px 16px;
    z-index: 9999;
    transition: top 0.3s;
    font-weight: bold;
    border: 2px solid white;
    outline: 2px solid var(--navy-blue);
    text-align: center;
    width: auto;
    min-width: 240px; /* 多言語対応のため幅を広げる */
    text-decoration: none;
}

.skip-to-content:focus-visible,
.skip-to-content:focus {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    outline: 3px solid white;
    text-decoration: underline;
    z-index: 10000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* :not(:focus-visible)セレクタを持つブラウザ用 */
.skip-to-content:focus:not(:focus-visible) {
    top: 12px; /* スキップリンクはマウスクリックでも表示されるべき */
}

/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-gray);
    background-color: var(--off-white);
    line-height: 1.6;
}

/* Header styles */
header {
    display: block;
    padding: 1.2rem 5%;
    background-color: var(--navy-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

header.scrolled {
    padding: 0.8rem 5%;
    background-color: rgba(0, 35, 102, 0.95);
    backdrop-filter: blur(10px);
}

/* Logo styles */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
}

/* Navigation styles */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a, .nav-link {
    text-decoration: none;
    color: white; /* 固定で白色に変更 */
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease; /* colorからallに変更して下線のみのトランジションに */
}

nav a:hover, .nav-link:hover {
    color: white; /* ホバー時も白色を維持 */
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5); /* ホバー時の視覚的効果としてテキストシャドウを追加 */
}

/* Hover effect */
nav a::after, .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px; /* より太くして視認性向上 */
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-red);
    transition: width 0.3s ease;
    border-radius: 1.5px; /* 角丸にして柔らかい印象に */
}

nav a:hover::after, .nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 1rem);
    background-color: white; /* アクティブなリンクは白色で強調 */
}

.nav-link.active {
    color: white; /* アクティブでも白色を維持 */
    font-weight: 700;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5); /* アクティブ時の視覚的効果 */
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: white !important;
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    background-color: white !important;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: white !important;
}

/* ハンバーガーラインの基本スタイルを改善 */
.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
    transform-origin: center center;
    position: relative;
}

/* メニューボタン自体のz-indexを確実に設定 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: relative;
}

/* Added menu container to better control layout */
.menu-container {
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 35, 102, 0.9), rgba(226, 38, 65, 0.4));
    pointer-events: none;
    z-index: 1;
    animation: fadeInBackground 1.5s ease-out;
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #001b4d 0%, #0047AB 100%);
    min-height: 90vh;
    width: 100%;
    max-width: 100%;
    margin-top: -1px;
    position: relative;
}

@keyframes fadeInBackground {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    display: flex;
    width: 100%;
    max-width: 1400px;
    overflow: visible;
    position: relative;
    color: white;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
    justify-content: center; /* コンテンツの横方向の配置を中央に */
}

.hero-decor {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, var(--navy-blue), transparent);
    z-index: 1;
}

.hero-text {
    flex: 1;
    z-index: 2;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 12%; /* 左側のパディングを増やして内容を右に寄せる */
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-start; /* 左寄せに変更してバランスを取る */
    align-items: center;
    position: relative;
    z-index: 2;
    margin-left: -5%; /* 左マージンを少し負に設定して左に寄せる */
}

.hero-photo-container {
    position: relative;
    width: 95%;  /* 少し幅を広げる */
    max-width: 550px;  /* 最大幅を大きくする */
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-photo-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* img_DSC01731_retouch.png専用のコンテナスタイル */
.hero-photo-container:has(.hero-photo[src*="img_DSC01731_retouch.png"]) {
    transform: none !important;
    transition: none !important;
}

.hero-photo-container:has(.hero-photo[src*="img_DSC01731_retouch.png"]):hover {
    transform: none !important;
}

.hero-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* img_DSC01731_retouch.png のホバー時拡大アニメーションを無効化 */
.hero-photo-container:hover .hero-photo[src*="img_DSC01731_retouch.png"] {
    transform: none !important;
}

.hero-photo-container:hover .hero-photo:not([src*="img_DSC01731_retouch.png"]) {
    transform: scale(1.05);
}

/* img_DSC01731_retouch.png の全てのアニメーション効果を無効化 */
.hero-photo[src*="img_DSC01731_retouch.png"] {
    transition: none !important;
    animation: none !important;
}

.hero-photo[src*="img_DSC01731_retouch.png"]:hover {
    transform: none !important;
    filter: none !important;
}

/* img_DSC01731_retouch.png を含むコンテナの全ての変形とアニメーションを無効化 */
.hero-photo-container:has(.hero-photo[src*="img_DSC01731_retouch.png"]),
.hero-photo-container:has(.hero-photo[src*="img_DSC01731_retouch.png"]):hover,
.hero-photo-container:has(.hero-photo[src*="img_DSC01731_retouch.png"]):focus {
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

.hero-image-frame {
    position: absolute;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    top: -20px;
    left: -20px;
    border: 2px solid #e22641;
    z-index: -1;
    border-radius: 5px;
}

.hero-image-dot {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #e22641;
    opacity: 0.1;
    top: -20px;
    left: -40px;
    z-index: -1;
}

/* Updated hero button to be smaller, matching index_02 style */
.hero-btn {
    display: inline-block;
    background-color: var(--burgundy);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(226, 38, 65, 0.3);
}

.hero-btn:hover {
    background-color: var(--deep-burgundy);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(226, 38, 65, 0.4);
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-title-container {
    position: relative;
    margin-bottom: 2rem;
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.hero-accent-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--navy-blue), var(--light-blue), var(--navy-blue));
    background-size: 200% 100%;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    animation: gradientFlow 5s ease infinite;
    position: relative;
}

.hero-accent-line::after {
    content: none;
}

.hero-tagline {
	color: #FFFFFF; /* Full white for better contrast */
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 3.5rem;
    font-style: italic;
    font-weight: 300;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--accent, #e22641);
}

.hero-signature-container {
    display: flex;
    justify-content: flex-start;
    margin: 1rem 0 0.5rem; /* 上部に寄せる */
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero-signature {
    max-width: 200px; /* サイズを小さく */
    height: auto;
    filter: brightness(0) invert(1); /* 白色に変換 */
    opacity: 0.85; /* 少し透明に */
    transition: all 0.5s ease;
    transform: rotate(-1deg); /* 回転を微妙に */
    animation: signature-fade-in 1.2s ease forwards;
    margin-left: -4px; /* 少し左に調整 */
}

@keyframes signature-fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px) rotate(-1deg);
    }
    100% {
        opacity: 0.85;
        transform: translateY(0) rotate(-1deg);
    }
}

.hero-signature:hover {
    opacity: 1;
    transform: scale(1.03) rotate(0deg); /* スケール効果を微妙に */
    filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(255, 255, 255, 0.7));
}

.hero-ambient-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
    animation: ambientPulse 10s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
    0% {
        opacity: 0.6;
        background-position: 30% 70%;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.6;
        background-position: 70% 30%;
    }
}

.hero-photo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background: radial-gradient(ellipse at center, rgba(0, 71, 171, 0.2) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
    filter: blur(20px);
    opacity: 0;
    animation: photoGlow 6s ease-in-out infinite alternate;
}

@keyframes photoGlow {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.hero-image-shine {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 48%,
        rgba(255, 255, 255, 0.1) 52%,
        transparent 70%,
        transparent 100%
    );
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 5;
    animation: shineEffect 8s ease-in-out infinite;
}

@keyframes shineEffect {
    0% {
        top: -300%;
        left: -300%;
    }
    100% {
        top: 100%;
        left: 100%;
    }
}

@keyframes accentPulse {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
    }
}

/* Improve hero overlay with more sophisticated gradient */
.hero-overlay {
    background: linear-gradient(135deg, 
        rgba(0, 35, 102, 0.9) 0%, 
        rgba(0, 71, 171, 0.7) 50%, 
        rgba(226, 38, 65, 0.4) 100%);
    animation: fadeInBackground 2s ease-out;
}

.hero-text h1, .hero-text h2 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    animation: textReveal 1s ease-out forwards;
}

@keyframes textReveal {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.hero-photo {
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    filter: brightness(1.02) contrast(1.02);
}

.hero-image-frame {
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    border-color: rgba(0, 160, 233, 0.4);
    box-shadow: 0 0 30px rgba(0, 35, 102, 0.1);
}

/* Full width styles */
.full-width {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* セクションの背景デザイン改善 */
.content-section {
    background-color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.content-section:nth-child(even) {
    background-color: var(--off-white);
}

/* 背景装飾要素 - 右上のアクセント円 */
.content-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: var(--navy-blue);
    opacity: 0.03;
    top: -200px;
    right: -200px;
    z-index: 0;
}

/* 背景装飾要素 - 左下のアクセント円 */
.content-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: var(--navy-blue);
    opacity: 0.03;
    bottom: -200px;
    left: -200px;
    z-index: 0;
}

/* Vision セクション専用の背景デザイン */
.vision-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: var(--navy-blue);
    opacity: 0.03;
    top: -200px;
    left: -200px;
    z-index: 0;
}

.vision-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: var(--navy-blue);
    opacity: 0.03;
    bottom: -200px;
    right: -200px;
    z-index: 0;
}

/* Commitment セクション専用の背景デザイン */
.commitment-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: var(--navy-blue);
    opacity: 0.03;
    top: -200px;
    right: -200px;
    z-index: 0;
}

.commitment-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: var(--navy-blue);
    opacity: 0.03;
    bottom: -200px;
    left: -200px;
    z-index: 0;
}

/* CV セクション専用の背景デザイン */
.cv-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: var(--navy-blue);
    opacity: 0.03;
    top: -200px;
    left: -200px;
    z-index: 0;
}

.cv-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: var(--navy-blue);
    opacity: 0.03;
    bottom: -200px;
    right: -200px;
    z-index: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
    text-align: center; /* Ensure content is centered */
}

/* Center-aligned container */
.text-center {
    text-align: center;
}

/* Left-aligned text */
.text-left {
    text-align: left;
}

/* Section title (reusable) */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--navy-blue);
    position: relative;
    display: block;
    padding-bottom: 0.5rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    font-weight: 600; /* セミボールドに */
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--navy-blue);
    background: linear-gradient(90deg, var(--accent, #e22641) 0%, var(--secondary, #16A085) 100%); /*グラデーションカラー*/
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* PDF download section styles */
.download-section {
    background-color: white;
    padding: 2rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    border-top: none;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.02);
    position: relative;
}

.download-heading {
    font-size: 1.5rem;
    color: var(--navy-blue);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 0.5rem;
}

.download-heading::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--navy-blue), var(--burgundy));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.download-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0 auto;
    max-width: 1000px;
}

.download-item {
    margin-bottom: 0.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.download-link {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.25rem;
    border-radius: 8px;
    background-color: #f8f8f8;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 48px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.download-link:hover {
    background-color: white;
    border-color: rgba(0, 35, 102, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.download-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 35, 102, 0.2);
    background-color: white;
}

.download-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 35, 102, 0.2);
    background-color: white;
}

.download-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--navy-blue), var(--burgundy));
    transition: height 0.3s ease;
    border-radius: 4px 0 0 4px;
}

.download-link:hover::before {
    height: 100%;
}

.download-icon {
    flex: 0 0 auto;
    margin-right: 14px;
    color: var(--navy-blue);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.download-link:hover .download-icon {
    opacity: 1;
    transform: scale(1.1);
    color: var(--burgundy);
}

.download-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.download-text {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--navy-blue);
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.download-link:hover .download-text {
    color: var(--burgundy);
}

.download-size {
    font-size: 0.75rem;
    color: #333333; /* コントラスト比改善のため、より暗い色に */
    font-weight: 500; /* 可読性向上のため少し太く */
    opacity: 1;
    display: flex;
    align-items: center;
}

.download-size::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--light-blue);
    border-radius: 50%;
    margin-right: 5px;
    opacity: 0.8;
}

.download-arrow {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--charcoal);
    opacity: 0.5;
    transform: rotate(-90deg);
    transition: all 0.3s ease;
}

.download-link:hover .download-arrow {
    opacity: 1;
    transform: rotate(0);
    color: var(--burgundy);
}

.download-link-initial {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform; /* パフォーマンス最適化 */
}

.download-link-animated {
    opacity: 1;
    transform: translateY(0);
}

/* ダウンロードリンク改善 - PDFインジケーター */
[data-download-type="PDF"] {
    position: relative;
}

[data-download-type="PDF"]::after {
    content: 'PDF';
    position: absolute;
    bottom: -3px;
    right: -3px;
    background-color: var(--navy-blue);
    color: white;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
}

/* Responsive adjustments for download section */
@media (max-width: 992px) {
    .download-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .commitment-group {
        flex-direction: column;
    }
    
    .commitment-cards {
        flex-direction: column;
    }
    
    .achievement-content {
        flex-direction: column;
    }
    
    .achievement-image {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
    
    /* Fix aspect ratio for images on tablets */
    .achievement-photo {
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }
    
    .commitment-icons-row {
        gap: 3rem;
    }
    
    .commitment-icons-row.second-row {
        gap: 10%;
    }
    
    .commitment-icons-row.second-row .commitment-icon-item:nth-child(2) {
        margin-left: 30px; /* タブレットではマージンを縮小 */
    }
}

@media (max-width: 650px) {
    .download-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .download-link {
        padding: 0.75rem 1rem;
    }
}

/* Topics section styles */
.topics-section {
    background-color: var(--light-gray);
}

.topics-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.topics-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.topic-card {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--navy-blue);
    flex: 1;
    max-width: 30%; /* Width limit to fit 3 cards per row */
    margin: 0;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.topic-image {
    overflow: hidden;
    height: 120px; /* Smaller image height */
}

.topic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.topic-card:hover .topic-image img {
    transform: scale(1.05);
}

.topic-card h3 {
    margin: 0.6rem 1.5rem 0.4rem; /* Reduced margins */
    font-size: 1.2rem; /* Smaller font size */
    text-align: left;
}

.topic-card p {
    margin: 0 1.5rem 0.6rem; /* Reduced bottom margin */
    font-size: 0.9rem; /* Smaller font size */
    line-height: 1.3; /* Tighter line spacing */
}

.topic-content-placeholder {
    height: 40px;
    background-color: transparent;
    margin: 0 1.5rem 0.6rem;
    border-radius: 4px;
}

.read-more {
    display: inline-block;
    margin: 0 1.5rem 0.8rem; /* Reduced bottom margin */
    color: var(--burgundy);
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Vision statement styles */
.vision-section {
    background-color: white;
    text-align: center;
}

.vision-statement {
    max-width: 1200px; /* Match profile section width */
    width: 100%; /* Match container width ratio */
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    padding: 0;
    text-align: left; /* Left-align text to maximize line length */
}

/* Vision statement paragraph styles */
.vision-statement p {
    text-align: justify; /* Justified text for even line length */
    margin-bottom: 1.5rem;
    position: relative;
}

/* Styled 'S' first letter for Vision Statement */
.vision-statement p::first-letter {
    font-size: 3.5rem;
    float: left;
    margin-right: 10px;
    line-height: 0.8;
    color: #8B0000; /* さらに暗い赤色でコントラスト比を向上 */
    font-weight: bold;
    padding-top: 5px;
}

@media (max-width: 900px) {
	
	.commitment-content-area {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .commitment-icon-item {
        width: 100%;
        max-width: 200px;
    }
}

/* 中間サイズでの調整 */
@media (max-width: 1100px) and (min-width: 901px) {

.commitment-content-area {
        width: 98%;
        padding: 2.2rem 1.8rem;
    }

    .commitment-icon-item {
        width: 140px; /* 幅を少し狭める */
    }
}

/* For larger screens */
@media (min-width: 1200px) {
	h4.commitment-icon-title {
        white-space: nowrap !important; /* 大画面では改行を禁止 */
        word-break: normal !important;  /* 通常の改行ルールに戻す */
        max-width: none !important; /* 最大幅制限を解除 */
        width: auto !important; /* 幅を自動に */
    }
    
    .commitment-icon-item:nth-child(2) h4.commitment-icon-title {
        white-space: nowrap !important; /* 大画面では改行を禁止 */
        word-break: normal !important;  /* 通常の改行ルールに戻す */
        max-width: none !important; /* 最大幅制限を解除 */
        width: auto !important; /* 幅を自動に */
        transform: translateX(-60px); /* 変形は維持 */
    }

    .vision-statement {
        max-width: 80%; /* Percentage-based width for flexibility */
    }
    
    .commitment-icon-item {
        width: 200px; /* より大きな画面では幅をさらに広げる */
    }
    
    /* セカンドロウのコンテナも幅を広げる */
    .commitment-icons-row.second-row {
        gap: 20%; /* ギャップをさらに広げる */
    }
    
    .commitment-icons-row.second-row .commitment-icon-item:nth-child(2) {
        margin-left: 80px; /* マージンを増やす */
    }
}

/* 中画面（769px-1199px） */
@media (max-width: 1199px) and (min-width: 769px) {
    h4.commitment-icon-title {
        white-space: normal; /* 改行を許可 */
        word-break: break-word; /* 単語内での改行を許可 */
        max-width: 160px; /* 最大幅を制限してはみ出しを防ぐ */
    }
    
    .commitment-icon-item:nth-child(2) h4.commitment-icon-title {
        white-space: normal; /* 改行を許可 */
        word-break: break-word; /* 単語内での改行を許可 */
        max-width: 140px; /* より狭い最大幅でははみ出しを確実に防ぐ */
        transform: translateX(-40px); /* 変形量を調整 */
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .cv-info-section .cv-info-title::after {
        width: calc(100% - 60px) !important; /* 幅をさらに狭める */
        max-width: 430px !important; /* 最大幅をより制限 */
    }
}

@media (max-width: 992px) and (min-width: 920px) {
    .cv-info-section .cv-info-title::after {
        width: calc(100% - 20px) !important; /* 右側余白をさらに減らして線を長く */
        max-width: 350px !important; /* 最大幅をさらに拡大 */
    }
}

@media (max-width: 920px) and (min-width: 885px) {
    .cv-info-section .cv-info-title::after {
        width: calc(100% - 20px) !important; /* 右側余白をさらに減らして線を長く */
        max-width: 340px !important; /* 最大幅をさらに拡大 */
    }
}

@media (max-width: 885px) and (min-width: 840px) {
    .cv-info-section .cv-info-title::after {
        width: calc(100% - 20px) !important; /* 右側余白をさらに減らして線を長く */
        max-width: 300px !important; /* 最大幅をさらに拡大 */
    }
}

@media (max-width: 840px) and (min-width: 800px) {
    .cv-info-section .cv-info-title::after {
        width: calc(100% - 20px) !important; /* 右側余白をさらに減らして線を長く */
        max-width: 280px !important; /* 最大幅をさらに拡大 */
    }
}

@media (max-width: 800px) and (min-width: 768px) {
    .cv-info-section .cv-info-title::after {
        width: calc(100% - 20px) !important; /* 右側余白をさらに減らして線を長く */
        max-width: 250px !important; /* 最大幅をさらに拡大 */
    }
}

/* PCで画面幅が狭くなりCVが縦並びになる特定の範囲での調整 */
@media (max-width: 768px) and (min-width: 500px) {
    .cv-info-section .cv-info-title::after {
        width: calc(100% - 20px) !important; /* 右側余白をさらに減らして線を長く */
        max-width: 460px !important; /* 最大幅を最大に拡大 */
    }
}

@media (max-width: 500px) and (min-width: 400px) {
    .cv-info-section .cv-info-title::after {
        width: calc(100% - 20px) !important; /* 右側余白をさらに減らして線を長く */
        max-width: 430px !important; /* 最大幅を最大に拡大 */
    }
}

/* Key Achievements Section Styles - UPDATED TO FIX CUT-OFF ISSUES */
.key-achievements-section {
    margin-top: 4rem;
    background-color: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px; /* 追加: commitmentセクションと同じmaxWidth */
    overflow: hidden;
    position: relative;
    margin-left: auto; /* 中央揃え */
    margin-right: auto; /* 中央揃え */
}

.key-achievements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--navy-blue), var(--burgundy));
    border-radius: 12px 12px 0 0;
}

.key-achievements-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(226, 38, 65, 0.05) 0%, transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.key-achievements-section .section-title {
    margin-top: 0;
}

.achievements-container {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Increased gap between achievement items */
}

.achievement-item {
    border-left: 4px solid var(--burgundy);
    padding-left: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 3rem;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
    border-radius: 0 8px 8px 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.achievement-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    height: 0;
    width: 4px;
    background-color: var(--navy-blue);
    transition: height 0.5s ease;
}

.achievement-item::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 35, 102, 0.05) 0%, transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.achievement-item:hover::before {
    height: 100%;
}

.achievement-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start; /* Align content to the top */
    width: 100%; /* Ensure full width */
}

.achievement-text {
    flex: 1;
    min-width: 300px;
}

/* FIXED ACHIEVEMENT IMAGE CONTAINER TO PREVENT OVERFLOW */
.achievement-image {
    flex: 0 0 auto;
    max-width: 300px;
    width: 100%; /* Ensure consistent width */
    margin-bottom: 1.5rem; /* Add space below the image */
}

.achievement-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: block;
    object-fit: cover;
    backface-visibility: hidden;
    transform: scale(1);
    filter: brightness(1);
}

/* Image link styles */
.image-link {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* 特定の画像に対する枠線調整 - 画像の実際のサイズに合わせる */
.achievement-image img[src*="img_ITU_background_conference_01-2.jpg"],
.achievement-image img[src*="img_ITU_fromFlickr_52938066750_2516a1e084_o.jpg"],
.achievement-image img[src*="img_ITU_fromFlickr_53754863544_c42c4e4e1b_o.jpg"],
.achievement-image img[src*="img_ITU_fromFlickr_53759878053_af1fee685f_o.jpg"] {
    object-fit: contain;
    object-position: center;
    max-height: 280px;
    width: 100%;
    height: auto;
    border: 2px solid rgba(0, 35, 102, 0.1);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.achievement-image img[src*="img_ITU_background_conference_01-2.jpg"]:hover,
.achievement-image img[src*="img_ITU_fromFlickr_52938066750_2516a1e084_o.jpg"]:hover,
.achievement-image img[src*="img_ITU_fromFlickr_53754863544_c42c4e4e1b_o.jpg"]:hover,
.achievement-image img[src*="img_ITU_fromFlickr_53759878053_af1fee685f_o.jpg"]:hover {
    border-color: rgba(0, 35, 102, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

/* 特定の画像のリンクコンテナは枠線を持たないように調整 */
.achievement-image a[href*="2pUBAcm"] .image-link,
.achievement-image a[href*="2oDXqUN"] .image-link,
.achievement-image a[href*="2pUzqMc"] .image-link,
.achievement-image a[href*="2pU8J99"] .image-link {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    display: block;
    width: 100%;
    height: auto;
}

.achievement-image a[href*="2pUBAcm"] .image-link:hover,
.achievement-image a[href*="2oDXqUN"] .image-link:hover,
.achievement-image a[href*="2pUzqMc"] .image-link:hover,
.achievement-image a[href*="2pU8J99"] .image-link:hover {
    border: none;
    box-shadow: none;
}

.achievement-item h3 {
    color: #740000; /* 暗い赤色でコントラスト比を7:1以上に改善 */
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-left: 1.8rem;
    display: inline-block;
}

.achievement-item h3::before {
    content: attr(data-number);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--burgundy);
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(226, 38, 65, 0.2);
}

.achievement-item ul {
    margin-bottom: 1.5rem; /* Ensure space after lists */
    list-style-type: disc; /* 明示的なリストマーカーを追加 */
    padding-left: 2rem; /* 適切なインデント */
}

.achievement-item li {
    margin-bottom: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word; /* 必要に応じて単語内で改行できるようにする */
    max-width: 100%;
    box-sizing: border-box;
}

.achievement-item strong {
    color: var(--navy-blue); /* 青色 */
}

/* FIXED IMAGE SOURCE TO PREVENT TEXT OVERFLOW */
.image-source {
    font-size: 0.75rem;
    color: var(--charcoal);
    text-align: right;
    margin-top: 0.5rem;
    margin-bottom: 0; /* Ensure no extra margin at bottom */
    width: 100%; /* Full width */
    word-break: break-word; /* Allow breaking long URLs */
    overflow-wrap: break-word; /* Additional property for URL wrapping */
    opacity: 1;
}

.image-source a {
    color: var(--navy-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    word-wrap: break-word; /* Enable URL wrapping */
}

.image-source a:hover {
    color: var(--burgundy);
    text-decoration: underline;
}

.commitment-message {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.commitment-message p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
}

/* Commitment section styles - Updated to match Commitment.png exactly */
.commitment-section {
    background-color: #f8f8f8; 
    padding: 0 0 5rem 0; /* Remove top padding */
    width: 100%;
    position: relative; /* Added for positioning */
}

.commitment-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Updated to match Commitment.png styles exactly */
.commitment-png-style {
    background-color: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.commitment-png-style::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 35, 102, 0.05) 0%, transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.commitment-main-header {
    background-color: #FDFDFD;
    padding: 2rem;
    text-align: center;
    border-bottom: none;
    margin-bottom: 0;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

/* Add overlay for the header background */
.commitment-main-header::before {
   	content: none; /* オーバーレイを削除 */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(235, 235, 235, 0.7); /* より薄い灰色のオーバーレイ */
    z-index: 0;
}

/* Make sure content is above the overlay */
.commitment-title-main, .commitment-desc-main {
    position: relative;
    z-index: 1;
}

.commitment-title-main {
    font-size: 2rem;
    color: #740000; /* 暗い赤色でコントラスト比は7:1以上 */
    margin-bottom: 0.5rem;
    font-weight: 700; /* 太字にして視認性向上 */
}

.commitment-desc-main {
    font-size: 1.1rem;
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 80%;
}

.commitment-icons-row {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-bottom: 1rem;
    flex-wrap: wrap; /* フレックスラップを追加 */
}

.commitment-icons-row.second-row {
    justify-content: center; /* 中央揃えに変更 */
    padding-left: 0; 
    gap: 15%; /* パーセンテージベースのギャップで調整 */
    flex-wrap: wrap; /* フレックスラップを追加 */
}

/* 中画面以下では2列目のギャップを調整 */
@media (max-width: 1199px) {
    .commitment-icons-row.second-row {
        gap: 10%; /* ギャップを狭める */
    }
    
    .commitment-icons-row.second-row .commitment-icon-item:nth-child(2) {
        margin-left: 20px; /* マージンを減らす */
    }
    
    .cv-info-title::after {
        width: calc(100% - 30px); /* 幅を少し狭める */
        max-width: 400px; /* 最大幅をさらに制限 */
    }
}

.commitment-icon-item {
    text-align: center;
    width: 150px; /* 幅を増やして内容を中央に */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem; /* 下マージンを追加 */
    position: relative; /* 位置調整のため */
}

/* 2つ目のアイテムを左寄りに調整 */
.commitment-icons-row.second-row .commitment-icon-item:nth-child(2) {
    margin-left: 60px; /* 右に60px移動 */
}

/* PCでテキストが2行になった場合のみ画像を左にずらす */
/*
@media (min-width: 769px) {
    .commitment-icons-row.second-row .commitment-icon-item:nth-child(2) .commitment-icon {
        transform: translateX(-15px); /* 画像のみを左に15pxずらす */
    }
}
*/

/* Improved commitment icon container to center the icon properly */
.commitment-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
}

/* Add subtle glow effect behind the icon */
.commitment-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 35, 102, 0.08) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.commitment-icon::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: 1px dashed rgba(0, 35, 102, 0.2);
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
    top: 5%;
    left: 5%;
}

.commitment-icon-item:hover .commitment-icon {
    transform: translateY(-5px);
}

.commitment-icon-item:hover .commitment-icon::before {
    opacity: 1;
    transform: scale(1.3);
}

.commitment-icon-item:hover .commitment-icon::after {
    opacity: 1;
    transform: scale(1.2) rotate(15deg);
}

/* Improve icon image with subtle shadow */
.commitment-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
    transition: all 0.4s ease;
}

.commitment-icon-item:hover .commitment-icon img {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
    transform: scale(1.05);
}

/* Enhanced title style with premium typography */
.commitment-icon-title {
    font-size: 1.2rem;
    color: #740000; /* 暗い赤色でコントラスト比を7:1以上に改善 */
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    width: 100%;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
    transition: all 0.3s ease;
}

/* Add decorative underline that appears on hover */
.commitment-icon-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--navy-blue), transparent);
    transform: translateX(-50%);
    transition: width 0.4s ease;
    opacity: 0;
}

.commitment-icon-item:hover .commitment-icon-title {
    color: #8B0000; /* Slightly darker on hover for emphasis */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.commitment-icon-item:hover .commitment-icon-title::after {
    width: 40%;
    opacity: 1;
}

/* Enhanced content area with subtle patterns and premium feel */
.commitment-content-area {
    background-color: #ffffff;
    background-image: 
        linear-gradient(rgba(0, 35, 102, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 35, 102, 0.01) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 2.5rem 2rem; /* 左右のパディングを少し減らす */
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 95%; /* 幅を少し広げる */
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    border-radius: 0 0 12px 12px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.07),
        0 5px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden; /* コンテンツがはみ出さないようにする */
}

/* Add a subtle accent to the top of the content area */
.commitment-content-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--navy-blue), var(--burgundy));
    background-size: 200% 100%;
    animation: gradientMove 8s ease infinite;
    opacity: 0.7;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
    
    /* 完全にアニメーションを無効化 */
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .fade-up,
    .hero-ambient-light,
    .hero-photo-glow,
    .hero-image-shine,
    .download-link-initial,
    .hero-signature {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .fade-up {
        opacity: 1;
        transform: none;
    }
    
    .hero-ambient-light,
    .hero-photo-glow,
    .hero-image-shine {
        animation: none !important;
        opacity: 0.5;
    }
}

/* h3 (Commitment Icon Titles)のスタイル */
h3.commitment-icon-title {
    overflow: visible;   /* 必要に応じてオーバーフロー表示 */
    width: max-content;  /* コンテンツの幅に合わせる */
    margin: 0 auto;      /* 中央揃え */
    font-size: 1.1rem;   /* サイズ調整 */
    text-align: center;  /* 文字を中央揃え */
}

/* h4 (Commitment Icon Titles)のスタイル */
h4.commitment-icon-title {
    overflow: visible;   /* 必要に応じてオーバーフロー表示 */
    width: max-content;  /* コンテンツの幅に合わせる */
    margin: 0 auto;      /* 中央揃え */
    font-size: 1.1rem;   /* サイズ調整 */
    text-align: center;  /* 文字を中央揃え */
    white-space: normal; /* 改行を許可に変更 */
    max-width: 100%;     /* コンテナ内に収める */
    line-height: 1.3;    /* 行間を調整 */
    word-break: break-word; /* 必要に応じて単語内で改行 */
}

/* Efficient, Effective, and Transparent のテキストのみの調整 */
.commitment-icon-item:nth-child(2) h4.commitment-icon-title {
    transform: translateX(-60px); /* 文字を左に60pxずらす */
    max-width: calc(100% + 60px); /* 変形分を考慮した最大幅 */
    white-space: normal; /* 改行を許可 */
    word-break: break-word; /* 単語内での改行を許可 */
}


.commitment-text-item {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
    text-align: left;
    font-size: 0.95rem; /* テキストサイズを少し小さく */
    line-height: 1.5;
}

.commitment-arrow {
    color: #e22641;
    font-size: 1.3em;
    position: absolute;
    left: 0;
    top: 0;
}

.commitment-divider {
    border: 0;
    height: 1px;
    background-color: #e22641; /* 赤色 */
    margin: 1.5rem 0;
}

/* Commitment box - common styles */
.commitment-box {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.commitment-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Grouped commitments */
.commitment-group {
    display: flex;
    gap: 2rem;
}

.commitment-group-box {
    flex: 1;
    padding: 2rem;
    border-top: 4px solid var(--burgundy);
}

.commitment-group-title {
    font-size: 1.4rem;
    color: var(--navy-blue);
    text-align: center;
    margin-bottom: 2rem;
}

.commitment-cards {
    display: flex;
    gap: 1rem; /* 縮小 */
    flex-wrap: wrap;
}

/* Add styling for the commitment cards list items */
.commitment-cards ul {
    text-align: left;
    padding-left: 20px;
    margin-top: 0.5rem; /* Add a little space at the top */
    width: 100%; /* Ensure full width */
}

.commitment-cards li {
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: left;
}

/* Remove hover effects for commitment card headings */
.commitment-card h3:hover,
.commitment-card h3:focus {
    color: var(--navy-blue) !important; /* Force same color on hover/focus */
}

.commitment-card {
    flex: 1;
    min-width: 220px;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    text-align: center;
    transition: none; /* Remove all transitions */
    margin-bottom: 0;
    padding-bottom: 0.5rem; /* 下部の余白を減らす */
}

.commitment-card:hover {
    transform: none; /* Remove transform on hover */
}

.commitment-card h3 {
    color: #e22641; /* Key Achievementsと同じ赤色 */
    margin: 0.8rem 0;
    font-size: 1.2rem;
}

.commitment-card p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.5;
}

/* Add styles for the commitment icon images */
.commitment-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.commitment-icon {
    width: 70px;
    height: 70px;
    /* Add focus styles for keyboard navigation */
    outline: none;
}

.commitment-icon-item:focus-within .commitment-icon {
    transform: translateY(-5px);
    outline: 3px solid #0078D4;
    outline-offset: 4px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.commitment-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--light-blue);
}

/* Profile section styles */
.profile-content {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-content h3 {
    text-align: center;
    color: var(--navy-blue);
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.profile-content h4 {
    color: var(--burgundy);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.profile-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Curriculum Vitae styles */
.cv-section {
    background-color: white; /* 背景を白に変更 */
    padding: 2rem 0; /* パディングを調整 */
}

.cv-container {
    display: flex;
    background-color: white;
    background-image: 
        linear-gradient(45deg, rgba(0, 35, 102, 0.01) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 35, 102, 0.01) 25%, transparent 25%);
    background-size: 20px 20px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cv-photo-section {
    flex: 0 0 35%;
    padding: 2.5rem;
    background: linear-gradient(135deg, #001b4d 0%, #002366 100%);
    background-image: 
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.07) 0%, transparent 20%),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.07) 0%, transparent 20%),
        linear-gradient(135deg, #001b4d 0%, #002366 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cv-photo-section::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cv-photo-section::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cv-photo {
    width: auto;
    height: auto;
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    object-fit: cover;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    /* Removed automatic animation */
    image-rendering: auto; /* Changed from -webkit-optimize-contrast */
}

/* Only apply animation when focused */
.cv-photo:focus {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    outline: 2px solid var(--navy-blue);
}

.cv-name {
    margin-top: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    color: white; /* 白色のテキスト */
}

@media (max-width: 600px) {
    .present-title-text {
        font-size: 0.85rem;
        line-height: 1.5;
        padding-right: 10px; /* Adjusted padding for mobile */
    }
}

.cv-info-section {
    flex: 0 0 65%;
    padding: 2rem 2.5rem 2rem 2rem; /* 右側の余白を増やす */
    text-align: left;
    box-sizing: border-box;
    max-width: 95%; /* 最大幅を明示的に設定 */
}


.cv-info-title {
    color: #002366; /* 濃い青色の見出し */
    position: relative;
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: none; /* 元のボーダーを削除 */
}

.cv-info-title::after {
    content: '';
    position: absolute;
    width: calc(100% - 20px); /* フレームサイズに応じて調整、右端に余白を確保 */
    max-width: 500px; /* 最大幅を制限してPC全画面時の基準とする */
    height: 1px;
    background-color: #e0e0e0;
    bottom: 0;
    left: 0;
}

.cv-info-title:first-of-type {
    margin-top: 0;
}

/* 現在の肩書きテキストのスタイル調整 */
.present-title-text {
    width: 100%;
    max-width: 100%;
    display: block;
    white-space: pre-line;
    line-height: 1.7;
    font-size: 0.95rem;
    padding-right: 10%;
    margin-bottom: 1.5rem;
    word-spacing: normal;
    letter-spacing: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: auto;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.cv-logo-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.cv-logo {
    height: 30px;
    width: auto;
}



.cv-info-title:first-of-type {
    margin-top: 0;
}

/* Timeline style for CV experience */
.cv-timeline {
    margin-top: 3rem;
    position: relative;
    max-width: 1200px;
    margin: 3rem auto 0;
    text-align: left;
}

.cv-category {
    margin-bottom: 3rem;
    position: relative;
}

.cv-category::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #002366;
    top: 48px;
    bottom: 0;
    left: 85px;
    z-index: 1;
}


.timeline-item {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-year {
    flex: 0 0 60px; /* Width for years */
    font-weight: 700;
    padding-right: 1.75rem;
    text-align: right;
    color: #002366; /* Matching the blue from PDF */
    position: relative;
}

.timeline-year::after {
    content: '■'; /* Square marker */
    font-size: 18px; /* Keep the larger size */
    position: absolute;
    width: auto;
    height: auto;
    right: -4px; /* Moved further right to ensure vertical line passes through center */
    background-color: transparent;
    border: none;
    top: 1px; /* Keep vertical centering */
    color: #002366;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}


/* Hide content box for double year entries */
.double-year-content {
    display: none;
}

.timeline-content {
    flex: 1;
    background: transparent; /* Remove background */
    padding: 0 1rem 0 0; /* Adjusted padding */
    border-radius: 0; /* Remove border radius */
    box-shadow: none; /* Remove shadow */
    margin-left: 2rem; /* Adjusted margin */
    position: relative;
    text-align: left;
}

.timeline-content::before {
    display: none; /* Remove the pointer triangle */
}

.timeline-content h4 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    color: #333333; /* Darker text to match PDF */
    font-size: 1rem;
    font-weight: 500;
}

.timeline-content p {
    margin: 0;
    font-size: 1rem;
    color: #333333; 
    line-height: 1.6;
}

/* Adjusted styles for specific sections to match PDF */
#professional-experience-title,
#education-title,
#awards-title {
    font-size: 1.6rem;
    color: #002366;
    position: relative;
    padding-left: 0.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: none;
    border-left: 8px solid #002366; /* Increased border width to make it thicker */
}

#professional-experience-title {
    margin-top: 1.5rem;
}

#professional-experience-title::before,
#education-title::before,
#awards-title::before {
    display: none; /* Remove the vertical bar that was previously added */
}

/* Add horizontal line below section titles */
#professional-experience-title::after,
#education-title::after,
#awards-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -8px;
    left: 0;
    background-color: #002366;
    display: block; /* 表示を有効にする */
}

.medal-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.medal-icon {
    margin-right: 1rem;
    color: var(--gold);
}

/* Footer styles */
.footer {
    background-color: var(--navy-blue);
    color: white;
    padding: 3rem 0 2rem 0; /* 上部パディングを追加 */
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(226, 38, 65, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 71, 171, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.signature-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin-top: -60px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.signature-image {
    max-width: 400px; /* 横幅を広げる */
    max-height: 65px; /* 縦幅を制限 */
    width: auto;
    height: auto;
    object-fit: contain; /* 縦横比を保持しながらサイズを調整 */
    filter: brightness(0) invert(1); /* 白色に変換 */
    opacity: 0.9;
    transition: all 0.3s ease;
    transform: rotate(-1deg); /* 傾きを控えめに */
}

.signature-image:hover {
    opacity: 1;
    transform: scale(1.05) rotate(0deg); /* ホバー時に拡大して傾きを戻す */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 上部揃えに変更 */
    position: relative;
    z-index: 1;
    margin-bottom: 2rem; /* コピーライトとの間隔を追加 */
}

.footer-logo {
    font-size: 1.5rem; /* サイズを大きく */
    font-weight: 700;
    flex: 0 0 auto; /* フレックス調整 */
}

.footer-logo a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-logo a:hover {
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.footer-nav {
    flex: 1; /* 残りスペースを使用 */
    display: flex;
    justify-content: center; /* 中央配置 */
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem; /* ギャップを拡大 */
    margin: 0;
    padding: 0;
    align-items: center;
}

.footer-nav li {
    position: relative;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem; /* フォントサイズを大きく */
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem; /* パディングを追加 */
    border-radius: 4px;
    position: relative;
}

.footer-nav a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.footer-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #e22641;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-nav a:hover::after {
    width: 80%;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 0.8;
}

.copyright {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

/* 読み取り専用のテキストのためのスタイル */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Improved visual focus indication */
a:focus, button:focus {
    outline: 3px solid #0056B3;
    outline-offset: 3px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: outline-color 0.2s ease-in-out;
}

a:focus:not(:focus-visible), button:focus:not(:focus-visible) {
    outline-color: transparent; /* マウスクリックでのフォーカス時には目立たなくする */
    box-shadow: none;
    text-decoration: none;
}

a:focus-visible, button:focus-visible {
    outline: 3px solid #0078D4; /* キーボードフォーカス時のみ明確に表示 */
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8);
}

/* Focus indication for SVG interactive elements */
.social-icon:focus {
    outline: 3px solid white;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5);
}

/* フォームコントロールやインタラクティブな要素のフォーカス状態 */
input:focus,
select:focus,
textarea:focus,
button:focus,
[role="button"]:focus,
a:focus {
    outline: 3px solid #0056B3; /* より暗い青色でコントラスト比向上 */
    outline-offset: 3px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* キーボードフォーカス特有のスタイル */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
a:focus-visible {
    outline: 3px solid #0056B3;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

/* Animation for loaded images */
.achievement-photo.loaded {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* RESPONSIVE STYLES - IMPROVED */
/* For medium screens */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
    }
    
    .commitment-group {
        flex-direction: column;
    }
    
    .commitment-cards {
        flex-direction: column;
    }
    
    .achievement-content {
        flex-direction: column;
    }
    
    .download-container {
            grid-template-columns: repeat(2, 1fr);
        }
    
    .achievement-image {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
    
    /* Fix aspect ratio for images on tablets */
    .achievement-photo {
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }
    
    /* タブレット表示での画像調整 */
.achievement-image img[src*="img_ITU_background_conference_01-2.jpg"],
.achievement-image img[src*="img_ITU_fromFlickr_52938066750_2516a1e084_o.jpg"],
.achievement-image img[src*="img_ITU_fromFlickr_53754863544_c42c4e4e1b_o.jpg"],
.achievement-image img[src*="img_ITU_fromFlickr_53759878053_af1fee685f_o.jpg"] {
    max-height: 260px;
    border: 2px solid rgba(0, 35, 102, 0.08);
}

	.achievement-image img[src*="img_ITU_background_conference_01-2.jpg"]:hover,
	.achievement-image img[src*="img_ITU_fromFlickr_52938066750_2516a1e084_o.jpg"]:hover,
	.achievement-image img[src*="img_ITU_fromFlickr_53754863544_c42c4e4e1b_o.jpg"]:hover,
	.achievement-image img[src*="img_ITU_fromFlickr_53759878053_af1fee685f_o.jpg"]:hover {
    	transform: scale(1.05);
    	border-color: rgba(0, 35, 102, 0.25);
    	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	}
}

/* For tablets and smaller screens */
@media (max-width: 768px) {
    /* Mobile navigation fixes */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background: var(--navy-blue);
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    nav.active {
        height: 100vh;
        padding: 5rem 0 1rem;
    }
    
    header nav ul {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 5%;
        align-items: center;
    }
    
    header nav a {
        font-size: 1.2rem;
        padding: 0.8rem;
        min-height: 48px;
        min-width: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0.3rem 0;
    }
    
    .menu-toggle {
        z-index: 1002 !important;
        position: relative !important;
        background: transparent;
        border: none;
        display: flex !important;
    }
    
    .menu-toggle.active {
        z-index: 1002 !important;
    }
    
    /* アクティブ状態でのハンバーガーラインを確実に白色に */
    .menu-toggle.active .hamburger-line {
        background-color: white !important;
    }
    
    #primary-navigation {
        display: block;
    }
    
    .hamburger-line {
        display: block;
        width: 25px;
        height: 2px;
        background-color: white;
        margin: 3px 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-radius: 2px;
    }
    
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 5%;
        align-items: center;
        height: 100%;
        justify-content: flex-start;
        padding-top: 2rem;
    }
    
    nav a {
        font-size: 1.2rem;
        padding: 0.8rem;
        min-height: 48px; /* タッチターゲットサイズを大きく */
        min-width: 48px; /* タッチターゲットサイズを大きく */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0.5rem 0; /* 項目間の間隔を少し広げる */
        width: 200px; /* 一定の幅を確保 */
        text-align: center;
    }
    
    nav a::after, .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    nav a:hover::after, .nav-link:hover::after,
    .nav-link.active::after {
        width: auto;
        min-width: 60px;
        max-width: calc(100% - 2rem);
        width: var(--dynamic-underline-width, 6rem);
    }
    
    /* 各メニュー項目に応じた下線の長さ調整 */
    nav a[href="#home"]:hover::after,
    nav a[href="#home"].active::after {
        width: 3rem; /* Home */
    }
    
    nav a[href="#vision"]:hover::after,
    nav a[href="#vision"].active::after {
        width: 3.5rem; /* Vision */
    }
    
    nav a[href="#commitment"]:hover::after,
    nav a[href="#commitment"].active::after {
        width: 6rem; /* Commitment */
    }
    
    nav a[href="#curriculum-vitae"]:hover::after,
    nav a[href="#curriculum-vitae"].active::after {
        width: 8rem; /* Curriculum Vitae */
    }
    
    /* すべてのタッチターゲットに適用 */
    .download-link, .social-icon, button, [role="button"], 
    a[href]:not(.nav-link), .commitment-icon {
        min-height: 48px;
        min-width: 48px;
        padding: 10px;
        margin: 5px 0;
    }
    
    .hero-section {
        min-height: 90vh; /* 高さを戻して余裕を持たせる */
        padding: 1rem 0; /* パディングを増やす */
    }
    
    /* Hero section mobile improvements */
    .hero-content {
        flex-direction: column;
        padding: 1rem 1rem; /* パディングを増やす */
        gap: 1.5rem; /* テキストと画像の間隔を広げる */
    }
    
    .hero-text {
        padding-left: 2rem; /* モバイルでは通常のパディングに戻す */
        text-align: center;
        padding: 0 1rem 1rem; /* 下部パディングを増やす */
    }
    
    .hero-image {
        margin-left: 0; /* モバイルでは負のマージンを取り除く */
        justify-content: center; /* モバイルでは中央揃え */
        margin-top: -1rem; /* 画像の上マージンを調整 */
    }
    
    /* 画像コンテナのモバイル専用調整 */
    .hero-photo-container {
        max-width: 90%; /* 幅を少し広げる */
        margin: 0 auto; /* 中央配置 */
        width: 90%; /* 明示的に幅を設定 */
    }
    
    /* 画像の高さ制限を追加してビューポートに収める */
    .hero-photo {
        max-height: 50vh; /* ビューポートの50%に戻して余裕を持たせる */
        width: 100%; /* 幅を100%に変更 */
        object-fit: contain; /* 画像全体を表示 */
        object-position: center; /* 中央配置を確実にする */
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-tagline {
        margin-top: 0.5rem; /* 上マージンを少し増やす */
        margin-bottom: 0.5rem; /* 下マージンを増やして間隔確保 */
        font-size: 1rem; /* フォントサイズを調整 */
    }
    
    .download-link-initial,
    .download-link-animated {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
    
    /* Downloads mobile layout */
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    /* Topics mobile layout */
    .topics-grid {
        flex-direction: column;
    }
    
    .topic-card {
        max-width: 100%;
    }
    
    /* CV container mobile layout */
    .cv-container {
        flex-direction: column;
    }
    
    .cv-photo-section, .cv-info-section {
        flex: 0 0 100%;
    }
    
    .cv-info-section {
        padding: 2rem 1.5rem 2rem 2rem; /* モバイルでは右パディングを調整 */
        max-width: 100%;
    }
    
    .cv-info-title::after {
        width: calc(100% - 15px); /* モバイルでは少し余白を縮小 */
        max-width: 300px; /* モバイル時の最大幅を調整 */
    }
    
    .cv-category::after {
        left: 41px;
    }
    
    /* Footer mobile layout */
    .footer {
    padding: 2rem 0 1.5rem 0;
}

.footer-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* 2remから1.5remに縮小 */
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 0.25rem; /* 0.5remから0.25remに縮小 */
}

/* フッターナビゲーションを確実に表示 */
.footer-nav {
    width: 100%;
    order: 2; /* ロゴの後に表示 */
}

.footer-nav nav {
    /* フッターのnavには固定スタイルを適用しない */
    position: static !important;
    height: auto !important;
    background: transparent !important;
    overflow: visible !important;
    box-shadow: none !important;
}

.footer-nav ul {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1rem 0.5rem; /* さらに縮小 */
    padding: 0;
    margin: 0;
    list-style: none;
    line-height: 0.3; /* 行間をさらに縮小*/
}

.footer-nav li {
    display: block;
    margin: 0.05rem; /* さらに縮小：0.1rem→0.05rem */
}

.footer-nav a {
    font-size: 1.1rem;
    padding: 0.5rem 0.7rem; /* パディングをさらに縮小：0.6rem 0.8rem→0.5rem 0.7rem */
    min-height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    line-height: 1.1; /* 行間を調整：0.1→1.1で適切な値に */
}

.footer-nav a[href="#curriculum-vitae"] {
    white-space: nowrap; /* 改行を防止 */
    font-size: 1rem; /* 必要に応じてフォントサイズを少し小さく */
    padding: 0.5rem 0.5rem; /* パディングをさらに縮小：0.6rem 0.6rem→0.5rem 0.5rem */
}
    
    .footer-nav a:hover,
    .footer-nav a:focus {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .copyright {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        order: 3; /* 最後に表示 */
    }
    
    
    .hero-btn {
        margin: 1.5rem auto;
        display: block;
        max-width: 200px;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
        align-items: center;
    }
    
    /* Key Achievements mobile layout - CRITICAL FIX */
    .key-achievements-section {
        padding: 1.5rem 0.5rem; /* 左右のパディングを縮小 */
        margin: 2rem auto;
        width: 100%;
        max-width: 100%; /* モバイルでは最大幅を100%に */
        box-sizing: border-box;
    }
    
    .achievement-item {
        padding-left: 0.5rem; /* 左パディングを縮小 */
        padding-right: 0.5rem; /* 右パディングを追加 */
        margin-bottom: 2rem;
        border-left-width: 3px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible; /* はみ出しを許可 */
    }
    
    .achievement-item h3 {
        font-size: 1.1rem; /* フォントサイズをさらに縮小 */
        line-height: 1.3; /* 行間を調整 */
        word-break: break-word;
        overflow-wrap: break-word;
        margin-bottom: 0.8rem;
        padding-right: 0.5rem;
    }
    
    .achievement-content {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .achievement-image {
        max-width: 100%;
        margin: 0 auto 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .achievement-photo {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .achievement-text {
        padding-right: 0.5rem; /* 右側の余白を確実に確保 */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* すべての業績項目に適用する改行スタイル - 強化版 */
    .achievement-item li {
        max-width: 100%;
        width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
        padding-right: 0.5rem; /* 右側の余白を確実に確保 */
        margin-bottom: 0.8rem; /* リスト項目間の間隔を調整 */
        line-height: 1.4; /* 行間を調整 */
        font-size: 0.9rem; /* フォントサイズを少し縮小 */
        box-sizing: border-box;
        hyphens: auto; /* 自動ハイフネーションを有効化 */
        word-wrap: break-word; /* 古いブラウザサポート */
    }
    
    /* リスト内の強調テキスト対策 - 強化版 */
    .achievement-item li strong {
        word-break: break-word;
        overflow-wrap: break-word;
        display: inline;
        hyphens: auto;
        font-size: inherit; /* 親要素のフォントサイズを継承 */
    }
    
    /* 長い単語や技術用語の改行を強制 */
    .achievement-item li:contains("Standardization"),
    .achievement-item li:contains("Technologies"),
    .achievement-item li:contains("International") {
        word-break: break-all; /* 必要に応じて文字レベルで改行 */
    }
    
    .image-source {
        font-size: 0.7rem;
        margin-top: 0.25rem;
        text-align: center; /* Center-align on mobile */
    }
    
    /* Education セクション専用の縦線調整 - モバイルのみ */
    .education-category::after {
        top: 90px !important; /* 縦線の開始位置 */
        height: calc(100%+ 2px) !important; /* 縦線を下に60px延長 */
        bottom: -2px !important; /* 下方向への延長を確実にする */
    }
    
    /* Education セクションの特別な調整 - カテゴリ特有のスタイル */
    #education-title {
        position: relative;
        overflow: visible;
    }
    
    /* Education セクション下の縦線を特別に調整 */
    #education-title + .timeline-item {
        position: relative;
    }
    
    /* Education セクションを含む cv-category の縦線を下に調整 */
    #education-title.cv-category-title {
        margin-bottom: 10px; /* タイトルの下マージンを調整 */
    }
    
    /* 最も確実な方法：Education セクションの親要素の後疑似要素を直接調整 */
    #education-title.cv-category-title + .timeline-item {
        margin-top: 20px; /* 最初のアイテムの上マージンを追加 */
    }
    
    /* Education を含むカテゴリ全体のセレクタ */
    #education-title.cv-category-title ~ .cv-category::after {
        top: 60px; /* Education 以降のセクションの縦線を下げる */
    }

    
    .timeline-item {
        flex-direction: column;
        margin-left: 1rem;
    }
    
    .timeline-year {
        text-align: left;
        padding-left: 2.5rem;
        margin-bottom: 0.5rem;
        flex: none;
    }
    
    .timeline-year::after {
        left: 21px; /* ■の位置を右に移動 */
        right: auto;
    }
    
    .timeline-content {
        margin-left: 2.5rem;
        width: calc(100% - 3.5rem);
        max-width: calc(100% - 3.5rem);
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    /* Ensure timeline content text doesn't overflow */
    .timeline-content h4,
    .timeline-content p {
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Adjust year range display on mobile */
    .timeline-year-range {
        padding-left: 2.5rem;
    }
    
    /* Adjustments for commitment section on mobile */
    .commitment-icons-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    
    
    /* モバイルでの改行を防ぐ特別なスタイル（Present Title） */
    .present-title-text {
        word-break: break-word; /* 長い単語は適切に改行 */
        overflow-wrap: break-word; /* 長いテキストの折り返し */
        white-space: normal; /* 通常の空白処理 */
        hyphens: auto; /* 適切なハイフネーション */
        padding-right: 5%; /* モバイルでは右余白を調整 */
        font-size: 0.9rem; /* モバイルでは少し小さく */
        line-height: 1.5; /* 行間を調整 */
    }
}

.commitment-icons-row.second-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.commitment-icons-row.second-row .commitment-icon-item:nth-child(2) {
    margin-left: 0; /* モバイルではマージンをリセット */
}

.commitment-icons-row.second-row .commitment-icon-item:nth-child(2) .commitment-icon,
.commitment-icons-row.second-row .commitment-icon-item:nth-child(2) h4.commitment-icon-title {
    transform: none; /* 変形をリセット */
}

/* モバイル表示での中央揃え */
.commitment-icon-item {
    width: 100%;
    max-width: 200px;
    margin-bottom: 1.5rem;
}

	h3.commitment-icon-title, 
    h4.commitment-icon-title {
        white-space: normal; /* モバイルでは改行を許可 */
        width: auto;
        max-width: 120px; /* 最大幅を制限 */
        line-height: 1.3; /* 行間を調整 */
        word-break: break-word; /* 単語内での改行を許可 */
        margin: 0 auto; /* 中央揃えを確実に */
    }
    
    .commitment-icon-item:nth-child(2) h4.commitment-icon-title {
        transform: none; /* 変形をリセット */
        font-size: 1rem; /* モバイル用サイズを統一 */
        padding: 0 5px; /* 左右に少し余白 */
        max-width: 120px; /* 最大幅を統一 */
        word-break: break-word; /* 単語内での改行を許可 */
    }
    
    .commitment-content-area {
        padding: 1.8rem 1.2rem;
    }
    
    /* 携帯表示でのコミットメントアイコンのアニメーション無効化 */
    .commitment-icon-item:hover .commitment-icon {
        transform: none !important;
    }
    
    .commitment-icon-item:hover .commitment-icon::before {
        opacity: 0 !important;
        transform: none !important;
    }
    
    .commitment-icon-item:hover .commitment-icon::after {
        opacity: 0 !important;
        transform: none !important;
    }
    
    .nav-link, .download-link, .social-icon, 
    button, [role="button"], a[href]:not(.skip-to-content), 
    input, select, textarea, .commitment-icon {
        min-height: 48px;
        min-width: 48px;
        padding: 10px;
        margin: 6px 0;
        touch-action: manipulation; /* タッチ操作の最適化 */
    }
}

/* Hide mobile menu by default */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
    
    nav {
        position: static !important;
        height: auto !important;
        background: transparent !important;
        overflow: visible !important;
        box-shadow: none !important;
    }
    
    nav ul {
        flex-direction: row !important;
        gap: 2rem !important;
        padding: 0 !important;
        align-items: center !important;
        height: auto !important;
        justify-content: flex-end !important;
    }
}

/* For small mobile screens */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2; /* 行間を調整して読みやすく */
    }
    
    .hero-text h2 {
        font-size: 1rem;
        line-height: 1.4; /* 行間を調整して読みやすく */
    }
    
    /* 全体的な余白を調整して可読性向上 */
    .container {
        width: 95%;
        padding: 0 2.5%;
    }
    
    /* ボタンとリンクのタッチ領域を確保 */
    a, button, [role="button"] {
        padding: 10px;
        margin: 5px 0;
    }
    
    /* リスト項目の読みやすさ向上 */
    li {
        margin-bottom: 12px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .achievement-item h3 {
        font-size: 1.1rem;
    }
    
    .cv-info-section {
        padding: 1.5rem 0.75rem 1.5rem 1rem; /* 最小画面では最小限のパディング */
    }
    
    .cv-info-title::after {
        width: calc(100% - 10px); /* 小画面では余白をさらに縮小 */
        max-width: 250px; /* 小画面時の最大幅をさらに調整 */
    }
}

/* Present Titleテキストの幅調整に合わせて、右側の余白を確保 */
@media (max-width: 600px) {
    .cv-info-title::after {
        width: calc(100% - 12px);
        max-width: 260px;
    }
    
    /* Ensure images don't overflow on small screens */
    .achievement-image {
        max-width: 250px;
    }
    
    /* Adjust padding for Key Achievements section */
    .key-achievements-section {
        padding: 1rem 0.25rem; /* さらに狭いパディング */
        margin: 1rem auto;
    }
    
    /* Smaller spacing between items */
    .achievement-item {
        margin-bottom: 1.5rem;
        padding-left: 0.25rem; /* さらに狭いパディング */
        padding-right: 0.25rem;
    }
    
    .achievement-item h3 {
        font-size: 1rem; /* さらに小さく */
        line-height: 1.2;
        margin-bottom: 0.6rem;
        padding-right: 0.25rem;
    }
    
    .achievement-item li {
        font-size: 0.85rem; /* さらに小さく */
        word-break: break-word;
        overflow-wrap: break-word;
        padding-right: 0.25rem; /* 右側の余白を最小限に */
        max-width: 100%;
        width: 100%;
        line-height: 1.3;
        margin-bottom: 0.6rem;
        box-sizing: border-box;
        hyphens: auto;
        word-wrap: break-word;
    }
    
    /* 実績項目のテキストコンテナに余裕を持たせる */
    .achievement-text {
        padding-right: 0.25rem; /* 右側の余白を最小限に */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* 特に長い技術用語の処理を強化 */
    .achievement-item li strong {
        font-size: 0.85rem;
        word-break: break-all; /* 必要に応じて文字レベルで改行 */
        display: inline;
        hyphens: auto;
    }
    
    /* コンテナ全体の幅を確実に制限 */
    .container {
        width: 98%; /* さらに狭く */
        padding: 0 1%; /* パディングを最小限に */
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Improve present title text display */
    .present-title-text {
        font-size: 0.85rem;
        line-height: 1.4;
        padding-right: 3%; /* 余白をさらに調整 */
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix for timeline content on mobile */
    .timeline-content {
        width: calc(100% - 3rem);
        max-width: calc(100% - 3rem);
        padding: 1rem;
        margin-left: 2rem;
        box-sizing: border-box;
    }
    
    .commitment-icons-row {
        gap: 1.5rem;
    }
    
    .commitment-icons-row.second-row {
        gap: 1.5rem;
    }
    
    .commitment-icon-item {
        max-width: 180px;
    }
    
    .container {
        width: 95%;
        padding: 0 2.5%;
    }
    
    .cv-info-section {
        padding: 2rem 1rem 2rem 1.5rem; /* 小画面では全体的にパディングを縮小 */
    }
    
    /* 小さいモバイル画面での追加調整 */
    .achievement-image img[src*="img_ITU_background_conference_01-2.jpg"],
.achievement-image img[src*="img_ITU_fromFlickr_52938066750_2516a1e084_o.jpg"],
.achievement-image img[src*="img_ITU_fromFlickr_53754863544_c42c4e4e1b_o.jpg"],
.achievement-image img[src*="img_ITU_fromFlickr_53759878053_af1fee685f_o.jpg"] {
    max-height: 200px;
    max-width: 100%;
    border: 1px solid rgba(0, 35, 102, 0.1);
}

.achievement-image img[src*="img_ITU_background_conference_01-2.jpg"]:hover,
.achievement-image img[src*="img_ITU_fromFlickr_52938066750_2516a1e084_o.jpg"]:hover,
.achievement-image img[src*="img_ITU_fromFlickr_53754863544_c42c4e4e1b_o.jpg"]:hover,
.achievement-image img[src*="img_ITU_fromFlickr_53759878053_af1fee685f_o.jpg"]:hover {
    transform: scale(1.03);
    border-color: rgba(0, 35, 102, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	}
}

/* Add specific breakpoint handling for present title */
@media (max-width: 600px) {
    .present-title-text {
        font-size: 0.85rem;
        line-height: 1.5;
        padding-right: 8%; /* パーセンテージベースで調整 */
    }
}

/* Add media query for larger screens to increase font size */
@media (min-width: 1200px) {
    .present-title-text {
        font-size: 1.1rem;
    }
}

/* Modern animations and effects */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right-visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image loading states */
.image-loading {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.image-loaded {
    opacity: 1;
}

/* IMPROVED DARK MODE SUPPORT */
@media (prefers-color-scheme: dark) {
    /* Root variable overrides for dark mode */
    :root {
        --navy-blue: #4DB5FF; /* より明るい青、コントラスト比向上 */
        --burgundy: #FF8095; /* より明るい赤、コントラスト比向上 */
        --deep-burgundy: #FF6A85; /* ホバー時の赤、コントラスト比向上 */
        --gold: #FFE066;
        --off-white: #121212;
        --light-gray: #333333;
        --dark-gray: #FFFFFF;
        --charcoal: #F5F5F5;
        --light-blue: #59BDFF; /* より明るい青 */
        --accent-red: #FF8095; /* Matching burgundy */
    }
    
    /* ヒーローセクションの背景をライトモードと同じに統一 - 詳細度を上げる */
    #home.hero-section.full-width {
        background: linear-gradient(135deg, #001b4d 0%, #0047AB 100%) !important;
    }
    
    .hero-section.full-width {
        background: linear-gradient(135deg, #001b4d 0%, #0047AB 100%) !important;
    }
    
    /* ヒーローオーバーレイも同様に統一 */
    .hero-section .hero-overlay {
        background: linear-gradient(135deg, 
            rgba(0, 35, 102, 0.9) 0%, 
            rgba(0, 71, 171, 0.7) 50%, 
            rgba(226, 38, 65, 0.4) 100%) !important;
    }
    
    #home .hero-overlay {
        background: linear-gradient(135deg, 
            rgba(0, 35, 102, 0.9) 0%, 
            rgba(0, 71, 171, 0.7) 50%, 
            rgba(226, 38, 65, 0.4) 100%) !important;
    }
    
    /* ヒーローデコレーション部分もライトモードと同じに統一 */
    .hero-decor {
        background: linear-gradient(to bottom, #002366, transparent) !important;
    }
    
    header {
        background-color: #002366 !important;
    }
    
    header.scrolled {
        background-color: rgba(0, 35, 102, 0.95) !important;
    }
    
    .footer {
        background-color: #002366 !important;
    }
    
    /* ダークモード時のモバイルメニュー背景色を指定 */
    @media (max-width: 768px) {
        nav {
            background: #002366 !important;
        }
        
        #primary-navigation {
            background: #002366 !important;
        }
        
        nav.active {
            background: #002366 !important;
        }
        
        #primary-navigation.active {
            background: #002366 !important;
        }
    }
    
    .vision-statement p::first-letter {
    color: #FF8080; /* ダークモード時は統一された明るい赤色に */
	}
    
    .high-contrast-text {
        color: #000000 !important; /* Force black text even in dark mode */
    font-weight: 600 !important; /* より太く、コントラスト向上 */
    text-shadow: none !important;
    }
    
    /* ダークモード時のホバー状態の改善 */
    .nav-link:hover, .nav-link:focus, 
    .footer-nav a:hover, .footer-nav a:focus {
        color: #FFFFFF !important; /* 白色で7:1以上のコントラスト比を確保 */
    }
    
    .achievement-item ul {
        color: #000000; /* リストマーカーを黒に */
    }
    
    /* Image source用のスタイル - 特定のURLのみ高コントラスト */
    .image-source a[href="https://flic.kr/p/2pUBAcm"],
.image-source a[href="https://flic.kr/p/2oDXqUN"], 
.image-source a[href="https://flic.kr/p/2pUzqMc"],
.image-source a[href="https://flic.kr/p/2pU8J99"] {
    color: #002366 !important; /* 7:1以上のコントラスト比を確保する濃い青色 */
    font-weight: normal !important; /* 通常のフォントウェイト */
    text-shadow: none !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important; /* 通常の下線の太さ */
    text-decoration-color: #002366 !important;
    text-underline-offset: 2px !important;
    text-decoration-skip-ink: auto !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    filter: none !important; /* フィルター効果を削除 */
}

.image-source a[href="https://flic.kr/p/2pUBAcm"]:hover,
.image-source a[href="https://flic.kr/p/2oDXqUN"]:hover,
.image-source a[href="https://flic.kr/p/2pUzqMc"]:hover,
.image-source a[href="https://flic.kr/p/2pU8J99"]:hover {
    color: #001a4d !important; /* ホバー時はさらに濃い青色 */
    text-shadow: none !important;
    text-decoration-thickness: 1px !important; /* 通常の下線の太さ */
    text-decoration-color: #001a4d !important;
    text-decoration-skip-ink: auto !important;
    background-color: transparent !important;
    filter: none !important; /* フィルター効果を削除 */
}

.image-source a[href="https://flic.kr/p/2pUBAcm"]:focus,
.image-source a[href="https://flic.kr/p/2oDXqUN"]:focus,
.image-source a[href="https://flic.kr/p/2pUzqMc"]:focus,
.image-source a[href="https://flic.kr/p/2pU8J99"]:focus {
    outline: 2px solid #002366 !important; /* フォーカス時のアウトラインも同系色 */
    outline-offset: 2px !important;
    color: #002366 !important;
    text-shadow: none !important;
    text-decoration-color: #002366 !important;
    text-decoration-skip-ink: auto !important;
    background-color: transparent !important;
    filter: none !important; /* フィルター効果を削除 */
}
    
    /* 他の画像ソースリンクは従来通り */
    .image-source {
        color: #000000 !important; /* ダークモードでも黒字に */
        display: inline-block !important;
        padding: 2px 4px !important;
    }
    
    .image-source a:not([href="https://flic.kr/p/2pUBAcm"]):not([href="https://flic.kr/p/2oDXqUN"]):not([href="https://flic.kr/p/2pUzqMc"]):not([href="https://flic.kr/p/2pU8J99"]) {
        color: #000066 !important; /* 他のリンクは暗い色のまま */
    }
    
     /* Dark mode PDF indicator */
    [data-download-type="PDF"]::after {
        background-color: #1AA7FF; /* 明るい青 */
        color: #000000; /* 黒テキスト */
    }
    
    /* コントラスト比をさらに向上させるための追加設定 */
   .commitment-icon-title,
.section-title,
.commitment-title-main,
.commitment-card h3 {
    color: #FF8080; /* 統一された明るい赤色 */
    font-weight: 700; /* 太字にして視認性をさらに向上 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* シャドウを追加して可読性向上 */
}

.achievement-item h3::before {
        background-color: #740000; /* 暗い赤色に直接指定 */
    }
    
.achievement-item h3 {
    color: #740000 !important; /* ダークモード時は赤色 */
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* ダークモード時のachievement item内のstrongタグの色を変更 */
.achievement-item li strong {
    color: #002366 !important; /* ダークモード時は濃い青色 */
}
    
    /* 背景が暗いときのコンテンツの可読性向上 */
    .download-text, .download-size {
        color: #FFFFFF; /* 明るい背景では暗く、暗い背景では明るく */
    }
    
    .download-size::before {
        background-color: #4DB5FF; /* より明るい青色 */
    }
    
    /* ダークモードでの背景要素のコントラスト向上 */
    .content-section::before,
    .content-section::after,
    .vision-section::before,
    .vision-section::after,
    .commitment-section::before,
    .commitment-section::after,
    .cv-section::before,
    .cv-section::after {
        opacity: 0.05; /* 不透明度を上げて視認性向上 */
    }
    
    /* Base styles */
    body {
        background-color: var(--off-white);
        color: var(--dark-gray);
    }
    
    /* Improved contrast for sections */
    .vision-section,
    .download-section,
    .commitment-section,
    .cv-section {
        background-color: #161616; /* Slightly lighter than the body background */
    }
    
    /* Container backgrounds */
    .topic-card, 
    .commitment-box, 
    .cv-container,
    .key-achievements-section,
    .timeline-content,
    .commitment-content-area {
        background-color: var(--light-gray);
        color: var(--dark-gray);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* Enhanced shadow for depth */
    }
    
    /* ダークモードでの実績項目のグラデーション背景を薄く調整 */
/* ダークモード時の実績項目のグラデーション背景を薄く調整 */
.achievement-item {
background: linear-gradient(to right, rgba(255, 255, 255, 1.1), rgba(255, 255, 255, 0.7)) !important;
border-radius: 0 8px 8px 0;
padding: 1.5rem 1.5rem 1.5rem 2rem;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
color: var(--dark-gray); /* テキスト色は白色を維持 */
}
    
.achievement-item:hover {
background: linear-gradient(to right, rgba(255, 255, 255, 1.2), rgba(248, 248, 255, 1.1)) !important;
transform: translateX(8px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
    
    /* Headers in dark mode */
    h1, h2, h3, h4, h5, h6 {
        color: #FFFFFF;
    }
    
    /* Keep the red colors consistent but brighter for better readability */
    .section-title,
    .commitment-title-main,
    .commitment-card h3,
    .achievement-item h3 {
        color: #FF8080; /* より明るく、高コントラストな赤色 */
    }
    
    /* フォーカス表示の改善 */
    a:focus, button:focus, .commitment-icon:focus {
        outline: 3px solid #4DB5FF !important; /* 明るい青でより目立つ */
        outline-offset: 4px !important;
    }
    
    .commitment-icon::before {
        background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    }
    
    .commitment-icon::after {
        border: 1px dashed rgba(255, 255, 255, 0.3);
    }
    
    .commitment-icon-item:hover .commitment-icon::before {
        background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
        opacity: 1;
        transform: scale(1.3);
    }
    
    .commitment-icon-item:hover .commitment-icon::after {
        border: 1px dashed rgba(255, 255, 255, 0.5);
        opacity: 1;
        transform: scale(1.2) rotate(15deg);
    }
    
    /* フォーカス時の追加効果 */
    .commitment-icon-item .commitment-icon:focus::before {
        background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
        opacity: 1;
        transform: scale(1.4);
    }
    
    .commitment-icon-item .commitment-icon:focus::after {
        border: 2px dashed rgba(255, 255, 255, 0.6);
        opacity: 1;
        transform: scale(1.3) rotate(15deg);
    }
    
    /* アイコン画像自体のフィルターも調整 */
    .commitment-icon-item:hover .commitment-icon img {
        filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.2)) brightness(1.1);
        transform: scale(1.05);
    }
    
    .commitment-icon-item .commitment-icon:focus img {
        filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3)) brightness(1.15);
        transform: scale(1.08);
    }
    
    /* Specific elements that need contrast improvement */
    .cv-info-title,
    .cv-category-title,
    #professional-experience-title,
    #education-title,
    #awards-title {
        color: #4DB5FF; /* Use light blue for these titles */
        border-color: #4DB5FF; /* Match border color */
    }
    
    #professional-experience-title::after,
    #education-title::after,
    #awards-title::after {
        background-color: #4DB5FF;
    }
    
    /* Timeline elements */
    .timeline-year {
    color: #60BFFF; /* より明るく、高コントラスト */
	}
    
    .timeline-year::after {
    color: #60BFFF;
	}
    
    .cv-category::after {
    background-color: #60BFFF;
	}
	
	/* タイムラインコンテンツのコントラスト改善 */
	.timeline-content h4,
	.timeline-content p {
    	color: #FFFFFF; /* 完全な白でコントラスト最大化 */
	}
    
    /* Download items with better contrast */
    .download-item {
        background-color: #2A2A2A;
        margin-bottom: 0.5rem; /* ライトモードと同じマージンを維持 */
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* ライトモードと同じトランジション */
        position: relative;
        overflow: hidden;
    }
    
    .download-link {
        display: flex; /* ライトモードと同じdisplay */
        align-items: center; /* ライトモードと同じalign-items */
        padding: 0.9rem 1.25rem; /* ライトモードと同じパディング */
        border-radius: 8px; /* ライトモードと同じボーダー半径 */
        background-color: #2A2A2A;
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #FFFFFF;
        font-weight: 500; /* ライトモードと同じフォントウェイト */
        position: relative; /* ライトモードと同じポジション */
        transition: all 0.3s ease; /* ライトモードと同じトランジション */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        min-height: 48px;
        height: auto;
        width: 100%; /* 確実に親要素の幅いっぱいに */
        box-sizing: border-box; /* パディングを含めた幅計算 */
        justify-content: flex-start; /* ライトモードと同じ配置 */
    }
    
    .download-link:hover {
        background-color: #363636;
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); /* ライトモードと同様のホバー効果 */
        transform: translateY(-2px); /* ライトモードと同様のホバー効果 */
    }
    
    .download-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 0;
        background: linear-gradient(to bottom, var(--navy-blue), var(--burgundy));
        transition: height 0.3s ease;
        border-radius: 4px 0 0 4px;
    }
    
    .download-link:hover::before {
        height: 100%;
    }
    
    .download-icon {
        flex: 0 0 auto; /* ライトモードと同じflex設定 */
        margin-right: 14px; /* ライトモードと同じマージン */
        color: #4DB5FF;
        opacity: 0.8; /* ライトモードと同じ不透明度 */
        transition: all 0.3s ease; /* ライトモードと同じトランジション */
    }
    
    .download-link:hover .download-icon {
        opacity: 1;
        transform: scale(1.1);
        color: var(--burgundy);
    }
    
    .download-content {
        flex: 1; /* ライトモードと同じflex設定 */
        display: flex; /* ライトモードと同じdisplay */
        flex-direction: column; /* ライトモードと同じflex-direction */
        align-items: flex-start; /* ライトモードと同じalign-items */
        justify-content: center; /* ライトモードと同じjustify-content */
    }
    
    .download-text {
        font-size: 0.95rem; /* ライトモードと同じフォントサイズ */
        font-weight: 600; /* ライトモードと同じフォントウェイト */
        margin-bottom: 4px; /* ライトモードと同じマージン */
        color: #FFFFFF;
        transition: color 0.3s ease; /* ライトモードと同じトランジション */
        letter-spacing: 0.5px; /* ライトモードと同じレタースペーシング */
    }
    
    .download-link:hover .download-text {
        color: var(--burgundy);
    }
    
    .download-size {
        font-size: 0.75rem; /* ライトモードと同じフォントサイズ */
        color: #CCCCCC;
        font-weight: 500; /* ライトモードと同じフォントウェイト */
        opacity: 1; /* ライトモードと同じ不透明度 */
        display: flex; /* ライトモードと同じdisplay */
        align-items: center; /* ライトモードと同じalign-items */
        width: 100%; /* ライトモードと同じ幅 */
        white-space: nowrap; /* ライトモードと同じホワイトスペース設定 */
    }
    
    .download-size::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        background-color: var(--light-blue);
        border-radius: 50%;
        margin-right: 5px;
        opacity: 0.8;
    }
    
    .download-arrow {
        flex: 0 0 auto; /* ライトモードと同じflex設定 */
        margin-left: auto; /* ライトモードと同じマージン */
        color: #FFFFFF;
        opacity: 0.5; /* ライトモードと同じ不透明度 */
        transform: rotate(-90deg); /* ライトモードと同じ回転 */
        transition: all 0.3s ease; /* ライトモードと同じトランジション */
    }
    
    .download-link:hover .download-arrow {
        opacity: 1;
        transform: rotate(0);
        color: var(--burgundy);
    }
    
    /* ダウンロードコンテナのグリッドサイズを維持 */
    .download-container {
        display: grid; /* ライトモードと同じdisplay */
        grid-template-columns: repeat(3, 1fr); /* ライトモードと同じグリッド設定 */
        gap: 16px; /* ライトモードと同じギャップ */
        margin: 0 auto; /* ライトモードと同じマージン */
        max-width: 1000px; /* ライトモードと同じ最大幅 */
        width: 100%; /* 幅を確保 */
    }
    
    @media (max-width: 650px) {
        .download-container {
            grid-template-columns: 1fr;
            max-width: 400px;
        }
    }
    
    .download-item a {
        color: #4DB5FF;
    }
    
    .download-item:hover {
        background-color: #363636;
    }
    
    .achievement-item.animated {
    	animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
	
    
    	/* ダークモード時のフォーカス状態 */
    	input:focus,
    	select:focus,
    	textarea:focus,
    	button:focus,
    	[role="button"]:focus,
    	a:focus {
        	outline: 3px solid #4DB5FF; /* より明るい青色でダークモード時のコントラスト比向上 */
    	}
    
    	input:focus-visible,
    	select:focus-visible,
    	textarea:focus-visible,
    	button:focus-visible,
    	[role="button"]:focus-visible,
    	a:focus-visible {
        	outline: 3px solid #4DB5FF;
    	}
	}

@media (forced-colors: active) {
    /* 強制カラーモード（ハイコントラストモード）のサポート */
    :root {
        --navy-blue: CanvasText;
        --burgundy: CanvasText;
        --deep-burgundy: CanvasText;
        --gold: CanvasText;
        --dark-gray: CanvasText;
        --charcoal: CanvasText;
        --light-blue: CanvasText;
        --accent-red: CanvasText;
    }
    
    /* ボーダーとアウトラインを確実に表示 */
    a, button, input, select, textarea, [role="button"] {
        border: 1px solid transparent !important;
    }
    
    /* フォーカス表示の強化 */
    a:focus, button:focus, input:focus, select:focus, textarea:focus, [role="button"]:focus,
    .commitment-icon:focus, .cv-photo:focus {
        outline: 2px solid CanvasText !important;
        outline-offset: 4px !important;
        border: 1px solid CanvasText !important;
    }
    
    /* 画像ボーダーを確実に表示 */
    img {
        border: 1px solid transparent;
    }
    
    img:focus, img:hover {
        border-color: CanvasText !important;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.particle-canvas {
    opacity: 0.3;
    animation: fadeIn 2s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.3; }
}

    
    /* Images and photos need a subtle border in dark mode */
    .achievement-photo,
    .cv-photo,
    .hero-photo,
    .image-link {
        border: 1px solid #444444;
    }
    
    /* Commitment section specific improvements */
    .commitment-main-header {
    background-color: rgba(45, 45, 45, 0.9); /* Darker overlay */
}

.commitment-main-header::before {
    background-color: rgba(20, 20, 20, 0.8); /* Even darker for better readability */
}

/* ダークモード時のCommitment Icon Titlesを確実に統一 */
.commitment-icon-title {
    color: #FF8080 !important; /* 統一された明るい赤色で確実に適用 */
}

/* 個別のCommitment Icon Titlesも確実に適用 */
h3.commitment-icon-title,
h4.commitment-icon-title {
    color: #FF8080 !important; /* 統一された明るい赤色で確実に適用 */
}
    
    .commitment-text-item {
        color: #E0E0E0; /* Lighter text */
    }
    
    .commitment-arrow {
        color: #FF3A54; /* Brighter red arrow */
    }
    
    .commitment-divider {
        background-color: #FF3A54;
    }
    
    /* キーボードフォーカス用のスタイル */
.keyboard-focus {
    outline: 3px solid #0056B3 !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8) !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important; /* 下線とテキストの間隔を増やす */
    background-color: rgba(0, 86, 179, 0.1) !important; /* 背景色を微妙に変化させて強調 */
}

/* タッチターゲットサイズの改善 */
.nav-link, .download-link, .social-icon, 
button, [role="button"], a[href]:not(.skip-to-content), 
input, select, textarea, .commitment-icon {
    min-height: 48px; /* AAA対応で48pxに変更 */
    min-width: 48px; /* AAA対応で48pxに変更 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px; /* 適切なパディングを確保 */
    margin: 4px 0; /* 適切な間隔を確保 */
}

/* モバイルでのタッチターゲット間隔を確保 */
@media (max-width: 768px) {
    .download-item, .commitment-icon-item, .footer-nav li, .social-icons a {
        margin: 0.5rem 0;
    }
    
    .social-icons {
        gap: 1.5rem;
    }
}
   
    /* JavaScript無効時のスタイル */
.no-js .fade-in,
.no-js .slide-in-left,
.no-js .slide-in-right,
.no-js .fade-up {
    opacity: 1;
    transform: none;
}

.no-js .download-link-initial {
    opacity: 1;
    transform: none;
}

/* タッチデバイス用の追加スタイル */
.touch-active {
    transform: translateY(-2px) !important;
    background-color: white !important;
    border-color: rgba(0, 35, 102, 0.15) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.15s ease !important;
}

/* モバイル専用のダウンロードリンクスタイル */
@media (max-width: 768px) {
    .download-link {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        position: relative;
        overflow: hidden;
        transition: all 0.15s ease;
    }
    
    /* モバイルでのホバー効果模倣 */
    .download-link.touch-active {
        background-color: white !important;
        border-color: rgba(0, 35, 102, 0.15) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
    }
    
    /* タッチ時のアイコンとアローのアニメーション */
    .download-link.touch-active .download-icon {
        transform: scale(1.1) !important;
        color: var(--burgundy) !important;
        opacity: 1 !important;
        transition: all 0.15s ease !important;
    }
    
    .download-link.touch-active .download-arrow {
        transform: rotate(0) !important;
        color: var(--burgundy) !important;
        opacity: 1 !important;
        transition: all 0.15s ease !important;
    }
    
    .download-link.touch-active .download-text {
        color: var(--burgundy) !important;
        transition: color 0.15s ease !important;
    }
    
    /* 左側のボーダーアニメーション */
    .download-link.touch-active::before {
        height: 100% !important;
    }
    
    /* タッチフィードバック用のリップル効果 */
    .download-link::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(0, 35, 102, 0.1);
        transform: translate(-50%, -50%);
        transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
        pointer-events: none;
        z-index: 1;
        opacity: 0;
    }
    
    .download-link.touch-active::after {
        width: 80px;
        height: 80px;
        opacity: 0.8;
    }
    
    /* ダークモード対応 */
    @media (prefers-color-scheme: dark) {
        .download-link.touch-active {
            background-color: #363636 !important;
            border-color: rgba(255, 255, 255, 0.2) !important;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
        }
        
        .download-link.touch-active .download-text {
            color: var(--burgundy) !important;
        }
        
        .download-link.touch-active::after {
            background: rgba(255, 255, 255, 0.1);
        }
    }
}

/* タッチデバイスでのフィードバック改善 */
@media (hover: none) and (pointer: coarse) {
    .download-link:active {
        background-color: white;
        border-color: rgba(0, 35, 102, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        transition: all 0.15s ease;
    }
    
    .download-link:active .download-icon {
        transform: scale(1.1);
        color: var(--burgundy);
        opacity: 1;
    }
    
    .download-link:active .download-arrow {
        transform: rotate(0);
        color: var(--burgundy);
        opacity: 1;
    }
    
    .download-link:active .download-text {
        color: var(--burgundy);
    }
    
    .commitment-icon:active,
    .achievement-item:active {
        background-color: rgba(0, 35, 102, 0.05);
        transition: all 0.15s ease;
    }
}