/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本スタイル */
body {
    font-family: 'Hiragino Sans', 'Noto Sans JP', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1818;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* ヘッダー */
header {
    background: linear-gradient(135deg, #ffd3e1 0%, #ffe4d6 100%);
    color: white;
    text-align: center;
    padding: 2rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

/* ナビゲーション */
.navigation {
    margin-top: 2rem;
}

.navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.navigation li {
    margin: 0;
}

.navigation a {
    color: #333;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
    min-height: 44px; /* iOS Human Interface Guidelinesに準拠 */
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation; /* ダブルタップズーム無効化 */
}

.navigation a:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 154, 158, 0.3);
    border-color: #ff9a9e;
}

.navigation a.active {
    background: #ff9a9e;
    color: white;
    border-color: #ff9a9e;
}

.navigation a.active:hover {
    background: #ffa8cc;
    border-color: #ffa8cc;
}

/* メインコンテンツ */
main {
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
}

/* 丸くて可愛いメニューグリッド */
.navigation-section {
    text-align: center;
    padding: 2rem 0;
}

.navigation-section h2 {
    font-size: 2rem;
    color: #8B4B8B;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* 旅行マップセクション */
.travel-map-section {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8e8 100%);
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.15);
}

.travel-map-section h2 {
    font-size: 2.5rem;
    color: #8B4B8B;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.map-description {
    font-size: 1.2rem;
    color: #e8839b;
    margin-bottom: 2.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.world-map {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* 世界地図背景 */
.map-background {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, 
        #e6f3ff 0%, 
        #cce7ff 30%, 
        #b3daff 60%, 
        #99ccff 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(153, 204, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* 大陸の輪郭 */
.continent {
    position: absolute;
    border-radius: 10px;
    opacity: 0.6;
}

.asia-continent {
    top: 20%;
    left: 55%;
    width: 35%;
    height: 50%;
    background: linear-gradient(135deg, #f5d795 0%, #e6b85c 100%);
    clip-path: polygon(0% 0%, 80% 0%, 100% 30%, 90% 80%, 60% 100%, 20% 90%, 0% 60%);
}

.europe-continent {
    top: 10%;
    left: 45%;
    width: 15%;
    height: 25%;
    background: linear-gradient(135deg, #f4c2a1 0%, #e09c6f 100%);
    clip-path: polygon(0% 20%, 70% 0%, 100% 40%, 80% 100%, 20% 90%);
}

.africa-continent {
    top: 30%;
    left: 40%;
    width: 20%;
    height: 40%;
    background: linear-gradient(135deg, #f5b7c8 0%, #e8839b 100%);
    clip-path: polygon(30% 0%, 70% 0%, 90% 30%, 100% 80%, 70% 100%, 20% 90%, 0% 60%, 10% 20%);
}

.australia-continent {
    top: 70%;
    left: 70%;
    width: 15%;
    height: 15%;
    background: linear-gradient(135deg, #e8c5d4 0%, #d8a3b8 100%);
    border-radius: 50%;
}

.america-continent {
    top: 15%;
    left: 10%;
    width: 25%;
    height: 60%;
    background: linear-gradient(135deg, #f5e6a3 0%, #e6cc5c 100%);
    clip-path: polygon(0% 10%, 40% 0%, 60% 20%, 80% 0%, 100% 15%, 90% 40%, 100% 70%, 70% 100%, 30% 90%, 0% 80%, 10% 50%);
}

/* マップピン */
.map-pin {
    position: absolute;
    z-index: 10;
    cursor: pointer;
    transform: translateX(-50%) translateY(-100%);
}

.pin-marker {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 182, 193, 0.8) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 3px solid white;
    animation: bounce 2s infinite;
}

.pin-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* ピンのツールチップ */
.pin-tooltip {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 182, 193, 0.3);
}

.pin-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.95);
}

.map-pin:hover .pin-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.pin-tooltip h4 {
    color: #8B4B8B;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pin-tooltip p {
    color: #e8839b;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.pin-tooltip a {
    color: #ff9a9e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    background: rgba(255, 154, 158, 0.1);
    transition: all 0.3s ease;
}

.pin-tooltip a:hover {
    background: rgba(255, 154, 158, 0.2);
    transform: scale(1.05);
}

/* 特定のピンの色分け */
.hokkaido-pin .pin-marker {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(173, 216, 230, 0.8) 100%);
}

.okinawa-pin .pin-marker {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 192, 203, 0.8) 100%);
}

.korea-pin .pin-marker {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(244, 194, 161, 0.8) 100%);
}

