html {
  height: 100%;
  background: linear-gradient(135deg, #e6f7ff, #ffffff);
}

body {
  min-height: 100%;
  background: linear-gradient(135deg, #e6f7ff, #ffffff);  /* ← ここが重要 */
  font-family: 'Inter', sans-serif;
  color: #003366;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}


.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  flex: 1;
}


.site-header {
  text-align: center;
  padding: 20px 0 0;
  background: rgba(255, 255, 255, 0.6);
}

.site-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 1px;
  color: #004080;
  margin: 0;
  padding: 10px 20px;
  text-shadow: 1px 1px 0 #fff, 2px 2px 4px rgba(0,0,0,0.1);
  transition: 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid #cce0f5;
  padding: 10px 0;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-width: 960px;
  padding: 0 20px;
  box-sizing: border-box;
}

.tab-button {
  flex: 1 1 calc(50% - 10px);
  min-width: 120px;
  text-align: center;
  background: transparent;
  border: 2px solid #0078F8;
  color: #0078F8;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.tab-button:hover,
.tab-button.active {
  background-color: #0078F8;
  color: white;
}

@media (min-width: 769px) {
  .tab-button {
    flex: none;
  }
}

.main-content {
  flex: 1;
  max-width: 960px;
  margin: 40px auto 0;
  padding: 20px;
  box-sizing: border-box;
}

/* === タブ切り替え用 === */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.card-like {
  position: relative;
  overflow: visible;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

#about.card-like {
  margin-top: 40px;
}

.card-like.visible {
  opacity: 1;
  transform: translateY(0);
}


.profile-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-header {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: nowrap;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.profile-intro {
  flex: 1;
  min-width: 0;
}

.profile-intro h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #004080;
}

.profile-intro p {
  margin: 0;
  font-size: 16px;
}

.profile-body {
  font-size: 16px;
  line-height: 1.6;
}

.profile-body p {
  margin: 10px 0;
}

.block-top-decoration {
  position: absolute;
  top: -86px;
  right: 30px;
  transform: none; 
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 2;
}

.block-girl-top,
.block-girl-bottom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.software-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.software-block {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 20px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.software-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.software-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.software-text h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #004080;
}

.software-text p {
  font-size: 16px;
  line-height: 1.6;
}

.software-heading-image {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.software-block-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.software-block-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.button {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 20px auto 0;
  padding: 12px 24px;
  background-color: #0078F8;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: 0.3s;
  box-sizing: border-box;
}

.button:hover {
  background-color: #005fc2;
}

.social-icons {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  align-items: center;
  justify-content: flex-start;
}

.social-icons a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sns-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.2s ease;
}

.sns-icon:hover {
  filter: none;
  transform: scale(1.1);
}

.footer {
  flex-shrink: 0;
  text-align: center;
  font-size: 14px;
  color: #666;
  padding: 20px;
  background-color: #eef9ff;
  border-top: 1px solid #cce0f5;
}

/* Legal links (Tokushoho) */
.legal-links {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #cce0f5;
}
.legal-links a {
  color: #0078F8;
  font-weight: 600;
  text-decoration: none;
}
.legal-links a:hover {
  text-decoration: underline;
}

/* Under construction modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}
.modal.is-open {
  display: block;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
}
.modal__panel {
  position: relative;
  width: min(520px, calc(100% - 40px));
  margin: 14vh auto 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cce0f5;
  border-radius: 16px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.18);
  padding: 18px 18px 14px;
}
.modal__title {
  margin: 0 0 8px;
  color: #004080;
  font-size: 18px;
}
.modal__text {
  margin: 0 0 14px;
  line-height: 1.6;
  color: #003366;
}
.modal__button {
  border: 2px solid #0078F8;
  background: #0078F8;
  color: white;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.modal__button:hover {
  filter: brightness(0.95);
}


@media (max-width: 600px) {
  .site-title {
    font-size: 28px;
    text-align: center;
  }
  .profile-header {
    flex-direction: row;
  }

  .profile-intro p,
  .profile-body p {
    font-size: 14px;
  }

  .tab-button {
    flex: 1 1 calc(50% - 6px);
  }

  .button {
    width: 100%;
    max-width: 100%;
  }

  .social-icons {
    justify-content: center;
  }

  .block-top-decoration {
    top: -58px;
    width: 72px;
    height: 72px;
  }

  .block-girl-top,
  .block-girl-bottom {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
}