@charset "UTF-8";

/* ==========================================
   ベース・共通設定（モバイルファースト）
   ========================================== */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.7;
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

/* 全要素のサイズ計算を内包に統一（絶対書いておくべき1行） */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 画面外へのはみ出しを遮断 */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  /* ★横スクロールを強制的に消す */
}

.section-inner {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* セクションタイトル（左側に線）いまできること */
.section-title {
  font-size: 1.7rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.section-title::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background-color: #666;
}

/* ==========================================
   アコーディオン（大切にしていることボタン）
   ========================================== */
.policy-accordion {
  margin-top: 24px;
}

/* ボタンのデザイン */
.policy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  transition: all 0.3s ease;
  list-style: none;
  /* デフォルトの三角を削除 */
}

/* Safari用三角削除 */
.policy-btn::-webkit-details-marker {
  display: none;
}

.policy-btn:hover {
  background-color: #eee;
}

/* プラス（+）アイコンの装飾 */
.policy-btn-icon::after {
  content: "＋";
  font-size: 14px;
}

/* 開いたときのアイコン（−） */
.policy-accordion[open] .policy-btn-icon::after {
  content: "ー";
}

/* 開いたときの中身 */
.policy-content {
  margin-top: 16px;
  padding: 16px;
  background-color: #fafafa;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- ハンバーガーボタンの位置・スタイル設定 --- */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  /* ← これを追加！画面の右外に隠します */
  width: 100%;
  height: 100dvh;
  background-color: rgba(255, 255, 255, 0.98);
  transition: right 0.4s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-icon {
  position: fixed;
  /* 画面右上に固定 */
  top: 20px;
  right: 20px;
  pointer-events: auto;
  /* ★クリックを確実に反応させる */
  z-index: 2000;
  /* ★最前面に持ってくる */
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* 線のデザイン（色や太さ・アニメーション） */
.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #333333;
  /* 線の色（背景に合わせて変更可） */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* メニュー内のリスト設定 */
.sp-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;

  width: 50%;
  height: 100vh;
  /* background-color: rgb(255, 195, 247); */
  background: linear-gradient(to bottom, #7686cc, #deb1e5, #fd97b4);
  position: fixed;
  top: 0;
  right: 0;
}

.sp-menu-list li {
  margin: 35px 0;
  /* 文字同士の間隔 */
}

.sp-menu-list a {
  font-size: 18px;
  color: #2b2b2b;
  text-decoration: none;
  letter-spacing: 0.15em;
  font-weight: 500;
  display: block;
  padding: 10px 30px;
  transition: color 0.3s ease;
}

.sp-menu-list a:hover {
  opacity: 0.7;
  transition: opacity 0.3s;
  color: #ff7ec7;
}

/* --- スマホ全画面メニュー（文字を完全に中に閉じ込める設定） --- */
.sp-menu-screen {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 100vw;
  height: 100vh;
  /* background-color: #f0f; */
  z-index: 900;
  box-sizing: border-box;
  pointer-events: none;
  /* 文字を中央寄せで綺麗に中に収めるレイアウト */
  display: flex;
  justify-content: center;
  align-items: center;

  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
}


/* --- 開いた時（JSで .is-active クラスが付与された時） --- */
.sp-menu-screen.is-active {
  transform: translate3d(0, 0, 0);
  /* スーッと画面内に入ってくる */
  /* ★【重要】開いた時だけメニュー内のクリックを受け付ける */
  pointer-events: auto;
}

/* バツ印（×）に変形させるアニメーション */
.menu-icon.is-active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.menu-icon.is-active span:nth-child(2) {
  opacity: 0;
  /* 真ん中の線を消す */
}

.menu-icon.is-active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* ヘッダー構造 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 20px;
  z-index: 100;
  box-sizing: border-box;
}

/* 全ページ共通のヘッダー構造 */
.header-inner {
  display: flex;
  justify-content: space-between;
  /* ロゴとメニューを左右に離す */
  align-items: center;
  width: 100%;
  max-width: 1200px;
  /* サイト全体の最大幅と揃える */
  margin: 0 auto;
}

/* スマホ時は作品集ロゴ（縦書き）およびPCメニューを非表示 */
.site-title.brand-vertical,
.brand-vertical,
.pc-menu {
  display: none;
}

/* ★「M」のロゴを小さく調整 */
.sp-logo {
  display: inline-block;
  pointer-events: auto;
  /* リンクを押せるようにする */
}

.sp-logo img {
  width: 80px;
  /* ★ここでロゴの横幅を小さくコントロール */
  height: auto;
  display: block;
}

.sp-logo-text {
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

/* 縦書きタイトル（スマホでは非表示） */
.brand-area {
  display: none;
}

.site-title {
  font-family: serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #2b2b2b;
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.site-title:hover {
  opacity: 0.7;
}

/* ==========================================
   1. わたしのこと (About)
   ========================================== */
.about-flex {
  display: flex;
  flex-direction: column;
  /* スマホ：縦並び */
  gap: 20px;
}

.about-photo {
  width: 100%;
  max-width: 100%;
  /* スマホでは画面幅いっぱいに使う */
  margin: 40px auto 24px;
  /* 下（文章側）に24pxの余白を作る */
  box-sizing: border-box;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  /* ほんのり角丸（不要なら削除OK） */
}

.about-content {
  position: relative;
}

.vertical-title {
  font-size: 1rem;
  writing-mode: vertical-rl;
  /* 縦書き */
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}

.about-ruby {
  font-size: 0.85rem;
  color: #666;
}

.about-name {
  font-size: 1.9rem;
  margin-bottom: 15px;
}

.about-text {
  font-size: 1rem;
  color: #444;
}

/* ==========================================
   2. いまできること (Skills)
   ========================================== */
.skills-bg {
  background-color: #f8deed;
}

.skill-group {
  margin-bottom: 50px;
}

.card-flex {
  display: flex;
  flex-direction: column;
  /* スマホ：縦並び */
  gap: 15px;
  margin-bottom: 20px;
}

.card-img {
  background-color: #f8deed;
  aspect-ratio: 16 / 9;
}

.card-info h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.card-info p {
  font-size: 0.95rem;
  color: #555;
}

/* 丸アイコンラベル */
.circle-label {
  width: 50px;
  height: 50px;
  background-color: #666;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  margin: 20px auto;
}

.section-title {
  font-size: 1.8rem;
}

リスト形式（dt / dd） .skill-list {
  border-top: 1px solid #aaa;
}

.skill-list dt {
  font-size: 1.6rem;
  font-weight: bold;
  padding-top: 15px;
}

.skill-list dd {
  padding-bottom: 15px;
  border-bottom: 1px solid #aaa;
  font-size: 1.4rem;
  color: #444;
}


/* ==========================================
   スキルセクション
   ========================================== */
.skills-section {
  padding: 60px 20px;
}

.skills-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* タイトル */
.skills-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 32px;
  letter-spacing: 0.1em;
}

.skills-title::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background-color: #333333;
}

/* 2列並びのカードグリッド */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* スマホ：1列 */
  gap: 20px;
  /* カード同士の隙間 */
}

