/* ========== Design Tokens ========== */
:root {
  --color-bg: #f2ebdc;
  --color-surface: #f2e7c4;
  --color-surface-alt: #f8f4ea;
  --color-accent: #d9c484;
  --color-accent-alt: #a69e94;
  --color-text: #222;
  --color-text-soft: #4a4a46;
  --color-border: #e5d5b2;
  --color-focus: #8c7f70;

  --ff-heading: "Noto Serif JP", serif;
  --ff-body: "Roboto", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;

  --fs-xs: clamp(0.72rem, 0.68rem + 0.25vw, 0.8rem);
  --fs-sm: clamp(0.85rem, 0.8rem + 0.3vw, 0.95rem);
  --fs-base: clamp(1rem, 0.95rem + 0.4vw, 1.125rem);
  --fs-lg: clamp(1.25rem, 1.05rem + 1vw, 1.65rem);
  --fs-xl: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --space-1: 0.4rem;
  --space-2: 0.8rem;
  --space-3: 1.2rem;
  --space-4: 1.8rem;
  --space-5: 2.6rem;
  --space-6: 4rem;

  --container-max: 1080px;
  --shadow-soft: 0 4px 14px -4px rgba(0, 0, 0, 0.08),
    0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --transition: 0.28s cubic-bezier(0.4, 0.2, 0.2, 1);

  scroll-behavior: smooth;
}

/* ========== Vegas ========== */
.vegas-content,
.vegas-slide {
  background-position: top center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-color: #e5d5b2;
}

/* ========== Base ========== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

#siteNav {
  display: flex;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
}

/* ========== Skip Link ========== */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus-visible {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

/* ========== Header / Nav ========== */
.site-header {
  position: relative;
  width: 100%;
  aspect-ratio: 3024 / 1104;
  max-height: 420px;
  min-height: 180px;
  overflow: hidden;
  background: transparent;
  padding-top: 0;
}

.navbar {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 40px;
}

.brand {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 3rem;
  display: flex;
  align-items: center;
  line-height: 1;
  gap: 0.5rem;
  margin-right: auto;
  padding-top: 2.5rem;
  padding-bottom: 1.2rem;
  color: #4a4a46;
}

.brand::before {
  font-size: 0.75rem;
  color: var(--color-accent-alt);
  transform: translateY(-1px);
}

/*nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: clamp(0.8rem, 0.5rem + 1vw, 2.2rem);
  justify-content: flex-end;
  margin-left: auto;
}*/
/*nav a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.4rem 0.2rem;
  transition: color var(--transition);
}*/

#siteNav {
  display: flex;
  align-items: center;
  background: none;
  padding: 0;
  margin-left: auto;
}

#siteNav ul {
  display: flex;
  gap: clamp(0.8rem, 0.5rem + 1vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

#siteNav li a {
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  line-height: 1;
  padding: 0.4rem 0.6rem;
  transition: color var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
}

#siteNav li a:hover,
#siteNav li a:focus-visible {
  color: var(--color-accent);
  text-decoration: underline;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-alt);
  transition: width var(--transition);
}

nav a:is(:hover, :focus-visible, .is-active)::after {
  width: 100%;
}

#siteNav li a,
#siteNav li a:hover,
#siteNav li a:focus-visible {
  text-decoration: none;
}

.nav-close {
  display: none;
}

/* ハンバーガーメニュー */
.nav-toggle {
  width: 2.2em;
  height: 2.2em;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.38em;
  background: var(--color-surface-alt);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  margin-top: 0.8rem;
}

.nav-toggle .bar {
  display: block;
  width: 1.5em;
  height: 0.16em;
  background: #b59a5b;
  border-radius: 2px;
  transition: all 0.32s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(0.44em) rotate(45deg);
}

.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-0.44em) rotate(-45deg);
}

.nav-toggle:hover {
  background: var(--color-surface);
}

