/*
Theme Name: Portfolio Site
Author: Hashimoto Yuka
Version: 1.0
*/

/* ===========================
   Fonts
=========================== */
@font-face {
  font-family: "SnellRoundhand";
  src: url("assets/fonts/Snell-roundhand/snell-roundhand.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HonokaGothic";
  src:
    url("assets/fonts/HonokaGothic/Honoka-Shin-Maru-Gothic_R.woff2")
      format("woff2"),
    url("assets/fonts/HonokaGothic/Honoka-Shin-Maru-Gothic_R.woff")
      format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HonokaMincho";
  src:
    url("assets/fonts/HonokaMincho/Honoka_Shin_Mincho_L.woff2") format("woff2"),
    url("assets/fonts/HonokaMincho/Honoka_Shin_Mincho_L.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===========================
   Variables & Reset
=========================== */
:root {
  --primary: #a89586;
  --accent: #b61313;
  --text: #4a1704;
  --title: #664032;
  --contact: #dae0cd;
  --btn-bg: #e9dce3cc;
  --input-bg: rgba(255, 255, 255, 0.7);
  --bg: #fdf8f4;
  --text-muted: rgba(74, 23, 4, 0.55);
  --text-faint: rgba(74, 23, 4, 0.08);
  --max-w: 900px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "HonokaGothic", "Noto Sans JP", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
}

/* ===========================
   Fade-in (jQuery)
=========================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Header
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: white;
  padding: 0.5rem 1.5rem 0.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: end;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;

  background-image: url("assets/images/header-bg.jpg");
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;

  opacity: 0.6;
}

.site-header--sub {
  padding-bottom: 2rem;
}

.site-header > a {
  grid-column: 1 / 3;
  grid-row: 1;
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
}

.header-logo-wrap {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.header-logo {
  font-family: "SnellRoundhand", cursive;
  font-size: clamp(2.2rem, 7.5vw, 4.5rem);
  font-weight: bold;
  color: var(--title);
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header-logo-shadow {
  font-family: "SnellRoundhand", cursive;
  font-size: clamp(2.2rem, 7.5vw, 4.5rem);
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  position: absolute;
  top: 1px;
  left: 0;
  z-index: 0;
  user-select: none;
  pointer-events: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ===========================
   Header Nav
=========================== */
.header-nav {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding-bottom: 0.2rem;
}

.header-nav a {
  position: relative;
  display: inline-block;
  font-family: "HonokaGothic", sans-serif;
  font-size: 0.75rem;
  opacity: 0.95;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
  white-space: nowrap;
  color: var(--title);
  text-shadow: 0.5px 0.5px 0.5px #ffffff;
}

/* 2つのテキストを重ねる */
.header-nav .en,
.header-nav .ja {
  display: block;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* 日本語は初期非表示 */
.header-nav .ja {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(6px);
}

/* hover時：英語消す */
.header-nav a:hover .en {
  opacity: 0;
}

/* hover時：日本語出す */
.header-nav a:hover .ja {
  opacity: 1;
  transform: translateY(0);
  letter-spacing: -0.02em;
}

/* ===========================
   Nav（下層ページ用）
=========================== */
.site-nav {
  background: var(--primary);
  border-top: 1px solid rgba(182, 19, 19, 0.15);
  display: flex;
  justify-content: center;
}

.site-nav a {
  font-family: "HonokaGothic", sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.4rem 1.4rem;
  border-right: 1px solid rgba(182, 19, 19, 0.12);
  transition:
    color 0.2s,
    background 0.2s;
}

.site-nav a:first-child {
  border-left: 1px solid rgba(182, 19, 19, 0.12);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  background: rgba(182, 19, 19, 0.06);
}

/* ===========================
   Main padding-top（固定ヘッダー分）
=========================== */
main {
  padding-top: 90px;
}

/* ===========================
   Section
=========================== */
section {
  margin: 100px 0;
}

/* ===========================
   Section Title
=========================== */
.sec-title-wrap {
  position: relative;
  margin-bottom: 2rem;
}

.sec-title-wrap.right {
  text-align: right;
}

.sec-title {
  font-family: "HonokaMincho", serif;
  font-weight: bold;
  color: var(--accent);
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  position: relative;
  z-index: 1;
  padding-top: 3rem;
}

.sec-title-bg {
  font-family: "HonokaMincho", serif;
  font-weight: bold;
  color: var(--text-faint);
  font-size: clamp(2rem, 5.5vw, 3rem);
  transform: skewX(-22deg);
  position: absolute;
  top: 1rem;
  z-index: 0;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.sec-title-wrap:not(.right) .sec-title-bg {
  left: -1rem;
}

.sec-title-wrap.right .sec-title-bg {
  right: -1rem;
}

/* ===========================
   MV Section
=========================== */
.mv-section {
  padding: 0;
  max-width: 100%;
  height: 100vh;
  margin: 0 auto;
  width: 100%;
  position: relative;
  background: var(--input-bg);
  align-items: center;
  justify-content: center;
}

.mv-content {
  max-width: 80%;
  margin: 0 auto;
  padding: 8rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mv-title {
  width: 70%;
  padding: 0 1rem;
  font-family: "HonokaMincho", serif;
  font-size: clamp(1.6rem, 5vw, 5rem);
  color: var(--primary);
  line-height: 1.5;
}

.mv-title span {
  display: block;
  text-align: left;
}

.mv-subtitle {
  width: 80%;
  font-family: "HonokaGothic", sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  color: var(--primary);
  margin-top: -3rem;
  line-height: 1.3;
  align-items: center;
  justify-content: center;
  text-align: right;
}

.mv-content p {
  width: 80%;
  font-family: "HonokaGothic", sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  color: var(--primary);
  margin-top: 1rem;
  line-height: 1.3;
  text-align: right;
}

/* ===========================
   Skill Section
=========================== */
.skill-section {
  padding: 4rem 0 2rem;
  max-width: 72%;
  margin: 0 auto;
  width: 100%;
  position: relative;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .skill-section {
    max-width: 88%;
    width: 100%;
  }
}

@media (max-width: 340px) {
  .skill-section {
    max-width: 100%;
    width: 100%;
  }
}

/* ===========================
   Achievement Section
=========================== */
.achievement-section {
  padding: 4rem 0 2rem;
  max-width: 72%;
  margin: 1rem auto 0;
  width: 100%;
  position: relative;
}

/* ===========================
   Bubble wrap + content
=========================== */
.bubble-wrap {
  position: relative;
  min-height: 260px;
}

.bubble-bg {
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  opacity: 0.45;
  z-index: 0;
}

.bubble-content {
  position: relative;
  z-index: 1;
  padding: 1rem 0 12rem 6rem;
  max-width: 88%;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 340px) {
  .bubble-warap {
    max-width: 100%;
    width: 100%;
  }
}

/* ===========================
   Card Group Label
=========================== */
.card-group-label {
  font-family: "HonokaGothic", sans-serif;
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 0.6rem;
  margin-left: 7rem;
}

.card-group-label + .card-group-label,
.card-grid + .card-group-label {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

/* ===========================
   Card Grid
=========================== */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  width: 90%;
  justify-content: flex-start;
  margin: 0 7rem;
}

/* --wide: 説明あり を2列グリッド */
.card-grid--wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  width: 90%;
  margin: 0 7rem;
}

@media (max-width: 520px) {
  .card-grid--wide {
    grid-template-columns: 1fr;
  }
}

.item-card {
  background: white;
  border-radius: 7px;
  padding: 0.6rem 0.75rem;
  font-family: "HonokaGothic", sans-serif;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(182, 19, 19, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  min-width: 0;
  height: auto;
  word-break: break-word;
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 14px rgba(182, 19, 19, 0.13);
}

.item-card-tech {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ===========================
   List styles（共通）
=========================== */
.list-label {
  font-family: "HonokaGothic", sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.slash-list {
  font-family: "HonokaGothic", sans-serif;
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.85;
}

.bullet-list li,
.achievement-list li {
  font-family: "HonokaGothic", sans-serif;
  font-size: 0.93rem;
  color: var(--text);
  padding: 0.18rem 0 0.18rem 1rem;
  position: relative;
  line-height: 1.65;
}

.bullet-list li::before,
.achievement-list li::before {
  content: "・";
  color: var(--accent);
  position: absolute;
  left: 0;
}

.achievement-list .tech {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Accordion */
.acc-extra {
  display: none;
}

.acc-btn {
  font-family: "HonokaGothic", sans-serif;
  font-size: 0.8rem;
  color: var(--accent);
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.18rem 0;
  display: block;
  transition: opacity 0.2s;
}

.acc-btn:hover {
  opacity: 0.65;
}

/* ===========================
   Bubble CTA
=========================== */
.bubble-cta {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  transform: translatex(5%);
}

.works-link {
  font-family: "HonokaGothic", sans-serif;
  background: var(--btn-bg);
  color: var(--text);
  font-size: 1rem;
  padding: 0.5rem 1.6rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(182, 19, 19, 0.1);
  transition:
    opacity 0.2s,
    transform 0.2s;
  display: inline-block;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
}

.works-link:hover {
  opacity: 0.78;
  transform: translateY(-2px);
}

/* ===========================
   Profile Section
=========================== */
.profile-section {
  padding: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .profile-section {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}

@media (min-width: 340px) {
  .profile-section {
    padding: 4rem 2rem 0;
  }
}

.profile-avatar {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary);
  box-shadow: 0 3px 14px rgba(240, 175, 165, 0.4);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .profile-avatar {
    margin-top: 10rem;
    margin-right: 0.8rem;
  }
}

.profile-info {
  flex: 1;
  width: 100%;
}

/* Profile table */
.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table td {
  padding: 0.3rem 0.35rem;
  vertical-align: top;
}

.profile-table .lbl {
  font-family: "HonokaGothic", sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 6rem;
  white-space: nowrap;
}

.profile-table .val {
  font-family: "HonokaGothic", sans-serif;
  font-size: 1.1rem;
  color: var(--text);
}

.line-row td {
  padding: 0.04rem 0;
  text-align: left;
}

.line-row img {
  display: block;
  width: 100%;
  height: 20px;
  max-width: 36rem;
  opacity: 0.75;
  margin-left: -1rem;
  margin-right: auto;
}

/* ===========================
   QR Section
=========================== */
.qr-section {
  padding: 4rem 0 2rem;
  max-width: 60%;
  margin: 0 auto;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

@media (min-width: 1023px) {
  .qr-content {
    display: flex;
  }
}

.qr-comment {
  font-family: "HonokaGothic", sans-serif;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: flex-start;
  margin-top: 3rem;
  margin-right: 2rem;
}

@media (min-width: 768px) {
  .qr-comment {
    margin-left: 4rem;
  }
}

.qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .qr-wrap {
    gap: 1rem;
  }
}

.qr-label {
  display: flex;
  font-family: "HonokaGothic", sans-serif;
  font-size: 1.1rem;
  color: var(--primary);
  line-height: 1.5;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.instagram-qr,
.github-qr {
  align-items: center;
}

.instagram-qr img,
.github-qr img {
  width: 15rem;
  height: auto;
  border-radius: 30px;
  overflow: hidden;
  border: none;
}

@media (min-width: 768px) {
  .instagram-qr img,
  .github-qr img {
    width: 12rem;
  }
}

.instagram-qr img:hover,
.github-qr img:hover {
  filter: brightness(0.8);
}

/* ===========================
   Contact CTA (TOP)
=========================== */
.contact-cta {
  display: flex;
  justify-content: center;
  margin: 18rem auto 14rem;
  max-width: var(--max-w);
  padding: 0 2rem;
}

.contact-cta a {
  font-family: "HonokaGothic", sans-serif;
  background: var(--title);
  color: white;
  font-size: 1.2rem;
  padding: 1.1rem 3.2rem;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(182, 19, 19, 0.1);
  transition:
    opacity 0.2s,
    transform 0.2s;
  display: inline-block;
  opacity: 0.85;
}

.contact-cta a:hover {
  opacity: 0.78;
  transform: translateY(-2px);
}

/* ===========================
   Footer
=========================== */
.site-footer {
  background: var(--primary);
  padding: 0.7rem 1.5rem;
  display: flex;
  justify-content: right;
  align-items: center;
  margin-top: auto;
}

.footer-admin {
  font-family: "HonokaGothic", sans-serif;
  font-size: 0.72rem;
  color: rgba(74, 23, 4, 0.28);
  transition: color 0.2s;
}

.footer-admin:hover {
  color: rgba(74, 23, 4, 0.55);
}

.footer-copy {
  font-family: "HonokaMincho", serif;
  font-size: 0.8rem;
  color: var(--bg);
}

/* ===========================
   Contact Page
=========================== */
.contact-page {
  min-height: calc(100vh - 180px);
  margin-top: 10rem;
  padding: 2rem 1.5rem 4rem;
  background: var(--bg);
}

.contact-form-wrap {
  background: var(--btn-bg);
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 3rem;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s ease 0.1s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-note {
  font-family: "HonokaGothic", sans-serif;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  font-family: "HonokaGothic", sans-serif;
  color: var(--text);
  font-size: 0.92rem;
  display: block;
  margin-bottom: 0.4rem;
}

.form-req {
  color: var(--accent);
  margin-left: 0.2rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 2px solid rgba(74, 23, 4, 0.18);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text);
  font-family: "HonokaGothic", sans-serif;
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-textarea {
  height: 9rem;
  resize: vertical;
}

.form-error {
  font-family: "HonokaGothic", sans-serif;
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.form-error.show {
  display: block;
}

.form-submit {
  width: 100%;
  padding: 0.82rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: "HonokaGothic", sans-serif;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.form-submit:hover {
  opacity: 0.82;
}

/* Thanks */
.thanks-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-height: 55vh;
  padding: 2rem;
}

.thanks-box {
  background: rgba(233, 220, 227, 0.7);
  padding: 3rem 3.5rem;
  border-radius: 8px;
  text-align: center;
}

.thanks-title {
  font-family: "HonokaGothic", sans-serif;
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.thanks-body {
  font-family: "HonokaMincho", serif;
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--text);
}

.back-link {
  font-family: "HonokaGothic", sans-serif;
  color: var(--title);
  text-decoration: underline;
  font-size: 0.93rem;
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.7;
}

.thanks-wrap,
.back-link-wrap {
  display: none;
}

/* ===========================
   sp-br
=========================== */
.sp-br {
  display: inline;
}

@media (max-width: 767px) {
  .sp-br {
    display: block;
  }
}

/* ===========================
   Bubble Title / Footer
=========================== */
.bubble-title {
  font-family: "HonokaGothic", sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.bubble-footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* ===========================
   Deco icons
=========================== */
.deco-it,
.deco-pc,
.deco-design,
.deco-bulb {
  position: absolute;
  pointer-events: none;
  filter: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cfilter%20id%3D%22mimic%22%3E%3CfeFlood%20flood-color%3D%22white%22%20flood-opacity%3D%220.2%22%20result%3D%22light%22/%3E%3CfeComposite%20in%3D%22light%22%20in2%3D%22SourceGraphic%22%20operator%3D%22in%22%20result%3D%22overlay%22/%3E%3CfeBlend%20mode%3D%22normal%22%20in%3D%22overlay%22%20in2%3D%22SourceGraphic%22/%3E%3C/filter%3E%3C/svg%3E#mimic");
  z-index: 3;
}

.deco-it {
  bottom: 2.5rem;
  right: 1rem;
  width: clamp(160px, 15vw, 180px);
}

.deco-pc {
  bottom: 4rem;
  left: 4rem;
  width: clamp(170px, 18vw, 195px);
}

.deco-design {
  bottom: 4rem;
  left: 3rem;
  width: clamp(160px, 15vw, 180px);
}

.deco-bulb {
  bottom: 4.2rem;
  right: 1rem;
  width: clamp(165px, 15vw, 185px);
}

/* ===========================
   セクション余白（TOP）
=========================== */
.skill-section {
  margin-top: 10rem !important;
  margin-bottom: 0 !important;
}

.achievement-section {
  margin-top: 8rem !important;
  margin-bottom: 0 !important;
}

.profile-section {
  margin-top: -2rem !important;
  margin-bottom: 8rem !important;
}

/* スクロール位置調整 */
#message,
#skill,
#works,
#profile,
#contact {
  scroll-margin-top: 80px;
}

/* ===========================
   Works 下層ページ
=========================== */
.works-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
  width: 100%;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  margin-top: 2rem;
}

.work-card {
  background: #fffaf9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(182, 19, 19, 0.08);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(182, 19, 19, 0.14);
}

.work-thumb {
  width: 100%;
  height: 16rem;
  aspect-ratio: 16 / 10;
  background: var(--btn-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.work-thumb-placeholder {
  font-family: "HonokaGothic", sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
  line-height: 1.6;
}

.work-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.work-title {
  font-family: "HonokaGothic", sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--text);
  line-height: 1.4;
}

.work-tech {
  font-family: "HonokaGothic", sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.work-desc {
  font-family: "HonokaGothic", sans-serif;
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.65;
  margin-top: 0.2rem;
}

/* Works ページの「TOPへ戻る」リンク */
.back-link-wrap {
  display: flex;
  justify-content: center;
  margin: 3rem auto 2rem;
}

/* ===========================
   Responsive
=========================== */
@media (min-width: 768px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  header {
    height: 8rem;
  }
  .site-header--sub {
    padding-bottom: 0;
  }
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0.5rem 1rem 0.6rem;
  }
  .site-header--sub {
    padding-bottom: 0.6rem;
  }
  .header-nav {
    grid-column: 1;
    grid-row: 2;
    justify-content: center;
    width: 100%;
    padding-bottom: 0.1rem;
  }

  main {
    padding-top: 110px;
  }

  .profile-section {
    margin-top: 0 !important;
  }

  .bubble-content {
    padding: 4rem 1.2rem;
  }
  .card-group-label {
    display: flex;
    justify-content: center;
    margin: 0;
  }
  .card-grid {
    display: flex;
    justify-content: center;
    margin: 0 3rem;
    gap: 0.4rem;
  }
  .card-grid--wide {
    grid-template-columns: 1fr;
    width: calc(100% - 6rem);
    margin: 0 3rem;
  }
  .work-thumb {
    height: 22rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.4rem 1rem 0.5rem;
  }
  .header-nav {
    gap: 0.7rem;
  }
  .header-nav a {
    font-size: 0.62rem;
  }
  main {
    padding-top: 100px;
  }
  .profile-section {
    margin-top: 2rem !important;
    padding: 0 1.2rem 0;
  }
  .skill-section,
  .achievement-section {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  .thanks-box {
    padding: 2rem 1.5rem;
  }
  .contact-form-wrap {
    padding: 2rem 1.5rem 2.5rem;
  }
  .deco-it {
    width: 160px !important;
  }
  .deco-pc {
    width: 170px !important;
  }
  .deco-design {
    width: 160px !important;
  }
  .deco-bulb {
    width: 165px !important;
  }
  .works-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .work-thumb {
    height: 26rem;
  }
}
