@charset "utf-8";
/* CSS Document */

body {
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(ellipse at center, #000014 0%, #000000 100%);
  color: #e0e0ff;
  margin: 0;
  padding: 0;
  text-align: center;
}

h1 {
  margin: 0.5em 0 1.2em;
  font-size: 2em;
  color: #00ffff;
  text-shadow: 0 0 8px #00ffff, 0 0 12px #007777;
}

#spread {
  display: grid;
  grid-template-columns: 120px 120px 120px 120px;
  grid-template-rows: repeat(4, 180px);  /* ← 必ず「5」にする */
  column-gap: 15px;
  row-gap: 0px;
  justify-content: center;
  margin: 0 auto 1.0em;
  position: relative;
}

.card {
  width: 100px;
  height: 170px;
  border-radius: 8px;
  box-shadow: 0 0 12px #22ffcc, 0 0 20px #004444;
  position: relative;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid #00ffee33;
}

.card-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
  transform-origin: center center;
  filter: drop-shadow(0 0 6px #00ffffaa);
}

.card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card-wrapper.visible {
  opacity: 1;
}

.card-meaning {
  margin: 1em 0;
  padding: 0.8em;
  border: 1px solid #00ffff88;
  border-radius: 10px;
  background-color: rgba(0, 0, 50, 0.7);
  box-shadow: 0 0 10px #00ffff44;
  color: #ccf;
  text-align: left;
}

#result {
  margin: 1em auto 0 auto;
  max-width: 800px;
  background: rgba(0, 0, 60, 0.8);
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 0 16px #00ffff55;
  text-align: left;
}

button {
  padding: 0.5em 1em;
  margin: 1em 0.3em;
  border: 1px solid #00ffffaa;
  border-radius: 6px;
  background: transparent;
  color: #00ffff;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px #00ffff55;
}

button:hover {
  background-color: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 10px #00ffffcc;
}

button.selected {
  background-color: #00ffff;
  color: #000014;
  font-weight: bold;
  box-shadow: 0 0 12px #00ffffcc, 0 0 20px #00cccc;
}

@media screen and (max-width: 768px) {
  #spread {
    grid-template-columns: repeat(4, 20vw);
    grid-template-rows: repeat(4, 30vw);
    column-gap: 2vw;
    row-gap: 1vw;
  }

  .card {
    width: 18vw;
    height: 30vw;
  }

  .card-inner {
    background-size: contain;
  }

  h1 {
    font-size: 1.4em;
    margin-bottom: 0.5em;
  }

  button {
    font-size: 0.9em;
    padding: 0.5em 0.7em;
  }

  #result {
    padding: 0.8em;
    font-size: 0.9em;
  }
}
#share-buttons {
  margin: 2em 0;
  text-align: center;
}

#share-buttons p {
  color: #00ffff;
  font-size: 1.1em;
  margin-bottom: 1em;
  text-shadow: 0 0 8px #00ffff, 0 0 12px #007777;
}

#share-buttons a {
  display: inline-block;
  margin: 0 10px;
  padding: 12px;
  border-radius: 50%;
  background-color: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 10px #00ffff66, 0 0 15px #00cccc66;
  transition: transform 0.3s, box-shadow 0.3s;
}

#share-buttons a:hover {
  transform: scale(1.2);
  box-shadow: 0 0 14px #00ffffcc, 0 0 24px #00ccccaa;
}

#share-buttons img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 6px #00ffffaa);
}

.coconala-button-wrapper {
  margin: 2em 0;
  text-align: center;
}

.coconala-button {
  display: inline-block;
  padding: 0.8em 1.5em;
  background: rgba(0, 255, 255, 0.1);
  color: #00ffff;
  font-size: 1.1em;
  font-weight: bold;
  border: 1px solid #00ffffaa;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 0 12px #00ffff66, 0 0 20px #00777744;
  position: relative;
  transition: all 0.3s ease;
}

.coconala-button:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 18px #00ffffaa, 0 0 30px #00cccc88;
  transform: scale(1.05);
}

.pr-label {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #000;
  color: #00ffff;
  border: 1px solid #00ffff99;
  font-size: 0.6em;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 0 6px #00ffff88;
  font-weight: bold;
}
.card-label {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.8em;
  color: white;
  text-shadow: 1px 1px 2px black, -1px -1px 2px black;
  font-weight: bold;
  z-index: 5;
  pointer-events: none;
}
@media screen and (max-width: 768px) {
	
.card-label {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.7em;
  color: white;
  text-shadow: 1px 1px 2px black, -1px -1px 2px black;
  font-weight: bold;
  z-index: 5;
  pointer-events: none;
}	
}