/* モバイル時: ナビ・ハンバーガー制御 */
@media (max-width: 760px) {
  #siteNav {
    display: none;
    position: fixed;
    inset: 56px 0 auto 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.12);
    transform: translateY(-110%);
    transition: transform 0.28s cubic-bezier(0.4, 0.2, 0.2, 1);
    z-index: 200;
    flex-direction: column;
  }

  #siteNav.open {
    display: block;
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-left: auto;
  }

  #siteNav ul {
    flex-direction: column;
    padding: var(--space-3) var(--space-4) var(--space-4);
    gap: 0.2rem;
  }

  #siteNav li a {
    display: block;
    padding: 0.8rem 0;
  }

  .navbar {
    height: 60px;
    padding: 0 1rem;
  }

  .brand {
    font-size: 1.7rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    height: 100%;
    align-items: center;
  }

  .contact-flex {
    flex-direction: column;
    gap: 1.2rem;
    padding: 0 1rem;
  }

  .contact-form {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    padding: 0;
  }

  .contact-notes {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    margin: 1rem 0 0 0;
    padding: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* ==== ここからバツボタンのCSSを追加 ==== */
  .nav-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: auto;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    z-index: 1001;
  }

  .nav-close:hover {
    background: #f4e9d8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  }

  .nav-close svg {
    display: block;
    color: #a69e94;
    transition: color 0.2s;
  }

  .nav-close:hover svg {
    color: #ff8b60;
  }
}

/* ========== Layout Helpers ========== */
.section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section+.section {
  margin-top: var(--space-6);
}

.section-header {
  margin: 0 0 var(--space-4);
  font-family: var(--ff-heading);
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
  letter-spacing: 0.02em;
  position: relative;
}

.section-header::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg,
      var(--color-accent),
      var(--color-accent-alt));
  margin-top: 0.6rem;
}

.hero.section-pad-top {
  padding-top: 0 !important;
}

/* ========== Hero ========== */
.hero-card {
  min-height: 0;
  height: auto;
  aspect-ratio: unset;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: stretch;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

@media (min-width: 992px) {
  .hero-card {
    min-height: 120px;
  }
}

.hero-content {
  position: relative;
  color: #fff;
  max-width: 700px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.hero-content h1 {
  margin: 0 0 var(--space-3);
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.hero-greeting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 0.5rem;
}

.hero-profile {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.hero-content p {
  margin: 0;
  font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.05rem);
  letter-spacing: 0.02em;
}

.hero-profile-wrap {
  text-align: center;
  margin-bottom: 0.5rem;
}

.hero-profile-wrap p {
  margin: 0 auto;
  max-width: 600px;
}

.balloon {
  display: block;
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 0.8em 1.6em;
  text-align: left;
  color: #333;
  box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.1);
  max-width: 480px;
  font-size: 1rem;
  width: fit-content;
  margin: 0.5em auto 1.2em auto;
}

.balloon::after {
  content: "";
  position: absolute;
  left: 4.5em;
  top: -18px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-bottom: 14px solid #fff;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.04));
}

/* ========== Profile ========== */
.profile {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.profile-media {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
  margin-top: 24px;
}

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

.profile-body h3 {
  margin: 1rem 0 0.3rem;
  font-family: var(--ff-heading);
  font-size: 1.6rem;
}

.profile-body p {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-soft);
  text-wrap: pretty;
}

/* デスクトップ用 */
@media (min-width: 640px) {
  .profile {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    align-items: flex-start;
  }

  .profile-media {
    grid-row: 1;
    grid-column: 1;
    width: 140px;
    height: 140px;
  }

  .profile-body {
    grid-row: 1;
    grid-column: 2;
  }

  .profile-hobby-link {
    grid-row: auto;
    grid-column: 2;
    margin-left: 0;
    margin-right: 0;
    margin-top: 1.2rem;
  }
}

/* ========== Skills ========== */
.skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2.4rem, 1.4rem + 2vw, 3.2rem);
  align-items: stretch;
}

.skill-item {
  width: 100%;
  display: grid;
  gap: var(--space-4);
  align-items: center;
  word-break: break-all;
  /*overflow-wrap: break-word;*/
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
  overflow: hidden;

}

@media (min-width: 820px) {
  .skill-item {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .skill-item:nth-child(even) {
    grid-template-columns: auto 1fr;
  }

  .skill-item:nth-child(even) .skill-media {
    order: 0;
  }
}

.skill-media {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 340px;
  justify-self: start;
}

.skill-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: box-shadow 0.25s, transform 0.25s;
}

.skill-media img:hover,
.skill-media img:focus-visible {
  box-shadow: 0 8px 24px -8px rgba(64, 64, 64, 0.22), 0 1.5px 8px -2px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px) scale(1.03);
  cursor: pointer;
}