/* 1. ツール名 */
.skill-name {
  font-size: 1.6rem;
  /* スマホの文字サイズ（約16px） */
  font-weight: 700;
  color: #2b2b2b;
}

/* 2. 星（★☆） */
.skill-stars {
  font-size: 1.6rem;
  /* スマホの星の大きさ */
  gap: 2px;
}

/* 3. 説明テキスト */
.skill-desc {
  font-size: 1.4rem;
  /* スマホの説明サイズ（約14px） */
  line-height: 1.6;
  color: #555555;
}

/* ==========================================
   CONTACTセクション
   ========================================== */

.contact-section {
  width: 100%;
  /* 上側はゆるやかなアーチに対応できるよう広め、下側はフッターにピタッとくっつける */
  padding: 100px 24px 80px;
  box-sizing: border-box;
  text-align: center;

  /* カンプのような綺麗なグラデーション（色は好みに合わせて微調整してね） */
  /* background: linear-gradient(to bottom, #dbeeff, #fbf2eb); */
  background: linear-gradient(to bottom, #7686cc, #deb1e5, #fd97b4);
}

/* イラストの丸バッジ（カンプに合わせて枠線なし・シンプルに） */
.contact-badge {
  margin: 0 auto 24px;
  display: inline-block;
}

.contact-lead {
  font-size: 13px;
  color: #333333;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* ★上品な白抜きCONTACTタイトル */
.contact-big-title {
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 300;
  /* 細めのすっきりしたフォント */
  font-family: 'Helvetica Neue', Arial, sans-serif;
  /* 洗練されたゴシック系 */
  color: transparent;
  /* 文字の中身を透明に */
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
  /* 白い細いフチ取り */
  letter-spacing: 0.15em;
  margin: 0 auto 16px;
  word-break: break-word;
}

.contact-sub {
  font-size: 11px;
  color: #555555;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* メールアドレスボタン（白背景に細いpinkフチ） */
.email-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 300px;
  padding: 12px 8px;
  margin: 0 auto;
  background-color: #ffffff;
  color: #ff7ec7;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  border: 1px solid #ffa9da;
  border-radius: 30px;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.6s ease;
  box-sizing: border-box;
  word-break: break-all;
}

/* 光の帯（普段は左外に隠しておく） */
.email-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.8);
  /* 光の色（白い半透明） */
  transform: rotate(30deg);
  /* 斜めに傾ける */
  transition: transform 0.6s ease, left 1.0s ease;
}

