
/* =========================
   基本設定
========================= */


@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');


:root {
  --blue: #83c5ef;
  --dark-blue: #448fbe;
  --text: #526b7e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;

font-family:
  "Zen Maru Gothic",
  "Hiragino Kaku Gothic ProN",
  sans-serif;

  color: var(--text);
background: linear-gradient(
  180deg,
  #d8efff 0%,
  #e5f4ff 25%,
  #edf0ff 50%,
  #f7efff 75%,
  #eaf7ff 100%
);
  line-height: 1.7;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}



/* =========================
   ヘッダー
========================= */

.header {
  position: relative;
  background: transparent;
  border-bottom: 1px solid rgba(131, 197, 239, 0.3);
  overflow: visible;
}

.header-inner {
  width: 100%;
  min-height: 80px;
  padding: 10px 40px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}



/* ヘッダーの穴あけパンチ風装飾 */

.header-holes {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  align-items: center;
  gap: clamp(12px, 3.6vw, 60px);

  z-index: 5;
  pointer-events: none;
}

.header-holes span {
  display: block;
  width: clamp(14px, 2.1vw, 35px);
  height: clamp(14px, 2.1vw, 35px);
  border-radius: 50%;

  background: #f2f8ff;
  border: clamp(3px, 0.36vw, 6px) solid #fafcff;

  box-shadow:
    0 1px 3px rgba(98, 137, 167, 0.15),
    inset 0 2px 5px rgba(98, 137, 167, 0.22);
}




/* ヘッダーロゴ */

.header-logo {
  display: inline-flex;
  align-items: center;
}

.header-logo-image {
  display: block;
  width: auto;
  height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* ヘッダーのナビゲーション */

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 95px;
  padding: 8px 20px;

  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(130, 185, 225, 0.3);
  border-radius: 30px;

  color: #6a9fbe;
  font-size: 16px;
  font-weight: 700;

  transition:
    background 0.2s,
    transform 0.2s;
}

/* マウスを乗せたとき */

.nav a:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

/* 現在開いているページ */

.nav a[aria-current="page"] {
  background: rgba(180, 220, 250, 0.25);
  border-color: rgba(130, 185, 225, 0.4);
}



/* =========================
   メインビジュアル（画像1枚）
========================= */

.hero {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #c5e5fa;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================
   PROFILE SAMPLE
========================= */

.samples {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 28px 48px 32px;
  background: transparent;
}

.samples-inner {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  min-width: 0;
}

/* タイトルと矢印 */

.samples-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--dark-blue);
}

.section-description {
  font-size: 12px;
  color: #8396a5;
}

/* 横スクロールエリア */

.sample-track {
  display: flex;
  gap: 18px;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 6px 4px 15px;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;

  scrollbar-width: thin;
  scrollbar-color: #c3e4f7 transparent;
}

.sample-track::-webkit-scrollbar {
  height: 6px;
}

.sample-track::-webkit-scrollbar-thumb {
  background: #c3e4f7;
  border-radius: 10px;
}
/* 自動スクロール用 */
.sample-track.sample-auto-scroll {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

/* サンプルカード */

.sample-card {
  flex: 0 0 clamp(220px, 27vw, 310px);
  aspect-ratio: 1.414;

  border: 5px solid #ffffff;
  border-radius: 12px;

  box-shadow: 0 3px 12px rgba(83, 143, 184, 0.16);

  scroll-snap-align: start;
  overflow: hidden;
}

/* プロフィールサンプル画像 */

.sample-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 仮のサンプル表示 */

.sample-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px dashed rgba(77, 126, 165, 0.3);
  border-radius: 7px;

  font-size: 17px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #6487a0;
}

/* サンプルの仮カラー */

.sample-01 {
  background: #dceffc;
}

.sample-02 {
  background: #fff0bc;
}

.sample-03 {
  background: #f9dce9;
}

.sample-04 {
  background: #dff3e7;
}

.sample-05 {
  background: #e8ddfa;
}

.sample-06 {
  background: #eeeeee;
}


/* =========================
   プロフィール一覧ボタン
========================= */

