/* ============================================
   すがやんデザイン ポートフォリオ
   コンセプト: ピンクのノートに貼ったシール帳
   ============================================ */

:root {
  --pink: #EE4E9B;          /* ブランドピンク（アイコン背景色） */
  --pink-deep: #C22872;     /* 濃いピンク（見出し・強調） */
  --pink-dark: #7C1747;     /* いちばん濃い（本文級テキスト） */
  --pink-soft: #FFD7E8;     /* うすいピンク（タグ・飾り） */
  --paper: #FFF6FA;         /* ノートの紙色 */
  --ink: #40232F;           /* 文字色（黒に近いこげ茶ピンク） */
  --yellow: #FFD93B;        /* アクセント（くつの黄色） */
  --blue: #4FB3E8;          /* アクセント（ズボンの水色） */
  --green: #8CC63F;         /* ココナラ用グリーン */
  --line: #40232F;          /* シールのフチ線 */
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "BIZ UDGothic", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
}

img { max-width: 100%; display: block; }

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 246, 250, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--pink-soft);
}

.logo {
  font-weight: 800;
  font-size: 16px;
  color: var(--pink);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo span { color: var(--ink); }

.nav { display: flex; gap: 0; }

.nav a {
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-dark);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: var(--pink);
  color: #fff;
}

/* ---------- ヒーロー ---------- */

.hero {
  position: relative;
  background: var(--pink);
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 8%, transparent 9%);
  background-size: 46px 46px;
  padding: 56px 20px 110px;
  text-align: center;
  overflow: hidden;
}

.hero-inner { max-width: 640px; margin: 0 auto; }

.hero-icon-wrap {
  width: 148px;
  height: 148px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  box-shadow: 6px 6px 0 rgba(124, 23, 71, 0.35);
  animation: pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero-icon { border-radius: 50%; }

.hero-title {
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 3px 3px 0 var(--pink-deep);
  animation: pop-in 0.6s 0.12s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero-copy {
  margin-top: 12px;
  font-size: clamp(14px, 3.6vw, 17px);
  font-weight: 700;
  color: #FFEAF4;
  animation: pop-in 0.6s 0.24s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero-tags {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  animation: pop-in 0.6s 0.36s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.tag {
  font-size: 13px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2.5px solid var(--line);
  box-shadow: 3px 3px 0 rgba(64, 35, 47, 0.28);
}

.tag-yellow { background: var(--yellow); color: var(--ink); transform: rotate(-2deg); }
.tag-blue   { background: var(--blue);  color: #fff;       transform: rotate(1.5deg); }
.tag-white  { background: #fff;         color: var(--pink-deep); transform: rotate(-1deg); }

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.hero-wave svg { width: 100%; height: 48px; }

@keyframes pop-in {
  from { opacity: 0; transform: translateY(18px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- セクション共通 ---------- */

.section {
  padding: 56px 20px 64px;
  max-width: 960px;
  margin: 0 auto;
}

.section-pink {
  max-width: none;
  background: var(--pink-soft);
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 8%, transparent 9%);
  background-size: 40px 40px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  color: var(--pink-deep);
  text-align: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--line);
  flex-shrink: 0;
}

.section-lead {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--pink-dark);
}

/* ---------- 作品ギャラリー ---------- */

.gallery {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.sticker-card {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 6px 6px 0 var(--pink-soft);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.gallery .sticker-card:nth-child(odd)  { transform: rotate(-1.2deg); }
.gallery .sticker-card:nth-child(even) { transform: rotate(1.2deg); }

.gallery .sticker-card:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.02);
  box-shadow: 8px 10px 0 var(--pink-soft);
}

.sticker-card img {
  width: 100%;
  border-radius: 8px;
}

.gallery-note {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-deep);
}

/* ---------- プロフィール ---------- */

.profile-card {
  max-width: 640px;
  margin: 32px auto 0;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 6px 6px 0 rgba(194, 40, 114, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.profile-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--pink);
  flex-shrink: 0;
}

.profile-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--pink-deep);
}

.profile-text {
  margin-top: 8px;
  font-size: 14px;
  text-align: left;
}

.x-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--pink);
  transition: transform 0.2s, box-shadow 0.2s;
}

.x-link:hover {
  transform: translateY(-2px);
  box-shadow: 4px 5px 0 var(--pink);
}

/* ---------- リンクカード ---------- */

.link-cards {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.link-card {
  position: relative;
  display: block;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 22px 48px 22px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.lc-green  { box-shadow: 6px 6px 0 var(--green); }
.lc-blue   { box-shadow: 6px 6px 0 var(--blue); }
.lc-yellow { box-shadow: 6px 6px 0 var(--yellow); }

.link-card:hover { transform: translateY(-6px); }
.lc-green:hover  { box-shadow: 8px 10px 0 var(--green); }
.lc-blue:hover   { box-shadow: 8px 10px 0 var(--blue); }
.lc-yellow:hover { box-shadow: 8px 10px 0 var(--yellow); }

.lc-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--pink-deep);
}

.lc-desc {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
}

.lc-price {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--pink-dark);
  background: var(--pink-soft);
  padding: 3px 12px;
  border-radius: 999px;
}

.lc-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 800;
  color: var(--pink);
  transition: transform 0.2s;
}

.link-card:hover .lc-arrow { transform: translateY(-50%) translateX(4px); }

/* ---------- フッター ---------- */

.site-footer {
  background: var(--pink);
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 8%, transparent 9%);
  background-size: 46px 46px;
  text-align: center;
  padding: 36px 20px;
}

.footer-msg {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.footer-copy {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #FFEAF4;
}

/* ---------- パソコン・タブレット ---------- */

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery .wide { grid-column: 1 / -1; }

  .profile-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 28px;
  }

  .nav a { font-size: 14px; padding: 6px 12px; }

  .logo { font-size: 18px; }

  .site-header { padding: 12px 20px; }
}

@media (min-width: 860px) {
  .link-cards { grid-template-columns: repeat(3, 1fr); }

  .link-card { padding: 24px 22px 56px; }

  .lc-arrow {
    top: auto;
    bottom: 16px;
    right: 20px;
    transform: none;
  }

  .link-card:hover .lc-arrow { transform: translateX(4px); }
}

/* 動きを控えたい設定の人には動かさない */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-icon-wrap, .hero-title, .hero-copy, .hero-tags { animation: none; }
  .sticker-card, .link-card, .x-link { transition: none; }
}
