/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  line-height: 1.8;
  background: #f4f7f8;
  color: #333;
}


header nav a {
    font-size: 25px;       /* 数値を大きくすると文字が大きくなります */
    font-weight: bold;     /* 太字にするとより強調されます */
    margin: 0 15px;        /* リンク同士の間隔も少し広げると見やすいです */
    text-decoration: none; /* 下線を消す設定（お好みで） */
    color: #fff;
    display: inline-block;

    transition: all 0.3s ease; /* ホバー時の色変化をスムーズに */
}

/* マウスを乗せたとき（ふわっと浮いて色が変わる） */
header nav a:hover {
    color: #8ab7f1;      /* あなたのテーマカラーに合わせて変更してください */
    transform: translateY(-3px); /* 3px だけ上に浮き上がらせる */
}


header nav a:active {
    transform: translateY(1px);  /* 少し沈む */
    opacity: 0.7;               /* 少し透明にする */
}
/* ついでに My Portfolio の文字も大きくしたい場合 */
header h2 {
    font-size: 32px;
}

/* ===== HEADER ===== */
header {
  /* 背景色は各ページのクラスで上書きします */
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ===== CONTAINER (本文の枠) ===== */
.container {
  max-width: 1000px; /* 横幅を少し広げました (800px -> 1000px) */
  margin: -40px auto 60px; /* ヘッダーに少し重ねる */
  background: #fff;
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.container img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 30px;
}

/* ===== HEADINGS ===== */
h2 {
  font-size: 1.8rem;
  border-left: 5px solid; /* 色は各ページで指定 */
  padding-left: 15px;
  margin: 40px 0 20px;
}

/* ===== BUTTON ===== */
.back-link {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 30px;
  text-decoration: none;
  border: 2px solid;
  border-radius: 50px;
  font-weight: bold;
  transition: 0.3s;
}

/* ===== FOOTER ===== */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 30px;
}

/* =============================================
   各プロジェクトのカラー設定 (テーマカラー)
   ============================================= */

