/*
Theme Name:Air tune Theme
Author: あなたの名前
Description: 自作のポートフォリオ用テーマです。
Version: 1.0
*/


        /* カラー変数 */
        :root {
 }
       /* =========================
   Header (match index.html)
   ========================= */
.site-header{
  background-color: var(--accent-bg-color);
  color: var(--text-light);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 99999;
  overflow: visible;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.header-brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  color:#fff;
}

.brand-logo{
  height:40px;
  width:auto;
  margin-right:15px;
  display:block;
}

.brand-text{
  font-size:1.8em;
  font-weight:700;
  letter-spacing:0.02em;
  line-height:1;
}

.site-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:30px;
}

.site-nav li{
  position:relative;
}

.site-nav li.nav-portfolio{
  position: relative !important;
}

.site-nav a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:1.05em;
  position:relative;
  padding-bottom:5px;
}

/* dropdown */
.site-nav .dropdown{
  display:flex;
  flex-direction:column;
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%) translateY(-10px);

  background-color: var(--main-color);
  min-width:140px;
  padding:10px 0;
  border-radius:0 0 8px 8px;
  box-shadow:0 5px 15px rgba(0,0,0,0.2);

  visibility:hidden;
  opacity:0;
  transition:all .3s ease;
  pointer-events:none;
  z-index:999999;
}

.site-nav li:hover .dropdown,
.site-nav li.is-open .dropdown,
.site-nav li:focus-within .dropdown{
  visibility:visible;
  opacity:1;
  transform:translateX(-50%) translateY(0);
  pointer-events:auto;
}

/* dropdown 内は下線を消す */
.site-nav .dropdown li a::after{ display:none; }