.samples-button {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.main-button {
  display: inline-block;
  padding: 12px 36px;

  background: #86c5ed;
  color: #ffffff;
  border-radius: 50px;

  font-size: 14px;
  font-weight: bold;
  text-align: center;

  box-shadow: 0 4px 0 #c5e7fa;

  transition:
    background 0.2s,
    transform 0.2s;
}

.main-button:hover {
  background: #65b1e2;
  transform: translateY(-2px);
}


/* =========================
   フッター
========================= */

.footer {
  min-height: 45px;
  padding: 10px 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f3faff;
  border-top: 1px solid #e5f2fb;
}

.copyright {
  font-size: 11px;
  color: #91a6b7;
}


/* =========================
   画面の高さが小さいPC
========================= */

@media (max-height: 760px) and (min-width: 769px) {
  .samples {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .sample-card {
    flex-basis: 260px;
  }

  .samples-button {
    margin-top: 14px;
  }
}


/* =========================
   スマホ対応（TOPページ）
========================= */

@media (max-width: 768px) {
  .header-inner {
    min-height: 58px;
    padding: 0 16px;
  }

.header-logo-image {
  height: 52px;
}

.nav {
  gap: 8px;
}

.nav a {
  min-width: 0;
  padding: 6px 12px;
  font-size: 13px;
}

  .samples {
    padding: 30px 18px 40px;
  }

  .section-title {
    font-size: 19px;
  }

  .section-description {
    font-size: 11px;
  }

  .sample-track {
    gap: 12px;
    align-items: flex-start;
  }

  .sample-card {
    flex-basis: min(75vw, 290px);
  }

  .main-button {
    font-size: 12px;
    padding: 12px 25px;
  }
}

/* キーボード操作時 */

a:focus-visible,
button:focus-visible,
.sample-track:focus-visible {
  outline: 3px solid #347fba;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html,
  .sample-track {
    scroll-behavior: auto;
  }
}


/* =========================
   ALL PROFILES ページ
========================= */


/* =========================
   一覧エリア
========================= */

.all-profiles {
  padding: 45px 24px 90px;
  background: #ffffff;
}

.all-inner {
  width: min(100%, 1100px);
  margin: 0 auto;
}

/* 見出しと検索欄 */

.all-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.all-section-title {
  font-size: 20px;
  font-weight: bold;
  color: #448fbe;
}

/* 検索欄 */

.profile-search {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-search label {
  font-size: 12px;
  font-weight: bold;
  color: #7397b0;
  white-space: nowrap;
}

.profile-search input {
  width: 220px;
  padding: 11px 17px;

  border: 1.5px solid #c7e5f7;
  border-radius: 30px;

  background: #f5fbff;
  color: #526b7e;

  font-size: 13px;
  font-family: inherit;

  outline: none;

  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.profile-search input::placeholder {
  color: #a0b4c3;
}

.profile-search input:focus {
  border-color: #83c5ef;
  box-shadow: 0 0 0 3px #e2f4ff;
}


/* =========================
   プロフィールカード一覧
========================= */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* カード共通 */

.profile-card {
  min-height: 210px;
  padding: 28px 18px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;

  border-radius: 18px;
  border: 3px solid #ffffff;

  box-shadow: 0 4px 14px rgba(95, 147, 182, 0.13);
  text-align: center;

  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 9px 20px rgba(95, 147, 182, 0.2);
}

.profile-card:focus-visible {
  outline: 3px solid #448fbe;
  outline-offset: 3px;
}

/* 記入済みプロフィールの一覧カード */

.profile-card.has-preview {
  padding: 15px;
  gap: 10px;
}

.profile-preview {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 297 / 210;
  object-fit: contain;

  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 8px;

  box-shadow: 0 2px 8px rgba(95, 147, 182, 0.12);
}

/* アイコン */

.profile-avatar {
  width: 76px;
  height: 76px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.85);
  border: 2px solid #ffffff;
  border-radius: 50%;

  color: #75a9ca;
  font-size: 32px;

  box-shadow: 0 2px 7px rgba(95, 147, 182, 0.08);
}

/* プロフィールアイコン画像 */

.profile-avatar {
  overflow: hidden;
}

.profile-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}


/* ニックネーム */

.profile-name {
  font-size: 17px;
  font-weight: bold;
  color: #526b7e;
  overflow-wrap: anywhere;
}

/* PROFILE → */

.profile-link-text {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #7397b0;
}


/* =========================
   カードの6色
========================= */

.color-pink {
  background: #fbe1eb;
}

.color-blue {
  background: #dfeffc;
}

.color-yellow {
  background: #fff2c9;
}

.color-green {
  background: #e0f3e8;
}

.color-purple {
  background: #e9e1fc;
}

.color-gray {
  background: #eeeeee;
}


/* =========================
   検索結果がない場合
========================= */

.no-results {
  margin-top: 45px;
  padding: 25px;

  text-align: center;
  font-size: 14px;
  color: #7397b0;
}

.profile-card[hidden] {
  display: none;
}


/* =========================
   タブレット対応
========================= */

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .all-star {
    left: 7%;
  }

  .all-cloud {
    right: 7%;
  }
}


/* =========================
   スマホ対応（一覧ページ）
========================= */

@media (max-width: 520px) {
  .all-hero {
    padding: 36px 16px;
  }

  .all-title {
    font-size: 28px;
  }

  .all-description {
    font-size: 12px;
  }

  .all-star {
    font-size: 32px;
    left: 4%;
  }

  .all-cloud {
    font-size: 48px;
    right: 3%;
  }

  .all-profiles {
    padding: 30px 16px 60px;
  }

  .all-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .all-section-title {
    font-size: 18px;
  }

  .profile-search {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .profile-search input {
    width: 100%;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-card {
    min-height: 180px;
  }

  .profile-avatar {
    width: 65px;
    height: 65px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-card {
    transition: none;
  }
}


/* =========================
   個人プロフィールページ
========================= */

.detail-page {
  flex: 1;
  width: 100%;
  padding: 36px 24px 70px;
  background: #ffffff;
}

.detail-inner {
  width: min(100%, 1100px);
  margin: 0 auto;
}


/* =========================
   一覧に戻るボタン
========================= */

.detail-back {
  margin-bottom: 28px;
}

.detail-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 11px 22px;

  border: 1.5px solid #c7e5f7;
  border-radius: 30px;

  background: #ffffff;
  color: #448fbe;

  font-size: 13px;
  font-weight: bold;
  text-decoration: none;

  transition:
    background 0.2s,
    transform 0.2s;
}

.detail-back-button:hover {
  background: #edf8ff;
  transform: translateY(-2px);
}


/* =========================
   プロフィール表示エリア
========================= */

.detail-viewer {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 24px;

  background: #edf8ff;
  border-radius: 20px;
}

.detail-profile-area {
  width: 100%;
  aspect-ratio: 297 / 210;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  border: 2px solid #c7e5f7;
  border-radius: 12px;
  overflow: hidden;

  box-shadow: 0 4px 15px rgba(95, 147, 182, 0.08);
}

/* 記入済みプロフィール画像 */

.detail-profile-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* =========================
   仮のプロフィール表示
========================= */

.detail-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;

  text-align: center;
  padding: 24px;
}

.detail-placeholder-title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: 4px;
  color: #83c5ef;
}

.detail-placeholder-text {
  font-size: 14px;
  color: #91afc2;
}


/* =========================
   前へ・次へボタン
========================= */

.detail-navigation {
  width: min(100%, 980px);
  margin: 30px auto 0;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.detail-nav-button {
  min-width: 130px;
  padding: 13px 26px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  border: 1.5px solid #c7e5f7;
  border-radius: 30px;

  color: #448fbe;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;

  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.detail-nav-button:hover {
  background: #edf8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(95, 147, 182, 0.12);
}

/* キーボード操作時 */

.detail-back-button:focus-visible,
.detail-nav-button:focus-visible {
  outline: 3px solid #448fbe;
  outline-offset: 3px;
}


/* =========================
   スマホ対応（個人ページ）
========================= */

@media (max-width: 768px) {
  .detail-page {
    padding: 25px 16px 50px;
  }

  .detail-back {
    margin-bottom: 22px;
  }

  .detail-viewer {
    padding: 12px;
    border-radius: 14px;
  }

  .detail-profile-area {
    border-radius: 8px;
  }

  .detail-placeholder {
    gap: 8px;
    padding: 12px;
  }

  .detail-placeholder-title {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .detail-placeholder-text {
    font-size: 11px;
  }

  .detail-navigation {
    margin-top: 24px;
    gap: 12px;
  }

  .detail-nav-button {
    min-width: 0;
    padding: 11px 20px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-back-button,
  .detail-nav-button {
    transition: none;
  }
}
/* =========================
   サイト全体のグラデーション背景
========================= */

.samples,
.all-profiles,
.detail-page {
  background: transparent;
}
