/*---------------------------------------
  Root Variables
---------------------------------------*/
:root {
  /* Fonts */
  --font-default: "IBM Plex Sans", "DIN", "Arial", sans-serif;
  --font-heading: "IBM Plex Sans", "DIN", sans-serif;
  --font-nav: "IBM Plex Sans", "DIN", sans-serif;

  /* Background */
  --color-bg-main: #07080b;
  --color-bg-sub: #0e1015;

  /* Text */
  --color-text-main: #cfd3dd;
  --color-text-muted: #9aa0b0;
  --color-text-heading: #ffffff;
  --color-contrast: #ffffff;

  /* Accent */
  --color-accent: #f0f4ff;

  /* Navigation */
  --color-nav-bg: #07080b;
  --color-nav-link: #cfd3dd;
  --color-nav-link-hover: #ffffff;
  --color-nav-dropdown-bg: #10131a;
  --color-nav-dropdown: #cfd3dd;
  --color-nav-dropdown-hover: #ffffff;

  /* Dark UI */
  --color-youtube-dark: #151515;

  /* Header height */
  --header-height: 62px;
}

/*---------------------------------------
  Global Resets
---------------------------------------*/
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

body {
  font-family: var(--font-default);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--color-text-main);
  background-color: var(--color-bg-main);
  margin: 0;
  padding: 0;
}

ul, li {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  -webkit-user-drag: none;
}

a {
  color: var(--color-text-main);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-word;
}

a:hover {
  color: var(--color-accent);
}

/*---------------------------------------
  Headings
---------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin: 0 0 0.6em;
}

h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

/*---------------------------------------
  Sections
---------------------------------------*/
.section {
  color: var(--color-text-main);
  background-color: var(--color-bg-main);
  padding: 80px 20px;
  scroll-margin-top: calc(var(--header-height) + 20px);
  position: relative;
}

.section:nth-of-type(even) {
  background-color: var(--color-bg-sub);
}

.about {
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .about {
    padding-bottom: 80px;
  }
}

/*---------------------------------------
  About Section
---------------------------------------*/
.about .row.about-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

.about .col-md-6.left,
.about .col-md-6.right {
  display: flex;
  flex-direction: column;
}

.about .col-md-6.left { justify-content: flex-start; }
.about .col-md-6.right { justify-content: center; }

.about .col-md-6 img.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 20px;
  align-self: flex-start;
}

.about-me {
  font-size: 20px;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--color-text-heading);
}

.about p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-main);
  margin-bottom: 12px;
  max-width: 480px;
}

.about ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.about ul li {
  background: rgba(255,255,255,0.05);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-main);
}

/*---------------------------------------
  About CONTACT
---------------------------------------*/
.about .btn-contact {
  display: inline-block;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 400;
  padding: 12px 20px;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  text-decoration: none;
  background-color: rgba(0,0,0,0.25);
  width: fit-content;
  text-align: center;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.about .btn-contact:hover {
  background-color: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
  .about .btn-contact {
    width: fit-content;
    align-self: center;
    padding: 12px 18px;
  }
}

/*---------------------------------------
  location reveal btn
---------------------------------------*/

.based-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  letter-spacing: .12em;
  color: rgba(255,255,255,.65);
}

.based-location i {
  font-size: 14px;
  color: rgba(255,255,255,.7);
}

.reveal-mail {
  display: flex;
  align-items: center;
}

.reveal-mail button {
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.75);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .75rem;
  letter-spacing: .12em;
  cursor: pointer;
  transition: all .2s ease;
}

.reveal-mail button:hover {
  color: #fff;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.05);
}

.reveal-mail-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reveal-btn {
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.75);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: all .2s ease;
}

.mail-obfuscate a {
  color: rgba(255,255,255,0.7);
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .2s ease;
}

.mail-obfuscate a:hover {
  color: #ffffff;
}

.mask-dots {
  font-size: 0.9em;
  letter-spacing: 0.05em;
}

/*---------------------------------------
  updates
---------------------------------------*/
.updates-hero.section {
  padding: 72px 0 48px;
}

.updates-list.section {
  padding: 40px 0 64px;
}

.updates-list .update-title {
  font-size: .95rem;
  line-height: 1.4;
  margin: 6px 0 8px;
  letter-spacing: .04em;
  font-weight: 500;
}

.updates-list .update-text {
  max-width: 680px;
  font-size: .85rem;
  line-height: 1.9;
  margin-top: 2px;
  opacity: .82;
}

