@charset "UTF-8";

:root {
  --bg: #090909;
  --panel: #171411;
  --panel-deep: #0d0d0d;
  --gold: #b8a36a;
  --gold-light: #d5c28a;
  --text: #d8d0c2;
  --muted: #8f887c;
  --line: #4d422c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(115, 103, 76, 0.10), transparent 28%),
    linear-gradient(#080808, #0b0b0b 60%, #080808);
  color: var(--text);
  font-family:
    "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro",
    "Noto Serif JP", serif;
  letter-spacing: 0.06em;
}

.page {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 390px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-stone {
  position: absolute;
  width: 430px;
  height: 520px;
  left: 50%;
  top: -70px;
  transform: translateX(-50%);
  opacity: 0.13;
  background:
    radial-gradient(ellipse at 45% 35%, #777 0 3%, transparent 4%),
    radial-gradient(ellipse at 35% 55%, #555 0 12%, transparent 13%),
    radial-gradient(ellipse at 58% 60%, #3f3f3f 0 16%, transparent 17%),
    linear-gradient(145deg, #666, #111 65%);
  filter: blur(3px);
  clip-path: polygon(42% 0, 66% 7%, 73% 26%, 92% 49%, 78% 66%, 69% 91%, 45% 100%, 30% 81%, 15% 64%, 22% 38%, 13% 20%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 20px 30px;
}

h1 {
  margin: 0 0 24px;
  color: #dfd1ae;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: 0.18em;
}

.subtitle {
  margin: 0 0 25px;
  color: #aaa18f;
  font-size: 14px;
}

.intro {
  margin: 0;
  color: #aaa39a;
  font-size: 14px;
  line-height: 2.2;
}

main {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
}

.search-area {
  margin: 10px auto 34px;
}

.search-area label {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
}

.search-box {
  display: flex;
  border: 1px solid #554b37;
  background: rgba(12, 12, 12, 0.9);
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 17px 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ddd5c6;
  font-family: inherit;
  font-size: 16px;
}

.search-box input::placeholder {
  color: #6f6a61;
}

.search-box button {
  width: 90px;
  border: 0;
  border-left: 1px solid #554b37;
  background: #15120e;
  color: var(--gold-light);
  font-family: inherit;
  cursor: pointer;
}

.search-box button:hover {
  background: #211c15;
}

.search-message {
  min-height: 20px;
  margin: 9px 0 0;
  color: #8e877b;
  font-size: 12px;
}

.meaning-frame-wrap {
  position: relative;
  padding: 10px;
  border: 1px solid var(--gold);
  background: #191510;
  box-shadow: 0 0 0 1px rgba(184, 163, 106, 0.15);
}

.frame-title {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 18px;
  background: #090909;
  color: #8f8059;
  font-size: 12px;
  white-space: nowrap;
}

#meaningFrame {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
  background: var(--panel);
}

.stone-index {
  padding: 75px 0 90px;
}

.stone-index h2 {
  margin: 0;
  text-align: center;
  color: #d3c59f;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.index-lead {
  margin: 14px 0 35px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.stone-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kana-group {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid #302b23;
  color: var(--gold);
  font-size: 16px;
}

.kana-group:first-child {
  margin-top: 0;
}

.stone-button {
  display: block;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #29251f;
  background: #11100f;
  color: #c8c0b3;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

.stone-button:hover,
.stone-button.active {
  border-color: #6d5e3d;
  background: #1b1814;
  color: #e0d1ab;
}

footer {
  padding: 35px 20px 50px;
  border-top: 1px solid #181818;
  text-align: center;
  color: #5e5a53;
  font-size: 11px;
}

@media (max-width: 700px) {
  .hero {
    min-height: 330px;
  }

  .hero-content {
    padding-top: 55px;
  }

  h1 {
    font-size: 40px;
  }

  main {
    width: min(100% - 22px, 900px);
  }

  .search-box button {
    width: 72px;
  }

  #meaningFrame {
    height: 520px;
  }

  .stone-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stone-button {
    padding: 12px 10px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .stone-list {
    grid-template-columns: 1fr 1fr;
  }
}


/* 検索候補 */
.search-message {
  line-height: 1.7;
}

.suggest-title {
  display: block;
  margin-bottom: 8px;
  color: #b8a36a;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggest-button {
  padding: 8px 16px;
  border: 1px solid #6d5e3d;
  background: #15120e;
  color: #d5c28a;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

.suggest-button:hover {
  background: #211c15;
  border-color: #b8a36a;
}

.suggestion-button{
  display:inline-block;
  margin:4px 3px;
  padding:6px 12px;
  border:1px solid rgba(180,160,110,.5);
  border-radius:20px;
  background:transparent;
  color:inherit;
  cursor:pointer;
  font:inherit;
}
.suggestion-button:hover{background:rgba(180,160,110,.12)}

.close-your-eyes{
  margin-bottom:10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size:12px;
  letter-spacing:.28em;
  text-transform:lowercase;
  opacity:.62;
}
.copyright-note{
  display:inline-block;
  margin-top:10px;
  font-size:11px;
  letter-spacing:.05em;
  opacity:.58;
}
@media(max-width:600px){
  .close-your-eyes{
    font-size:11px;
    letter-spacing:.22em;
    margin-bottom:8px;
  }
  .copyright-note{
    font-size:10px;
    line-height:1.7;
  }
}

.search-choice-title{
  margin-bottom:10px;
  line-height:1.8;
}
.search-choice-list{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  justify-content:center;
}
.suggestion-button{
  display:inline-block;
  margin:0;
  padding:7px 13px;
  border:1px solid rgba(180,160,110,.5);
  border-radius:20px;
  background:transparent;
  color:inherit;
  cursor:pointer;
  font:inherit;
  line-height:1.5;
}
.suggestion-button:hover{
  background:rgba(180,160,110,.12);
}

@media(max-width:600px){
  .search-choice-list{gap:6px}
  .suggestion-button{font-size:12px;padding:6px 10px}
  
}


@media(max-width:600px){
  
}

.stone-list-help{
  margin:6px auto 18px;
  text-align:center;
  font-size:12px;
  line-height:1.8;
  letter-spacing:.04em;
  opacity:.62;
}
@media(max-width:600px){
  .stone-list-help{font-size:11px}
}






@media(max-width:600px){}


/* 背景：黒の雰囲気を保ったまま、ほんの少しだけ明るく */
html, body {
  background-color: #232323;
}

/* 文字の読みやすさ調整 */
body{
  color:#eeeeee;
  font-size:16px;
  line-height:1.9;
}
p, li, dd, dt{
  color:#eeeeee;
  font-size:1em;
  line-height:1.95;
}
h1{color:#f5f5f5}
h2,h3{color:#eeeeee}
.search-message,
.search-choice-title,
.search-initial-help,
.stone-list-help{
  color:#e6e6e6;
}
.suggestion-button{
  color:#f0f0f0;
  font-size:14px;
}
@media(max-width:600px){
  body{
    font-size:16px;
    line-height:1.85;
  }
  p, li, dd, dt{
    font-size:1em;
    line-height:1.9;
  }
  .suggestion-button{
    font-size:14px;
  }
}