/* スマホ */
@media (max-width: 900px){
  .site-nav{ display:none; }
        
            --main-color: #ff8838;
            --accent-bg-color: #090240;
            --text-light: #ffffff;
            --text-dark: #333333;
            --bg-light: #f9f9f9;
            --bg-white: #ffffff;
            --color-reimu: #55e94e;
            --color-marisa: #e78df2;
          /* ===== フォントサイズ（YouTube台本用） ===== */
           --pt-13: 17px;
           --pt-16: 20px;
           --pt-18: 22px;
           --pt-22: 26px;
           --pt-28: 34px;


        }

        /* 基本スタイル */
        body {
            font-family: 'Noto Sans JP', sans-serif;
            margin: 0;
            padding: 0;
            line-height: 1.7;
            color: var(--text-dark);
            background-color: var(--bg-light);
            scroll-behavior: smooth;
            overflow-x: hidden; /* 横スクロール防止 */
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
        }

        a {
            color: var(--main-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        a:hover {
            color: #e6772b;
        }

        /* ボタン共通スタイル（ホバー時の動きを強化） */
        .btn {
            display: inline-block;
            background-color: var(--main-color);
            color: var(--text-light);
            padding: 14px 35px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: bold;
            letter-spacing: 0.05em;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            margin-top: 15px;
            border: none;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        /* ボタンのホバー効果：少し拡大して浮き上がる */
        .btn:hover {
            background-color: #e6772b;
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }
        /* ボタンクリック時のエフェクト（波紋） */
        .btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s ease, height 0.6s ease;
        }
        .btn:active::after {
            width: 300px;
            height: 300px;
        }

        .btn-secondary {
            background-color: var(--accent-bg-color);
            color: var(--text-light);
        }
        .btn-secondary:hover {
            background-color: #06012d;
        }

        /* セクション共通スタイル */
        section {
            padding: 100px 0;
            position: relative;
            overflow: hidden;
        }

        .section-title {
            text-align: center;
            margin-bottom: 60px;
            font-size: 2.8em;
            font-weight: 700;
            color: var(--accent-bg-color);
            position: relative;
            padding-bottom: 15px;
        }
        /* セクションタイトルの下線アニメーション */
        .section-title::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: 0;
            transform: translateX(-50%) scaleX(0); /* 初期状態は幅0 */
            width: 80px;
            height: 4px;
            background-color: var(--main-color);
            border-radius: 2px;
            transition: transform 0.6s ease 0.3s; /* 遅れて伸びる */
            transform-origin: center;
        }
        /* AOSで表示されたときに線を伸ばす */
        .section-title.aos-animate::after {
            transform: translateX(-50%) scaleX(1);
        }

        .section-title small {
            display: block;
            font-size: 0.5em;
            font-weight: 400;
            margin-top: 10px;
            color: #6a6a6a;
        }

        /* Hero Section */
        .hero {
            position: relative;
            height: 700px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: var(--text-light);
            background-color: var(--accent-bg-color);
            overflow: hidden;
            /* 画像パス */
            background-image: url('./images/header-bg.jpg'); 
            background-size: cover;
            background-position: center;
            /* 背景画像をゆっくりズームさせるアニメーション */
            animation: zoomBg 20s linear infinite alternate;
        }
        @keyframes zoomBg {
            0% { background-size: 100%; }
            100% { background-size: 110%; }
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(9, 2, 64, 0.75); 
            z-index: 0;
        }

        .hero-content {
            position: relative;
            z-index: 1;
            padding: 30px;
            max-width: 800px;
        }

        /* ヒーローセクションのテキストアニメーション（初期状態） */
        .hero h1, .hero h2, .hero p, .hero .btn {
            opacity: 0;
            transform: translateY(30px);
            animation: fadeUp 1s ease forwards;
        }
        .hero h1 { animation-delay: 0.3s; font-size: 4.2em; margin-bottom: 15px; line-height: 1.2; text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }
        .hero h2 { animation-delay: 0.6s; font-size: 2.2em; margin-top: 0; font-weight: 400; color: rgba(255, 255, 255, 0.9); }
        .hero p { animation-delay: 0.9s; font-size: 1.2em; max-width: 700px; margin: 30px auto 40px; line-height: 1.8; color: rgba(255, 255, 255, 0.9); }
        .hero .btn { animation-delay: 1.2s; }

        /* フェードアップアニメーション定義 */
        @keyframes fadeUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

      /* --- 追加：ロゴのスタイル --- */
        .hero-logo {
            position: absolute;
            top: 30px;
            left: 30px;
            z-index: 10; /* コンテンツより手前に表示 */
        }
        .hero-logo img {
            width: 280px;
            height: auto;
            display: block;
            /* アニメーションは適用しない */
        }

          /* Profile & Introduction Section */
        #profile {
            background-color: var(--bg-light);
            padding: 100px 0;
            border-bottom: 1px solid #eee;
            background-image: url('./images/header-bg.jpg');
            background-size: cover;
            background-position: center;
            background-blend-mode: overlay;
            background-color: rgba(255, 255, 255, 0.95);
        }
        .profile-grid {
            display: grid;
            grid-template-columns: 1fr 3fr;
            gap: 60px;
            align-items: start;
        }
        .profile-sidebar { text-align: center; }
        .profile-sidebar h3 { color: var(--accent-bg-color); margin-bottom: 20px; font-size: 1.6em; font-weight: 700; }
        
        .profile-image {
            width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
            border: 4px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.15);
            margin: 0 auto 25px;
            /* プロフィール画像に浮遊アニメーションを適用 */
              }
        
        .profile-text { color: #444; line-height: 1.8; }
        .profile-text small { display: block; margin-top: 10px; font-size: 0.9em; color: #777; }
        .profile-text small i { color: var(--main-color); margin-right: 5px; opacity: 0.7; }
        .profile-main .section-title { text-align: left; margin-bottom: 40px; }
        .profile-main .section-title::after { left: 0; transform: scaleX(0); transform-origin: left; } /* 左から伸びるように変更 */
        .profile-main .section-title.aos-animate::after { transform: scaleX(1); }
        .profile-main p { font-size: 1.15em; line-height: 1.8; color: #555; }

        /* Skill & Experience Sections */
        .skill-grid { display: flex; flex-wrap: wrap; gap: 60px; align-items: flex-start; }
        .skill-grid.reverse { flex-direction: row-reverse; }
        .skill-grid .image-side { flex: 1; min-width: 350px; position: relative; top: 30px; }
        
        .skill-grid .image-side img {
            max-width: 100%; height: auto; display: block; border-radius: 12px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            transition: transform 0.5s ease; /* 画像のホバー効果用 */
        }
        /* 画像にホバーしたときに少し傾く動き */
        .skill-grid .image-side img:hover {
            transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
        }

        #writing-expertise .skill-grid .image-side img { max-height: 600px; width: auto; margin: 0 auto; }
        .skill-grid .text-side { flex: 2; min-width: 400px; }
        .skill-grid h4 { font-size: 1.6em; margin-top: 50px; margin-bottom: 15px; padding-left: 15px; border-left: 5px solid var(--main-color); color: var(--accent-bg-color); font-weight: 700; display: flex; align-items: center; }
        .skill-grid h4 i { margin-right: 10px; color: var(--main-color); opacity: 0.8; transition: transform 0.3s; }
        /* 見出しホバー時にアイコンが少し動く */
        .skill-grid h4:hover i { transform: translateX(5px); }

        .skill-grid p { margin-bottom: 1em; line-height: 1.7; color: #444; }

        /* リンクカードスタイル（ホバー時の動きを強化） */
        .link-card {
            display: flex; align-items: center; background-color: #fff; border-radius: 12px; overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08); margin-top: 30px;
            text-decoration: none; color: inherit;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 弾力のある動き */
        }
        /* カード全体が持ち上がり、影が濃くなる */
        .link-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }
        .link-card-image { flex: 0 0 150px; height: 150px; overflow: hidden; }
        .link-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
        /* カードホバー時に中の画像がズーム */
        .link-card:hover .link-card-image img { transform: scale(1.1); }
        .link-card-content { flex: 1; padding: 20px 25px; }
        .link-card h5 { margin: 0 0 10px; font-size: 1.3em; color: var(--accent-bg-color); font-weight: bold; }
        .link-card p { margin: 0; font-size: 0.95em; color: #666; }
        .link-card .btn-text { display: inline-block; margin-top: 10px; font-weight: bold; color: var(--main-color); transition: margin-left 0.3s; }
        .link-card .btn-text i { transition: transform 0.3s; }
        /* カードホバー時に矢印が右に動く */
        .link-card:hover .btn-text i { transform: translateX(5px); }

        /* Writing Section Specific */
        #writing-expertise { background-color: var(--accent-bg-color); color: var(--text-light); background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); }
        #writing-expertise .section-title, #writing-expertise .section-title small { color: var(--text-light); }
        #writing-expertise .section-title::after { background-color: var(--main-color); }
        #writing-expertise h4 { color: var(--text-light); border-left-color: var(--main-color); }
        #writing-expertise p { color: rgba(255, 255, 255, 0.9); }
        #writing-expertise .link-card { background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.2); }
        #writing-expertise .link-card h5 { color: var(--text-light); }
        #writing-expertise .link-card p { color: rgba(255, 255, 255, 0.8); }
        #writing-expertise .link-card .btn-text { color: var(--main-color); }

        /* Creative Section Specific */
        #creative-production { background-color: var(--bg-white); }

        /* Contact Section */
        #contact { background-color: var(--main-color); color: var(--text-light); text-align: center; padding: 120px 0; background-image: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1469&q=80'); background-size: cover; background-position: center; background-blend-mode: multiply; }
        #contact .section-title { color: var(--text-light); }
        #contact .section-title::after { background-color: var(--text-light); }
        #contact .section-title small { color: rgba(255, 255, 255, 0.8); }
        #contact p { font-size: 1.2em; max-width: 700px; margin: 0 auto 40px; line-height: 1.8; color: rgba(255, 255, 255, 0.95); position: relative; z-index: 1; }
        #contact .btn { background-color: var(--accent-bg-color); color: var(--text-light); position: relative; z-index: 1; }
        #contact .btn:hover { background-color: #06012d; }

        /* Footer */
        footer { background-color: var(--accent-bg-color); color: rgba(255, 255, 255, 0.7); text-align: center; padding: 40px 20px; font-size: 0.9em; }
        footer a { color: rgba(255, 255, 255, 0.9); }
        footer a:hover { color: var(--main-color); }

        /* レスポンシブデザイン */
        @media (max-width: 900px) {
            .container { padding: 20px 30px; }
            .hero { height: 600px; }
            .hero h1 { font-size: 3.5em; } .hero h2 { font-size: 1.8em; }
            .section-title { font-size: 2.2em; }
            .profile-grid { grid-template-columns: 1fr; gap: 50px; }
            .profile-main .section-title { text-align: center; }
            .profile-main .section-title::after { left: 50%; transform: translateX(-50%) scaleX(0); transform-origin: center; } /* スマホでは中央から伸びるように戻す */
            .skill-grid { flex-direction: column; gap: 40px; text-align: center; }
            .skill-grid.reverse { flex-direction: column; }
            .skill-grid .image-side { top: 0; order: -1; width: 100%; max-width: 500px; margin: 0 auto; }
            .skill-grid .text-side { min-width: unset; width: 100%; }
            .skill-grid h4 { text-align: center; border-left: none; padding-left: 0; justify-content: center; margin-top: 30px; }
            .link-card { flex-direction: column; text-align: center; }
            .link-card-image { width: 100%; height: 200px; flex: unset; }
            .hero p, #introduction p, #contact p, .profile-main p { font-size: 1em; }
        }
        
           /* --- 追加：レスポンシブ時のロゴ調整 --- */
            .hero-logo {
                top: 20px;
                left: 20px;
            }
            .hero-logo img {
                width: 200px;
            }
        }
        @media (max-width: 500px) {
            .hero { height: 500px; }
            .hero h1 { font-size: 2.5em; } .hero h2 { font-size: 1.3em; } .hero p { font-size: 0.95em; margin: 20px auto 30px; }
            .section-title { font-size: 1.8em; }
            section { padding: 60px 0; }
            .btn { padding: 12px 25px; font-size: 0.9em; }
            #profile h3 { font-size: 1.5em; }
            .profile-image { width: 120px; height: 120px; }
        }
/* =========================
   Header (match index.html)
   ========================= */
.site-header{
  background-color: var(--accent-bg-color);
  color: var(--text-light);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 99999;
  overflow: visible;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.header-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
}

.header-brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  color:#fff;
}

.brand-logo{
  height:40px;
  width:auto;
  display:block;
  margin-right:15px;
}

.brand-text{
  font-size:1.8em;
  font-weight:700;
  letter-spacing:0.02em;
  line-height:1;
  color:#fff;
}

.site-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:30px;
  align-items:center;
}

.site-nav li{ position:relative; }
.site-nav a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:1.05em;
  padding-bottom:5px;
  display:inline-block;
}

