/* ============================================================
 * AiTone 共通スタイルシート
 * ============================================================ */

/* --- ベーススタイル --- */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #44403c;
}

/* --- 解析アニメーション（wave-container）--- */
/* howlisten.html / knowledge.html で共通使用 */
.wave-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #042f2e;
}
.analysis-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(13, 148, 136, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}
.wave {
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-position: 0 bottom;
}
@keyframes wave-move {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.wave1 {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z" fill="%232dd4bf" opacity="0.2"/></svg>');
    animation: wave-move 15s linear infinite;
    z-index: 1;
    bottom: 0;
}
.wave2 {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,60 C200,0 400,120 600,60 C800,0 1000,120 1200,60 L1200,120 L0,120 Z" fill="%2314b8a6" opacity="0.3"/></svg>');
    animation: wave-move 10s linear infinite;
    z-index: 2;
    bottom: -5px;
}
.wave3 {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,60 C250,90 450,30 600,60 C750,90 950,30 1200,60 L1200,120 L0,120 Z" fill="%23f97316" opacity="0.2"/></svg>');
    animation: wave-move 6s linear infinite;
    z-index: 3;
    bottom: -10px;
}
.scan-line {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #5eead4, transparent);
    box-shadow: 0 0 15px #2dd4bf;
    z-index: 4;
    animation: scan 4s linear infinite;
}
@keyframes scan {
    0%   { left: 0%;   opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}
.dot-blink {
    animation: blink 1s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* --- 法的文書スタイル --- */
/* privacy.html / terms.html で共通使用 */
.legal-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    color: #111827;
}
.legal-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #4b5563;
}
.legal-text ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.legal-text ol {
    margin-bottom: 1rem;
}
.legal-text li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* --- お問い合わせ確認テーブル --- */
/* contact-confirm.html で使用 */
.confirm-table th {
    width: 30%;
    background-color: #f5f5f4;
    color: #57534e;
    font-weight: bold;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e7e5e4;
}
.confirm-table td {
    width: 70%;
    background-color: #ffffff;
    color: #292524;
    padding: 1rem;
    border-bottom: 1px solid #e7e5e4;
}
@media (max-width: 768px) {
    .confirm-table th,
    .confirm-table td {
        display: block;
        width: 100%;
    }
    .confirm-table th {
        border-bottom: none;
        padding-bottom: 0.25rem;
    }
    .confirm-table td {
        padding-top: 0;
    }
}

html {
    scroll-behavior: smooth;
}