:root{
  --key:#bbdbf3;
  --sub:#e5f2f9;
  --text:#1d3241;

  /* --bg:#f8fbfe; */
  --card:#ffffff;
  --border:rgba(29,50,65,.12);
  --shadow: 0 10px 30px rgba(29,50,65,.10);
  --shadow2: 0 6px 16px rgba(29,50,65,.08);
  --radius: 16px;

  --link:#0b65c2;
  --muted:rgba(29,50,65,.72);
}

*{
    box-sizing:border-box;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
html,body{height:100%;}
/* iframe内でパツパツ防止：ページ全体に余白 */
body{
  margin:0 !important;
  padding:0px 16px 56px !important; /* 上・左右・下 */
  background: #fff!important;
}

/* containerは中央寄せだけ担当にする */
.container{
  max-width:820px;
  margin:0 auto !important;
  padding:0 !important; /* body側で余白を持つ */
}


.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.brand{
  display:flex;
  align-items:baseline;
  gap:10px;
}
.brand h1{
  margin:0;
  font-size:1.15rem;
  letter-spacing:.02em;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(187,219,243,.55);
  border:1px solid var(--border);
  color:rgba(29,50,65,.85);
  font-size:.82rem;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
  padding:16px;
  margin:14px 0;
}

.card.soft{
  background: linear-gradient(180deg, rgba(229,242,249,.85), rgba(255,255,255,1));
}

h2{
  margin:0 0 10px;
  font-size:1.05rem;
}

p{margin:10px 0;}

.muted{
  color:var(--muted);
  font-size:.95rem;
}

a{
  color:var(--link);
  text-decoration:none;
}
a:hover{text-decoration:underline;}

hr{
  border:none;
  border-top:1px solid rgba(29,50,65,.12);
  margin:18px 0;
}

.btn, button{
  appearance:none;
  border:none;
  cursor:pointer;
  font:inherit;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  background:rgba(229,242,249,.95);
  border:1px solid var(--border);
  color:rgba(29,50,65,.92);
  box-shadow:0 2px 0 rgba(29,50,65,.06);
}
.btn:hover{filter:brightness(.99);}
.btn.primary{
  background:linear-gradient(180deg, rgba(187,219,243,.95), rgba(187,219,243,.70));
}

.form{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.input{
  flex:1;
  min-width:220px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  outline:none;
  box-shadow: inset 0 1px 0 rgba(29,50,65,.05);
}
.input:focus{
  border-color:rgba(29,50,65,.25);
  box-shadow: 0 0 0 4px rgba(187,219,243,.55);
}

.kv{
  display:grid;
  gap:10px;
}
.kv .row{
  padding:10px 12px;
  border-radius:14px;
  background:rgba(229,242,249,.55);
  border:1px solid rgba(29,50,65,.10);
}
.kv .label{
  font-weight:700;
}
.kv .value{
  margin-top:4px;
}
.kv em{font-style:normal; font-weight:650;}

/* .notice{
  border-left:5px solid rgba(187,219,243,.95);
  padding:10px 12px;
  background:rgba(229,242,249,.55);
  border-radius:14px;
  border:1px solid rgba(29,50,65,.10);
} */

.footer{
  margin-top:18px;
  padding-top:10px;
  color:var(--muted);
  font-size:.92rem;
}
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}
.graybox {
	margin-bottom: 20px;
	padding: 20px;
	background-color: #fafafa;
}
.graybox:not(.noborder) {
	border: solid 1px #ccc;
}
.komozi {
    font-size: 80% !important;
    line-height: 1.5 !important;
}
/**/
.input{
  flex:1;
  min-width:240px;
  padding:16px 18px;            /* ← 少し大きく */
  font-size:1.05rem;            /* ← 文字も少し大きく */
  border-radius:18px;           /* ← モダン感UP */
  border:2px solid rgba(187,219,243,.65); /* ← 最初から少し目立つ */
  background:#fff;
  outline:none;
  box-shadow:
    inset 0 1px 0 rgba(29,50,65,.05),
    0 6px 18px rgba(29,50,65,.06);
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.input:focus{
  border-color:#bbdbf3;
  box-shadow:
    0 0 0 4px rgba(187,219,243,.55),
    0 10px 30px rgba(29,50,65,.10);
  transform: translateY(-1px);  /* ← ほんのり浮く */
}
.search-card{
  border:2px solid rgba(187,219,243,.75);
  background:
    linear-gradient(180deg, rgba(229,242,249,.9), #fff);
}
/* 会話レイアウト */

.st-kaiwa-box {
	width: 100%;
	height: auto;
	margin-bottom: 20px;
	display: table;
}

.st-kaiwa-face {
	text-align: center;
	display: table-cell;
	width: 60px;
	vertical-align: top;
}

.st-kaiwa-box .st-kaiwa-face img,
.st-kaiwa-box .st-kaiwa-face2 img {
	border-radius: 60px;
	border-style: solid;
	border-width: 1px;
}

.st-kaiwa .st-kaiwa-face img,
.st-kaiwa .st-kaiwa-face2 img {
	border-color: transparent;
}

.st-kaiwa-face-name {
	color: #616161;
	font-size: 70%;
	line-height: 1.5;
	max-width: 60px;
}

.st-kaiwa-area {
	display: table-cell;
	vertical-align: top;
	text-align: left;
	padding-top: 5px;
}

.st-kaiwa-hukidashi {
	display: inline-block;
	padding: 15px 20px;
	margin-left: 20px;
	border-radius: 7px;
	position: relative;
	background-color: #ebf4fb;
	word-break: break-all;
}

.st-kaiwa-hukidashi-content > *:last-child,
.post .st-kaiwa-hukidashi > *:last-child {
	margin-bottom: 0px;
}

.st-kaiwa-hukidashi::after {
	content: "";
	position: absolute;
	top: 30px;
	left: -10px;
	margin-top: -10px;
	display: block;
	width: 0px;
	height: 0px;
	border-style: solid;
	border-width: 10px 10px 10px 0;
	border-color: transparent #ebf4fb transparent transparent;
}

/*ふきだし反対*/

.st-kaiwa-face2 {
	text-align: center;
	display: table-cell;
	width: 60px;
	vertical-align: top;
}

.st-kaiwa-face2 img {
	border-radius: 60px;
	border: 1px solid #ccc;
}

.st-kaiwa-face-name2 {
	color: #616161;
	font-size: 70%;
	line-height: 1.5;
	max-width: 60px;
}

.st-kaiwa-area2 {
	display: table-cell;
	vertical-align: top;
	text-align: right;
}

.st-kaiwa-hukidashi2 {
	display: inline-block;
	padding: 15px 20px;
	margin-right: 20px;
	border-radius: 7px;
	position: relative;
	background-color: #ebf4fb;
	text-align: left;
	word-break: break-all;
}

.post .st-kaiwa-hukidashi2 p:last-child {
	margin-bottom: 0px;
}

.st-kaiwa-hukidashi2::after {
	content: "";
	position: absolute;
	top: 30px;
	right: -10px;
	margin-top: -10px;
	display: block;
	width: 0px;
	height: 0px;
	border-style: solid;
	border-width: 10px 0 10px 10px;
	border-color: transparent transparent transparent #ebf4fb;
}

/* 会話アイコンアニメーション */
.st-kaiwa-face-move .st-kaiwa-face img {
	animation: animScale 4s infinite ease-out;
	transform-origin: 50% 50%;
	animation-play-state: running;
	backface-visibility: hidden;
}

.st-kaiwa-face-move .st-kaiwa-face2 img {
	animation: animScale 4.5s infinite ease-out;
	transform-origin: 50% 50%;
	animation-play-state: running;
	backface-visibility: hidden;
}

/** 動かすクラス bound */
.is-style-st-paragraph-kaiwa.bound::before,
.st-kaiwa-box.bound .st-kaiwa-face img {
	animation: animScale 4s infinite ease-out;
	transform-origin: 50% 50%;
	animation-play-state: running;
	backface-visibility: hidden;
}

.is-style-st-paragraph-kaiwa-b.bound::before,
.st-kaiwa-box.bound .st-kaiwa-face2 img {
	animation: animScale 4.5s infinite ease-out;
	transform-origin: 50% 50%;
	animation-play-state: running;
	backface-visibility: hidden;
}

@keyframes animScale {
	0% {
		transform: scale(0.8, 0.8);
	}
	5% {
		transform: scale(1.1, 1.1);
	}
	10% {
		transform: scale(1, 1);
	}
	15% {
		transform: scale(1.1, 1.1);
	}
	20% {
		transform: scale(1, 1);
	}
	100% {
		transform: scale(1, 1);
	}
}

/* タイピングアニメーションのローディング */
.st-kaiwa-hukidashi-content .loading-dots {
    display: inline-block;
    animation: blink 1s infinite;
	position: absolute;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.redlist{
  margin-top:10px;
  display:inline-block;
  padding:8px 12px;
  /*border-radius:999px;
  border:1px solid rgba(29,50,65,.12);
  background:rgba(229,242,249,.6);
  color:rgba(29,50,65,.92);*/
  font-weight:650;
  letter-spacing:.01em;
}

@media (max-width:520px){
  .container{margin:18px auto; padding:0 12px 44px;}
  .header{flex-direction:column; align-items:flex-start;}
  .btn{width:100%; justify-content:center;}
}
