
/* ページ全体の基本設定 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #ffffff;
  font-family: "Zen Old Mincho", serif;
  text-align: center;
  background: linear-gradient(
    135deg,
    #8daedc,
    #a9c5e9,
    #aaa0d0,
    #8daedc
  );
  background-size: 200% 200%;
  min-height: 100vh;
}

/* 白い枠で囲むトップページ */
.profile-card {
  position: relative;
  width: calc(100% - 48px);
  max-width: 1100px;
  min-height: 90vh;
  margin: 5vh auto;
  padding: clamp(36px, 7vw, 80px) 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Xアイコン */
.icon-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(90px, 18vw, 140px);
  aspect-ratio: 1;
  margin-bottom: 30px;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: transform 0.3s;
}

.icon-link:hover {
  transform: scale(1.05);
}

/* 狐月のイラスト画像 */
.fox-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.x-mark {
  position: absolute;
  right: -5px;
  bottom: 0;
  font-family: sans-serif;
  font-size: 24px;
  background: #929fdb;
  border: 1px solid white;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

/* 名前 */
h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 400;
  letter-spacing: 0.18em;
}

.english-name {
  margin: 12px 0 0;
  font-size: clamp(15px, 3vw, 23px);
  letter-spacing: 0.35em;
}

.decoration {
  margin: 30px 0;
  font-size: 16px;
  letter-spacing: 0.15em;
}

/* 紹介文 */
.introduction {
  margin: 0;
  font-size: clamp(16px, 3.5vw, 23px);
  line-height: 2.2;
  letter-spacing: 0.08em;
}

.thanks {
  margin-top: 20px;
  font-size: clamp(12px, 2.5vw, 16px);
  letter-spacing: 0.08em;
}

/* メニュー */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.links a {
  min-width: 105px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: white;
  text-decoration: none;
  font-family: sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  transition: background-color 0.3s;
}

.links a:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

/* 下へ進むマーク */
.scroll-link {
  margin-top: 30px;
  color: white;
  text-decoration: none;
  font-size: 30px;
}

/* プロフィール欄 */
.about {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
  line-height: 2;
}

.about h2 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.25em;
}

/* スマホ向け調整 */
@media (max-width: 480px) {
  .profile-card {
    width: calc(100% - 24px);
    min-height: 92vh;
    margin: 12px auto;
    padding: 35px 14px;
  }

  .icon-link {
    margin-bottom: 24px;
  }

  .decoration {
    margin: 22px 0;
  }

  .links {
    gap: 8px;
    width: 100%;
  }

  .links a {
    min-width: 0;
    padding: 11px 12px;
    font-size: 10px;
  }
}


/* =========================
   GALLERYページ
========================= */

.gallery-page {
  width: calc(100% - 32px);
  max-width: 1100px;
  min-height: 90vh;
  margin: 24px auto;
  padding: clamp(24px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* ホームへ戻るリンク */
.back-link {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-family: sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  transition: opacity 0.3s;
}

.back-link:hover {
  opacity: 0.7;
}

/* タイトル部分 */
.gallery-header {
  padding: 45px 0 35px;
}

.gallery-header h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 400;
  letter-spacing: 0.15em;
}

.gallery-subtitle {
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: 0.2em;
}

.gallery-intro {
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: 0.08em;
}

/* 作品を並べる場所 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 30px;
}

/* 1作品ごとのカード */
.artwork {
  min-width: 0;
  padding: 12px 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.3s, background-color 0.3s;
}

.artwork:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

/* イラスト画像 */
.artwork-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.artwork-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 作品名 */
.artwork h2 {
  margin: 18px 0 8px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.artwork p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* ページ下部 */
.gallery-footer {
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.08em;
}

.back-home-button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: background-color 0.3s;
}

.back-home-button:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

/* スマホ対応 */
@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .artwork {
    padding: 8px 8px 16px;
  }

  .artwork h2 {
    font-size: 14px;
  }

  .gallery-intro {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-right: auto;
    margin-left: auto;
  }
}


/* =========================
   REQUESTページ
========================= */

.request-page {
  width: calc(100% - 32px);
  max-width: 900px;
  min-height: 90vh;
  margin: 24px auto;
  padding: clamp(24px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
  color: white;
  font-family: "Zen Old Mincho", serif;
}

.request-header {
  padding: 45px 0 35px;
  text-align: center;
}

.request-header h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 400;
  letter-spacing: 0.15em;
}

.request-header > p {
  margin-top: 14px;
  font-size: 15px;
  letter-spacing: 0.2em;
}