.site-nav .dropdown{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%) translateY(-10px);
  background-color: var(--main-color);
  min-width:140px;
  padding:10px 0;
  border-radius:0 0 8px 8px;
  box-shadow:0 5px 15px rgba(0,0,0,0.2);

  visibility:hidden;
  opacity:0;
  transition:all .3s ease;
  pointer-events:none;
  z-index:999999;
}

.site-nav li:hover .dropdown,
.site-nav li.is-open .dropdown,
.site-nav li:focus-within .dropdown{
  visibility:visible;
  opacity:1;
  transform:translateX(-50%) translateY(0);
  pointer-events:auto;
}

.site-nav .dropdown a{
  padding:10px 16px;
  display:block;
}

/* スマホ：PCメニュー非表示（indexと同じ挙動に揃える） */
@media (max-width: 900px){
  .site-nav{ display:none; }
}
/* =========================
   Header (match index)
   ========================= */
.site-header{
  background-color: var(--accent-bg-color);
  color: var(--text-light);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 99999;
  overflow: visible;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.site-header .header-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.header-brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  color:#fff;
}

.brand-logo{
  height:40px;
  width:auto;
  margin-right:15px;
  display:block;
}

.brand-text{
  font-size:1.8em;
  font-weight:700;
  letter-spacing:0.02em;
  line-height:1;
  color:#fff;
}