.skill-item:nth-child(even) .skill-media {
  order: -1;
}

.skill-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
}

.skill-text small {
  margin-bottom: 0.35rem;
}

.skill-text h4 {
  margin: 0.2rem 0 0.6rem 0;
}

.skill-text p {
  margin: 0;
}

.skill-head a {
  text-decoration: none;
  color: inherit;
  cursor: default;
  pointer-events: none;
  font-size: small;
  display: block;
  width: 100%;
  word-break: break-all;
  overflow-wrap: break-word;
}

@media (max-width: 700px) {
  .skill-media {
    max-width: 94vw;
    width: 100%;
    aspect-ratio: 16/9;
    min-width: 0;
    margin: 0 auto 1em auto;
    box-sizing: border-box;
  }

  .skill-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 14px;
  }

  .skill-item {
    padding: 1em 0.3em;
    box-sizing: border-box;
  }
}

@media (max-width: 500px) {
  .skill-media {
    width: 100%;
    max-width: 90vw;
    margin: 0 auto;
  }
}

/* ========== Belief ========== */

#belief {
  max-width: 1016px;
  margin-bottom: 1rem;
  padding: 0;
}

.belief-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 1rem;
  padding: var(--space-4);
  padding-bottom: 8rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  gap: 2rem;
  min-height: 480px;
}

.belief-content {
  padding: clamp(1.8rem, 1.2rem + 1.5vw, 3.2rem);
  max-width: 780px;
  flex: 2 1 60%;
}

.belief-content h3 {
  margin: 0 0 4rem;
  font-family: var(--ff-heading);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.65rem);
  letter-spacing: 0.03em;
}

.belief-content p {
  margin: 0 0 0.9rem;
  color: var(--color-text-soft);
  font-size: var(--fs-sm);
  text-wrap: pretty;
}

.belief-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-right: 2rem;
  margin-top: -49px;
  margin-bottom: 1.5rem;
}

.belief-image img {
  max-width: 340px;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

@media (min-width: 900px) {
  .belief-block {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .belief-content {
    max-width: 640px;
    flex: 2 1 60%;
  }

  .belief-image {
    flex: 1 1 40%;
    flex-direction: column;
    margin-top: 4rem;
    margin-bottom: 0;
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  .belief-block {
    flex-direction: column;
    gap: 1.5rem;
  }

  .belief-image {
    justify-content: center;
    margin-top: -2rem;
    padding-right: 0;
  }

  .belief-image img {
    max-width: 320px;
  }
}

/* ========== Contact Form ========== */
.contact-flex {
  display: flex;
  align-items: flex-start;
  gap: 2.2rem;
  justify-content: center;
}

.contact-form {
  display: grid;
  gap: var(--space-3);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  flex: 2 1 60%;
  min-width: 320px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent-alt);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form textarea {
  min-height: 160px;
  height: 160px;
  max-height: 160px;
  resize: none;
  line-height: 1.5;
}

.contact-form :is(input, textarea):focus-visible {
  border-color: var(--color-accent-alt);
  box-shadow: 0 0 0 3px rgba(166, 158, 148, 0.25);
  background: #fffefc;
}

.field-error {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.3;
  color: #b84727;
  min-height: 1.2em;
}

.form-status {
  margin-top: 0.2rem;
  font-size: var(--fs-xs);
  color: var(--color-text-soft);
}

.contact-notes {
  margin: 1.5rem 0 2.5rem 0;
  background: #fcf7ec;
  color: #795700;
  padding: 1.1em 1.5em;
  border-radius: 10px;
  font-size: 0.96em;
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.04);
  flex: 1 1 40%;
  min-width: 220px;
  max-width: 350px;
}

.contact-notes ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.contact-notes li {
  margin-bottom: 0.7em;
  line-height: 1.7;
}

.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form input[type="tel"]:hover,
.contact-form textarea:hover,
.contact-form select:hover {
  background-color: #fffbe6;
  transition: background-color 0.2s;
}

.contact-form input[type="text"]:hover,
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:hover,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:hover,
.contact-form input[type="tel"]:focus,
.contact-form textarea:hover,
.contact-form textarea:focus,
.contact-form select:hover,
.contact-form select:focus {
  background-color: #fffbe6;
  border-color: #d9c484;
  box-shadow: 0 0 0 2px #ecd48544;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* ========== Buttons ========== */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  background: #cdaa55;
}


.btn:hover,
.btn:focus-visible {
  background: #a69e94;
  color: #fff;
  transition: color 0.5s;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.15);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.actions {
  display: flex;
  justify-content: center;
}

/* hobbyボタン */
.profile-hobby-link .btn {
  display: inline-block;
  width: auto;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem 1.8rem;
  border-bottom: none;
  text-decoration: none;
  margin-top: 1rem;
}

.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg,
      var(--color-accent-alt),
      var(--color-accent));
  opacity: 0.8;
  z-index: 0;
  transition: width 0.4s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.btn:hover::before,
.btn:focus-visible::before {
  width: 100%;
}

.btn span {
  position: relative;
  z-index: 1;
  transition: color 0.2s;
}

.btn:hover span,
.btn:focus-visible span {
  color: #fff;
}

.to-top-btn {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 100;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.to-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ========== Footer ========== */
.site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-4) var(--space-6);
  text-align: center;
  font-size: var(--fs-xs);
  color: #fff;
  background: #a69e94;
}