.request-intro {
  margin: 20px 0 45px;
  padding: 30px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.request-intro h2,
.request-form-section h2 {
  margin: 0 0 22px;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.request-intro p {
  margin: 0;
  font-size: 13px;
  line-height: 2.3;
  letter-spacing: 0.06em;
}

.request-form-section {
  padding: 35px 0;
  text-align: center;
}

.request-form-section > p {
  margin-bottom: 30px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.request-footer {
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.08em;
}

@media (max-width: 600px) {
  .request-intro {
    padding: 25px 12px;
  }

  .request-intro p {
    font-size: 12px;
  }
}

/* =========================
   ご依頼フォーム
========================= */

.request-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 26px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: white;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group select,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-family: "Zen Old Mincho", serif;
  font-size: 14px;
  outline: none;
  transition: background 0.3s, border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: white;
  background: rgba(255, 255, 255, 0.2);
}

.form-group textarea {
  resize: vertical;
  line-height: 1.8;
}

.form-group select option {
  color: #333;
  background: white;
}

.form-note {
  margin: 0 0 25px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.form-submit {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 30px auto 0;
  padding: 15px 20px;
  border: 1px solid white;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-family: "Zen Old Mincho", serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.form-submit:hover {
  background: white;
  color: #7773a8;
}

@media (max-width: 600px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px;
  }
}


/* ===== ABOUT ===== */

.about {
  max-width: 760px;
  margin: 70px auto;
  padding: 35px 24px;
  text-align: center;
  color: #fff;
}

/* 見出し */

.about-label {
  font-size: 13px;
  letter-spacing: 0.3em;
  margin-bottom: 30px;
}

/* 名前 */

.about-name {
  margin-bottom: 24px;
}

.furigana {
  font-size: 12px;
  letter-spacing: 0.3em;
  margin-bottom: 5px;
  opacity: 0.85;
}

.about-name h2 {
  color: #fff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 42px;
  font-weight: normal;
  letter-spacing: 0.3em;
  margin: 0;
}

.name-sub {
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-top: 12px;
  opacity: 0.8;
}

/* 月と星 */

.about-decoration {
  margin: 24px 0;
  font-size: 17px;
  letter-spacing: 0.5em;
  opacity: 0.9;
}

/* 紹介文 */

.about-message {
  font-size: 14px;
  line-height: 2.2;
  margin: 25px 0;
}

/* 細い白線 */

.about-line {
  width: 75%;
  max-width: 360px;
  height: 1px;
  margin: 28px auto;
  background: rgba(255, 255, 255, 0.55);
}

/* ゲーム・趣味 */

.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 30px auto;
}

.about-item {
  padding: 12px 5px;
}

.about-item h3 {
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.about-item p {
  font-size: 13px;
  line-height: 2;
  margin: 5px 0;
}

/* 日常アカウント */

.daily-link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: background 0.3s, opacity 0.3s;
}

.daily-link:hover {
  background: rgba(255, 255, 255, 0.15);
  opacity: 0.85;
}

/* スマホ */

@media (max-width: 500px) {
  .about {
    margin: 45px auto;
    padding: 25px 16px;
  }

  .about-name h2 {
    font-size: 36px;
  }

  .about-info {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* 背景色の変化をなめらかにする */
body {
  transition: background 1.2s ease;
}

/* ABOUT自体には背景をつけない */
.about {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ===== ABOUT PROFILE ===== */

.about {
  max-width: 760px;
  margin: 70px auto;
  padding: 45px 24px;
  color: #fff;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.about-label {
  font-size: 12px;
  letter-spacing: 0.35em;
  margin-bottom: 10px;
  opacity: 0.9;
}

.about-intro {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 19px;
  letter-spacing: 0.2em;
  margin-bottom: 30px;
}

/* プロフィール全体の枠 */

.profile-frame {
  max-width: 540px;
  margin: 0 auto;
  padding: 25px 30px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.65);
  outline: 1px solid rgba(255, 255, 255, 0.2);
  outline-offset: 5px;
  background: rgba(255, 255, 255, 0.035);
}

/* 名前欄 */

.profile-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.profile-small {
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

.profile-furigana {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-bottom: 3px;
  opacity: 0.85;
}

.profile-heading h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 25px;
  font-weight: normal;
  letter-spacing: 0.18em;
  margin: 0;
  color: #fff;
}

.profile-mark {
  margin-left: auto;
  font-size: 22px;
  opacity: 0.8;
}

/* 各プロフィール項目 */

.profile-row {
  display: grid;
  grid-template-columns: 28px 110px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.profile-icon {
  font-size: 16px;
  text-align: center;
  opacity: 0.9;
}

.profile-title {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.profile-value {
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

/* 好きな色の丸 */

.color-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  vertical-align: -1px;
  margin: 0 4px 0 5px;
}

.white-dot {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.blue-dot {
  background: #9caeff;
  border: 1px solid rgba(253, 253, 253, 0.7);
}

/* X 日常アカウントリンク */

.daily-account {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 24px;
  padding: 15px 18px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.daily-account:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.x-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  font-size: 20px;
}

.daily-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.daily-caption {
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0.75;
}

.daily-name {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.daily-arrow {
  margin-left: auto;
  font-size: 18px;
}

/* スマホ表示 */

@media (max-width: 500px) {
  .about {
    padding: 35px 18px;
  }

  .profile-frame {
    padding: 20px 16px;
  }

  .profile-row {
    grid-template-columns: 22px 88px minmax(0, 1fr);
    gap: 6px;
  }

  .profile-title,
  .profile-value {
    font-size: 12px;
  }

  .profile-heading {
    gap: 12px;
  }
}

/* ===== ABOUT プロフィール調整 ===== */

.profile-frame {
  max-width: 620px;
  padding: 28px 32px;
}

/* 名前と基本情報を横並びに */

.profile-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* 名前 */

.profile-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: none;
}

.profile-small {
  font-size: 14px;
  letter-spacing: 0.22em;
}

.profile-furigana {
  font-size: 16px;
  letter-spacing: 0.2em;
  margin: 10px 0 0;
}

.profile-heading h2 {
  font-size: 36px;
  letter-spacing: 0.2em;
  line-height: 1.4;
}

.profile-mark {
  display: none;
}

/* 右側：誕生日・好きな色 */

.profile-basic {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.basic-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.basic-item .profile-icon {
  font-size: 20px;
  min-width: 22px;
}

.basic-item .profile-title {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}

.basic-item .profile-value {
  font-size: 17px;
  margin: 0;
}

/* 趣味・好きなゲーム */

.profile-row {
  display: grid;
  grid-template-columns: 30px 125px minmax(0, 1fr);
  gap: 12px;
  padding: 21px 0;
}

.profile-row .profile-icon {
  font-size: 19px;
}

.profile-row .profile-title {
  font-size: 16px;
}

.profile-row .profile-value {
  font-size: 16px;
  line-height: 1.9;
}

/* 日常アカウント */

.daily-account {
  padding: 17px 20px;
}

.daily-name {
  font-size: 15px;
}

.daily-caption {
  font-size: 10px;
}

/* スマホ用 */

@media (max-width: 500px) {
  .profile-frame {
    padding: 22px 18px;
  }

  .profile-top {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .profile-heading h2 {
    font-size: 30px;
  }

  .profile-basic {
    padding-left: 14px;
    gap: 18px;
  }

  .basic-item {
    gap: 6px;
  }

  .basic-item .profile-title {
    font-size: 13px;
  }

  .basic-item .profile-value {
    font-size: 15px;
  }

  .profile-row {
    grid-template-columns: 24px 100px minmax(0, 1fr);
    gap: 6px;
  }

  .profile-row .profile-title,
  .profile-row .profile-value {
    font-size: 14px;
  }
}

/* 日常アカウントの狐アイコン */

.daily-fox-icon {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

/* ===== ABOUTに入った時の背景演出 ===== */

body {
  transition: background 1.4s ease;
}


/* ABOUT自体は透明のままにする */
.about {
  background: transparent;
  box-shadow: none;
}

/* ===== リンクのふんわり演出 ===== */

/* すべてのリンクをなめらかに */
a {
  transition:
    transform 0.3s ease,
    color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* GALLERY・REQUEST */
.links a {
  display: inline-block;
}

.links a:hover {
  transform: translateY(-4px);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(230, 225, 255, 0.25);
}

/* 日常アカウント */
.daily-account {
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.daily-account:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(70, 65, 120, 0.12);
}

/* トップのアイコン */
.icon-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.icon-link:hover {
  transform: translateY(-3px) scale(1.04);
}

/* ABOUTへ進む矢印 */
.scroll-link {
  display: inline-block;
}

.scroll-link:hover {
  transform: translateY(4px);
  opacity: 0.7;
}

body {
  background: linear-gradient(
    135deg,
    var(--bg-start, #8daedc),
    var(--bg-middle,#8fadd4),
    var(--bg-end,#9a92ca)
    );
    transition: background 0.70s linear;
}

.profile-small {
  color: #fff;
  opacity: 1;
}
