@charset "utf-8";

/* ==========================================================================
   1. Reset & Base Settings
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

a { text-decoration: none; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

body {
  color: var(--text-main);
  
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-family: 'Quicksand', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.08em; 
  line-height: 1.8;
  font-size: 14px;
  overflow-x: hidden;

  font-size: 0.8rem;
  font-weight: 300;
  
  color: #5a6a7a;
}

/* ==========================================================================
   2. Variables
   ========================================================================== */
   :root {
    --bg-light: #f4f9fc;
    --water-blue: #d1eefc; 
    --text-main: #334155;
    --warm-gold: #e2b07e;
    --font-en: 'Cormorant Garamond', serif; 
    --font-jp: 'Noto Serif JP', serif;
    --transition: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   3. Body & Global Layout
   ========================================================================== */

section { padding: 15px;}
.main { padding: 24px; max-width: 1000px; margin: 0 auto;background-color: #fff;margin-bottom: 80px;}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
        .hero {
          height: 100vh;
          width: 100%;
          background: linear-gradient(135deg, #cceeff 0%, #f3eded 50%, #fcf7e8 100%);
      }


        /* =========================================
           右側：コンテンツエリア (メッセージ ＋ GIF)
           ========================================= */
        .hero-content {
          height: calc(100% - 40px); /* 下に40pxの隙間を作る */
          max-width: 500px;
          width: 90%;
          background-color: #ffffff;
          display: flex;
          flex-direction: column;
          justify-content: center;
          padding: 0 50px;
          position: relative;
          margin: 0 auto;
          /* 左右対称の角丸でデザイン性をプラス */
          border-radius: 0 0 20px 20px;
  }
        

        .hero-tagline {
            font-family: var(--font-en);
            font-size: 0.8rem;
            letter-spacing: 0.4em;
            color: var(--warm-gold);
            margin-bottom: 20px;
            display: block;
            text-transform: uppercase;
        }

        .hero-title {
            font-family: var(--font-jp);
            font-size: clamp(1.8rem, 5vw, 2.5rem);
            line-height: 1.4;
            font-weight: 700;
            margin-bottom: 20px;
            letter-spacing: -0.02em;
        }

        .sub-text {
          line-height: 2.2;
            max-width: 440px;

        }



        /* =========================================
           【重要】右下の誘導エリア (GIF ＋ ライン)
           ========================================= */
        .scroll-guide-region {
            position: absolute;
            bottom: 8px; /* 画面の右下 */
            right: 20px;
            display: flex;
            align-items: center;
            z-index: 30;
        }

  
        .gif-container {
            width: 120px;
            height: 120px;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .gif-container img {
            max-width: 100%;
            max-height:100%;
            object-fit: contain;
        }




        /* =========================================
           ナビ
           ========================================= */

nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  padding-top: 100px;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  z-index: 100;
}

nav a {
  display: block;
  line-height: 80px;
  text-align: center;
  font-size: 20px;
  color: #fff;
}

nav a:hover {
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

#burger {
  width: 60px;
  height: 60px;
  position: fixed;
  top: 5px;
  right: 20px;
  cursor: pointer;
  z-index: 101;
}

#burger span {
  position: absolute;
  width: 36px; /* 長さを固定して安定させる */
  height: 2px;
  background: #9a9a9a;
  transition: all 0.4s;
  left: 12px; /* 中央に配置 */
}

/* 通常時の3本線の位置 */
#burger span:nth-child(1) { top: 22px; }
#burger span:nth-child(2) { top: 30px; }
#burger span:nth-child(3) { top: 38px; }
#burger span:nth-child(4) {
  top: 44px;
  left: 0;
  width: 100%;
  font-size: 10px;
  color: #5e5c5b;
  background: transparent;
  text-align: center;
  border: none;
}

/* ★アクティブ時の形を整える */
#burger.active span:nth-child(1) {
  top: 30px; /* 2本目の位置に合わせる */
  transform: rotate(45deg);
}
#burger.active span:nth-child(2) {
  opacity: 0;
}

#burger.active span:nth-child(3) {
  top: 30px; /* 2本目の位置に合わせる */
  transform: rotate(-45deg);
}