.updates-list .update-meta {
  font-size: .7rem;
  letter-spacing: .14em;
  margin-bottom: 2px;
  opacity: .55;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrapper > main {
  flex: 1 0 auto;
}

.page-wrapper > footer {
  flex-shrink: 0;
}

/*---------------------------------------
  blog
---------------------------------------*/
.blog-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.blog-link {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 0;
  text-decoration: none;
  color: inherit;
  transition: opacity .2s ease;
}

.blog-link:hover {
  opacity: .75;
}

.blog-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.blog-meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

.blog-title {
  font-size: 1.05rem;
  margin: 6px 0 8px;
}

.blog-excerpt {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.75;
}

/*---------------------------------------
  Header
---------------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: transparent;
  z-index: 1000;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.15),
    rgba(0,0,0,0)
  );
  pointer-events: none;
  z-index: -1;
}

.header.header-hide {
  transform: translateY(-100%);
  opacity: 0;
}

.header .sitename {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
}

/*---------------------------------------
  Navigation (Desktop)
---------------------------------------*/
@media (min-width: 1200px) {
  .header .container-xl {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 左右端に配置 */
    padding: 0 64px; /* 左右余白を広めに統一 */
    max-width: 100%;
  }

  .header .sitename {
    margin: 0; /* 左端に固定 */
  }

  .navmenu > ul {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    justify-content: flex-end; /* 右端に寄せる */
    align-items: center;
  }

  .navmenu > ul > li {
    position: relative;
  }

  .navmenu > ul > li > a,
  .navmenu > ul > li > .nav-parent {
    font-family: var(--font-nav);
    font-weight: 600;
    font-size: 14px;
    display: block;
    padding: 12px 0;
    letter-spacing: 0.1em;
    text-align: center;
    color: rgba(255,255,255,0.8);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .navmenu > ul > li > a:hover,
  .navmenu > ul > li > .nav-parent:hover,
  .navmenu > ul > li > a.active,
  .navmenu > ul > li > .nav-parent.active {
    color: #ffffff;
  }

  .navmenu .dropdown ul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: max-content;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    margin: 0;
    border-radius: 6px;
    background: linear-gradient(
      to bottom,
      rgba(20,20,20,0.85),
      rgba(10,10,10,0.95)
    );
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .navmenu .dropdown ul li a {
    display: block;
    padding: 8px 24px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-align: center;
    color: rgba(255,255,255,0.8);
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .navmenu .dropdown ul li a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.05);
  }

  @media (max-width: 1599px) {
    .header .container-xl {
      padding: 0 48px;
    }
  }
  @media (max-width: 1399px) {
    .header .container-xl {
      padding: 0 32px;
    }
  }
}


/*---------------------------------------
  Form Focus Improvement
---------------------------------------*/
.contact .form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(240,244,255,0.08);
  outline: none;
  background-color: #0f1117;
}

/*---------------------------------------
  Navigation (Mobile)
---------------------------------------*/
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    font-size: 30px;
    color: var(--color-nav-link);
    position: fixed;
    top: 8px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
  }

  .navmenu {
    position: fixed;
    top: 0;
    right: -240px;
    width: 240px;
    height: 100%;
    background: var(--color-youtube-dark);
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 9998;
    padding-top: var(--header-height);
  }

  .mobile-nav-active .navmenu {
    right: 0;
  }

  .navmenu ul {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    gap: 8px;
  }

  .navmenu > ul > li {
    width: 100%;
  }

  .navmenu a,
  .navmenu .nav-parent {
    font-family: var(--font-nav);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .navmenu .dropdown > .nav-parent::after {
    content: "⌄";
    margin-left: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
  }

  .navmenu .dropdown ul {
    display: none;
    flex-direction: column;
    padding: 4px 0;
    gap: 2px;
  }

  .navmenu .dropdown ul.dropdown-active {
    display: flex;
  }

  .navmenu a:hover,
  .navmenu .active {
    color: #ffffff;
  }
}

/*---------------------------------------
  Hero Section
---------------------------------------*/
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.6) 70%,
    rgba(0,0,0,0.85) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
}

.hero h2 {
  color: #ffffff;
  font-size: 56px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards 0.2s;
}

.hero p {
  color: #f0f0f5;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards 0.5s;
}

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

.btn-hero {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 22px;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  text-decoration: none;
  background-color: rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background-color: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn-hero .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.btn-hero:hover .arrow {
  transform: translateX(6px);
}

@media (max-width: 768px) {
  .hero h2 { font-size: 36px; }
  .hero p { font-size: 18px; }
}

/*---------------------------------------
  Portfolio Section
---------------------------------------*/
/* Section Padding */
#portfolio {
  padding: 80px 0 100px;
}

/* Filters */
.portfolio-filters {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-bottom: 3rem;
}

.portfolio-filters li {
  position: relative;
  cursor: pointer;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  padding: 6px 2px;
  background: none;
  border: none;
  transition: color 0.25s ease;
}

.portfolio-filters li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.portfolio-filters li:hover,
.portfolio-filters li.filter-active {
  color: #ffffff;
}

.portfolio-filters li:hover::after,
.portfolio-filters li.filter-active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Portfolio Cards */
.portfolio-item {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 12px;
  background-color: #0f1117;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.portfolio-item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* Caption */
.portfolio-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
}

.portfolio-item:hover .portfolio-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Card Spacing */
.isotope-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Responsive */
@media (max-width: 1200px) {
  .portfolio-item img { height: 200px; }
}