/* ホバー時に左から右へ光を走らせる */
.email-btn:hover::after {
  left: 120%;
}

/* ホバー時にボタン自体もほんのり浮き立たせる */
.email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 169, 218, 0.4);
}

/* ==========================================
   フッター
   ========================================== */
.footer {
  width: 100%;
  background-color: #ffffff;
  /* 完全な白 */
  padding: 0 24px 0 20px;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  /* スマホでは縦並び */
  align-items: center;
  gap: 16px;
}

/* フッターのナビゲーション */
.footer-nav {
  display: flex;
  gap: 8px;
  font-size: 11px;
  white-space: nowrap;
  /* 途中で改行させない */
  justify-content: center;
}

.footer-nav a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
  /* ★ ふわっと変わる効果（0.3秒） */
}

.footer-nav a:hover {
  color: #ff7ec7;
}

.footer-nav span {
  color: #cccccc;
}

/* コピーライト */
.copyright {
  font-size: 10px;
  color: #666666;
  letter-spacing: 0.08em;
  margin: 0;
}


.instagram-area {
  text-align: center;
  margin-top: 40px;

  /* 👇アイコンと文字をまとめて、ほんのり透けさせる（透明度60%） */
  opacity: 0.6;

  /* マウスを乗せたときに、ふわっと100%の濃さに戻る遊び心を入れるとさらにおしゃれです */
  transition: opacity 0.3s;
}

.instagram-area:hover {
  opacity: 1;
  /* ホバーするとくっきり光るような演出 */
}

/* TOPへ戻るロゴボタンの固定配置 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  /* 画面下からの距離 */
  right: 30px;
  /* 画面右からの距離 */
  z-index: 99;
  /* 他の要素より手前に表示 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 画像ロゴのサイズ指定 */
.back-to-top img {
  width: 70px;
  /* お好みの大きさに調整してね */
  height: auto;
  display: block;
}

/* ホバーした時のやさしい動き（少し浮いて少し透ける） */
.back-to-top:hover {
  transform: translateY(-5px);
  /* ふわっと5px上に浮く */
  opacity: 0.7;
  /* 少し透明になる */
}

/* 📱 スマホ表示の調整 */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 55px;
    right: 20px;
  }

  .back-to-top img {
    width: 40px;
    /* スマホでは少しコンパクトに */
  }
}

/* ==========================================
   ページ表示時のふわっとアニメーション
   ========================================== */

/* ふわっと下から上へフェードインするアニメーションの動き */
@keyframes fadeInUp {
  from {
    opacity: 0;
    /* 完全に透明 */
    transform: translateY(20px);
    /* 20px下に配置 */
  }

  to {
    opacity: 1;
    /* 完全に表示 */
    transform: translateY(0);
    /* 元の位置 */
  }
}

/* ==========================================
   スマホ用（ベーススタイル）アニメーション適用
   ========================================== */

/* アニメーションを適用したい共通のクラス */
.about-photo,
.vertical-title,
.about-ruby,
.about-name,
.about-text,
.policy-accordion {
  /* 最初は透明にしておく */
  opacity: 0;

  /* 共通のアニメーション設定 */
  animation-name: fadeInUp;
  /* 先ほど作ったアニメーション名 */
  animation-duration: 0.8s;
  /* アニメーションにかかる時間（0.8秒） */
  animation-timing-function: ease-out;
  /* 動きの緩急（後半ゆっくり） */
  animation-fill-mode: forwards;
  /* アニメーション終了時の状態（opacity:1）を維持する */
}