/* 2. MENU文字の高さ修正 */
#burger span:nth-child(4) {
  height: auto;
  top: 46px;
  left: 0;
  width: 100%;
  font-size: 10px;
  color: #5e5c5b;
  background: transparent;
  text-align: center;
}

/* TOPボタン */
.top-btn {
  position: fixed;
  right: 25px; bottom: 25px;
  width: 45px; height: 45px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  transition: var(--transition);
  opacity: 0; visibility: hidden;
  z-index: 9999;
}

.top-btn::after {
  content: "";
  width: 10px; height: 10px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translateY(2px) rotate(45deg);
}

.top-btn.is-show { opacity: 1; visibility: visible; }




/* ==========================================================================
   6. Skills & Cards
   ========================================================================== */

h2 {
  color: #88c0bb;
  margin: 50px 0 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.5rem;
}

h2::before {
  content: "";
  width: 30px; height: 1px;
  background-color: #6d6d6d;
}

.skill-list { display: flex; flex-direction: column; gap: 20px; }
.skill-item {
  border: 1px solid #c7c7c7;

  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  
}

.skill-category {
  position: relative;
  width: 280px; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: bold;
}

.skill-category span {
  position: relative; z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  font-size: 1.1rem;
}

.category-bg-image {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  filter: brightness(0.6);
}

.skill-category.design .category-bg-image { background-image: url('../img/img2.jpg'); }
.skill-category.management .category-bg-image { background-image: url('../img/img3.jpg'); }
.skill-category.operation .category-bg-image { background-image: url('../img/img1.jpg'); }

.skill-description { flex: 1; padding: 45px 35px; text-align-last: left;}
.skill-description ul { list-style: none; }
.skill-description li { margin-bottom: 15px; }
.skill-description strong { display: block; color: #333; margin-bottom: 5px;font-size: 1rem; }
.skill-description span { font-size: 0.85rem; color: #666; }

.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tool-tags span {
  background: #f3f3f3;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: #555;
}

.top_text{text-align: center;}

.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  
}

.portfolio-cards a {
  padding: 10px;
  display: block;
  text-decoration: none;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #c7c7c7;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 4px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), 
              box-shadow 0.4s cubic-bezier(0.2, 0, 0.2, 1),
              border-color 0.4s ease;
}


.portfolio-cards a:hover {
  transform: translateY(-2px); 
  border-color: #a0a0a0; 
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
}

.portfolio-cards a:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.1s;
}


.card-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-content { padding: 20px; background: #fff;}
.card-content h3{ color: #333; margin-bottom: 8px; }
.card-content p { font-size: 0.85rem; color: #777;text-align-last: left; }

/* 右カラム全体のコンテナ */
.work-info {
  padding: 20px 0;
}

/* タイトル：少し太めで、アクセントカラーの下線を入れるとかっこいいです */
.work-title {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  display: inline-block;
}

/* 仕様リストのスタイル */
.work-specs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align-last: left;
}

.spec-item {
  display: flex;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.spec-item dt {
  width: 100px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.spec-item dd {
  flex: 1;
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* 使用ツールのタグデザイン */
.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-tags span {
  background: #f0f7f8;
  color: #5a9ca0;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  border: 1px solid #d1eaea;
}

/* リンクボタンの余白 */
.work-link-area {
  margin-top: 40px;
}

/* ==========================================================================
   11. Footer (修正版)
   ========================================================================== */
   footer {
    background: linear-gradient(135deg, var(--water-blue) 0%, #edfafb 50%, #fffbeb 100%);
    padding: 20px 0 40px; /* 上に少し余裕を持たせる */
    text-align: center;
  }
  
  footer p {
    color: #757575;
    font-size: 0.75rem;
    margin-top: 20px;
  }
  

@media (max-width: 600px) {
  .skill-item { flex-direction: column; }
  .skill-category { width: 100%; min-height: 120px; }
  .title { font-size: 28px; top: 180px; }
  .main { padding: 0px; }
  .none{display: none;}


}


@media (max-width: 450px) {

  .top_text{text-align-last: left;}

.skill-description{padding: 40px 20px;font-size: 12px;}


}





