:root {
    --primary-color: #72899D;    /* メインカラー */
    --secondary-color: #8699A9;  /* セカンダリーカラー */
    --accent-color: #5B7082;     /* アクセントカラー */
    --highlight-color: #9DAEBB;  /* ハイライトカラー */
    --text-color: #333333;
    --bg-color: #F7F7F7;
    --bg-alt-color: #FFFFFF;
    --max-width: 1120px;
    --section-spacing: 120px;
    --container-padding: 24px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 72px;
    background-color: var(--bg-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ヘッダーセクション */
header {
    height: 72px;
    background-color: rgba(255, 255, 255, 0.85);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(114, 137, 157, 0.1);
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 140px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* メインビジュアル */
.hero {
    padding: 120px 0;
    background: linear-gradient(165deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    text-align: left;
    flex: 4;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-image {
    flex: 6;
    display: flex;
    justify-content: flex-end;
    max-width: 60%;
}

.hero-image img {
    max-width: 110%;
    height: auto;
    transform: translateX(5%);
}

.hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 8px;
    filter: brightness(0) invert(1);
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    font-weight: 400;
    max-width: 640px;
    margin: 0;
    line-height: 1.8;
    opacity: 0.9;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    animation: shine 8s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
    animation: pulse 4s ease-in-out infinite;
}

/* 企業情報セクション */
.company-info {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-color);
}

.company-info h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;
    position: relative;
}

.company-info h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.info-grid {
    display: flex;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.info-item {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.info-item p {
    font-size: 18px;
    line-height: 2.2;
    color: var(--text-color);
    text-align: left;
    max-width: 800px;
    margin: 0 auto 24px;
    letter-spacing: 0.02em;
    font-weight: 470;
}

.info-item p:last-child {
    margin-bottom: 0;
}

/* お問い合わせフォーム */
.contact-form {
    display: none;
}

/* フッター */
footer {
    padding: 80px 0 40px;
    background: var(--primary-color);
    color: var(--bg-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    max-width: var(--max-width);
    margin: 0 auto 64px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo {
    width: 160px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
    margin: 0;
}

.footer-info {
    margin-top: 8px;
}

.footer-info h3 {
    font-size: 16px;
    color: var(--bg-color);
    margin: 0 0 24px;
    font-weight: 500;
    opacity: 0.9;
}

.footer-info p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: var(--bg-color);
    opacity: 0.7;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* モーダル関連のスタイル */
.contact-button-container {
    padding: 0 0 var(--section-spacing);
    text-align: center;
}

.contact-button {
    background-color: var(--primary-color);
    color: white;
    padding: 16px 48px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* モーダルのアニメーション調整 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: modalFadeIn 1s ease-out forwards;
}

.modal-content {
    background: #fff;
    margin: auto;
    width: min(600px, 90%);
    position: relative;
    padding: 40px;
    border-radius: 12px;
    transform: scaleY(0.3);
    opacity: 0;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal.active .modal-content {
    animation: modalOpen 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* モーダル内のコンテンツアニメーション */
.modal-content > * {
    opacity: 0;
    transform: translateY(15px);
}

.modal.active .modal-content > * {
    animation: modalContentFadeIn 0.6s ease-out forwards;
    animation-delay: 0.8s;
}

/* モーダルが閉じる時の即時非表示 */
.modal.closing {
    display: none;
}

.modal.closing .modal-content {
    display: none;
}

/* 不要になったキーフレームを削除 */
@keyframes modalFadeIn {
    from {
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

@keyframes modalOpen {
    from {
        transform: scaleY(0.3);
        opacity: 0;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes modalContentFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    font-size: 24px;
    margin: 0 0 32px;
    text-align: center;
    color: var(--text-color);
}

.modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    :root {
        --section-spacing: 80px;
        --container-padding: 20px;
    }
    
    /* ヘッダー */
    header {
        height: 60px;
    }

    .logo {
        width: 120px;
    }
    
    /* ヒーローセクション */
    .hero {
        padding: 60px 0;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .hero-text {
        gap: 24px;
        align-items: center;
    }

    .hero-image {
        justify-content: center;
        max-width: 100%;
    }

    .hero-image img {
        max-width: 93.5%;
        transform: none;
    }

    .hero-logo {
        width: 160px;
        margin-bottom: 0;
    }

    .hero-text-content {
        text-align: center;
        gap: 16px;
    }

    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    /* 企業情報セクション */
    .company-info {
        padding: 60px 0;
    }

    .company-info h2 {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .company-info h2::after {
        bottom: -12px;
        width: 32px;
    }

    .info-item {
        padding: 0 20px;
    }

    .info-item p {
        font-size: 16px;
        line-height: 2.1;
    }
    
    /* お問い合わせボタン */
    .contact-button-container {
        padding: 0 20px 60px;
    }

    .contact-button {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }
    
    /* モーダル */
    .modal {
        align-items: center;
        justify-content: center;
        padding: 16px;
        box-sizing: border-box;
    }
    
    .modal-content {
        width: 90%; /* 画面幅の90% */
        margin: auto;
        padding: 32px 24px;
        box-sizing: border-box;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* スクロールバーのカスタマイズ */
    .modal-content::-webkit-scrollbar {
        width: 4px;
    }

    .modal-content::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .modal-content::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }

    .modal-content h2 {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .modal-close {
        right: 12px;
        top: 12px;
        font-size: 22px;
    }
    
    /* フォーム */
    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 16px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: left top;
        margin-bottom: 20px;
    }

    .submit-button {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    /* フッター */
    footer {
        padding: 60px 0 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 0 20px;
    }

    .footer-brand {
        text-align: left;
        align-items: flex-start;
    }

    .footer-brand p {
        text-align: left;
    }

    .footer-logo {
        margin-left: 0; /* もし中央寄せのマージンがある場合 */
    }

    .footer-content {
        align-items: flex-start;
    }

    .footer-info {
        text-align: left;
        align-items: flex-start;
    }

    .footer-info h3 {
        text-align: left;
    }

    .footer-info p {
        text-align: left;
    }

    .copyright {
        padding-top: 32px;
        font-size: 12px;
    }

    .info-grid {
        gap: 32px;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .hero p {
        font-size: 16px;
    }

    .hero-contact-button {
        padding: 10px 24px;
        font-size: 15px;
        margin-top: 12px;
        width: 100%;
        max-width: 280px;
    }
}

/* 高さが狭い画面での対応 */
@media (max-height: 700px) {
    .modal {
        align-items: flex-start;
    }
    
    .modal-content {
        margin: 0 auto;
        padding: 20px;
        padding-bottom: 40px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group textarea {
        min-height: 80px;
    }
}

/* フォームスタイル */
.form-group {
    margin-bottom: 24px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.required {
    color: #e74c3c;
    margin-left: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(114, 137, 157, 0.15);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-alt-color);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(114, 137, 157, 0.1),
                inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* reCAPTCHA */
.g-recaptcha {
    margin-bottom: 24px;
    /* 背景色と余白を削除 */
    /* background: var(--bg-alt-color); */
    /* padding: 8px; */
    /* border-radius: 8px; */
    width: fit-content;
    display: block;
}

/* 送信ボタン */
.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 16px 48px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.submit-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* スピナー */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

.submit-button.loading .spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* フォームステータスメッセージ */
.form-status {
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* アニメーション用のユーティリティクラス */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-delay-3 {
    animation-delay: 0.6s;
}

/* テクノロジー要素のアニメーション */
.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

/* アニメーションキーフレーム */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    from {
        transform: translateX(-30%) translateY(-30%) rotate(0deg);
    }
    to {
        transform: translateX(30%) translateY(30%) rotate(45deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes gridMove {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(50px);
    }
}

/* スクロールアニメーション */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .scroll-reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* モーダルアニメーション */
@keyframes modalFadeIn {
    from {
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

@keyframes modalContentSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* フォーム全体のコンテナ */
#contactForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 送信ボタンのコンテナ */
.submit-button-container {
    width: 100%;
}

/* 送信完了モーダルのスタイル */
.thank-you-content {
    text-align: center;
    padding: 20px 0;
}

.thank-you-content h2 {
    color: var(--primary-color);
    margin-bottom: 24px;
}

.thank-you-content p {
    margin-bottom: 32px;
    line-height: 1.8;
}

.thank-you-content .contact-button {
    display: inline-block;
    min-width: 200px;
}

/* モーダル共通のアニメーション調整 */
.modal.switching {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.switching .modal-content {
    animation: none;
    opacity: 0;
    transform: translateY(20px);
}

@media (max-width: 415px) {
    .hero-text-content h1 {
        font-size: calc(16px + (28 - 16) * ((100vw - 280px) / (415 - 280)));
        line-height: 1.4;
    }

    .hero-text-content p {
        font-size: calc(14px + (18 - 14) * ((100vw - 280px) / (415 - 280)));
        line-height: 1.6;
    }

    .hero-logo {
        width: calc(100px + (140 - 100) * ((100vw - 280px) / (415 - 280)));
        height: auto;
    }
}

/* より小さな画面サイズでのさらなる調整 */
@media (max-width: 320px) {
    .hero-text-content h1 {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
    }

    .hero-text-content p {
        font-size: clamp(0.8rem, 3.5vw, 0.9rem);
    }

    .hero-logo {
        width: clamp(100px, 25vw, 120px);
    }
}

/* スクロールバーのカスタマイズ（全画面サイズ共通） */
.modal-content::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 0.7;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* おすすめセクション */
.recommended-section {
    padding: var(--section-spacing) 0;
    background-color: var(--primary-color);
    color: white;
}

.recommended-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    color: white;
}

.recommended-section h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: white;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.recommended-item {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.recommended-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.recommended-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.recommended-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommended-item:hover .recommended-image img {
    transform: scale(1.05);
}

.recommended-image h3 {
    position: absolute;
    bottom: 0;
    right: 20px;
    left: auto;
    margin: 0;
    padding: 16px;
    color: white;
    font-size: 24px;
    font-weight: 600;
    width: calc(100% - 20px);
    text-align: right;
}

.recommended-item p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    color: var(--text-color);
    padding: 24px;
}

/* レスポンシブ対応の調整 */
@media (max-width: 768px) {
    .recommended-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .recommended-image {
        height: 180px;
    }
    
    .recommended-image h3 {
        font-size: 21.6px;
        padding: 12px;
    }
    
    .recommended-item p {
        padding: 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .recommended-image {
        height: 160px;
    }
}

/* 固定メールアイコン */
.floating-mail-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 99;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.floating-mail-icon:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
}

.floating-mail-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

@media (max-width: 768px) {
    .floating-mail-icon {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-mail-icon svg {
        width: 24px;
        height: 24px;
    }
}

.hero-contact-button {
    background-color: var(--bg-color);
    color: var(--primary-color);
    padding: 12px 32px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-contact-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 悩みセクション（吹き出し形式） */
.problems-section {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(114, 137, 157, 0.1);
}

.problems-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;
    position: relative;
}

.problems-section h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.speech-bubbles-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.speech-bubble {
    display: flex;
    align-items: center;
    gap: 24px;
    transition: transform 0.3s ease;
}

.speech-bubble:hover {
    transform: translateY(-5px);
}

.speech-bubble.left {
    justify-content: flex-start;
}

.speech-bubble.right {
    justify-content: flex-end;
}

.speech-content {
    background-color: var(--bg-alt-color);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 70%;
}

.speech-bubble.left .speech-content::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 12px 0 12px 12px;
    border-style: solid;
    border-color: transparent transparent transparent var(--bg-alt-color);
}

.speech-bubble.right .speech-content::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 12px 12px 12px 0;
    border-style: solid;
    border-color: transparent var(--bg-alt-color) transparent transparent;
}

.speech-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-alt-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.speech-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-color);
}

.speech-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 12px;
    line-height: 1.4;
}

.speech-content p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    color: var(--text-color);
}

.problems-solution {
    text-align: center;
    margin: 60px auto 0;
    padding: 24px 24px 32px;
    background-color: var(--bg-alt-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 900px;
}

.problems-solution p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 24px;
}

.problems-solution .contact-button {
    margin: 0 auto;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .problems-section h2 {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .speech-bubbles-container {
        gap: 32px;
        padding: 0 20px;
    }
    
    .speech-bubble {
        gap: 16px;
    }
    
    .speech-content {
        padding: 20px;
        max-width: 75%;
    }
    
    .speech-icon {
        width: 50px;
        height: 50px;
    }
    
    .speech-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .speech-content h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .speech-content p {
        font-size: 14px;
    }
    
    .problems-solution {
        margin-top: 40px;
        padding: 20px;
    }
    
    .problems-solution p {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .problems-solution p br {
        display: none;
    }
}

@media (max-width: 576px) {
    .speech-bubble {
        flex-direction: column;
        gap: 16px;
    }
    
    .speech-bubble.left,
    .speech-bubble.right {
        align-items: center;
    }
    
    .speech-content {
        max-width: 100%;
    }
    
    .speech-bubble.left .speech-content::after,
    .speech-bubble.right .speech-content::after {
        display: none;
    }
}

.recommended-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-color);
} 