/* 全体のコンテナ */
.q {
    position: relative;
    background: linear-gradient(135deg, #2b2b2b 0%, #111111 100%); /* 暗いグラデーション背景 */
    color: var(--submaincolor);
    padding: 5rem 2rem;
    text-align: center;
    font-family: var( --ShareTechMono);
    overflow: hidden;
}

/* 背景にある大きなロゴ (img/logo.png) */
.q-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 600px;
    height: auto;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

/* コンテンツ全体のラッパー */
.q-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

/* タイトルとキャラクターをまとめるラッパー（中央揃えで横並びにするため） */
.q-title-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* タイトルとキャラクターの間隔 */
    margin-bottom: 30px;
    flex-wrap: wrap; /* 画面が狭いときに自然に折り返す用 */
}

/* メインタイトル (お問い合わせ) */
.q-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin: 0;
}

/* スマホを持ったキャラクター画像 (img/tama.png) */
.q-tama {
    width: 40px ;/* ここでキャラクターのサイズを調整できます（小さめ） */
    height: auto;
    object-fit: contain;
}

/* 説明文エリア */
.q-desc {
    margin-top: 20px;
}

/* サブタイトル */
.q-sub {
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 注意書きなどの段落 */
.q-desc p {
    font-size: 0.9rem;
    color: #cccccc;
    margin: 8px 0;
    line-height: 1.5;
}


/* =========================================
   スマホUIシミュレーター（チャット版）
========================================= */
.phone-simulator {
    width: 100%;
    max-width: 340px;
    margin: 2rem auto;
    background-color: #090a0f;
    border: 4px solid #1e2230;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(255, 0, 55, 0.1);
    position: relative;
    text-align: left;
}

/* 上部ステータスバー */
.phone-status-bar {
    background-color: #121520;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-family: 'Share Tech Mono', monospace;
    color: #9ca3af;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-notch {
    width: 64px;
    height: 16px;
    background-color: #000000;
    border-radius: 9999px;
    margin: 0 auto;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accentcolor, #ff0037);
}

.status-icons .fa-wifi {
    font-size: 9px;
}

.status-icons .battery-text {
    font-weight: bold;
}

/* タブ */
.phone-tabs {
    background-color: rgba(18, 21, 32, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    width: 100%;
    padding: 10px 4px;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--accentcolor, #ff0037);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.tab-btn span {
    display: block;
    font-size: 10px;
    color: #6b7280;
    font-family: 'Share Tech Mono', monospace;
}

/* チャット画面エリア */
.phone-screen.chat-box {
    padding: 16px;
    height: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #090a0f, #0d0f17);
}

/* 吹き出しスタイル */
.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    word-break: break-all;
}

.message.bot {
    align-self: flex-start;
    background: #1e2230;
    color: #e5e7eb;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message.user {
    align-self: flex-end;
    background: var(--accentcolor, #ff0037);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

/* スマホ下部のチャット入力エリア */
.phone-footer-chat {
    display: flex;
    padding: 12px;
    background-color: #121520;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 8px;
    align-items: center;
}

.phone-footer-chat input {
    flex: 1;
    padding: 10px 14px;
    background-color: rgba(9, 10, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    outline: none;
    font-size: 13px;
    color: #fff;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.phone-footer-chat input:focus {
    border-color: var(--accentcolor, #ff0037);
}

.phone-footer-chat button {
    padding: 10px 14px;
    background: var(--accentcolor, #ff0037);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.phone-footer-chat button:hover {
    opacity: 0.85;
}

.phone-footer-chat button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}



/* >>>>>> PC <<<<<< */
@media (min-width:600px){


.q {
    padding: 170px 20px;
}

/* コンテンツ全体のラッパー */
.q-content {
    max-width: 1200px;
}
/* スマホを持ったキャラクター画像 (img/tama.png) */
.q-tama {
    width: 60px ;
}

.q-content h1 {
    font-size: 2.2rem;
}
.q-sub {
    font-size: 1rem;
}

}