@import url('https://fonts.googleapis.com/css2?family=Cherry+Bomb+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sawarabi+Mincho&display=swap');

body {
  color: #333;
  margin: 0;
  padding: 20px;
  text-align: center;
  background: linear-gradient(120deg, #fff1f9, #e7f5ff);
  font-family: 'Kosugi Maru', sans-serif;
}

.fancy-title {
  font-family: 'Kosugi Maru', sans-serif;
  font-size: 4em;
  color: #ff69b4;
  text-shadow:
    1px 1px 0 #fff,
    2px 2px 3px rgba(255, 105, 180, 0.5),
    0 0 10px rgba(255, 182, 193, 0.7);
  background: linear-gradient(90deg, #ffccf9, #fcdff1);
  padding: 10px 20px;
  border-radius: 15px;
  display: inline-block;
  animation: popIn 0.8s ease-out;
}

@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.container {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-section {
  background: #fff5fb;
  padding: 20px;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: left;
  font-size: 16px;
  line-height: 1.7;
}

.about-section h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ff69b4;
}

input[type="text"] {
  padding: 16px 12px;
  font-size: 16px;
  width: 80%;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.radio-group {
  margin: 15px 0;
  text-align: left;
}

.radio-group label {
  display: block;
  margin-bottom: 8px;
}

button {
  padding: 12px 20px;
  background: linear-gradient(to bottom, #ff69b4, #ff1493); /* グラデーション */
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 0 #c71585, 0 6px 12px rgba(0, 0, 0, 0.15); /* 立体影 */
}

button:hover {
  transform: translateY(-2px); /* 少し浮く */
  box-shadow: 0 6px 0 #c71585, 0 10px 20px rgba(0, 0, 0, 0.2);
}

button:active {
  transform: translateY(1px); /* 押し込まれる感じ */
  box-shadow: 0 2px 0 #c71585, 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fortune-block {
  margin: 20px 0;
  font-size: 1.2em;
}

.gauge {
  background-color: #eee;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin: 4px auto 0;
  width: 30%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.gauge-bar {
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 5px;
  background-image: linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0.2) 50%, rgba(0,0,0,0.05) 100%);
}

/* 各運勢の色（ベースカラー＋グラデ） */
.gauge-bar.love {
  background-color: #ff66cc;
  background-image: linear-gradient(to bottom, #ff99dd, #ff66cc, #cc3399);
}

.gauge-bar.study {
  background-color: #6699ff;
  background-image: linear-gradient(to bottom, #99ccff, #6699ff, #3366cc);
}

.gauge-bar.money {
  background-color: #ffcc00;
  background-image: linear-gradient(to bottom, #ffee66, #ffcc00, #cc9900);
}

.gauge-bar.home {
  background-color: #66cc99;
  background-image: linear-gradient(to bottom, #99e6cc, #66cc99, #339966);
}

.gauge-bar.health {
  background-color: #9966cc;
  background-image: linear-gradient(to bottom, #cc99ff, #9966cc, #663399);
}

.result-name {
  font-family: 'Sawarabi Mincho', serif;
  font-size: 4em;
  font-weight: 700;
  text-align: center;
  padding: 0;
  margin: 0;
  color: #4a2f19;
  letter-spacing: 0.05em;
  text-shadow:
    2px 2px 1px rgba(0,0,0,0.2),
    1px 1px 0 rgba(255,255,255,0.7);
}

.result-yomi {
  font-size: 1.5em;
  color: #666;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  font-family: 'Kosugi Maru', sans-serif;
}

.rank {
  font-weight: bold;
  font-size: 1.2em;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-left: 6px;
  user-select: none;
  background: transparent;
  -webkit-text-stroke: 1px black;
  text-stroke: 1px black;
}

.rank-SSS {
  background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px black;
  animation: rainbow 3s linear infinite;
}

.rank-SS,
.rank-S {
  color: gold;
  text-shadow: 0 0 5px gold, 0 0 10px gold;
  -webkit-text-stroke: 1px black;
}

.rank-A {
  color: deeppink;
  text-shadow: 0 0 5px deeppink;
  -webkit-text-stroke: 1px black;
}

.rank-B {
  color: red;
  text-shadow: 0 0 5px red;
  -webkit-text-stroke: 1px black;
}

.rank-C {
  color: orange;
  text-shadow: 0 0 5px orange;
  -webkit-text-stroke: 1px black;
}

.rank-D {
  color: yellow;
  text-shadow: 0 0 5px yellow;
  -webkit-text-stroke: 1px black;
}

@keyframes rainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
.contact-section {
  padding: 2em;
  background-color: #fff6f8;
  border-radius: 10px;
  margin-top: 2em;
}

.contact-section h2 {
  font-size: 1.5em;
  margin-bottom: 1em;
}

.contact-section label {
  display: block;
  margin-bottom: 1em;
}

.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section textarea,
.contact-section select {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-section button {
  background-color: #ff70a6;
  color: white;
  padding: 0.7em 1.5em;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}
.fancy-title {
  position: relative;
  font-family: 'Kosugi Maru', sans-serif;
  font-size: 4em;
  color: white;
  padding: 20px 40px;
  border-radius: 15px;
  text-align: center;
  z-index: 1;

  background-image: url('kanato2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);

  /* ★ 追加：背景画像が大きく表示されるようにする */
  height: 250px; /* お好みで調整可能（例：250px や 300px） */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* オーバーレイ用の疑似要素 */
.fancy-title::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.2); /* 透明な黒のオーバーレイ */
  border-radius: 15px;
  z-index: -1; /* 背景より後ろに配置 */
}

@media (max-width: 600px) {
  .fancy-title {
    font-size: 2.3em;
    height: 150px;
  }
}
.x-share-button {
  display: inline-flex;
  align-items: center;
  background-color: #000; /* 黒背景 */
  color: #fff; /* 白文字 */
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-family: sans-serif;
  transition: background-color 0.3s;
}

.x-share-button:hover {
  background-color: #111;
}

.x-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  filter: brightness(0) invert(1); /* 白っぽく表示 */
}
