* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url('img.png');
  background-size: cover;
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic Pro', 'Hiragino Sans', sans-serif;
  padding: 30px;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-mode {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('img.png');
  background-size: cover;
  background-attachment: fixed;
}

.container {
  max-width: 400px;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(35px) saturate(190%) contrast(1.15);
  -webkit-backdrop-filter: blur(35px) saturate(190%) contrast(1.15);
  padding: 40px 30px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
              0 0 60px rgba(255, 255, 255, 0.04),
              inset 0 1px 1px rgba(255, 255, 255, 0.2),
              inset 0 -1px 2px rgba(255, 255, 255, 0.08),
              inset 0 0 15px rgba(255, 255, 255, 0.03);
}

body.dark-mode .container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
              0 0 60px rgba(255, 255, 255, 0.02),
              inset 0 1px 1px rgba(255, 255, 255, 0.1),
              inset 0 -1px 2px rgba(255, 255, 255, 0.04),
              inset 0 0 15px rgba(255, 255, 255, 0.01);
}

.container::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateX(-50%) scale(0.8);
  transition: all 0.4s ease;
  pointer-events: none;
}

.container:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  margin: 0 auto 20px;
  display: block;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2),
              0 0 60px rgba(255, 255, 255, 0.1),
              inset 0 1px 3px rgba(255, 255, 255, 0.5),
              inset 0 -3px 8px rgba(0, 0, 0, 0.1),
              inset -2px -2px 10px rgba(0, 0, 0, 0.15),
              inset 50px 50px 80px rgba(0, 0, 0, 0.1);
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  transform-origin: center;
  backdrop-filter: blur(2px);
  transform-style: preserve-3d;
  position: relative;
}

.profile-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.profile-image:hover {
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.25),
              0 0 80px rgba(255, 255, 255, 0.15),
              inset 0 1px 3px rgba(255, 255, 255, 0.6),
              inset 0 -3px 8px rgba(0, 0, 0, 0.12),
              inset -2px -2px 10px rgba(0, 0, 0, 0.18),
              inset 50px 50px 80px rgba(0, 0, 0, 0.12);
}

h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: text-shadow 0.3s ease;
}

.container:hover h1 {
  text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.4);
}

p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: text-shadow 0.3s ease;
}

.container:hover p {
  text-shadow: 1px 1px 6px rgba(255, 255, 255, 0.3);
}

ul {
  list-style: none;
}

li {
  margin: 10px 0;
}

li a {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(18px) saturate(170%) contrast(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(170%) contrast(1.1);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05),
              0 0 20px rgba(255, 255, 255, 0.04),
              inset 0 1px 2px rgba(255, 255, 255, 0.18);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

li a:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
  transform: translateY(-4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
              0 0 35px rgba(255, 255, 255, 0.06),
              inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

li a:hover::before {
  left: 100%;
}
.dark-mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(15px) saturate(180%) contrast(1.1);
  -webkit-backdrop-filter: blur(15px) saturate(180%) contrast(1.1);
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.dark-mode-toggle:active {
  transform: scale(0.98);
}

.toggle-icon {
  display: inline-block;
  transition: transform 0.4s ease;
}

.dark-mode .toggle-icon {
  transform: rotate(180deg);
}

body.dark-mode h1 {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

body.dark-mode p {
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

body.dark-mode li a {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12),
              0 0 20px rgba(255, 255, 255, 0.02),
              inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

body.dark-mode li a:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
              0 0 35px rgba(255, 255, 255, 0.04),
              inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

body.dark-mode .dark-mode-toggle {
  background: rgba(100, 100, 100, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .dark-mode-toggle:hover {
  background: rgba(100, 100, 100, 0.4);
}

li a {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: scale(0);
  pointer-events: none;
  animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

.access-counter {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: 500;
}

body.dark-mode .access-counter {
  color: rgba(255, 255, 255, 0.7);
}

.counter-number {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 5px;
  font-weight: bold;
}

body.dark-mode .counter-number {
  background: rgba(0, 0, 0, 0.3);
}

.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06),
              0 0 20px rgba(255, 255, 255, 0.03),
              inset 0 1px 1px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) saturate(170%);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
}

.share-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.share-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.06) 100%);
  color: rgba(255, 255, 255, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
              0 0 30px rgba(255, 255, 255, 0.05),
              inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.share-btn:hover::after {
  width: 100px;
  height: 100px;
}

.share-btn:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08),
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.twitter-share {
  background: rgba(29, 155, 240, 0.1);
  color: rgba(29, 155, 240, 0.8);
}

.twitter-share:hover {
  background: rgba(29, 155, 240, 0.15);
  color: rgba(29, 155, 240, 1);
}

.line-share {
  background: rgba(0, 185, 0, 0.1);
  color: rgba(0, 185, 0, 0.8);
}

.line-share:hover {
  background: rgba(0, 185, 0, 0.15);
  color: rgba(0, 185, 0, 1);
}

.copy-share {
  background: rgba(150, 150, 150, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.copy-share:hover {
  background: rgba(150, 150, 150, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .share-btn {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .share-btn:hover {
  background: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .twitter-share {
  background: rgba(29, 155, 240, 0.12);
  color: rgba(29, 155, 240, 0.8);
}

body.dark-mode .twitter-share:hover {
  background: rgba(29, 155, 240, 0.18);
  color: rgba(29, 155, 240, 1);
}

body.dark-mode .line-share {
  background: rgba(0, 185, 0, 0.12);
  color: rgba(0, 185, 0, 0.8);
}

body.dark-mode .line-share:hover {
  background: rgba(0, 185, 0, 0.18);
  color: rgba(0, 185, 0, 1);
}

body.dark-mode .copy-share {
  background: rgba(100, 100, 100, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .copy-share:hover {
  background: rgba(100, 100, 100, 0.18);
  color: rgba(255, 255, 255, 0.95);
}

.share-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  pointer-events: none;
  animation: notification-fade 2s ease-in-out;
  z-index: 200;
}

@keyframes notification-fade {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* ===== スマートフォン対応 (600px以下) ===== */
@media screen and (max-width: 600px) {
  body {
    padding: 15px;
  }

  .container {
    max-width: 100%;
  }

  .container::before {
    display: none;
  }

  .profile-image {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
  }

  h1 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  p {
    font-size: 13px;
    margin-bottom: 20px;
  }

  li {
    margin: 8px 0;
  }

  li a {
    padding: 8px 16px;
    font-size: 13px;
    display: block;
    text-align: center;
  }

  li a:hover {
    transform: none;
  }

  li a:active {
    transform: scale(0.98);
  }

  .dark-mode-toggle {
    width: 45px;
    height: 45px;
    font-size: 20px;
    top: 15px;
    right: 15px;
  }

  .access-counter {
    font-size: 11px;
    margin-top: 15px;
    margin-bottom: 10px;
  }

  .share-buttons {
    bottom: 15px;
    right: 15px;
    gap: 8px;
  }

  .share-btn {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
}

/* ===== 超小型スマートフォン (370px以下) ===== */
@media screen and (max-width: 370px) {
  body {
    padding: 12px;
  }

  .profile-image {
    width: 100px;
    height: 100px;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  p {
    font-size: 12px;
    margin-bottom: 15px;
  }

  li a {
    padding: 7px 12px;
    font-size: 12px;
  }

  .dark-mode-toggle {
    width: 40px;
    height: 40px;
    font-size: 18px;
    top: 12px;
    right: 12px;
  }

  .access-counter {
    font-size: 10px;
  }

  .share-buttons {
    bottom: 12px;
    right: 12px;
    gap: 6px;
  }

  .share-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}
