/* レスポンシブデザイン - 追加スタイル */

/* タブレット用 */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-card .product-image {
        padding: 1.5rem;
        height: 200px;
    }
    
    .product-card .product-image img {
        max-width: 150px;
        max-height: 150px;
    }
    
    .product-card-trial .product-image img {
        max-width: 105px;
        max-height: 105px;
    }
    
    .product-content {
        padding: 1.5rem;
    }
    
    .product-content h3 {
        font-size: 1.3rem;
    }
    
    .usage-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .method-card {
        padding: 1.5rem 1rem;
    }
    
    .method-card h3 {
        font-size: 1.1rem;
    }
    
    .method-card p {
        font-size: 0.9rem;
    }
    
    .usage-tip {
        padding: 1.5rem;
    }
    
    .usage-tip p {
        font-size: 0.9rem;
    }
    
    .usage-amount {
        padding: 1.5rem;
    }
    
    .amount-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .amount-section {
        padding: 1.5rem;
    }
    
    .amount-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .amount-section li {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 0.9rem;
    }
    
    .testimonial-image img {
        max-width: 150px;
        height: 120px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .organ-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 600px;
    }
    
    .organ-circle {
        width: 100px;
        height: 100px;
    }
    
    .organ-name {
        font-size: 1rem;
    }
    
    .organ-percentage {
        font-size: 1.1rem;
    }
    
    .research-note {
        max-width: 600px;
        padding: 1.2rem 1.5rem;
    }
    
    .feature-section {
        margin: 2rem 0;
        padding: 2rem;
    }
    
    .feature-section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-section-title {
        font-size: 1.4rem;
    }
    
    .feature-text-content p {
        font-size: 0.95rem;
    }
    
    .feature-svg {
        max-width: 100%;
        height: auto;
    }
    
    .feature-disclaimer {
        padding: 1.5rem;
    }

    /* SDGsページ */
    .sdgs-page .sdgs-icons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sdgs-page .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .sdgs-page .initiatives-grid {
        grid-template-columns: 1fr;
    }
    
    .sdgs-page .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .sdgs-page .timeline-container::before {
        left: 30px;
    }
    
    .sdgs-page .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .sdgs-page .timeline-content {
        margin: 0;
    }
    
    .sdgs-page .timeline-content::before {
        display: none;
    }
    
    .sdgs-page .timeline-dot {
        left: 30px !important;
    }
    
    .sdgs-page .timeline-dot-1 {
        top: 211px;
    }
    
    .sdgs-page .timeline-dot-2 {
        top: 565px;
    }
    
    .sdgs-page .timeline-dot-3 {
        top: 958px;
    }
    
    .sdgs-page .timeline-dot-4 {
        top: 1352px;
    }
    
    .sdgs-page .outlook-grid {
        grid-template-columns: 1fr;
    }
}

