﻿.nice-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.6em;
}

.nice-box > div:first-child {
  flex: 1;
  max-width: 50%;
  text-align: center;
}
.nice-box > div:first-child img {
  width: 300px;
  max-width: 100%;
  height: auto;
}

.nice-btn-box {
  flex: 1;
  width: 50%;
  text-align: center;
  font-size: 17px;
}

@media screen and (max-width: 600px) {
  .nice-box > div:first-child {
    max-width: 40%;
  }
  .nice-btn-box {
    max-width: 65%;
  }
}

:root {
  --btn-gradient-start: #ff9a9e;
  --btn-gradient-end: #fecfef;
  font-family: sans-serif;
}

/*いいねモーダル表示用設定*/
/* 呼び出しボタンのデザイン */
.nice-button {
  display: block;
  max-width: 320px;
  margin: 0 auto var(--space-block);
  padding: 0 5px;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  background: #fff;
  border: 3px solid var(--gray-02);
  box-sizing: border-box;
}
.nice-button:hover {
  transform: scale(1.05);
}

/*テキスト風ボタンを使うならこちらをbuttonに設定*/
.txt-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: inline;
  vertical-align: baseline;
}
/* テキスト風ボタンのホバー時の挙動 */
.txt-button:hover {
  text-decoration: none;
  color: blue; /* 必要に応じてホバー色を指定 */
}

/* モーダルの背景 */
.clap-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}
/* モーダルの白い箱（サイズを変えたいならここ） */
.clap-modal-content {
  background: #fff;
  width: 90%;
  max-width: 480px;
  height: 480px;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 閉じるボタン */
.clap-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--btn-gradient-start);
  cursor: pointer;
  z-index: 10;
  width: 50px;
}
/* 中身のPHPを表示するフレーム */
#clapIframe {
  width: 100%;
  height: 100%;
}