.footer-sns {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.footer-sns a img {
  width: 32px;
  height: 32px;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

.footer-sns a:hover img,
.footer-sns a:focus img {
  opacity: 1;
  transform: scale(1.12);
}

.footer-sns a,
.footer-sns a:hover,
.footer-sns a:focus,
.footer-sns a:active,
.footer-sns a:visited {
  text-decoration: none !important;
  outline: none;
  box-shadow: none;
}

/* ========== Buttons ========== */
/* ...ボタン関連のCSS... */

.to-top-btn {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 100;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  bottom: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg,
      rgba(255, 242, 194, 0.6) 0%,
      rgba(217, 196, 132, 0.6) 60%,
      rgba(178, 149, 83, 0.6) 100%);
}

.to-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.to-top-label {
  font-size: 0.9rem;
  color: #4a4a46;
  opacity: 0.6;
  white-space: nowrap;
  margin-bottom: 0.1em;
  margin-top: 0;
}

.to-top-arrow {
  font-size: 1.8rem;
  line-height: 1;
  margin: 0;
}

/* ========== Buttons ========== */

.common-btn,
.belief-detail-btn {
  position: relative;
  display: inline-block;
  padding: 0.5em 1.2em;
  margin-top: 2rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.05em;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s;
}

.common-btn::before,
.belief-detail-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg,
      var(--color-accent-alt),
      var(--color-accent));
  opacity: 0.85;
  z-index: 0;
  transition: width 0.4s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.common-btn:hover::before,
.common-btn:focus-visible::before,
.belief-detail-btn:hover::before,
.belief-detail-btn:focus-visible::before {
  width: 100%;
}

.common-btn span,
.belief-detail-btn span {
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.common-btn:hover span,
.common-btn:focus-visible span,
.belief-detail-btn:hover span,
.belief-detail-btn:focus-visible span {
  color: #fff;
}


/* ========== Responsive: Hero, Profile, Belief ========== */
@media (min-width: 900px) {
  .hero-profile-wrap {
    margin-top: -1.5rem !important;
    padding-top: 0 !important;
  }

  .hero-greeting {
    margin-top: 0 !important;
  }

  .hero.section-pad-top {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .hero-card {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 600px) {
  .to-top-btn {
    width: 64px;
    height: 64px;
    font-size: 1.2rem;
    bottom: 7rem;
  }
}

.to-top-label {
  font-size: 0.78rem;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.image-modal.show {
  display: flex;
}

.modal-content {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 12px;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.2em 0.5em;
  cursor: pointer;
  user-select: none;
  border-radius: 0.8em;
  z-index: 10001;
}

.modal-prev {
  left: 2rem;
}

.modal-next {
  right: 2rem;
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
}

#modalCaption {
  color: #fff;
  margin-top: 1rem;
  font-size: 1.1rem;
  text-align: center;
}

.skill-media img.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.popup-image {
  border-radius: 12px;
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.25s, border-color 0.25s;
  border: 2px solid transparent;
}

.popup-image:hover,
.popup-image:focus-visible {
  border-color: #d9c484;
  box-shadow: 0 0 0 6px rgba(217, 196, 132, 0.25), 0 6px 16px -4px rgba(0, 0, 0, 0.15);
}