/* --- 上から順に開始時間を遅らせる設定 --- */

/* 1. 一番上の写真 */
.about-photo {
  animation-delay: 0.2s;
  /* 0.2秒後に開始 */
}

/* 2. 「わたしのこと」タイトル */
.vertical-title {
  animation-delay: 0.5s;
  /* 0.5秒後に開始 */
}

/* 3. ルビ（英語など） */
.about-ruby {
  animation-delay: 0.7s;
  /* 0.7秒後に開始 */
}

/* 4. 名前「masae motoki」 */
.about-name {
  animation-delay: 0.9s;
  /* 0.9秒後に開始 */
}

/* 5. 本文テキスト */
.about-text {
  animation-delay: 1.1s;
  /* 1.1秒後に開始 */
}

.policy-accordion {
  animation-delay: 1.3s;
  /* 1.3秒後に開始 */
}

/* 英文名（masae motoki） */
.about-ruby {
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: #888888;
  margin-bottom: 4px;
}

/* お名前 */
.about-name {
  font-size: 1.8rem;
  /* 25px相当：しっかり主役サイズ */
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #2b2b2b;
  margin-bottom: 20px;
  /* 本文との間に少し広めの余白 */
  line-height: 1.3;
}

/* 本文テキスト */
.about-text {
  font-size: 1.4rem;
  /* 約15px：スマホで読みやすいサイズ */
  line-height: 1.85;
  /* ゆったりめの行間で視認性UP */
  color: #4a4a4a;
  letter-spacing: 0.04em;
}

/* --- 開閉ボタンエリア --- */
.policy-accordion {
  margin-top: 28px;
}

/* 「大切にしていること」ボタン */
.policy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid #dcdcdc;
  border-radius: 30px;
  background-color: #ffffff;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 500;
  color: #333333;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  list-style: none;
}

.policy-btn::-webkit-details-marker {
  display: none;
}

.policy-btn:hover {
  background-color: #f9f9f9;
  border-color: #bbbbbb;
}

/* 開いたときの中身文章 */
.policy-content {
  margin-top: 16px;
  padding: 20px;
  background-color: #fafafa;
  border-radius: 8px;
  font-size: 1.4rem;
  line-height: 1.85;
  color: #555555;
  letter-spacing: 0.04em;
}

/* ==========================================
   UI Sample & Private セクション
   ========================================== */
.ui-sample-section {
  padding: 60px 20px;
}

.ui-sample-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.ui-sample-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.8rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.ui-sample-title::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background-color: #333333;
}