@media (max-width: 768px) {
  .portfolio-item { max-width: 90%; margin: 0 auto; }
  .portfolio-item img { height: 180px; }
  .portfolio-caption { font-size: 13px; padding: 10px; }
}

@media (max-width: 480px) {
  .portfolio-item img { height: 160px; }
  .portfolio-caption { font-size: 12px; padding: 8px; }
  .portfolio-filters { gap: 12px; margin-bottom: 2rem; }
}

/*---------------------------------------
  Work Section
---------------------------------------*/
.work-hero {
  padding: 120px 20px 48px;
  text-align: center;
}

.work-title {
  font-size: 1.8rem;
  letter-spacing: .08em;
}

.work-meta {
  font-size: .75rem;
  letter-spacing: .12em;
  opacity: .6;
}

.work-images {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
  padding-bottom: 120px;
}

.work-images img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

/*---------------------------------------
  Contact Section
---------------------------------------*/
.contact {
  background-color: var(--color-bg-main);
  padding: 80px 20px;
}

.contact .section-title h2 {
  color: var(--color-text-heading);
  letter-spacing: 0.12em;
}

.contact .section-title p {
  color: var(--color-text-main);
  opacity: 0.7;
}

/*---------------------------------------
  Contact Info（Emailブロック）
---------------------------------------*/
.contact .info-item {
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(4px);
  padding: 24px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.contact .info-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.contact .info-item i {
  font-size: 22px;
  color: var(--color-accent);
}

.contact .info-item h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-main);
}

.contact .info-item p {
  margin: 2px 0 0;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--color-text-heading);
  word-break: break-all;
}

.contact .info-item:hover {
  background-color: rgba(255,255,255,0.04);
}

/*---------------------------------------
  Contact Form
---------------------------------------*/
.contact .php-email-form {
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(6px);
  padding: 32px;
  border-radius: 16px;
}

.contact .form-control {
  background-color: rgba(15,17,23,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--color-text-heading);
  padding: 14px 16px;
  font-size: 15px;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact .form-control::placeholder {
  color: rgba(255,255,255,0.4);
}

.contact .form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
  background-color: rgba(15,17,23,1);
}

.contact button[type="submit"] {
  background: var(--color-accent);
  color: var(--color-bg-main);
  border: none;
  padding: 12px 36px;
  font-size: 15px;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact button[type="submit"]:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.contact .loading,
.contact .error-message,
.contact .sent-message {
  margin-bottom: 12px;
  font-size: 14px;
  display: none;
}

.contact .loading {
  color: var(--color-accent);
}

.contact .error-message {
  color: #ff6b6b;
}

.contact .sent-message {
  color: #4ade80;
}

/*---------------------------------------
  Responsive: Mobile Adjustments
---------------------------------------*/
@media (max-width: 768px) {
  .contact .php-email-form {
    padding: 24px 16px;
  }

  .contact .form-control {
    padding: 12px 14px;
    font-size: 14px;
  }

  .contact button[type="submit"] {
    width: 100%;
    padding: 12px 0;
  }
}

/*---------------------------------------
  Right Side Menu
---------------------------------------*/
.side-menu {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: rgba(11,12,16,0.85);
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  transition: all 0.3s ease;
}

.side-menu a {
  color: var(--color-text-main);
  font-size: 16px;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.side-menu a:hover {
  background: var(--color-accent);
  color: var(--color-bg-main);
  transform: translateX(-2px);
}

/*---------------------------------------
  Footer
---------------------------------------*/
.footer {
  background-color: #050607;
  padding: 10px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  padding: 0 64px;
  max-width: 100%;
}

.footer-copy {
  justify-self: start;
  color: rgba(255,255,255,0.45);
}

.footer-menu {
  justify-self: center;
}

.footer-menu ul {
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.footer-menu a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-menu a:hover {
  color: #ffffff;
}

.social-links {
  justify-self: end;
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: all 0.3s;
}

.social-links a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* レスポンシブ：スマホサイズで余白を減らす */
@media (max-width: 1599px) {
  .footer-inner {
    padding: 0 48px;
  }
}
@media (max-width: 1399px) {
  .footer-inner {
    padding: 0 32px;
  }
}
@media (max-width: 576px) {
  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
  }
  .footer-menu, .social-links {
    justify-content: center;
  }
}


/*---------------------------------------
  Scroll to Top Button
---------------------------------------*/
#scroll-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 40px; height: 40px;
  background: var(--color-accent);
  color: var(--color-bg-main);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 999;
}

#scroll-top:hover {
  background: var(--color-contrast);
  color: var(--color-bg-main);
}

/*---------------------------------------
  Preloader
---------------------------------------*/
#preloader {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--color-bg-main);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}

#preloader .loader {
  border: 4px solid rgba(255,255,255,0.1);
  border-left-color: var(--color-accent);
  border-radius: 50%;
  width: 48px; height: 48px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}