/* =======================
   Base Styling
   ======================= */
body {
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #333;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
}

h1 {
  color: black;
  text-align: center;
  font-size: 4em;
  text-shadow: 1px 1px #3498db, -1px -1px #e74c3c;
}

h2 {
  color: black;
  text-align: center;
  font-size: 3em;
  text-shadow: 1px 1px #3498db, -1px -1px #e74c3c;
}

/* =======================
     Header
     ======================= */
header {
  background-color: rgba(255, 255, 255, 0.3);
  padding: 1em 2em;
  position: relative;
}

.header-layout {
  align-items: center;
  display: flex;
  justify-content: center;
}

.logo {
  height: 240px;
  object-fit: contain;
  width: 240px;
}

.header-text-block {
  align-items: left;
  display: flex;
  flex-direction: column;
}

.site-name {
  color: black;
  font-size: 4em;
  font-weight: 640;
  text-shadow: 2px 2px #3498db, -2px -2px #e74c3c;
}

.nav-group {
  bottom: 2em;
  display: flex;
  justify-content: left;
  margin-top: 1em;
  position: absolute;
}

.main-nav {
  display: flex;
}

.main-nav a {
  background: transparent;
  border: none;
  border-radius: 160px;
  color: black;
  display: inline-block;
  font-size: 1.4em;
  font-weight: normal;
  padding: 3px 20px 1px 20px;
  text-decoration: none;
  transition: 0.3s;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.8);
}

.suzuri-button {
  background: rgba(74, 144, 226, 0.8);
  border: none;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: bold;
  margin-left: 1.5em;
  padding: 0.4em 2em 0.4em 2em;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.suzuri-button:hover {
  background-color: #2a66d9;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  display: none;
  /* ← 最初は非表示にしておく */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  width: 48px;
  height: 48px;
  cursor: pointer;
}

.back-to-top-icon {
  transition: transform 0.2s ease;
}

.back-to-top:hover .back-to-top-icon {
  transform: scale(1.2);
}

/* =======================
     Product Grid
     ======================= */
.products {
  display: grid;
  gap: 2em;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  justify-content: center;
  margin: 0 auto;
  max-width: 1120px;
  padding: 1em;
}

.product {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin: 1em;
  overflow: hidden;
  width: 250px;
  display: flex;
  flex-direction: column;
}

.product img {
  background-color: rgba(255, 255, 255, 0.3);
  display: block;
  height: auto;
  width: 100%;
  padding: 8%;
  box-sizing: border-box;
}

.product-info {
  background-color: white;
  padding: 1em;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.4);
}

.product-button {
  margin-top: auto;
  text-align: center;
}

.product-button .button {
  background: #4a90e2;
  border: none;
  border-radius: 0;
  color: white;
  cursor: pointer;
  display: inline-block;
  font-weight: bold;
  padding: 0.6em 1.4em;
  transition: background-color 0.2s;
}

.product-button .button:hover {
  background-color: #3a3ad4;
}

/* =======================
     Footer
     ======================= */
.footer {
  background-color: rgba(241, 255, 227, 0.5);
  font-size: 0.9em;
  padding: 4em 1em 16em;
  position: relative;
  text-align: center;
  text-shadow:
    -2px -2px 4px white,
    2px -2px 4px white,
    -2px 2px 4px white,
    2px 2px 4px white;
}

.copyright {
  background-color: rgba(255, 255, 255, 0.7);
  color: black;
  font-size: 0.8em;
  padding: 1em 0;
  text-align: center;
  text-shadow:
    -2px -2px 4px white,
    2px -2px 4px white,
    -2px 2px 4px white,
    2px 2px 4px white;
  width: 100%;
}

.social-icons {
  display: flex;
  gap: 1.2em;
  justify-content: center;
  margin-top: 0.5em;
}

.social-icons a img {
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.social-icons a:hover img {
  transform: scale(1.1);
}

/* =======================
     App Detail Page
     ======================= */

.outerlink a {
  color: white;
  text-decoration: none;
}

.outerlink a:hover {
  color: white;
}

.outerlink a:visited {
  color: white;
}

a.subtle-link {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.2em 0.6em;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

a.subtle-link:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.app-title {
  color: white;
  font-size: 3em;
  margin-bottom: 1em;
  text-shadow: 3px 3px 6px rgb(0, 0, 0);
}

.download {
  display: flex;
  flex-wrap: nowrap;
  gap: 2em;
  justify-content: center;
}

.download-buttons {
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  color: white;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  box-sizing: border-box;
  font-size: large;
  gap: 4.5em;
  width: 65.5%;
  justify-content: center;
  padding: 0.5em 2em 2em;
  text-shadow:
    -0.3px -0.3px 8px rgba(0, 0, 0, 0.5),
    0.3px -0.3px 8px rgba(0, 0, 0, 0.5),
    -0.3px 0.3px 8px rgba(0, 0, 0, 0.5),
    0.3px 0.3px 8px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(20px);
}

.download-block {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
  white-space: nowrap;
}

.download-block .button {
  align-items: center;
  background-color: white;
  border: 2px solid #7b5b4b;
  border-radius: 9999px;
  box-shadow: none;
  color: #7b5b4b;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.9em;
  font-weight: bold;
  gap: 0.5em;
  justify-content: center;
  min-width: 180px;
  padding: 0.6em 1.8em;
  transition: background-color 0.2s, color 0.2s;
}

.download-block .button:hover {
  background-color: #7b5b4b;
  color: white;
}

.download-icon {
  transition: fill 0.2s ease;
}

.button:hover .download-icon {
  fill: white;
}

.open-icon {
  transition: fill 0.2s ease;
}

.button:hover .open-icon {
  fill: white;
}

.description {
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  color: white;
  display: block;
  font-size: large;
  margin: 4em auto 1.5em;
  width: 63.5%;
  padding: 1em;
  text-align: left;
  justify-content: center;
  text-shadow:
    -0.3px -0.3px 8px rgba(0, 0, 0, 0.5),
    0.3px -0.3px 8px rgba(0, 0, 0, 0.5),
    -0.3px 0.3px 8px rgba(0, 0, 0, 0.5),
    0.3px 0.3px 8px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(20px);
}

.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2em;
}

.feature-block {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  display: inline-block;
  margin: 4em auto;
  width: 60%;
  padding: 3em;
  text-align: left;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.feature-block img {
  max-width: 80%;
}

.feature-title {
  font-size: 2em;
  font-weight: bold;
  color: white;
  margin: 0 0 0.3em 0;
  text-align: left;

  text-shadow:
    -1px -1px 4px rgba(0, 0, 0, 0.5),
    1px -1px 4px rgba(0, 0, 0, 0.5),
    -1px 1px 4px rgba(0, 0, 0, 0.5),
    1px 1px 4px rgba(0, 0, 0, 0.5);
}

.feature-text {
  font-size: large;
  color: white;
  margin: 0 0 1em 0em;
  text-align: left;
  max-width: 50em;

  text-shadow:
    -1px -1px 4px rgba(0, 0, 0, 0.5),
    1px -1px 4px rgba(0, 0, 0, 0.5),
    -1px 1px 4px rgba(0, 0, 0, 0.5),
    1px 1px 4px rgba(0, 0, 0, 0.5);
}

.definition-table {
  font-size: 1em;
  border-collapse: collapse;
  width: 100%;
}

.definition-table td {
  padding: 0.5em 1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.definition-table tr:last-child td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.mono {
  font-family: monospace;
}