p.ui-sample-lead {
  font-size: 1.4rem;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* --- ノート枠 --- */
.notebook-frame {
  width: 240px;
  /* 横幅 */
  height: 400px;
  /* 縦の長さ */
  margin: 0 auto;
  /* 中央寄せ */
  background-color: #fffbf0;
  border: 2px solid #ccc;
  /* ノート枠線 */
  border-radius: 12px;
  /* 角を丸く */
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
  /* 影をつける */
  position: relative;
  overflow: hidden;
  /* はみ出た中身を隠す */
  flex-shrink: 0;
  /* 潰さない */
  display: flex;
  flex-direction: column;
  /* タブとノート中身を縦に並べる */
}

/* --- ノートの中のスクローラー兼部屋 --- */
.notebook-scroller {
  width: 100%;
  height: calc(100% - 31px);
  /* タブの高さを除いた残りの高さ */
  position: relative;
  /* 動く中身の基準点 */
  padding: 15px;
  box-sizing: border-box;
}

/* --- ノートの中身の「見せる・隠す」切り替え --- */
.tab-content {
  display: none;
  height: 100%;
  overflow-y: auto;
  /* 縦にはみ出たときだけスクロールバーを出す */
  -webkit-overflow-scrolling: touch;
  /* スマホでのスクロールを滑らかにする */
}

.tab-content.active {
  display: block;
  /* 選ばれているタブだけ表示 */
}

/* 特殊な部屋の設定 */
.tab-content:has(.notebook-content) {
  overflow: hidden !important;
  /* 自動スクロール部屋は手動スクロールを消す */
}

.tab-content:has(.memo-area) {
  overflow: hidden;
}

/* --- カード内コンテンツ --- */
.notebook-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.ja-text {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #333333;
}

.en-text {
  font-size: 12px;
  color: #888888;
  line-height: 1.5;
  margin-bottom: 20px;
}

.ja-text-my-boom {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #333333;
  display: flex;
  flex-direction: column;
  /* 縦に並べる */
  align-items: center;
  /* 横方向の中央揃え */
  justify-content: center;
  /* 縦方向の中央揃え（必要であれば） */
  text-align: center;
  /* テキスト自体の中央揃え*/
}

.en-text-my-boom {
  font-size: 12px;
  color: #888888;
  display: flex;
  flex-direction: column;
  /* 縦に並べる */
  align-items: center;
  /* 横方向の中央揃え */
  justify-content: center;
  /* 縦方向の中央揃え（必要であれば） */
  text-align: center;
  /* テキスト自体の中央揃え */
  line-height: 1.8;
  /* 行間を少し広くして見やすくする */
  margin-top: 20px;
  /* 上のテキストとの隙間 */
  margin-bottom: 20px;
}

/* --- ノートの中の罫線 --- */
.lined-area {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  background-attachment: local;
  background-image: linear-gradient(to bottom, transparent 39px, #e8dfd0 39px);
  background-size: 100% 40px;
  background-repeat: repeat;
  font-size: 14px;
  line-height: 40px !important;
  /* 1行の高さを40pxに固定 */
  text-align: justify;
  color: #444444;
}

/* --- メモ帳エリア --- */
.memo-area {
  height: 100%;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: anywhere;
  font-family: monospace;
}

/* --- タブのデザイン --- */
.notebook-tabs {
  display: flex;
  background-color: #e0e0e0;
  border-bottom: 2px solid #ccc;
  flex-shrink: 0;
}

.tab-button {
  flex: 1;
  padding: 8px 5px;
  border: none;
  background: none;
  font-size: 11px;
  font-weight: bold;
  color: #666666;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.tab-button:hover {
  background-color: #f0f0f0;
}

.tab-button.active {
  background-color: #fffbf0;
  color: #333333;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

/* --- 自動スクロール設定 --- */
.notebook-content {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  padding: 15px;
  box-sizing: border-box;
  animation: scrollUp 8s linear infinite;
}

.notebook-content .en-text {
  font-size: 15px !important;
  color: #888888 !important;
}

@keyframes scrollUp {
  0% {
    transform: translateY(350px);
  }

  100% {
    transform: translateY(-100%);
  }
}

/* --- ストップボタン --- */
.scroll-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background-color: rgb(248, 199, 238);
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.scroll-btn:hover {
  background-color: rgb(251, 168, 235);
}

.notebook-content.paused {
  animation-play-state: paused;
}

/* ==========================================
   PC表示用の上書き設定 (768px以上)
   ========================================== */
@media (min-width: 768px) {
  .section-inner {
    padding: 60px 20px;
  }

  .pc-only {
    display: inline;
  }

  .site-header {
    padding: 40px 48px;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
  }

  .site-title {
    font-size: 20px;
  }

  /* --- 1. 不要なスマホ要素の非表示 --- */
  .sp-logo,
  .soushoku01 {
    display: none !important;
    /* スマホ用のロゴやMの飾りは隠す */
  }

  /* 縦書き作品集ロゴ（PC表示）
  .site-title.brand-vertical,
  .brand-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 40px;
    left: 48px;
    text-decoration: none;
    color: #2b2b2b;
  } */

  /* ★ 縦書きタイトルエリア */
  .brand-area {
    position: absolute;
    top: 40px;
    left: 38px;
    /* ★1枚目の一覧ページの線の位置に合わせて、px数を微調整（例: 60px〜80px） */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    z-index: 100;
    margin: 0;
    padding-top: 20px;
    margin-left: -159px;
  }

  /* 2. 親要素の基準を画面全体の最外枠に揃える */
  .site-header,
  .works-container {
    position: relative;
    max-width: 1200px;
    /* 全ページの最大の横幅指定がもしあれば共通化 */
    margin: 0 auto;
  }

  /* 親要素の中央寄せなどの影響で位置がブレないよう、内部のrelativeを外す */
  .header-inner,
  .sidebar {
    position: static;
  }

  /* ホバーしたときに少し薄くして「押せる」感覚を出す */
  a.brand-area:hover {
    opacity: 0.6;
  }

  /* 例の「上の縦線」 */
  /* .soushoku01 {
    display: block;
    width: 1px;
    height: 70px;
    background-color: #d1d1d1;
  /* ページの親要素のpaddingを無視して上端まで突き抜ける絶対配置 */
  /* position: absolute; */
  /* top: -80px; .page-wrapper の padding-top: 80px 分を上へ相殺
    left: 6px;
  } */

  /* 縦書きテキスト（h1）の設定 */
  .brand-area .brand-title {
    writing-mode: vertical-rl;
    /* 縦書き指定 */
    text-orientation: mixed;
    font-size: 13px;
    font-weight: normal;
    /* 必要に応じて太さを調整 */
    letter-spacing: 0.15em;
    color: #666;
    margin: 0;
    position: relative;
    display: inline-block;
  }

  /* 上の短い縦線（h1テキストの真上に配置） */
  .brand-area .brand-title::before {
    content: "";
    position: absolute;
    top: -60px;
    /* 上の空けたスペースに線を配置 */
    left: 50%;
    /* テキストの横幅の中央へ */
    transform: translateX(-50%);
    /* 完全に中央に一直線合わせ */
    width: 1px;
    height: 40px;
    /* 線の長さ */
    background-color: #aaa;
    /* 線の色 */
  }

  /* 1. わたしのこと：左右分割 */
  .about-flex {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
  }

  .about-photo {
    max-width: 480px;
    /* PCでは大きくなりすぎないように幅を制限 */
    margin: 0;
    /* スマホ用の余白をリセット */
    margin-left: 40px;
    /* 左が文章・右が写真の場合 */
  }

  .about-content {
    width: 55%;
  }

  .vertical-title {
    position: absolute;
    left: -45px;
    top: 0;
  }

  /* 2. いまできること：カード横並び */
  .card-flex {
    flex-direction: row;
    align-items: center;
  }

  .card-img {
    width: 40%;
  }

  .card-info {
    width: 60%;
  }

  /* リスト：2列化 */
  .skill-list dt {
    float: left;
    ;
    width: 50%;
    clear: left
  }

  .skill-list dd {
    margin-left: 50%;
  }

  .contact-big-title {
    font-size: 100px;
    /* PCでは圧倒的に大きく */
  }

  .contact-sub {
    font-size: 12px;
    margin-bottom: 24px;
  }

  /* PC用のボタンサイズへ拡張 */
  .email-btn {
    max-width: 340px;
    font-size: 13px;
    gap: 8px;
    letter-spacing: 0.05em;
  }

  .footer-container {
    flex-direction: row;
    /* 横並びにする */
    justify-content: space-between;
    /* 左と右に綺麗に振り分ける */
  }

  /* .footer {
    padding: 24px 24px;
  }
  .footer-container {
    gap: 12px;
  }
  .footer-nav {
    gap: 12px;
  } */

  .scroll-area {
    right: 6%;
    bottom: 40px;
    z-index: 10;
  }

  .about-name {
    font-size: 2.0rem;
    /* 約30px */
    margin-bottom: 24px;
  }

  /* 本文も読みやすくほんの少しサイズアップ */
  .about-text {
    font-size: 1.6rem;
    /* 約15.2px */
    line-height: 1.9;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    /* PC：綺麗に2列 */
  }


  /* ★ 白カードのデザイン ★ */
  .skill-card {
    background-color: #ffffff;
    /* 白背景でカード化 */
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    /* うっすら優しい影 */
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* カード内の見出し部分 */
  .skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
  }

  .skill-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2b2b2b;
    letter-spacing: 0.03em;
  }

  /* 星（★☆）の装飾 */
  .skill-stars {
    display: flex;
    gap: 2px;
    font-size: 1.4rem;
  }

  .skill-stars .star {
    color: #e0e0e0;
    /* 薄いグレー（☆） */
  }

  .skill-stars .star.active {
    color: #555555;
    /* 濃いグレー（★）※お好きな色（ゴールドやメインカラー）に変更OK！ */
  }

  /* 説明テキスト */
  .skill-desc {
    font-size: 1.4rem;
    color: #666666;
    line-height: 1.7;
    letter-spacing: 0.03em;
  }

  .notebook-frame {
    width: 280px;
    /* PCでは横幅を280pxにゆったり広げる */
    height: 440px;
    /* 高さも合わせて少し高く */
  }

  .ui-sample-lead {
    font-size: 0.925rem;
    /* リード文も読みやすく調整 */
  }

}