.site-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:30px;
  align-items:center;
}

.site-nav li{ position:relative; }
.site-nav a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:1.05em;
  padding-bottom:5px;
  display:inline-block;
}

/* dropdown */
.site-nav .dropdown{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%) translateY(-10px);
  background-color: var(--main-color);
  min-width:140px;
  padding:10px 0;
  border-radius:0 0 8px 8px;
  box-shadow:0 5px 15px rgba(0,0,0,0.2);
  visibility:hidden;
  opacity:0;
  transition:all .3s ease;
  pointer-events:none;
  z-index:999999;
}
.site-nav li:hover .dropdown,
.site-nav li:focus-within .dropdown{
  visibility:visible;
  opacity:1;
  transform:translateX(-50%) translateY(0);
  pointer-events:auto;
}

.site-nav .dropdown a{
  padding:10px 16px;
  display:block;
}
/* =========================
   Header (match index.html)
   ========================= */

/* ヘッダー帯そのもの */
.site-header{
  background-color: var(--accent-bg-color);
  color: var(--text-light);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 99999;
  overflow: visible;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ヘッダー内だけ container を index 基準に（本文containerのpaddingで太くならないように） */
.site-header .container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* header.html は container と header-container を併用しているので両方対応 */
.site-header .header-container{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ブランド */
.header-brand{
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.brand-logo{
  height: 40px;
  width: auto;
  margin-right: 15px;
  display: block;
  max-width: none;
}

.brand-text{
  font-size: 1.8em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
}

/* ナビ */
.site-nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
  align-items: center;
}

.site-nav li{ position: relative; }

.site-nav a{
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

/* ドロップダウン */
.site-nav .dropdown{
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: var(--main-color);
  min-width: 140px;
  padding: 10px 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);

  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 999999;
}

.site-nav li:hover .dropdown,
.site-nav li:focus-within .dropdown{
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.site-nav .dropdown a{
  padding: 10px 16px;
  display: block;
}

/* レスポンシブ（index と同じ） */
@media (max-width: 768px){
  .site-header .container{
    flex-direction: column;
    gap: 15px;
  }
  .site-nav ul{
    gap: 20px;
    font-size: 0.9em;
  }
}
