/* カラーパレット */
:root {
    --bg: #FDF7E4;
  --nav-width: 280px;
  --blue-light: #BADDDF;
    --blue: #54A2B2;
    --pink: #ED8E8C;
    --yellow: #F9D676;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background-color: var(--bg);
    font-family: "vdl-megamaru", sans-serif;
    min-height: 100vh;
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
  }
  
  /* ロゴ */
  .header {
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    z-index: 10;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 24px;
  }
  
  .logo {
    width: 240px;
  }
  
  /* 全体レイアウト */
  .container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    padding-top: 40px;
    scroll-snap-align: start;
  }
  
  /* メインビジュアル */
  .main-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .main-visual img {
    max-width: 80%;
    height: auto;
    margin-left: -30px;
  }

  .skill-line-area {
    width: 320px;
    margin-bottom: 8px;
    transform: translateY(-80px);
  }
  
  .skill-line {
    position: relative;
    width: 100%;
    height: 22px;
    overflow: hidden;
  }
  
  /* アンダーライン */
  .skill-line::after {
    content: "";
    position: absolute;
    bottom: 2px;        /* ← 文字の下 */
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.6);
  }
  
  /* 流れる文字 */
  .skill-track {
    display: inline-flex;
    white-space: nowrap;
    animation: scrollText 50s linear infinite;
  }
  
  .skill-track span {
    font-size: 12px;
    letter-spacing: 0.2em;
    padding-right: 2em;
    color: #000;
    opacity: 0.7;
  }
  @keyframes scrollText {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  /* キャッチフレーズエリア */
  .catch-area {
    flex: 0.6;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px; 
  }
  
  .catch-text {
    font-family: "vdl-megamaru", sans-serif;
    font-size: 40px;
    line-height: 1.8;
    letter-spacing: 0.12em;
    color: #ED8E8C;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1.2s ease, transform 1.2s ease;
    z-index: 2;
  }
  
  /* 表示用クラス */
  .catch-text.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* メニュー */
  .menu {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-right: 0;
    transform: translateY(-36px); /* 上に少し移動 */
  }
  
  /* はみ出すボタン */
  .menu-btn {
    background-color: var(--blue-light);
    color: #333;
    text-decoration: none;
    padding: 20px 60px;
    border-radius: 60px;
    font-family: "vdl-megamaru", sans-serif;
    font-size: 20px;
    width: 360px; /* 画面外にはみ出す */
    box-shadow: 0 8px 0 rgba(84, 162, 178, 0.15);
    transform: translateX(60px);
    transition: all 0.3s ease;
  }
  
  /* ホバー */
  .menu-btn:hover {
    background-color: var(--pink);
    box-shadow: 0 4px 0 rgba(84, 162, 178, 0.25);
    transform: translateX(20px);
  }
/* ヘッダー右のアクション */
.header-actions { display: flex; align-items: center; gap: 12px; }
.socials { display: flex; gap: 10px; align-items: center; }
.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-decoration: none;
  transition: transform 160ms cubic-bezier(.2,.8,.2,1), box-shadow 160ms;
  -webkit-tap-highlight-color: transparent;
}
.social-link svg { display: block; }
.social-link:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.12); }
.social-link.clicked, .social-link:active { transform: scale(0.92); transition: transform 140ms ease; }
@media (max-width: 640px) { .socials { gap: 8px; } .social-link { width: 36px; height: 36px; } }
@media (max-width: 640px) {
  .menu { transform: none; }
}

/* Section 共通 */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  scroll-snap-align: start;
  background: transparent;
}
.section:nth-of-type(odd) { background: transparent; }
.section-inner { max-width: 900px; }
.section h2 { font-size: 32px; margin-bottom: 12px; }

/* Scroll indicator（右下縦） */
.scroll-indicator {
  position: fixed;
  right: 26px;
  bottom: 18px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.scroll-indicator span {
  display: inline-block;
  background: rgba(255,255,255,0.95);
  color: #333;
  padding: 14px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  writing-mode: vertical-rl;
  transform-origin: center;
  font-family: "vdl-megamaru", sans-serif;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.scroll-indicator.hidden { opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 240ms, transform 240ms; }
.scroll-indicator span { transition: transform 180ms ease, opacity 180ms ease; }

/* Profile */
.profile-wrap {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-photo {
  width: 200px;
  max-width: 45%;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Works */
.works-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.work-photo {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  object-fit: cover;
}

/* レスポンシブ調整 */
@media (max-width: 640px) {

  .profile-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-photo {
    width: 220px;
    max-width: 100%;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }
}

/*ーーーーーーーーーーーーーーーーーー
  ① タブレット（横・縦）
ーーーーーーーーーーーーーーーーーー*/
@media (max-width: 1024px) {

  .container {
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 100px 20px 40px;
  }

  .main-visual img {
    max-width: 90%;
    margin-left: 0;
  }

  .catch-area {
    align-items: center;
    text-align: center;
  }

  .skill-line-area {
    transform: translateY(-20px);
  }

  .menu {
    width: 100%;
    align-items: center;
    transform: none;
  }

  .menu-btn {
    width: 100%;
    max-width: 380px;
    transform: none;
  }

  .logo {
    width: 180px;
  }
}


/*ーーーーーーーーーーーーーーーーーー
  ② スマホ（縦）
ーーーーーーーーーーーーーーーーーー*/
@media (max-width: 640px) {

  body {
    scroll-snap-type: none;
  }

  .header {
    padding: 8px 14px;
  }

  .logo {
    width: 150px;
  }

  .container {
    gap: 20px;
    padding-top: 90px;
  }

  .main-visual img {
    max-width: 100%;
  }

  .catch-text {
    font-size: 26px;
    line-height: 1.7;
    text-align: center;
  }

  .skill-line-area {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    transform: translateY(-10px);
  }

  .menu {
    width: 100%;
    gap: 18px;
  }

  .menu-btn {
    width: 100%;
    max-width: 320px;
    padding: 16px 24px;
    font-size: 18px;
  }

  .scroll-indicator {
    right: 10px;
    bottom: 10px;
  }
}