/* スマートフォン用 */
@media (max-width: 768px) {
    body {
        font-feature-settings: "palt" 1;
        -webkit-text-size-adjust: 100%;
    }
    
    .hero-title,
    .hero-description,
    .hero-lead {
        font-feature-settings: "palt" 1, "kern" 1;
        letter-spacing: 0.01em;
    }
    
    .header-content {
        padding: 0.8rem 15px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .logo h1 {
        font-size: 1.5rem;
        white-space: nowrap;
    }
    
    .mobile-menu-toggle {
        flex-shrink: 0;
        margin-left: 1rem;
    }
    
    /* ハンバーガーメニューは既にstyle.cssで実装済み */
    
    .hero {
        padding: 60px 0;
        height: 500px;
    }
    
    .hero-background {
        background-attachment: scroll;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-features {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .hero-feature {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin: 1rem 0;
    }
    
    .hero-lead {
        font-size: 0.9rem;
        margin: 1rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .product-selection {
        padding: 2rem;
    }
    
    .product-selection h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .product-options-horizontal {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .product-btn {
        min-width: 100%;
        max-width: 300px;
        padding: 0.8rem 1rem;
    }
    
    .product-name {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .product-desc {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .product-card .product-image {
        height: 180px;
        padding: 1rem;
    }
    
    .product-card .product-image img {
        max-width: 120px;
        max-height: 120px;
    }
    
    .product-card-trial .product-image img {
        max-width: 84px;
        max-height: 84px;
    }
    
    .usage-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .method-card {
        padding: 1rem;
    }
    
    .method-card h3 {
        font-size: 1rem;
    }
    
    .method-card p {
        font-size: 0.85rem;
    }
    
    .usage-tip {
        padding: 1rem;
    }
    
    .usage-tip p {
        font-size: 0.85rem;
    }
    
    .usage-amount {
        padding: 1rem;
    }
    
    .amount-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .amount-section {
        padding: 1rem;
    }
    
    .amount-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .amount-section li {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .amount-note {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }

    .pet-badge {
        width: 50px;
        height: 50px;
        top: -10px;
        left: -10px;
        border-width: 2px;
    }

    .pet-badge img {
        width: 100%;
        height: 100%;
    }
    
    .testimonial-content p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-top:3em;
    }
    
    .testimonial-image img {
        max-width: 120px;
        height: 100px;
    }
    
    /* SDGsバナーのレスポンシブ対応 */
    .sdgs-banner-header {
        display: none;
    }
    
    .sdgs-banner-img-footer {
        max-width: 250px;
    }
    
    .pet-image {
        max-width: 300px;
    }
    
    .author-info {
        font-size: 0.8rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .organ-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        max-width: 100%;
    }
    
    .organ-circle {
        width: 70px;
        height: 70px;
    }
    
    .organ-name {
        font-size: 0.9rem;
    }
    
    .organ-percentage {
        font-size: 1rem;
    }
    
    .organ-distribution h3 {
        font-size: 1.4rem;
    }
    
    .organ-grid .organ-item:nth-child(1),
    .organ-grid .organ-item:nth-child(2),
    .organ-grid .organ-item:nth-child(3),
    .organ-grid .organ-item:nth-child(4),
    .organ-grid .organ-item:nth-child(5),
    .organ-grid .organ-item:nth-child(6),
    .organ-grid .organ-item:nth-child(7),
    .organ-grid .organ-item:nth-child(8),
    .organ-grid .organ-item:nth-child(9),
    .organ-grid .organ-item:nth-child(10) {
        grid-column: auto;
    }
    
    .research-note {
        padding: 1.2rem;
        max-width: 100%;
    }
    
    .research-note p {
        font-size: 0.85rem;
    }
    
    .feature-section {
        margin: 1.5rem 0;
        padding: 1.5rem;
    }
    
    .feature-section-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-section-title {
        font-size: 1.2rem;
    }
    
    .feature-text-content p {
        font-size: 0.9rem;
    }
    
    .feature-svg {
        max-width: 100%;
        height: auto;
    }
    
    .feature-disclaimer {
        padding: 1rem;
    }
    
    /* スマートフォン版追尾バナー（固定フッター形式） */
    .floating-banner {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        max-width: none !important;
        width: 100% !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .banner-content {
        padding: 0;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
    }
    
    .banner-text {
        display: none; /* SP版では商品名を非表示 */
    }
    
    .banner-buttons {
        flex-direction: row;
        gap: 0;
        width: 100%;
    }
    
    .banner-btn {
        flex: 1;
        padding: 1rem;
        min-width: auto;
        border-radius: 0;
        border-right: 1px solid #e0e0e0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 60px;
    }
    
    .banner-btn:last-child {
        border-right: none;
    }
    
    .btn-text {
        font-size: 1rem;
        font-weight: bold;
        margin-bottom: 0.2rem;
    }
    
    .btn-price {
        font-size: 0.8rem;
        opacity: 0.8;
    }
    
    .banner-close {
        display: none; /* SP版では閉じるボタンを非表示 */
    }
    
    /* SP版でのコンテナ余白調整 */
    .container {
        padding: 0 15px;
    }
    
    /* ヘッダー用のコンテナは余白なし（画面幅いっぱい） */
    .header .container {
        padding: 0 15px;
    }
    
    /* 追尾バナー用のコンテナは余白なし */
    .floating-banner .container {
        padding: 0;
    }

    /* SDGsページ */
    .sdgs-page .sdgs-hero h1 {
        font-size: 2rem;
    }
    
    .sdgs-page .sdgs-hero p {
        font-size: 1rem;
    }
    
    .sdgs-page .sdgs-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .sdgs-page .sdgs-icon {
        width: 80px;
        height: 80px;
    }
    
    .sdgs-page .timeline-container::before {
        left: 20px;
    }
    
    .sdgs-page .timeline-item {
        padding-left: 50px;
    }
    
    .sdgs-page .timeline-dot {
        left: 20px !important;
        width: 16px;
        height: 16px;
    }
    
    .sdgs-page .timeline-dot-1 {
        top: 211px;
    }
    
    .sdgs-page .timeline-dot-2 {
        top: 565px;
    }
    
    .sdgs-page .timeline-dot-3 {
        top: 958px;
    }
    
    .sdgs-page .timeline-dot-4 {
        top: 1352px;
    }
    
    .sdgs-page .timeline-content {
        padding: 1.5rem;
    }
    
    .sdgs-page .timeline-year {
        font-size: 1.3rem;
    }
}

/* 横向きタブレット用 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: auto;
    }
    
    .hero-right {
        order: -1;
    }
    
    .hero-content {
        min-height: auto;
    }
    
    .product-selection {
        padding: 2rem;
    }
    
    .product-btn {
        min-width: 200px;
        padding: 1.2rem 1.5rem;
    }
    
    /* ページ共通スタイル - SP版 */
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    /* 会社概要ページ - SP版 */
    .company-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .company-section h2 {
        font-size: 1.3rem;
    }
    
    /* プライバシーポリシーページ - SP版 */
    .privacy-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .privacy-section h2 {
        font-size: 1.3rem;
    }
    
    /* 特定商取引法ページ - SP版 */
    .tokusho-table th {
        width: 120px;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .tokusho-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}