/* Project 1 & 3: Teal (青緑) */
.theme-teal header { background: #005f73; }
.theme-teal h2 { color: #005f73; border-color: #0a9396; }
.theme-teal .back-link { color: #005f73; border-color: #005f73; }
.theme-teal .back-link:hover { background: #005f73; color: #fff; }

/* Project 2: Red (赤) */
.theme-red header { background: #8b0000; }
.theme-red h2 { color: #8b0000; border-color: #ff4d4d; }
.theme-red .back-link { color: #8b0000; border-color: #8b0000; }
.theme-red .back-link:hover { background: #8b0000; color: #fff; }/* ===== HERO ===== */

.theme-yellow header { background: #d8b529; }
.theme-yellow h2 { color: #d8b529; border-color: #ff9900; }
.theme-yellow .back-link { color: #d8b529; border-color: #d8b529; }
.theme-yellow .back-link:hover { background: #d8b529; color: #fff; }

/* style.css に追加 */
.container video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
    display: block; /* 下に余計な隙間ができるのを防ぐ */
}

/* 2. PC上で「スマホ版」ボタンを押した時（強制スマホ表示）用の設定 */
.force-mobile-view header nav {
    justify-content: center;
    width: 100%;
    gap: 8px;
}
.force-mobile-view header nav a {
    font-size: 15px !important;
    margin: 0 5px !important;
    white-space: nowrap;
}

.force-mobile-view .hero h1 {
    font-size: 2rem !important;
    width: 90%;
    margin: 0 auto;
}
.force-mobile-view .hero p {
    font-size: 1rem !important;
    width: 90%;
    margin: 0 auto;
}

/* style.css の後半、モバイル用設定を以下のように更新 */

/* =========================================
   📱 スマホ版 & 強制表示モード 共通スタイル
   ========================================= */

/* 1. 実際のスマホ (画面幅768px以下) 用 */
@media (max-width: 768px) {
    .back-home-btn { font-size: 2.2rem !important; padding: 25px 40px !important; border-radius: 60px !important; bottom: 40px; left: 40px; }
    .map-toggle-btn { font-size: 1.8rem !important; width: 200px !important; height: 200px !important; bottom: 40px; right: 40px; line-height: 1.2; }
}

/* 2. PCでの「スマホ版を表示」ボタン押下時用 */
.force-mobile-view .back-home-btn {
    font-size: 2.2rem !important; /* 約2倍 */
    padding: 25px 40px !important;
    border-radius: 60px !important;
    bottom: 40px !important;
    left: 40px !important;
    position: fixed;
}

.force-mobile-view .map-toggle-btn {
    font-size: 1.8rem !important; /* 約2倍 */
    width: 200px !important;
    height: 200px !important;
    bottom: 40px !important;
    right: 40px !important;
    line-height: 1.2;
    position: fixed;
}

/* 📱 Mobile */
@media (max-width: 768px) {
    .hero {
        background-image: url("images/profile3.jpg") !important;
        background-position: center center !important;
        background-size: cover !important;
    }
}

/* 📱 Force mobile view */
.force-mobile-view .hero {
    background-image: url("images/profile3.jpg") !important;
    background-position: center center !important;
    background-size: cover !important;
}

.hero {
  height: 90vh;
  background-image: url("images/profile2.jpg") center/cover no-repeat;
  color: white;
  /*-webkit-text-stroke: 1px white; /* 文字の縁を黒くする */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}

.hero h1 {
  font-size: 50px;
  transform: translateX(-120px);
}

.hero p {
  margin-top: 10px;
  font-size: 20px;
  transform: translateX(-120px);
}

/* 🌟 mobile hero fix 完全版 */
.force-mobile-view .hero h1 {
    font-size: 2rem !important;
    width: 90%;
    margin: 0 auto;
    line-height: 1.2;
    transform: translateX(0) !important;
}

.force-mobile-view .hero p {
    font-size: 1rem !important;
    width: 90%;
    margin: 10px auto 0;
    transform: translateX(0) !important;
}



.sns-links {
    margin-top: 20px;
}

.sns-btn {
    display: inline-block;
    padding: 10px 20px;
    color: black !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.sns-btn:hover {
    opacity: 0.8;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 20px;
  text-align: center;
}

/* 全体の見出しルールを統一 */
h1 { text-align: center; margin-bottom: 20px; }
h2 { margin-top: 40px; margin-bottom: 20px; }
h3 { margin-top: 20px; }
p { margin-top: 10px; }


/* プロフィールカードの設定 */
.profile-card {
    background-color: #f8f9fa; 
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 60px 40px;
    /* 【重要】上側に 80px の余白を作り、左右は auto で中央寄せに */
    margin: 80px auto 60px auto !important;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }
.profile-card p {
    text-align: left !important;
}

/* プロフィール内の見出し */
.profile-card h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007bff; /* タイトルの下にアクセントの線 */
    display: inline-block;
    padding-bottom: 5px;
    text-align: left !important ;
}

.force-mobile-view .profile-card {
    margin: 80px 20px 0px 20px !important;
    padding: 40px 20px; /* ← mobile用に少しコンパクトに */
}

.force-mobile-view section {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

/* ボタンのデザイン */
.btn-profile {
    display: inline-block;
    padding: 10px 25px;
    background-color: #416fa0; /* ボタンの背景色（青） */
    color: #ffffff;            /* 文字色（白） */
    text-decoration: none;     /* 下線を消す */
    border-radius: 5px;        /* 角の丸み */
    font-weight: bold;
    transition: background-color 0.3s ease; /* ホバー時のアニメーション */
    margin-top: 15px;
}

/* ボタンにマウスを乗せた時（ホバー） */
.btn-profile:hover {
    background-color: #0056b3; /* 少し濃い青に変化 */
    color: #ffffff;
}

/* ===== PROJECTS GRID ===== */
.projects {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ===== CARD ===== */
.card {
  width: 220px;
  text-decoration: none;
  color: black;
  display: block;
  transition: 0.3s;
  background: #fff;
  color: #000;
}

.card:hover {
  transform: scale(1.05);
}

/* ===== IMAGE FIX (IMPORTANT) ===== */
.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

/* ===== CARD TEXT ===== */
.card h3 {
  margin-top: 10px;
  color: black !important;
}

.card p {
  font-size: 15px;
  color: #555 !important;
}




.container a {
  display: inline-block;
  margin-top: 40px;
  text-decoration: none;
}

/* タイムライン全体のコンテナ */
.timeline-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: left; /* 親要素がcenterでもここは左揃え */
}

.timeline {
  position: relative;
  list-style: none;
  padding: 0;
}

/* 縦線 */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 4px;
  background: #e0e0e0;
  z-index: 1;
}

/* 各アイテムの並び */
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 60px;
}

/* 青い丸（ノード） */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3498db; /* お好みのテーマカラーに変更可能 */
  border: 4px solid #fff;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 日付部分 */
.timeline-date {
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* 白いボックス（吹き出し） */
.timeline-content {
  position: relative;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  border: 1px solid #eee;
}

/* ボックス横の小さな矢印 */
.timeline-content::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #fff;
}

.timeline-content h3 {
  margin-top: 0 !important; /* !importantをつけて確実に隙間を消す */
  margin-bottom: 8px;
  color: #3498db;
  font-size: 1.1rem;
}

/* 文字のリンク色が青や紫のままになるのを防ぐ（お好みで追加） */
.timeline-content h3 a {
  color: inherit;
  text-decoration: none;
}
.timeline-content h3 a:hover {
  text-decoration: underline;
}

.timeline-content p {
  margin-top: 0 !important;      /* margen を margin に修正 + !important */
  margin-bottom: 8px !important; /* margen を margin に修正 + !important */
  line-height: 1.6;
}

.timeline-content p:last-child {
  margin-bottom: 0 !important;
}

/* タイムラインのタイトル内リンクの余計な隙間をリセットする */
.timeline-content h3 a {
  margin-top: 0 !important;
  display: inline !important; /* inline-blockを解除して文字として自然に配置 */
}

.left_dod {
  text-align: left;
}

.left_dod ul {
  padding: 0;
  margin: 0;
  list-style-position: inside;
  text-align: left;
}

.left_dod li {
  padding-left: 0; 
  margin-bottom: 10px;
  list-style-type: disc; /* 黒丸 */
}

/* --- index.html（トップページ）用のスタイル --- */
#travel {
    text-align: center;
    padding: 60px 20px;
}

#travel p, #contact p {
    font-size: 16px;
    font-weight: bold;
    color: black; 
}

#globeViz {
    width: 300px;
    height: 300px;
    margin: 20px auto;
    cursor: pointer;
    background-color: transparent;
    display: block;
    position: relative;
    z-index: 1;
}

/* --- travel.html（地球儀専用ページ）用のスタイル --- */
/* 地球儀の背景は黒にしたいので、コンテナに直接色をつけます */
#large-globe {
    width: 100vw;
    height: 100vh;
    background-color: #000; /* ここで黒背景を確保 */
}

/* --- ホームに戻るボタン（左下） --- */
.back-home-btn {
    position: fixed;
    bottom: 60px;
    left: 80px;
    z-index: 1000 !important;
    display: inline-block;
    padding: 20px 24px;
    background-color: rgba(61, 64, 81, 0.9);
    color: rgb(255, 255, 255);
    text-decoration: none;
    border: 2px solid;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}


.back-home-btn:hover {
    background-color: #271f32;
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* --- マップ切り替えボタン（右下・直径約4cmの円形） --- */
.map-toggle-btn {
    position: fixed; 
    bottom: 60px; 
    right: 60px; 
    z-index: 1000 !important;
    
    /* 4cm相当の大きさ（150px） */
    width: 150px !important;
    height: 150px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    
    /* 文字をど真ん中に配置 */
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    background-color: #f2ecf8; 
    color: #0a4f6d;
    border: 3px solid #0a4f6d; 
    font-size: 21px;
    font-weight: bold;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    transition: 0.3s;
    outline: none;
}

.map-toggle-btn:hover { 
    background-color: #dfbbe7; 
    transform: scale(1.05);
}

/* ===== Travel と Contact の間の余白を調整 ===== */
#travel {
  padding-bottom: 20px !important; /* Travelの下の隙間を減らす */
}

#contact {
  padding-top: 20px !important; /* Contactの上の隙間を減らす */
}

#contact h2 {
  margin-top: 10px !important; /* Contactタイトルの上の隙間を減らす */
}

/* =========================================
   📱 スマホ版・強制表示版のスタイル調整
   ========================================= */
/* =========================================
   📱 スマホ版のスタイル調整（修正版）
   ========================================= */

/* 1. 実際のスマホ画面で見た時の設定 */
@media (max-width: 768px) {
    /* ① ナビゲーションの文字を小さくして1列に */
    header nav {
        justify-content: center;
        width: 100%;
        gap: 8px;
    }
    header nav a {
        font-size: 15px !important;
        margin: 0 5px !important;
        white-space: nowrap;
    }

   
    .hero h1 {
        font-size: 2rem !important;
        width: 90%;
        margin: 0 auto;
    }
    .hero p {
        font-size: 1rem !important;
        width: 90%;
        margin: 0 auto;
    }

    /* ④ プロジェクト詳細ページ（project1~3）の文字サイズ */
    .container h1 { font-size: 1.8rem !important; }
    .container h2 { font-size: 1.5rem !important; }
    .container p, .container li { 
        font-size: 16px !important; 
        line-height: 1.6;
    }
    .back-link, .back-home-btn {
        font-size: 1.2rem !important;
        padding: 12px 24px !important;
        display: inline-block;
        margin-top: 20px;
    }

    /* ⑤ Travelセクションのボタン */
    #toggle-map, #back-home {
        font-size: 1.1rem !important;
        padding: 10px 15px !important;
        width: auto !important;
        height: auto !important;
        border-radius: 30px !important;
    }
}


.force-mobile-view .container h1 { font-size: 1.8rem !important; }
.force-mobile-view .container h2 { font-size: 1.5rem !important; }
.force-mobile-view .container p, .force-mobile-view .container li { 
    font-size: 16px !important; 
    line-height: 1.6;
}
.force-mobile-view .back-link, .force-mobile-view .back-home-btn {
    font-size: 1.2rem !important;
    padding: 12px 24px !important;
    display: inline-block;
    margin-top: 20px;
}
.force-mobile-view #toggle-map, .force-mobile-view #back-home {
    font-size: 1.1rem !important;
    padding: 10px 15px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 30px !important;
}