/* ========================================
   Mobile-First Responsive Optimizations
   スマートフォン閲覧最適化追加CSS
   ======================================== */

/* スマホでの基本設定 */
@media only screen and (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.8;
        word-break: normal;
        overflow-wrap: break-word;
    }

    /* ========== 禁則処理 ========== */
    /* 句読点・助詞が1文字だけ次の行に落ちるのを防ぐ */
    p, li, .fit-note, .contact-intro, .sympathy-text,
    .profile-message, .about-text, .value-item,
    .message-text, .contact-photo-text {
        line-break: strict;
        hanging-punctuation: allow-end;
    }

    /* ========== Hero Section ========== */
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-subtitle {
        order: 1;
        margin-bottom: 0;
        margin-top: 20px;
        font-size: 14px;
        letter-spacing: 1px;
        text-transform: none;
    }

    .hero-title {
        order: 0;
        margin-bottom: 0;
    }

    .hero-description {
        order: 2;
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.8;
    }

    .hero-cta {
        order: 3;
    }

    /* ========== セクション共通 ========== */
    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 16px;
    }

    /* ボタン — ゆとりのあるパディング */
    .btn {
        font-size: clamp(14px, 4vw, 17px);
        padding: 18px 40px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 220px;
        letter-spacing: 0.5px;
    }

    /* ========== 見出し — セクション区切りを明確に ========== */
    .section-header {
        margin-bottom: 56px;
    }

    .section-title {
        font-size: 28px;
        line-height: 1.4;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .section-subtitle {
        font-size: 15px;
        letter-spacing: 1px;
    }

    /* ========== プロフィールセクション ========== */
    .profile-intro {
        padding: 50px 0;
    }

    .profile-intro-content {
        flex-direction: column;
        padding: 35px 16px;
        gap: 24px;
        text-align: center;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
        margin: 0 auto 20px;
    }

    .profile-name {
        font-size: 26px;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .profile-title {
        font-size: 14px;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }

    .profile-greeting {
        font-size: 20px;
        line-height: 1.8;
        margin-bottom: 24px;
    }

    .profile-message {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 16px;
    }

    .profile-conclusion {
        font-size: 17px;
        margin-top: 24px;
        padding-top: 20px;
    }

    /* ========== 共感セクション ========== */
    .sympathy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sympathy-item {
        padding: 28px 24px;
        min-height: auto;
    }

    .sympathy-number {
        font-size: 36px;
    }

    .sympathy-text {
        font-size: 16px;
        line-height: 1.8;
    }

    .sympathy-message {
        padding: 36px 20px;
        margin-top: 30px;
    }

    .sympathy-message p {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .sympathy-emphasis {
        font-size: 18px !important;
        line-height: 1.8 !important;
        margin: 32px 0 !important;
        font-weight: 700 !important;
    }

    .sympathy-conclusion {
        font-size: 17px !important;
        line-height: 1.8 !important;
        margin-top: 36px !important;
        padding-top: 28px;
    }

    .sp-only {
        display: inline;
    }

    .pc-only {
        display: none;
    }

    .sympathy-warning {
        display: none;
    }

    .sympathy-result {
        margin-top: 24px;
        padding-top: 24px;
        font-size: 16px;
    }

    /* ========== Aboutセクション ========== */
    .about-intro {
        margin-bottom: 48px;
    }

    .about-greeting {
        font-size: 20px;
        line-height: 1.8;
        margin-bottom: 28px;
    }

    .about-text {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .about-photo,
    .about-photo-work {
        margin: 40px 0;
        text-align: center;
    }

    .about-photo img,
    .about-photo-work img {
        border-radius: 16px;
        margin-bottom: 20px;
    }

    /* ========== 価値観セクション ========== */
    .values {
        padding: 36px 24px;
        overflow: hidden;
    }

    .values-title {
        font-size: 24px;
        margin-bottom: 24px;
        line-height: 1.4;
        font-weight: 700;
    }

    .values-intro {
        font-size: 16px;
        margin-bottom: 28px;
        line-height: 1.8;
    }

    .values-list {
        margin-bottom: 32px;
    }

    .value-item {
        margin-bottom: 24px;
        font-size: 16px;
        line-height: 1.8;
        word-break: normal;
    }

    .value-item span {
        min-width: 0;
    }

    .value-item i {
        font-size: 20px;
        min-width: 28px;
    }

    .values-goal {
        margin-top: 36px;
        padding-top: 36px;
    }

    .values-goal p {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 16px;
    }

    .values-mission {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 16px;
        font-weight: 600;
    }

    /* ========== Fitセクション ========== */
    .fit-box {
        padding: 36px 24px;
        margin-bottom: 28px;
    }

    .fit-title {
        font-size: 22px;
        line-height: 1.4;
        margin-bottom: 24px;
        font-weight: 700;
    }

    .fit-list li {
        padding: 14px 0;
        font-size: 16px;
        line-height: 1.8;
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

    .fit-good .fit-list li:before,
    .fit-not .fit-list li:before {
        font-size: 18px;
        line-height: 1;
        height: 28.8px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        margin: 0;
        flex-shrink: 0;
    }

    .fit-note {
        font-size: 16px;
        line-height: 1.8;
    }

    .fit-message {
        padding: 36px 24px;
    }

    .fit-message p {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 16px;
    }

    /* ========== CTAセクション ========== */
    .contact {
        padding: 60px 0;
    }

    .contact-photo-intro {
        margin-bottom: 56px;
    }

    .contact-photo-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: 28px;
    }

    .contact-photo-text {
        font-size: 17px;
        line-height: 1.8;
        padding: 0 24px;
    }

    .contact-intro {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 28px;
        padding: 0 8px;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 44px;
    }

    .contact-button {
        padding: 40px 28px;
    }

    .contact-button i {
        font-size: 40px;
    }

    .contact-button span {
        font-size: 19px;
        font-weight: 600;
    }

    /* ========== 最終メッセージセクション ========== */
    .final-message {
        padding: 70px 0;
    }

    .message-title {
        font-size: 28px;
        margin-bottom: 36px;
        font-weight: 700;
    }

    .message-text {
        font-size: 17px;
        line-height: 1.8;
        margin-bottom: 24px;
    }

    .message-signature {
        font-size: 24px;
        margin-top: 44px;
        font-weight: 700;
    }

    /* ========== 実績・サービスカード ========== */
    .accounts-grid,
    .results-grid,
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .account-card,
    .result-card,
    .service-card {
        padding: 32px 20px !important;
    }

    .result-badge {
        font-size: 12px !important;
        padding: 6px 16px !important;
        margin-bottom: 16px !important;
    }

    .result-title {
        font-size: 20px !important;
        margin-bottom: 20px !important;
        font-weight: 700 !important;
    }

    .result-metric {
        margin: 20px 0 !important;
        padding: 20px !important;
    }

    .metric-number {
        font-size: 24px !important;
        margin-bottom: 8px !important;
        font-weight: 700 !important;
    }

    .metric-label {
        font-size: 14px !important;
    }

    .result-description {
        font-size: 16px !important;
        line-height: 1.8 !important;
    }

    .service-title {
        font-size: 20px;
        margin-bottom: 16px;
        line-height: 1.5;
        font-weight: 700;
    }

    .service-desc {
        font-size: 16px;
        line-height: 1.8;
    }

    .services-intro {
        padding: 36px 20px;
        margin-bottom: 44px;
    }

    .services-tagline {
        font-size: 18px;
        line-height: 1.8;
        font-weight: 600;
    }

    /* ========== フッター — 情報優先度を下げる ========== */
    .footer {
        padding: 40px 0 24px;
    }

    .footer-logo {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .footer-text {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .social-link {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .footer-address {
        font-size: 12px;
        line-height: 1.7;
    }

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

/* 更に小さい画面用の最適化（480px以下） */
@media only screen and (max-width: 480px) {
    .btn {
        font-size: clamp(13px, 3.5vw, 16px);
        padding: 16px 32px;
        min-width: 200px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .section-title {
        font-size: 24px;
    }

    .profile-intro-content {
        padding: 30px 12px;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-title {
        font-size: 13px;
    }

    .profile-greeting {
        font-size: 19px;
    }

    .contact-photo-wrapper {
        width: 130px;
        height: 130px;
    }

    .sympathy-item {
        padding: 24px 20px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .sympathy-number {
        font-size: 32px;
    }

    .sympathy-message {
        padding: 32px 16px;
    }

    .sympathy-emphasis {
        font-size: 17px !important;
    }

    .sympathy-warning {
        display: none;
    }

    .values {
        padding: 28px 20px;
    }

    .values-title {
        font-size: 22px;
    }

    .fit-box {
        padding: 28px 20px;
    }

    .fit-title {
        font-size: 20px;
    }

    .service-card {
        padding: 28px 16px !important;
    }

    .service-title {
        font-size: 18px;
    }

    .result-badge {
        font-size: 11px !important;
        padding: 5px 14px !important;
    }

    .result-title {
        font-size: 18px !important;
    }

    .metric-number {
        font-size: 22px !important;
    }

    .message-title {
        font-size: 24px;
    }

    .message-text {
        font-size: 16px;
    }

    .footer-logo {
        font-size: 20px;
    }

    .footer-text {
        font-size: 12px;
    }

    .footer-address {
        font-size: 11px;
    }

    .footer-copyright {
        font-size: 11px;
    }
}