.thailand-pin .pin-marker {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(245, 215, 149, 0.8) 100%);
}

.travel-stats {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
    min-width: 100px;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #8B4B8B;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #e8839b;
    font-weight: 500;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.menu-item {
    background: linear-gradient(135deg, #ffd3e1 0%, #ffa8cc 100%);
    border-radius: 25px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 168, 204, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-item:nth-child(2) {
    background: linear-gradient(135deg, #ffe4d6 0%, #ffb4a2 100%);
    box-shadow: 0 8px 25px rgba(255, 180, 162, 0.3);
}

.menu-item:nth-child(3) {
    background: linear-gradient(135deg, #fff2d1 0%, #ffcc8e 100%);
    box-shadow: 0 8px 25px rgba(255, 204, 142, 0.3);
}

.menu-item:nth-child(4) {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    box-shadow: 0 8px 25px rgba(248, 187, 217, 0.3);
}

.menu-item:nth-child(5) {
    background: linear-gradient(135deg, #fff8e1 0%, #ffd54f 100%);
    box-shadow: 0 8px 25px rgba(255, 213, 79, 0.3);
}

.menu-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.menu-item h3 a {
    color: white;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.menu-item h3 a:hover {
    transform: scale(1.1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.menu-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }
    
    .menu-item {
        min-height: 150px;
        padding: 1.5rem;
    }
    
    .menu-item h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .navigation-section h2 {
        font-size: 1.5rem;
    }
    
    .menu-item {
        min-height: 120px;
        padding: 1rem;
    }
    
    .menu-item h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .menu-item p {
        font-size: 0.9rem;
    }
}

section h2 {
    color: #8B4B8B;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

/* ウェルカムセクション */
.welcome-section {
    text-align: center;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.2);
}

.welcome-content h2 {
    font-size: 3rem;
    color: #8B4B8B;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(139, 75, 139, 0.15);
}

.welcome-content p {
    font-size: 1.8rem;
    color: #e8839b;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 1px 5px rgba(232, 131, 155, 0.2);
}

/* プロフィールセクション */
.profile-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-image {
    flex: 0 0 200px;
}

.profile-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #f5b7c8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.profile-info p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.profile-info strong {
    color: #8B4B8B;
    display: inline-block;
    width: 80px;
}
/* 自己紹介セクション */
.about-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: justify;
}

/* スキルセクション */
.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skills-list li {
    background: linear-gradient(135deg, #ffd3e1 0%, #ffa8cc 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 168, 204, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skills-list li:nth-child(2n) {
    background: linear-gradient(135deg, #ffe4d6 0%, #ffb4a2 100%);
    box-shadow: 0 4px 15px rgba(255, 180, 162, 0.3);
}

.skills-list li:nth-child(3n) {
    background: linear-gradient(135deg, #fff2d1 0%, #ffcc8e 100%);
    box-shadow: 0 4px 15px rgba(255, 204, 142, 0.3);
}

.skills-list li:nth-child(4n) {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    box-shadow: 0 4px 15px rgba(248, 187, 217, 0.3);
}

.skills-list li:nth-child(5n) {
    background: linear-gradient(135deg, #fff8e1 0%, #ffd54f 100%);
    box-shadow: 0 4px 15px rgba(255, 213, 79, 0.3);
}

.skills-list li:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.skills-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skills-list li:hover::before {
    opacity: 1;
}

/* 連絡先セクション */
.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: #8B4B8B;
    display: inline-block;
    width: 80px;
}

/* フッター */
footer {
    background: linear-gradient(135deg, #f5b7c8 0%, #e8839b 100%);
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* プロフィール画像プレースホルダー */
.profile-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #99d6f9 0%, #f7c6bd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    border: 4px solid #010101;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ===== アニメーション ===== */

/* キーフレーム定義 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* アニメーションクラス */
.animate-container {
    animation: fadeInUp 0.8s ease-out;
}

.animate-header {
    animation: slideInDown 1s ease-out 0.2s both;
}

.animate-image {
    animation: bounceIn 1.2s ease-out 0.6s both;
}

.animate-info {
    animation: fadeInRight 0.8s ease-out 0.8s both;
}

.animate-profile {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.animate-about {
    animation: fadeInLeft 0.8s ease-out 1s both;
}

.animate-skills {
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.animate-contact {
    animation: fadeInRight 0.8s ease-out 1.4s both;
}

.animate-footer {
    animation: fadeInUp 0.8s ease-out 1.6s both;
}

/* スキルタグの個別アニメーション */
.skills-list li {
    animation: fadeInScale 0.6s ease-out both;
}

.skills-list li:nth-child(1) { animation-delay: 1.4s; }
.skills-list li:nth-child(2) { animation-delay: 1.5s; }
.skills-list li:nth-child(3) { animation-delay: 1.6s; }
.skills-list li:nth-child(4) { animation-delay: 1.7s; }
.skills-list li:nth-child(5) { animation-delay: 1.8s; }

/* ホバーアニメーション */
.profile-placeholder {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-placeholder:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.skills-list li {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-list li:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

section h2 {
    transition: color 0.3s ease;
}

section h2:hover {
    color: #764ba2;
}

/* プロフィール情報のタイピングエフェクト風 */
.profile-info p {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out both;
}

.profile-info p:nth-child(2) { animation-delay: 1s; }
.profile-info p:nth-child(3) { animation-delay: 1.1s; }
.profile-info p:nth-child(4) { animation-delay: 1.2s; }
.profile-info p:nth-child(5) { animation-delay: 1.3s; }

/* パルスエフェクト（ヘッダータイトル用） */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

header h1 {
    animation: slideInDown 1s ease-out 0.2s both, pulse 3s ease-in-out 2s infinite;
}

/* フェードイン効果の改善 */
.animate-about p {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out both;
}

.animate-about p:nth-child(2) { animation-delay: 1.2s; }
.animate-about p:nth-child(3) { animation-delay: 1.4s; }

/* コンタクト情報のアニメーション */
.contact-info p {
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out both;
}

.contact-info p:nth-child(1) { animation-delay: 1.6s; }
.contact-info p:nth-child(2) { animation-delay: 1.7s; }

/* レスポンシブデザイン */

/* タブレット・中サイズ画面 (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
        margin: 15px auto;
    }
    
    .navigation ul {
        gap: 1.2rem;
        flex-wrap: wrap;
    }
    
    .navigation a {
        padding: 0.7rem 1.1rem;
        font-size: 0.85rem;
    }
    
    .profile-section {
        gap: 1.5rem;
    }
    
    .profile-info {
        min-width: 250px;
    }
}

/* タブレット・小さい画面 (768px以下) */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 5px;
        max-width: calc(100% - 20px);
    }
    
    header {
        padding: 1.8rem 1rem;
    }
    
    header h1 {
        font-size: 2.2rem;
        letter-spacing: 1.5px;
    }
    
    .navigation ul {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .navigation a {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    main {
        padding: 1.5rem;
    }
    
    section {
        margin-bottom: 2.5rem;
    }
    
    section h2 {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
    
    /* ウェルカムセクションのタブレット対応 */
    .welcome-section {
        padding: 2.5rem 1.5rem;
    }
    
    .welcome-content h2 {
        font-size: 2.5rem;
    }
    
    .welcome-content p {
        font-size: 1.5rem;
    }
    
    /* 旅行マップのタブレット対応 */
    .world-map {
        padding: 1rem;
    }
    
    .map-background {
        height: 400px;
    }
    
    .pin-marker {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .pin-tooltip {
        min-width: 150px;
        top: -100px;
    }
    
    .travel-stats {
        gap: 1.5rem;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-image {
        flex: none;
        align-self: center;
    }
    
    .profile-placeholder {
        width: 180px;
        height: 180px;
        font-size: 1.1rem;
    }
    
    .profile-info {
        min-width: auto;
        text-align: left;
    }
    
    .profile-info p {
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }
    
    .profile-info strong,
    .contact-info strong {
        width: auto;
        display: block;
        margin-bottom: 0.3rem;
        font-weight: 600;
    }
    
    .about-section p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }
    
    .skills-list {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .skills-list li {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .contact-info p {
        font-size: 1rem;
    }
    
    /* アニメーション時間短縮（モバイル用） */
    .animate-container,
    .animate-header,
    .animate-profile,
    .animate-about,
    .animate-skills,
    .animate-contact,
    .animate-footer {
        animation-duration: 0.6s;
    }
    
    .skills-list li,
    .profile-info p,
    .animate-about p,
    .contact-info p {
        animation-duration: 0.4s;
    }
}

/* スマートフォン・小画面 (480px以下) */
@media (max-width: 480px) {
    .container {
        margin: 5px;
        border-radius: 0;
        box-shadow: none;
    }
    
    header {
        padding: 1.5rem 0.8rem;
    }
    
    header h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .navigation a {
        width: 100%;
        max-width: 200px;
        text-align: center;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    main {
        padding: 1rem;
    }
    
    section {
        margin-bottom: 2rem;
    }
    
    /* ウェルカムセクションのレスポンシブ */
    .welcome-section {
        padding: 2rem 1rem;
    }
    
    .welcome-content h2 {
        font-size: 2rem;
    }
    
    .welcome-content p {
        font-size: 1.3rem;
    }
    
    /* 旅行マップのスマートフォン対応 */
    .travel-map-section {
        padding: 1.5rem 1rem;
    }
    
    .travel-map-section h2 {
        font-size: 2rem;
    }
    
    .map-description {
        font-size: 1rem;
    }
    
    .world-map {
        padding: 0.5rem;
    }
    
    .map-background {
        height: 300px;
    }
    
    .pin-marker {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .pin-tooltip {
        min-width: 130px;
        top: -90px;
        padding: 0.8rem;
    }
    
    .pin-tooltip h4 {
        font-size: 1rem;
    }
    
    .pin-tooltip p {
        font-size: 0.8rem;
    }
    
    .pin-tooltip a {
        font-size: 0.8rem;
    }
    
    .travel-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    section h2 {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .profile-placeholder {
        width: 150px;
        height: 150px;
        font-size: 1rem;
    }
    
    .profile-info p {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .about-section {
        text-align: center;
    }
    
    .about-section p {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: justify;
        margin-bottom: 0.8rem;
    }
    
    .skills-list {
        justify-content: center;
        gap: 0.6rem;
    }
    
    .skills-list li {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info p {
        font-size: 0.95rem;
    }
    
    footer {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* 超小画面・古いスマートフォン (360px以下) */
@media (max-width: 360px) {
    header h1 {
        font-size: 1.6rem;
    }
    
    .navigation a {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    main {
        padding: 0.8rem;
    }
    
    section h2 {
        font-size: 1.3rem;
    }
    
    .profile-placeholder {
        width: 130px;
        height: 130px;
        font-size: 0.9rem;
    }
    
    .profile-info p,
    .about-section p,
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .skills-list li {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }
}

/* 大画面・デスクトップ (1200px以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 900px;
    }
    
    header {
        padding: 2.5rem;
    }
    
    header h1 {
        font-size: 3rem;
        letter-spacing: 3px;
    }
    
    .navigation ul {
        gap: 2rem;
    }
    
    .navigation a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    main {
        padding: 2.5rem;
    }
    
    section h2 {
        font-size: 2.2rem;
    }
    
    .profile-section {
        gap: 3rem;
    }
    
    .profile-placeholder {
        width: 220px;
        height: 220px;
        font-size: 1.3rem;
    }
    
    .profile-info p {
        font-size: 1.2rem;
    }
    
    .about-section p {
        font-size: 1.2rem;
        line-height: 1.8;
    }
    
    .skills-list {
        gap: 1.2rem;
    }
    
    .skills-list li {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }
    
    .contact-info p {
        font-size: 1.2rem;
    }
}

/* タッチデバイス対応とアクセシビリティ */

/* タッチ操作しやすいボタンサイズ */
.navigation a {
    min-height: 44px; /* iOS Human Interface Guidelinesに準拠 */
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation; /* ダブルタップズーム無効化 */
}

/* タッチデバイスでのホバー効果を調整 */
@media (hover: hover) {
    .navigation a:hover {
        background: rgba(255, 255, 255, 1);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        border-color: #f5b7c8;
    }
    
    .profile-placeholder:hover {
        transform: scale(1.05) rotate(5deg);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
    
    .skills-list li:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    }
    
    section h2:hover {
        color: #764ba2;
    }
}

/* タッチデバイス専用スタイル */
@media (hover: none) {
    .navigation a:active {
        background: rgba(255, 255, 255, 1);
        transform: scale(0.95);
    }
    
    .skills-list li:active {
        transform: scale(0.95);
    }
    
    .profile-placeholder:active {
        transform: scale(0.95);
    }
}

/* フォーカス表示の改善（キーボードナビゲーション対応） */
.navigation a:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* スクロールの改善 */
html {
    scroll-behavior: smooth;
}

/* 画像の最適化 */
img {
    max-width: 100%;
    height: auto;
}

/* テキストの可読性向上 */
body {
    -webkit-text-size-adjust: 100%; /* iOSでのテキストサイズ自動調整を防ぐ */
    text-size-adjust: 100%;
}

/* 横向き表示時の対応 */
@media (orientation: landscape) and (max-height: 500px) {
    header {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .navigation ul {
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .navigation a {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-height: 36px;
    }
    
    main {
        padding: 1rem;
    }
    
    .profile-section {
        flex-direction: row;
        align-items: center;
    }
    
    .profile-placeholder {
        width: 120px;
        height: 120px;
    }
}

/* プリント時の最適化 */
@media print {
    .navigation,
    .animate-container,
    .animate-header,
    .animate-profile,
    .animate-about,
    .animate-skills,
    .animate-contact,
    .animate-footer {
        animation: none !important;
    }
    
    .container {
        box-shadow: none;
        margin: 0;
        border-radius: 0;
    }
    
    header {
        background: none !important;
        color: #000;
    }
    
    .navigation {
        display: none;
    }
    
    .profile-placeholder {
        border: 2px solid #000;
    }
    
    .skills-list li {
        background: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #ccc;
    }
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
    body {
        background: #fff;
    }
    
    .container {
        border: 2px solid #000;
    }
    
    header {
        background: #000 !important;
        color: #fff !important;
    }
    
    .navigation a {
        border: 2px solid #000;
        background: #fff;
        color: #000;
    }
    
    .navigation a.active {
        background: #000;
        color: #fff;
    }
    
    section h2 {
        color: #000;
        border-bottom-color: #000;
    }
}

/* 縮小モーション設定（アクセシビリティ） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* より柔軟なフレックスボックスレイアウト */
.profile-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

@supports (display: grid) {
    .skills-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
        list-style: none;
    }
}

/* より安全なz-index管理 */
header {
    position: relative;
    z-index: 10;
}

.navigation {
    position: relative;
    z-index: 5;
}

/* 初期状態（アニメーション前） */
.animate-header,
.animate-image,
.animate-info,
.animate-profile,
.animate-about,
.animate-skills,
.animate-contact,
.animate-footer {
    opacity: 0;
}
